/* Douglasville Design — douglasvilledesign.com (v3: logo brand, dark default + light mode) */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/source-serif-4-var.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree-var.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-display: swap;
}

/* ---------- tokens (dark default = dark logo) ---------- */
:root {
  --bg: #313536;
  --bg-raise: #383D3E;
  --bg-deep: #292D2E;
  --surface: #3B4142;
  --text: #F5F7F6;
  --text-soft: rgba(245, 247, 246, .68);
  --coral: #E27966;
  --coral-bright: #EC8B79;
  --coral-soft: rgba(226, 121, 102, .16);
  --coral-ink: #33211B;
  --link: #EC9D8E;
  --line: rgba(245, 247, 246, .14);
  --line-strong: rgba(245, 247, 246, .3);
  --btn-primary-bg: #F5F7F6;
  --btn-primary-fg: #313536;
  --btn-primary-hover: #E4E8E6;
  --display: 'Source Serif 4', Georgia, serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --shadow-lift: 0 18px 50px -18px rgba(0, 0, 0, .55);
  --radius: 14px;
}

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark light; }
body {
  font-family: var(--body);
  font-weight: 420;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.stripe-edge { height: 4px; background: var(--coral); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.18rem; line-height: 1.3; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body);
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--coral);
}
.eyebrow::before {
  content: ''; width: 34px; height: 8px; flex: 0 0 auto;
  background:
    radial-gradient(circle at 29px 4px, var(--coral) 0 3px, transparent 3.5px),
    linear-gradient(var(--line-strong) 0 0) 0 50% / 22px 2px no-repeat;
}
.lede { font-size: 1.18rem; color: var(--text-soft); max-width: 56ch; }

.mark {
  background-image: linear-gradient(var(--coral), var(--coral));
  background-repeat: no-repeat;
  background-size: 100% .1em;
  background-position: 0 96%;
  padding: 0 .04em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn-solid:hover { background: var(--btn-primary-hover); color: var(--btn-primary-fg); }
.btn-gold { background: var(--coral); color: var(--coral-ink); }
.btn-gold:hover { background: var(--coral-bright); color: var(--coral-ink); }
.btn-dark { background: var(--coral-ink); color: #F5F7F6; }
.btn-dark:hover { background: #241610; color: #F5F7F6; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; white-space: nowrap;
}
.wordmark img { width: 44px; height: 44px; flex: 0 0 auto; }
.wm-text {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .01em;
  color: var(--text);
}
.wm-text em { font-style: normal; color: var(--coral); }
nav { display: flex; align-items: center; gap: 26px; }
nav a.nav-link { font-weight: 600; font-size: .98rem; color: var(--text); text-decoration: none; }
nav a.nav-link:hover { color: var(--coral); }
nav .btn { padding: 10px 20px; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-copy > * + * { margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-proof { font-size: .98rem; color: var(--text-soft); }
.hero-proof a { font-weight: 700; }

.phone-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone {
  width: min(300px, 72vw);
  border-radius: 40px;
  border: 9px solid #1E2223;
  outline: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  background: #1E2223;
  rotate: 2deg;
}
.phone img { border-radius: 30px; }
.review-chip {
  position: absolute; top: 26px; left: -6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-weight: 700; font-size: .92rem;
  color: var(--text);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55);
  rotate: -3deg;
}
.review-chip .stars { color: var(--coral); letter-spacing: .06em; }
.phone-caption { font-size: .95rem; color: var(--text-soft); }
.phone-caption a { font-weight: 700; }

/* ---------- marquee ---------- */
.marquee { background: var(--coral); color: var(--coral-ink); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: scroll 46s linear infinite; }
.marquee-track ul { display: flex; list-style: none; }
.marquee-track li {
  font-family: var(--body); font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  white-space: nowrap; display: flex; align-items: center;
}
.marquee-track li::after { content: '•'; margin: 0 20px; color: rgba(51, 33, 27, .5); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 92px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { margin: 14px 0 16px; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.svc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: rgba(226, 121, 102, .5); }
.svc svg { color: var(--coral); margin-bottom: 14px; }
.svc h3 { margin-bottom: 8px; }
.svc p { font-size: .98rem; color: var(--text-soft); }

/* beyond */
.beyond { background: var(--bg-raise); }
.beyond-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.beyond-col {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px;
}
.beyond-col h3 { font-size: 1.45rem; margin-bottom: 6px; }
.beyond-col .sub { color: var(--text-soft); font-size: .98rem; margin-bottom: 20px; }
.beyond-col ul { list-style: none; }
.beyond-col li { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--text-soft); }
.beyond-col li strong { font-weight: 700; color: var(--text); }
.beyond-col li::before {
  content: ''; flex: 0 0 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--coral);
}
.beyond-note { margin-top: 26px; font-size: 1.05rem; color: var(--text-soft); }
.beyond-note strong { color: var(--text); }

/* pricing — the coral band */
.pricing { background: var(--coral); color: var(--coral-ink); }
.pricing .eyebrow { color: var(--coral-ink); }
.pricing .eyebrow::before {
  background:
    radial-gradient(circle at 29px 4px, var(--coral-ink) 0 3px, transparent 3.5px),
    linear-gradient(rgba(51, 33, 27, .45) 0 0) 0 50% / 22px 2px no-repeat;
}
.pricing .section-head h2 { color: var(--coral-ink); }
.pricing .section-head .lede { color: rgba(51, 33, 27, .82); }
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.price-card {
  background: rgba(51, 33, 27, .09); border: 1px solid rgba(51, 33, 27, .28);
  border-radius: var(--radius); padding: 32px 34px;
}
.price-card h3 { font-family: var(--body); font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.price-line { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.1; margin-bottom: 14px; }
.price-line .per { font-size: .42em; font-weight: 600; color: rgba(51, 33, 27, .62); letter-spacing: .02em; }
.price-body { color: rgba(51, 33, 27, .82); font-size: 1.02rem; }
.price-fine { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(51, 33, 27, .25); font-size: .95rem; color: rgba(51, 33, 27, .75); }
.covers-list { list-style: none; columns: 2; gap: 24px; }
.covers-list li { display: flex; gap: 10px; padding: 6px 0; break-inside: avoid; font-weight: 600; }
.covers-list li::before { content: '✓'; font-weight: 800; }
.pricing-note { font-size: .98rem; color: rgba(51, 33, 27, .68); margin: 26px 0 20px; max-width: 62ch; }

/* work */
.feature-card {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lift); margin-bottom: 22px;
}
.feature-shot { position: relative; min-height: 100%; }
.feature-shot img { height: 100%; width: 100%; object-fit: cover; object-position: top; }
.feature-info { padding: 38px 36px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.feature-info .site-name { font-family: var(--display); font-weight: 700; font-size: 1.6rem; }
.feature-info p { color: var(--text-soft); }
.stat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--coral-soft); border: 1px solid rgba(226, 121, 102, .45); border-radius: 999px;
  padding: 6px 14px; font-size: .88rem; font-weight: 700; color: var(--text);
}
.visit { font-weight: 700; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.work-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--text); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--text); border-color: rgba(226, 121, 102, .5); }
.work-card img { aspect-ratio: 8/5; object-fit: cover; object-position: top; border-bottom: 3px solid var(--coral); }
.work-card-info { padding: 18px 20px 20px; }
.work-card-info .site-name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.work-card-info p { font-size: .92rem; color: var(--text-soft); margin-top: 5px; }

/* story */
.story { padding-top: 0; }
.story-ribbon {
  height: 10px; max-width: 420px; margin: 0 auto 60px;
  background:
    radial-gradient(circle at 50% 50%, var(--coral) 0 4px, transparent 4.5px),
    linear-gradient(var(--line-strong) 0 0) 0 50% / calc(50% - 20px) 2px no-repeat,
    linear-gradient(var(--line-strong) 0 0) 100% 50% / calc(50% - 20px) 2px no-repeat;
}
.story-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.story-inner h2 { margin: 14px 0 20px; }
.story-inner p { font-size: 1.14rem; color: var(--text-soft); }
.story-inner p + p { margin-top: 16px; }

/* about */
.about { background: var(--bg-raise); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.team-card {
  display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px;
}
.team-photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--line); }
.team-initials {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 2.8rem; color: var(--coral);
  background: var(--coral-soft); border-color: rgba(226, 121, 102, .4);
}
.team-name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.team-role { color: var(--coral); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 4px 0 12px; }
.team-info p { color: var(--text-soft); }
.team-link { display: inline-block; margin-top: 14px; font-weight: 700; }

/* contact */
.contact { background: var(--bg-deep); padding-bottom: 60px; }
.contact .section-head { margin: 0 auto 36px; text-align: center; }
.contact .section-head .lede { margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.contact-card h3 { font-family: var(--body); color: var(--coral); font-size: .92rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.contact-card p { color: var(--text-soft); font-size: 1.02rem; }
.contact-card a { color: var(--text); font-weight: 700; }
.contact-card a:hover { color: var(--coral); }
.contact-card .big-link { font-family: var(--display); font-size: 1.3rem; text-decoration: none; overflow-wrap: anywhere; }

.contact-form { max-width: 660px; margin: 0 auto; display: grid; gap: 16px; position: relative; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  display: grid; gap: 7px;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-soft);
}
.contact-form .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.contact-form input, .contact-form textarea {
  font-family: var(--body); font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft);
}
.contact-form .btn { justify-self: center; }
.cf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-status { font-weight: 600; min-height: 1.3em; text-align: center; }
.cf-status.ok { color: #8FD6B2; }
.cf-status.err { color: var(--coral-bright); }

footer { border-top: 1px solid var(--line); margin-top: 64px; padding-top: 28px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: center; text-align: center; color: var(--text-soft); font-size: .92rem; }
.foot-row a { color: var(--text); }
.foot-legal { margin-top: 10px; }

/* legal pages */
.legal-hero { padding: 52px 24px 0; }
.legal-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); margin: 14px 0 12px; }
.legal-date { font-size: .85rem; color: var(--text-soft); letter-spacing: .08em; text-transform: uppercase; }
article.legal { max-width: 780px; margin: 0 auto; padding: 36px 24px 90px; }
article.legal h2 { font-size: 1.45rem; margin: 36px 0 12px; }
article.legal p { margin: 0 0 14px; color: var(--text-soft); }
article.legal p strong, article.legal li strong { color: var(--text); }
article.legal ul, article.legal ol { margin: 0 0 16px 22px; color: var(--text-soft); }
article.legal li { margin: 6px 0; }
.legal-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 26px 0; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- light mode (= light logo) ---------- */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F5F7F6;
    --bg-raise: #ECEFED;
    --bg-deep: #E7EBE9;
    --surface: #FFFFFF;
    --text: #384044;
    --text-soft: rgba(56, 64, 68, .74);
    --coral: #E07360;
    --coral-bright: #D25B47;
    --coral-soft: rgba(224, 115, 96, .13);
    --link: #C25543;
    --line: rgba(56, 64, 68, .16);
    --line-strong: rgba(56, 64, 68, .34);
    --btn-primary-bg: #384044;
    --btn-primary-fg: #F5F7F6;
    --btn-primary-hover: #2A3134;
    --shadow-lift: 0 18px 44px -18px rgba(56, 64, 68, .35);
  }
  .review-chip { box-shadow: 0 10px 30px -12px rgba(56, 64, 68, .35); }
  .contact { background: #384044; }
  .contact .section-head h2, .contact .lede { color: #F5F7F6; }
  .contact .section-head .lede { color: rgba(245, 247, 246, .8); }
  .contact-card { background: rgba(245, 247, 246, .06); border-color: rgba(245, 247, 246, .16); }
  .contact-card p { color: rgba(245, 247, 246, .75); }
  .contact-card a { color: #F5F7F6; }
  .contact-card h3 { color: #E8907F; }
  .contact .eyebrow { color: #E8907F; }
  /* contact/footer are forced dark in light mode → their hairlines need light-on-dark rgba */
  .contact .eyebrow::before {
    background:
      radial-gradient(circle at 29px 4px, #E8907F 0 3px, transparent 3.5px),
      linear-gradient(rgba(245, 247, 246, .34) 0 0) 0 50% / 22px 2px no-repeat;
  }
  .contact footer { border-top-color: rgba(245, 247, 246, .16); }
  .contact .contact-form label { color: rgba(245, 247, 246, .78); }
  .contact .cf-status.ok { color: #8FD6B2; }
  .foot-row { color: rgba(245, 247, 246, .6); }
  .foot-row a { color: rgba(245, 247, 246, .9); }
  .legal-footer { background: #384044; }
  .legal-footer .foot-row a { color: rgba(245, 247, 246, .9); }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .phone { rotate: 0deg; }
  .review-chip { left: 6px; }
  .beyond-grid, .price-cards { grid-template-columns: 1fr; gap: 28px; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-shot img { max-height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 24px 20px;
  }
  nav.open { display: flex; }
  nav a.nav-link { padding: 12px 0; border-bottom: 1px solid var(--line); }
  nav .btn { margin-top: 16px; justify-content: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .covers-list { columns: 1; }
  .feature-info { padding: 28px 24px; }
  .wm-text { font-size: 1.15rem; }
  .team-card { padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .svc, .work-card, .btn { transition: none; }
}
