/* =====================================================================
   Honest Treads — shared stylesheet
   Brand: teal + coral on pearl/ink. Light + dark mode.
   Edit the variables below to re-skin the whole site at once.
   (Variable names kept generic; --gold = the coral pop accent.)
   ===================================================================== */

:root {
  /* Light mode (default) — pearl + teal + coral, matching the brand */
  --bg:            #FBFAF7;   /* pearl */
  --bg-2:         #F1F0EA;   /* deeper pearl for bands */
  --surface:      #FFFFFF;   /* card surface */
  --surface-2:    #F6F5F0;
  --text:         #20272B;   /* charcoal */
  --muted:        #5C6A6E;   /* slate */
  --line:         #E4E2DA;   /* hairline */
  --accent:       #0FB5B1;   /* teal */
  --accent-soft:  #E1F5F4;   /* teal tint */
  --accent-ink:   #0A8F8C;   /* deep teal */
  --gold:         #FF6B5C;   /* coral pop */
  --gold-soft:    #FFE8E5;   /* coral tint */
  --ink:          #142024;   /* dark header/footer */
  --shadow:       0 18px 50px -24px rgba(20, 32, 36, .35);
  --shadow-sm:    0 8px 24px -16px rgba(20, 32, 36, .30);
  --radius:       20px;
  --radius-sm:    13px;
  --maxw:         1180px;
  --header-h:     74px;

  --font-head: "Space Grotesk", system-ui, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --bg:            #0F1719;
  --bg-2:         #142024;
  --surface:      #172327;
  --surface-2:    #1E2B2F;
  --text:         #EDF1F0;
  --muted:        #9DB0B2;
  --line:         #28383C;
  --accent:       #2DD4CF;   /* lifted teal for dark bg */
  --accent-soft:  #14292B;
  --accent-ink:   #5CE0DB;
  --gold:         #FF8576;   /* lifted coral */
  --gold-soft:    #33201D;
  --ink:          #0B1214;
  --shadow:       0 22px 60px -28px rgba(0, 0, 0, .8);
  --shadow-sm:    0 10px 28px -18px rgba(0, 0, 0, .7);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .35s ease, color .35s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: .76rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: 1rem;
}
html[data-theme="dark"] .eyebrow { color: var(--accent); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #04201F; }
html[data-theme="dark"] .btn-primary { color: #04201F; }
.btn-primary:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
html[data-theme="dark"] .btn-ghost:hover { color: var(--accent); }
.btn-gold { background: var(--gold); color: #2A0F0B; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-sm { padding: .6rem 1.05rem; font-size: .88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .35s ease, border-color .35s ease;
}
.nav { height: var(--header-h); display: flex; align-items: center; gap: 1.4rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 700; font-size: 1.24rem; letter-spacing: -.03em; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent); color: #04201F; font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  box-shadow: var(--shadow-sm);
}
.brand b { font-weight: 700; }
.brand .dot { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav-links a {
  font-weight: 500; font-size: .96rem; padding: .5rem .8rem; border-radius: 999px; color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--accent-ink); font-weight: 700; }
html[data-theme="dark"] .nav-links a.active { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: .55rem; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center;
  transition: border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(-12deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }

.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto; position: relative; transition: .25s;
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 2.5rem; align-items: center; }
.hero .locline { font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 1.3rem; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
html[data-theme="dark"] .hero h1 em { color: var(--accent); }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 34ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.side-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.side-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.side-card .feat { display: flex; align-items: flex-start; gap: .8rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.side-card .feat:last-child { border-bottom: 0; }
.side-card .feat .ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 1rem; }
html[data-theme="dark"] .side-card .feat .ic { color: var(--accent); }
.side-card .feat b { display: block; font-family: var(--font-body); font-weight: 600; font-size: .96rem; }
.side-card .feat span { font-size: .86rem; color: var(--muted); }
.side-card .promo { margin-top: 1.1rem; background: var(--gold-soft); color: var(--text); border-radius: var(--radius-sm); padding: .9rem 1rem; font-size: .9rem; }
.side-card .promo b { color: var(--gold); }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { max-width: 660px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .9rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.band { background: var(--bg-2); }

/* ---------- Card grid ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 1.3rem; margin-bottom: 1rem; }
html[data-theme="dark"] .card .ic { color: var(--accent); }
.card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* numbered promise cards */
.promise .card { position: relative; }
.promise .num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: .6rem; display: block; }

/* ---------- Review strip ---------- */
.review-strip { background: var(--ink); color: #F2F6F5; border-radius: var(--radius); padding: clamp(2rem, 4vw, 3rem); text-align: center; box-shadow: var(--shadow); }
.review-strip .stars { font-size: 1.5rem; letter-spacing: .15em; color: var(--gold); margin-bottom: .6rem; }
.review-strip .big { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 28ch; margin: 0 auto .7rem; letter-spacing: -.02em; }
.review-strip .sub { opacity: .8; font-size: .98rem; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.4rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative; }
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.price-card .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #2A0F0B; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; white-space: nowrap; }
.price-card h3 { font-size: 1.3rem; margin-bottom: .15rem; }
.price-card .pages { font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.price-card .was { color: var(--muted); text-decoration: line-through; font-size: .95rem; }
.price-card .now { font-family: var(--font-head); font-weight: 700; font-size: 2.5rem; line-height: 1; margin: .1rem 0 .15rem; color: var(--accent-ink); letter-spacing: -.03em; }
html[data-theme="dark"] .price-card .now { color: var(--accent); }
.price-card .now small { font-size: .95rem; font-family: var(--font-body); font-weight: 500; color: var(--muted); }
.price-card .save { display: inline-block; background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: .78rem; padding: .25rem .7rem; border-radius: 999px; margin-bottom: 1.2rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.price-card li { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; }
.price-card li::before { content: "✓"; color: var(--accent-ink); font-weight: 700; flex: 0 0 auto; }
html[data-theme="dark"] .price-card li::before { color: var(--accent); }
.price-card .btn { margin-top: auto; width: 100%; }

.bundle { background: var(--ink); color: #EFF5F4; border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.3rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; box-shadow: var(--shadow); margin-top: 1.4rem; }
.bundle .tagrow { display: inline-block; background: var(--gold); color: #2A0F0B; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; margin-bottom: .8rem; }
.bundle h3 { font-size: 1.5rem; margin-bottom: .5rem; color: #fff; }
.bundle p { opacity: .82; margin: 0; max-width: 52ch; font-size: .96rem; }
.bundle .price { text-align: right; }
.bundle .price .n { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--accent); }
.bundle .price .was { opacity: .6; text-decoration: line-through; font-size: .9rem; }

.care-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.care { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.care.featured { border-color: var(--accent); }
.care .nm { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.care .pr { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--accent-ink); margin: .2rem 0; letter-spacing: -.02em; }
html[data-theme="dark"] .care .pr { color: var(--accent); }
.care .pr small { font-size: .9rem; color: var(--muted); font-family: var(--font-body); font-weight: 500; }
.care .desc { color: var(--muted); font-size: .92rem; margin: .3rem 0 .7rem; }
.care .mkt { font-size: .8rem; color: var(--muted); font-style: italic; margin-top: auto; }

.addons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.addon { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; }
.addon b { display: block; font-family: var(--font-body); font-weight: 600; }
.addon .pr { color: var(--gold); font-weight: 700; font-size: 1.1rem; }
.addon span { font-size: .85rem; color: var(--muted); }

/* ---------- Showcase / portfolio cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.work-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.work-shot iframe { position: absolute; inset: 0; width: 142%; height: 142%; border: 0; transform: scale(.704); transform-origin: top left; pointer-events: none; }
.work-shot .badge { position: absolute; top: 14px; left: 14px; z-index: 3; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; }
.badge-live { background: var(--accent); color: #04201F; }
.badge-demo { background: var(--gold); color: #2A0F0B; }
.work-shot .open-link { position: absolute; inset: 0; z-index: 4; }
.work-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.work-body .loc { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .5rem; }
.work-body h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.work-body p { color: var(--muted); font-size: .95rem; }
.work-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: .3rem 0 1.2rem; }
.work-tags span { font-size: .76rem; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); padding: .25rem .6rem; border-radius: 999px; }
.work-foot { margin-top: auto; display: flex; gap: .6rem; flex-wrap: wrap; }

/* Featured (large) work card — 2-col on desktop, stacks on mobile */
.work-feature { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
.work-feature .work-shot { aspect-ratio: auto; min-height: 380px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { text-align: center; padding: 1.4rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat .n { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--accent-ink); line-height: 1; letter-spacing: -.02em; }
html[data-theme="dark"] .stat .n { color: var(--accent); }
.stat .l { font-size: .9rem; color: var(--muted); margin-top: .3rem; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step { position: relative; padding-top: 1rem; }
.step .n { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; width: 44px; height: 44px; border-radius: 999px; background: var(--accent); color: #04201F; display: grid; place-items: center; margin-bottom: .9rem; }
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- CTA closing ---------- */
.cta-final { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(2.5rem, 5vw, 4rem); box-shadow: var(--shadow); }
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 1rem; }
.cta-final p { color: var(--muted); max-width: 48ch; margin: 0 auto 1.7rem; }
.cta-final .hero-cta { justify-content: center; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split .media { background: linear-gradient(140deg, var(--accent-soft), var(--gold-soft)); border-radius: var(--radius); aspect-ratio: 4/3; display: grid; place-items: center; border: 1px solid var(--line); overflow: hidden; }
.split .media .glyph { font-family: var(--font-head); font-weight: 700; font-size: 4.5rem; color: var(--accent-ink); opacity: .6; letter-spacing: -.04em; }
html[data-theme="dark"] .split .media .glyph { color: var(--accent); }

.values { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #DCE6E4; border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 2rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand .mark { background: var(--accent); color: #04201F; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.foot-grid h4 { font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #8AA0A0; margin-bottom: .9rem; }
.foot-grid a { display: block; color: #DCE6E4; padding: .25rem 0; font-size: .95rem; opacity: .85; }
.foot-grid a:hover { color: var(--accent); opacity: 1; }
.foot-blurb { color: #9DB0B0; font-size: .95rem; max-width: 34ch; margin-top: .8rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #8AA0A0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .care-row { grid-template-columns: 1fr; max-width: 460px; }
  .addons { grid-template-columns: repeat(2,1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .bundle { flex-direction: column; align-items: flex-start; }
  .bundle .price { text-align: left; }
  .work-feature { grid-template-columns: 1fr; }
  .work-feature .work-shot { min-height: 300px; }
  .work-feature .work-body { padding: 1.6rem 1.5rem !important; }
}
@media (max-width: 600px) {
  .price-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .grid-4, .grid-3, .grid-2, .values, .stats, .steps { grid-template-columns: 1fr; }
  .addons { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem 24px 1.4rem; gap: .2rem; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem .6rem; font-size: 1.02rem; }
  .menu-btn { display: block; order: 3; }
  .nav-actions .btn:not(.btn-primary) { display: none; }
}
@media (max-width: 460px) {
  .nav-actions .btn-primary { display: none; }   /* keep header clean; CTAs live in the menu + body */
  .brand { font-size: 1.08rem; }
  .brand .mark { width: 34px; height: 34px; }
  .container { padding: 0 18px; }
  .work-feature .work-shot { min-height: 230px; }
  .review-strip .big { font-size: 1.3rem; }
}
