/* Jonathan Martinez — Small Business Web Design */
:root {
  --night: #15120F;     /* hero */
  --night-2: #211B16;
  --navy: #141B26;      /* process */
  --navy-2: #1B2431;    /* pricing */
  --gold: #E9B871;
  --gold-2: #F2C98A;
  --gold-ink: #8A5A17;  /* gold dark enough for text on light (5.1:1) */
  --paper: #F7F5F1;
  --gray: #ECEDEF;
  --ink: #16181C;
  --muted: #5A5F68;
  --line: #DEDCD6;
  --on-dark: rgba(255,255,255,.82);

  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 7vw, 6rem);
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--f-sans); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--paper); overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: var(--f-serif); font-weight: 700; letter-spacing: -.015em; line-height: 1.04; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h3 { font-family: var(--f-serif); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--gold); color: var(--ink); padding: .7rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.eyebrow--dark { color: var(--gold-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 46px; padding: .7rem 1.3rem; border-radius: var(--r);
  font-family: var(--f-sans); font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn--lg { min-height: 54px; padding: .85rem 1.75rem; font-size: 1rem; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); }
.btn--outline { border-color: rgba(255,255,255,.85); color: #fff; }
.btn--outline:hover { background: #fff; color: var(--ink); }
.btn:active { transform: translateY(1px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(21,18,15,.94); backdrop-filter: saturate(1.2) blur(8px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand-mark { font-family: var(--f-serif); font-weight: 700; font-size: 2rem; letter-spacing: -.06em; line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-weight: 600; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.brand-text span { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.75rem; }
.site-nav ul a { font-size: .92rem; font-weight: 500; text-decoration: none; padding: .4rem 0; border-bottom: 1.5px solid transparent; }
.site-nav ul a:hover { border-bottom-color: var(--gold); }

.nav-toggle { display: none; position: relative; width: 46px; height: 46px; background: none; border: 1.5px solid rgba(255,255,255,.6); border-radius: var(--r); color: #fff; cursor: pointer; }
.bars, .bars::before, .bars::after { position: absolute; left: 11px; width: 21px; height: 2px; background: currentColor; transition: transform .2s, top .2s; }
.bars { top: 21px; } .bars::before, .bars::after { content: ""; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); padding: .5rem var(--gutter) 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.1rem; }
  .site-nav .btn { margin-top: 1rem; }
}

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 35%, rgba(233,184,113,.16), transparent 70%),
    radial-gradient(40% 40% at 15% 10%, rgba(120,90,60,.25), transparent 70%),
    linear-gradient(180deg, #1C1713 0%, var(--night) 65%);
}
.hero::after {
  /* desk surface */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background:
    repeating-linear-gradient(178deg, rgba(255,220,170,.035) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, rgba(70,48,30,0), rgba(70,48,30,.55));
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 3rem); }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1.05fr; } }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 3.8vw, 4.1rem); max-width: 13ch; }
.hero-lede { margin-top: 1.3rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--on-dark); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.14); max-width: 35rem; }
.hero-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0; margin-top: 1.5rem; }
@media (min-width: 640px) { .hero-features { grid-template-columns: repeat(4, 1fr); } }
.hero-features li { display: flex; flex-direction: column; padding-right: 1rem; font-size: .82rem; color: var(--on-dark); line-height: 1.35; }
@media (min-width: 640px) { .hero-features li + li { padding-left: 1.1rem; border-left: 1px solid rgba(255,255,255,.14); } }
.hero-features svg { width: 22px; height: 22px; fill: #fff; margin-bottom: .7rem; }
.hero-features strong { color: #fff; font-weight: 600; font-size: .9rem; }

/* Devices */
.devices { position: relative; min-height: 340px; perspective: 1800px; }
.laptop { position: relative; width: min(100%, 620px); margin-left: auto; transform: rotateY(-14deg) rotateX(3deg); transform-origin: right center; }
.laptop-screen { background: #0B0B0C; border-radius: 14px 14px 0 0; padding: 14px 14px 18px; border: 1px solid #2E2E30; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.laptop-screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 2px; }
.laptop-base { height: 16px; margin: 0 -6%; background: linear-gradient(180deg, #CFCFD2, #8E8F93); border-radius: 0 0 14px 14px; box-shadow: 0 18px 30px -10px rgba(0,0,0,.6); }
.laptop-base::after { content: ""; display: block; width: 18%; height: 6px; margin: 0 auto; background: #A9AAAE; border-radius: 0 0 8px 8px; }
.phone { position: absolute; right: -2%; bottom: -4%; width: clamp(110px, 24%, 165px); padding: 7px; background: #0B0B0C; border-radius: 26px; border: 1px solid #333; box-shadow: 0 24px 40px -12px rgba(0,0,0,.75); }
.phone-screen { border-radius: 20px; overflow: hidden; }
.phone-screen img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
@media (max-width: 999px) { .laptop { margin-inline: auto; transform: rotateY(-8deg); width: 92%; } .phone { right: 0; } }

/* Work */
.section { padding-block: var(--section); }
.work { background: var(--paper); }
.work-head { display: grid; gap: 1rem 3rem; margin-bottom: 2.5rem; align-items: end; }
@media (min-width: 900px) { .work-head { grid-template-columns: 1.15fr 1fr; } }
.work-head h2 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.2rem); }
.work-head > p { color: var(--muted); max-width: 32rem; }
.cases { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); }

.compare { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; user-select: none; touch-action: pan-y; }
.compare img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.compare-before { position: absolute; inset: 0; }
.compare-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.compare-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; font-weight: 700; font-size: 1rem; letter-spacing: .1em;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare:has(.compare-range:focus-visible) .compare-handle::after { outline: 3px solid var(--gold); outline-offset: 2px; }
.tag { position: absolute; bottom: .75rem; padding: .2rem .55rem; border-radius: 3px; font-size: .72rem; font-weight: 600; color: #fff; background: rgba(20,20,20,.62); pointer-events: none; }
.tag--before { left: .75rem; }
.tag--after { right: .75rem; }
.case-body { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .25rem 1rem; padding: 1.1rem 1.25rem 1.3rem; }
.case-body p { color: var(--muted); font-size: .88rem; margin-top: .25rem; }
.case-body p.case-compare { font-size: .78rem; margin-top: .4rem; color: var(--gold-ink); font-weight: 600; }
.case-link { flex: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; color: var(--gold-ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.case-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.work-note { margin-top: 1.25rem; font-size: .82rem; color: var(--muted); }

/* Services */
.services { background: var(--gray); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.services-grid { display: grid; gap: 2rem 3rem; align-items: center; }
@media (min-width: 1000px) { .services-grid { grid-template-columns: .9fr 2fr; } }
.services-head h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.5rem); }
.services-head p:last-child { margin-top: .8rem; color: var(--muted); max-width: 28rem; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
@media (min-width: 640px) { .service-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .service-list { grid-template-columns: repeat(6, 1fr); } }
.service-list li { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: .78rem; color: var(--muted); line-height: 1.35; }
.service-list svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .8rem; }
.service-list strong { color: var(--ink); font-size: .86rem; font-weight: 600; margin-bottom: .2rem; }

/* Trio */
.trio-grid { display: grid; }
@media (min-width: 1100px) { .trio-grid { grid-template-columns: 1.3fr 1.1fr 1.1fr; } }
.trio-grid > div { padding: clamp(2.5rem, 5vw, 3.25rem) clamp(1.25rem, 2.6vw, 3rem); }
.trio h2 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.2rem); }
.trio-sub { margin-top: .6rem; max-width: 26rem; }
.trio-process { background: var(--navy); color: #fff; }
.trio-process .trio-sub, .trio-pricing .trio-sub { color: var(--on-dark); }
.steps { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; color: var(--on-dark); line-height: 1.45; }
.step-n { margin-bottom: .5rem; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .9rem; }
.steps strong { color: #fff; font-weight: 600; font-size: .95rem; }

.trio-pricing { background: var(--navy-2); color: #fff; }
.price-card { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; margin-top: 1.5rem; padding: .75rem; background: #fff; color: var(--ink); border-radius: var(--r); }
.price-tag { background: #F6E6CC; border-radius: 4px; padding: 1rem; display: flex; flex-direction: column; justify-content: center; }
.price { font-family: var(--f-serif); font-weight: 700; font-size: 2.8rem; line-height: 1; }
.price sup { font-size: 1.2rem; vertical-align: top; position: relative; top: .35em; margin-right: .05em; }
.price-name { margin-top: .5rem; font-weight: 600; font-size: .85rem; max-width: 7rem; line-height: 1.3; }
.price-list { display: grid; gap: .3rem; align-content: center; font-size: .85rem; color: var(--muted); padding-block: .5rem; }
.price-list li { white-space: nowrap; display: flex; gap: .5rem; align-items: center; }
.price-list li::before { content: ""; width: 9px; height: 5px; flex: none; border-left: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink); transform: rotate(-45deg) translateY(-2px); }

.trio-review { background: #fff; }
.trio-review .trio-sub { color: var(--muted); }
.review-form { display: grid; gap: .75rem; margin-top: 1.5rem; }
.rf-field { position: relative; }
.rf-field svg { position: absolute; left: .9rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.rf-field input { width: 100%; min-height: 52px; padding: .75rem .9rem .75rem 2.6rem; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); }
.rf-field input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--ink); }
.rf-field input[aria-invalid="true"] { border-color: #B3412E; }
.rf-field--area label { display: block; font-size: .88rem; font-weight: 600; margin: .25rem 0 .4rem; }
.rf-opt { font-weight: 400; color: var(--muted); }
.rf-field textarea { width: 100%; min-height: 110px; padding: .75rem .9rem; font: inherit; font-size: 1rem; line-height: 1.5; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); resize: vertical; }
.rf-field textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--ink); }
.review-form .btn { width: 100%; }
.rf-error { background: #F8E2DD; color: #6E1F12; padding: .65rem .9rem; border-radius: var(--r); font-size: .9rem; font-weight: 600; }
.rf-status { color: #2F6B4F; font-weight: 600; font-size: .92rem; }
.rf-status:empty { display: none; }
.assurances { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.1rem; font-size: .82rem; color: var(--muted); }
.assurances li { display: flex; align-items: center; gap: .45rem; }
.assurances li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: #F6E6CC; box-shadow: inset 0 0 0 4px #F6E6CC, inset 0 0 0 10px var(--gold-ink); }

/* About + FAQ */
.about { background: var(--paper); }
.about-grid, .faq-grid { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 900px) { .about-grid, .faq-grid { grid-template-columns: 1fr 1.6fr; } }
.about-copy p { font-size: 1.1rem; color: var(--muted); max-width: 40rem; }
.about-copy p + p { margin-top: 1rem; }
.faq-sec { background: #fff; border-top: 1px solid var(--line); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 60px; padding-block: .9rem; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--gold-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.2rem; color: var(--muted); max-width: 40rem; }

/* Footer */
.site-footer { background: var(--night); color: var(--on-dark); padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.site-footer .brand { color: #fff; }
.site-footer a { text-decoration-color: var(--gold); text-underline-offset: 4px; }
.footer-copy { flex-basis: 100%; font-size: .8rem; color: rgba(255,255,255,.55); }

/* Mobile CTA */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom, 0px)); background: rgba(21,18,15,.96); }
  .mobile-bar .btn { width: 100%; min-height: 52px; }
}

/* Motion: one moment — the before/after hint on first view */
@media (prefers-reduced-motion: no-preference) {
  .compare.is-hinting .compare-after, .compare.is-hinting .compare-handle { transition: clip-path .9s cubic-bezier(.5,0,.2,1), left .9s cubic-bezier(.5,0,.2,1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 380px) { .price-card { grid-template-columns: 1fr; } .price-list li { white-space: normal; } }
