/* =========================================================
   Done For You Digital Products — site stylesheet
   Plain CSS, no build step, no framework.
   Adapted structurally from the Microsite Blueprint's reusable
   component patterns (hero/section/card/FAQ/footer), re-themed
   with an original palette/typography for this business.
   Brand tokens live in :root — change them here to re-theme
   the whole site.
   ========================================================= */

:root {
  --brand:        #14534E;   /* deep warm teal — primary/links/nav */
  --brand-dark:   #0D3C38;   /* hover shade */
  --accent:       #B85A2E;   /* warm terracotta — CTA buttons only (4.63:1 contrast w/ white text, WCAG AA) */
  --accent-dark:  #984A24;   /* hover shade, 6.0:1+ contrast */
  --ink:          #1E2A28;   /* body text */
  --ink-soft:     #55645F;   /* secondary text */
  --line:         #E4E1D6;   /* hairlines / borders (warm gray) */
  --bg:           #FFFDF8;   /* warm off-white */
  --bg-alt:       #F5F0E4;   /* alternating section background */
  --bg-dark:      #12302C;   /* footer / dark band (deep teal-black) */
  --max:          1160px;
  --radius:       10px;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: .6em; }
h3 { font-size: 1.2rem; margin-bottom: .35em; }
p  { margin-bottom: 1rem; color: var(--ink-soft); }
a  { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.3em; color: var(--ink-soft); margin-bottom: 1rem; }
li { margin-bottom: .4em; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); padding: 12px 26px; }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--lg { padding: 18px 38px; font-size: 1.05rem; }
.btn--secondary { background: var(--brand); }
.btn--secondary:hover { background: var(--brand-dark); }
@media (max-width: 480px) {
  .btn { white-space: normal; max-width: 100%; text-align: center; }
}

.muted { color: var(--ink-soft); font-size: .9rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 700; color: var(--accent); }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; max-width: var(--max); margin: 0 auto; }
.nav__logo { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.nav__logo:hover { text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 22px; list-style: none; padding: 0; margin: 0; }
.nav__links a { color: var(--ink); font-weight: 500; font-size: .96rem; }
.nav__links a:hover { color: var(--brand); text-decoration: none; }
.nav__cta { background: var(--accent); color: #fff !important; padding: 10px 18px; border-radius: var(--radius); font-weight: 700; white-space: nowrap; }
.nav__cta:hover { background: var(--accent-dark); text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px; }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; padding: 8px 0; }
  .nav__toggle { display: block; }
}

/* ---------- language toggle ---------- */
.lang-toggle { display: inline-flex; align-items: center; background: var(--bg-alt); border-radius: 999px; padding: 4px; gap: 2px; box-shadow: inset 0 1px 3px rgba(20,45,40,.1); }
.lang-toggle__option { padding: 9px 18px; border-radius: 999px; font-size: .92rem; font-weight: 700; letter-spacing: .02em; line-height: 1; color: var(--ink-soft); transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.lang-toggle__option:hover { background: rgba(20,83,78,.1); color: var(--brand); text-decoration: none; }
.lang-toggle__option--active, .lang-toggle__option--active:hover { background: var(--brand); color: #fff !important; box-shadow: 0 2px 8px rgba(20,83,78,.4); }

/* ---------- hero ---------- */
.hero { padding: 70px 0 60px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero__inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hero h1 { margin: 12px 0 18px; max-width: 20ch; }
.hero p.lead { font-size: 1.15rem; max-width: 52ch; color: var(--ink-soft); }
.hero__cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__note { margin-top: 14px; font-size: .88rem; color: var(--ink-soft); }

/* ---------- sections ---------- */
.section { padding: 60px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.82); }
.section__lead { max-width: 65ch; }
.center { text-align: center; }
.center .section__lead { margin: 0 auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section--alt .card { background: #fff; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

/* checklist / included-items list with check marks */
.check-list { list-style: none; padding-left: 0; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: .7em; color: var(--ink); }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }

/* numbered how-it-works steps */
.steps { list-style: none; padding-left: 0; counter-reset: step; display: grid; gap: 20px; }
.steps li { position: relative; padding-left: 54px; min-height: 40px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* comparison table */
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 520px; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 600px) { table { min-width: 480px; } }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .95rem; }
th { background: var(--bg-alt); font-family: var(--font-body); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: 0; }

/* FAQ accordion */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--font-head); font-size: 1.08rem; padding: 16px 0; list-style: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding-bottom: 16px; margin-bottom: 0; }

/* guarantee / trust badge */
.badge-row { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; margin: 24px 0; }
.badge { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-soft); }
.badge strong { color: var(--ink); }

/* pricing card */
.price-card { background: #fff; border: 2px solid var(--brand); border-radius: var(--radius); padding: 32px; text-align: center; max-width: 420px; margin: 0 auto; }
.price-card .price { font-family: var(--font-head); font-size: 2.6rem; color: var(--ink); margin: 8px 0; }
.price-card .price span { font-size: 1rem; color: var(--ink-soft); font-family: var(--font-body); }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; text-align: center; padding: 56px 20px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }
.cta-band .btn { background: var(--accent); }
.cta-band .btn:hover { background: var(--accent-dark); }

/* breadcrumbs */
.breadcrumbs { font-size: .85rem; color: var(--ink-soft); padding: 16px 0 0; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--brand); }

/* blog index cards */
.post-card h3 { margin-bottom: .3em; }
.post-card .muted { display: block; margin-bottom: .5em; }

/* article/blog post typography */
.article { max-width: 72ch; margin: 0 auto; }
.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.2em; }
.article p, .article li { color: var(--ink); }
.article .lead { font-size: 1.1rem; color: var(--ink-soft); }
.article-meta { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.5em; }

/* article table of contents + key-takeaways callout */
.article-toc { background: var(--bg-alt); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; }
.article-toc h2 { margin: 0 0 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.article-toc ol { margin: 0; padding-left: 20px; }
.article-toc li { margin-bottom: .45em; }
.article-toc a { color: var(--brand); font-weight: 600; }

.article-takeaways { background: var(--bg-alt); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; }
.article-takeaways h4 { margin: 0 0 10px; }
.article-takeaways ul { margin: 0; padding-left: 20px; }
.article-takeaways li { margin-bottom: .5em; }

/* contact form (mailto-based, no backend on static site) */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-body); font-size: 1rem; }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.8); padding: 52px 0 26px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-family: var(--font-body); font-size: .98rem; letter-spacing: .02em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.8); font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: rgba(255,255,255,.7); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 18px; font-size: .84rem; color: rgba(255,255,255,.55); }
.footer-disclaimer { font-size: .8rem; color: rgba(255,255,255,.55); margin-top: 8px; line-height: 1.5; }

/* skip link (accessibility) */
.skip-link { position: absolute; left: -999px; top: auto; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- photo treatment (Pexels sourcing, used sparingly per VISUAL-DESIGN-PLAN.md) ---------- */
.photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 34px rgba(20,83,78,.14); }
.photo img { display: block; width: 100%; height: auto; }

/* ---------- bilingual product badge, overlaid on cover/mockup images ---------- */
.bilingual-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0,0,0,.22);
  z-index: 2;
}
.article-hero-photo { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; box-shadow: 0 14px 34px rgba(20,83,78,.12); }
.article-hero-photo img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; }

/* ---------- icon system (CSS/SVG, no image files — primary visual language per research) ---------- */
.icon-circle {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-alt); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); flex-shrink: 0;
}
.icon-circle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-row { display: flex; gap: 16px; align-items: flex-start; }
.icon-row h3 { margin-bottom: .3em; }
.icon-row p { margin-bottom: 0; }

/* ---------- trust badges (CSS/SVG, near guarantee/CTA) ---------- */
.trust-badges { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 22px; }
.trust-badge { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.trust-badge svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- sticky CTA bar ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--bg); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 26px rgba(0,0,0,.10);
  padding: 12px 20px;
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sticky-cta__text { font-size: .92rem; color: var(--ink); }
.sticky-cta__text strong { font-family: var(--font-head); }
.sticky-cta .btn { white-space: nowrap; padding: 11px 22px; }

/* ---------- "look inside" product preview mockup (CSS, not a photo) ---------- */
.preview-mock {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; max-width: 520px; margin: 0 auto;
  box-shadow: 0 20px 46px rgba(20,83,78,.14);
}
.preview-mock__label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-bottom: 14px; }
.preview-mock__page { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px 24px; }
.preview-mock__page h4 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 14px; }
.preview-mock__q { font-size: .92rem; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.preview-mock__field { border: 1px dashed var(--line); border-radius: 6px; height: 34px; margin-bottom: 16px; }
.preview-mock__field:last-child { margin-bottom: 0; }
