/* Shah Nawaz LLC — shared styles */
:root {
  --paper: #F5F2EC;
  --paper-2: #ECE7DC;
  --card: #FBFAF6;
  --ink: #14201C;
  --muted: #5B6660;
  --line: #D8D2C4;
  --green: #1F4D3A;
  --green-2: #17392B;
  --brass: #C9973F;
  --cobalt: #2B45D4;
  --cobalt-2: #1E32A6;
  --accent: var(--green);
  --accent-2: var(--green-2);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1160px;
  --r: 18px;
}
body.theme-web { --accent: var(--cobalt); --accent-2: var(--cobalt-2); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7.2vw, 5.6rem); line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.05; }
h3 { font-size: 1.55rem; line-height: 1.15; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { text-wrap: pretty; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.logo small { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; font-size: 0.95rem; font-weight: 600; }
.nav-links a:not(.btn) { position: relative; padding: 6px 0; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.8px; background: var(--ink); position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; line-height: 1;
  background: var(--ink); color: var(--paper);
  border: 1.5px solid var(--ink);
  transition: transform .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Sections ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 84px); }
.hero .lede { margin-top: 26px; }
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 780px; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

/* ---------- Home: doors ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.door {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 440px; padding: 34px; border-radius: 26px;
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.door:hover { transform: translateY(-6px); }
.door-re { background: var(--green); }
.door-web { background: var(--cobalt); }
.door .tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: .8; }
.door h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); margin-top: 14px; max-width: 11ch; }
.door p { max-width: 34ch; opacity: .86; margin-top: 14px; font-size: 1rem; }
.door .go {
  display: inline-flex; align-items: center; gap: 12px; font-weight: 700; margin-top: 30px;
  padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--ink); align-self: flex-start;
}
.door .go .arr { transition: transform .25s ease; }
.door:hover .go .arr { transform: translateX(5px); }
.door-art { position: absolute; right: -30px; bottom: -30px; width: 62%; z-index: -1; opacity: .2; transition: opacity .35s ease, transform .5s ease; }
.door:hover .door-art { opacity: .32; transform: scale(1.04); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 40px -24px rgba(20,32,28,.35); }
.card .num { font-family: var(--mono); font-size: 0.74rem; letter-spacing: .12em; color: var(--accent); }
.card p { color: var(--muted); font-size: 0.98rem; }
.icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 0; border-top: 1.5px solid var(--ink); counter-reset: step; }
.step { padding: 28px 26px 8px 0; counter-increment: step; position: relative; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.step::before {
  content: "0" counter(step); display: block; font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--accent); margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Before / after ---------- */
.ba {
  --pos: 50%;
  position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 8 / 5;
  background: #ccc; box-shadow: 0 30px 70px -36px rgba(20,32,28,.55); user-select: none; touch-action: pan-y;
}
.ba svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.28); color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: 2px;
}
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba input[type="range"]:focus-visible ~ .ba-line .ba-knob { outline: 3px solid var(--brass); outline-offset: 3px; }
.ba-tag {
  position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; pointer-events: none;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(20,32,28,.72); color: #fff; backdrop-filter: blur(4px);
}
.ba-tag.l { left: 14px; }
.ba-tag.r { right: 14px; background: var(--accent); }
.ba-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 0.92rem; }
.ba-cap strong { font-weight: 700; }
.ba-cap span { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

/* illustration palettes */
.room-before { --wall:#CFCBC2; --floor:#A89F90; --base:#BDB7AB; --floor-line:#9B9283; --frame:#B8B2A6; --sky:#C9CDD0; --light:transparent; --furn:0; }
.room-after  { --wall:#EFE9DD; --floor:#C8A77A; --base:#FBFAF6; --floor-line:#B8956A; --frame:#FBFAF6; --sky:#BFDDF0; --light:rgba(255,244,214,.38); --furn:1; }
.ext-day  { --sky:#BCD2E0; --sky2:#C9DBE6; --sky3:#D8E5EC; --orb:#FFF3CF; --cloud:#EEF3F5; --tree:#5E8A56; --lawn:#7FA35B; --path:#CFC8BA; --house:#EFE9DD; --roof:#5A4A42; --door:#7A4B32; --win:#6F8796; --trim:#FBFAF6; --halo:0; }
.ext-dusk { --sky:#232B5C; --sky2:#6B4C86; --sky3:#E58B5E; --orb:#F6E7C6; --cloud:#8E6C9C; --tree:#1D3329; --lawn:#2C4737; --path:#6E6672; --house:#BCAAA8; --roof:#2B2530; --door:#4A2E22; --win:#FFD27A; --trim:#E9DDD2; --halo:1; }
.ext-grey { --sky:#BFC1C1; --sky2:#C6C8C8; --sky3:#CDCFCF; --orb:#C6C8C8; --cloud:#B4B6B6; --tree:#6C7A66; --lawn:#8A9477; --path:#BEBAB2; --house:#D6D2C9; --roof:#5F5753; --door:#6C5346; --win:#77858C; --trim:#E4E1DA; --halo:0; }
.ext-blue { --sky:#6FB0E8; --sky2:#9CCBF1; --sky3:#CBE4F7; --orb:#FFE08A; --cloud:#FFFFFF; --tree:#3F8A4A; --lawn:#6FAE4E; --path:#D9D2C2; --house:#F6F1E6; --roof:#4E3F38; --door:#8A4B2B; --win:#5F86A3; --trim:#FFFFFF; --halo:0; }

/* ---------- Browser mockups ---------- */
.browser {
  border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgba(20,32,28,.6);
  container-type: inline-size;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #EFEBE2; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D3CCBD; }
.browser-bar b {
  flex: 1; margin-left: 10px; height: 22px; border-radius: 999px; background: #fff; display: flex; align-items: center; padding: 0 12px;
  font-family: var(--mono); font-weight: 400; font-size: 10.5px; color: var(--muted); overflow: hidden; white-space: nowrap;
}
.mini { aspect-ratio: 16 / 10.5; padding: 5cqw 6cqw; font-size: 2.6cqw; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.mini-nav { display: flex; justify-content: space-between; align-items: center; font-size: .82em; font-weight: 700; }
.mini-nav span:last-child { display: flex; gap: 2.2em; font-weight: 500; opacity: .7; }
.mini-body { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 4cqw; align-items: center; }
.mini h4 { font-family: var(--serif); font-weight: 400; font-size: 2.55em; line-height: 1; letter-spacing: -.01em; }
.mini p { font-size: .82em; opacity: .72; margin-top: .9em; line-height: 1.45; }
.mini .pill { display: inline-block; margin-top: 1.3em; padding: .65em 1.3em; border-radius: 999px; font-weight: 700; font-size: .8em; }
.mini .blk { border-radius: 2.4cqw; height: 100%; max-height: 34cqw; }

.mini-dental { background: #F1F8F5; color: #12332B; }
.mini-dental .pill { background: #1E8A6B; color: #fff; }
.mini-dental .blk { background: radial-gradient(circle at 50% 42%, #fff 0 22%, transparent 23%), linear-gradient(160deg, #BFE5D7, #7CC7AE); }
.mini-rest { background: #1B1512; color: #F5E9D8; }
.mini-rest h4 { font-style: italic; }
.mini-rest .pill { background: #E0823A; color: #1B1512; }
.mini-rest .blk { background: radial-gradient(circle at 50% 50%, #E0823A 0 26%, #F5E9D8 27% 31%, #3A2A22 32% 52%, transparent 53%), #2A1F1A; }
.mini-roof { background: #fff; color: #17181A; }
.mini-roof h4 { font-family: var(--sans); font-weight: 800; letter-spacing: -.03em; font-size: 2.2em; }
.mini-roof .pill { background: #F25C1F; color: #fff; border-radius: .6em; }
.mini-roof .blk { background: #F4F3F0; padding: 2.4cqw; display: grid; gap: 1.4cqw; align-content: center; }
.mini-roof .blk i { display: block; height: 3.4cqw; border-radius: .8cqw; background: #fff; border: 1px solid #DDD9D0; }
.mini-roof .blk i:last-child { background: #F25C1F; border-color: #F25C1F; }
.mini-hero { background: var(--paper); color: var(--ink); }
.mini-hero h4 em { font-style: italic; color: var(--cobalt); }
.mini-hero .pill { background: var(--cobalt); color: #fff; }
.mini-hero .blk { background: linear-gradient(150deg, #2B45D4, #7B8CF0 60%, #C9D1FA); }

.device-stack { position: relative; padding: 0 0 36px 0; }
.phone {
  position: absolute; right: -6px; bottom: 0; width: 25%; min-width: 108px; aspect-ratio: 9 / 18.5;
  border-radius: 22px; border: 6px solid #14201C; background: var(--paper); overflow: hidden;
  box-shadow: 0 24px 50px -22px rgba(20,32,28,.7);
  padding: 16px 10px; display: flex; flex-direction: column; gap: 8px;
}
.phone b { font-family: var(--serif); font-weight: 400; font-size: 15px; line-height: 1; }
.phone b em { color: var(--cobalt); }
.phone i { display: block; border-radius: 8px; }
.phone .ph-img { flex: 1; background: linear-gradient(150deg, #2B45D4, #7B8CF0 60%, #C9D1FA); }
.phone .ph-btn { height: 22px; background: var(--cobalt); border-radius: 999px; }
.phone .ph-l { height: 6px; background: var(--line); width: 80%; }
.phone .ph-l.s { width: 55%; }

.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work figcaption { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.work figcaption strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.work figcaption span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.work .browser { transition: transform .3s ease; }
.work figure:hover .browser { transform: translateY(-6px) rotate(-.4deg); }

/* ---------- Checklist ---------- */
.checks { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.checks li::before {
  content: "✓"; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; margin-top: 1px;
}
.checks strong { font-weight: 700; }
.checks span { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1.5px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.45rem; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.5rem; font-weight: 300; color: var(--accent); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 44px 24px 0; color: var(--muted); max-width: 68ch; }

/* ---------- CTA + footer ---------- */
.cta {
  background: var(--accent); color: #fff; border-radius: 30px; padding: clamp(40px, 7vw, 84px);
  display: grid; gap: 22px; position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.22); box-shadow: 0 0 0 60px rgba(255,255,255,.05), 0 0 0 120px rgba(255,255,255,.04);
  pointer-events: none;
}
.cta .eyebrow { color: rgba(255,255,255,.8); margin-bottom: 0; }
.cta h2 { max-width: 16ch; }
.cta h2 em { color: var(--brass); }
.cta p { max-width: 52ch; opacity: .88; }
.cta .mail { font-family: var(--serif); font-size: clamp(1.4rem, 3.4vw, 2.3rem); border-bottom: 1.5px solid rgba(255,255,255,.5); align-self: start; justify-self: start; padding-bottom: 2px; word-break: break-word; }
.cta .mail:hover { border-color: #fff; }
.cta .btn-row { margin-top: 6px; position: relative; z-index: 1; }

.footer { padding: 44px 0 52px; font-size: 0.9rem; color: var(--muted); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 600; color: var(--ink); }
.footer nav a:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .work { grid-template-columns: 1fr; max-width: 560px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(odd) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .doors, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .door { min-height: 360px; padding: 26px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0 18px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: 14px; }
  .nav-links a:not(.btn) { display: block; padding: 15px 0; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { justify-content: center; width: 100%; }
  .ba-cap { flex-direction: column; gap: 4px; }
  .cta { border-radius: 22px; }
  .footer-in { flex-direction: column; align-items: flex-start; }
}
