/*
Theme Name: Carll Law — Coastal (v1.5)
Theme URI: https://carlllaw.com
Author: Curtis Carll
Author URI: https://carlllaw.com
Description: A refined one-page theme for Carll Law — civil litigation support in San Diego. Coastal-refined design: deep navy and warm ivory, elegant serif display type, and a subtle wave motif drawn from the firm's mark. Single-page brochure layout with a sticky click-to-call header.
Version: 1.5.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carll-law
Tags: one-page, custom-logo, professional, business, portfolio
*/

/* =========================================================
   Design tokens
   ========================================================= */
:root{
  --navy:      #033A61;   /* deep navy for large fills (logo's blue family, refined) */
  --navy-2:    #0A4A7C;   /* lighter navy for gradients / hover */
  --navy-deep: #01243D;   /* deepest navy for the footer */
  --ink:       #16233A;   /* headings on light backgrounds */
  --body:      #47546A;   /* body copy */
  --muted:     #5C6779;   /* secondary copy (WCAG AA on ivory, ivory-2 and white) */
  --ivory:     #FBF8F2;   /* warm page background */
  --ivory-2:   #F3ECE0;   /* deeper warm panel */
  --white:     #FFFFFF;
  --sea:       #3A7458;   /* muted sage-green accent (on light) */
  --sea-soft:  #9DC2A8;   /* light sage-green accent (on dark) */
  --line:      rgba(1,62,111,.12);
  --line-soft: rgba(1,62,111,.07);
  --shadow-sm: 0 1px 2px rgba(7,37,74,.06), 0 8px 24px rgba(7,37,74,.06);
  --shadow-md: 0 18px 50px rgba(7,37,74,.14);

  --serif: "Cormorant Garamond", Cormorant, Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 14px;
}

/* =========================================================
   Base / reset
   ========================================================= */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:104px; }
body{
  margin:0;
  font-family:var(--sans);
  color:var(--body);
  background:var(--ivory);
  line-height:1.7;
  font-size:17px;
  letter-spacing:.005em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--sea); text-decoration:none; transition:color .2s ease; }
a:hover{ color:var(--navy); }
h1,h2,h3{ color:var(--ink); font-family:var(--serif); font-weight:600; line-height:1.08; margin:0; letter-spacing:.005em; }
p{ margin:0 0 1.15em; }
p:last-child{ margin-bottom:0; }
:focus-visible{ outline:2.5px solid var(--sea); outline-offset:3px; border-radius:4px; }

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gutter); }
.section{ position:relative; padding-block:clamp(64px,9vw,120px); }
.eyebrow{
  font-family:var(--sans); font-size:.74rem; font-weight:600; letter-spacing:.22em;
  text-transform:uppercase; color:var(--sea); margin:0 0 18px;
}
.eyebrow--light{ color:var(--sea-soft); }
.lead{ font-size:clamp(1.12rem,1.5vw,1.28rem); color:var(--body); }
.skip-link{ position:absolute; left:-9999px; }
.skip-link:focus{ left:16px; top:12px; z-index:200; background:var(--navy); color:#fff; padding:10px 16px; border-radius:8px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; gap:.55em;
  font-family:var(--sans); font-weight:600; font-size:.95rem; letter-spacing:.01em;
  padding:.82em 1.35em; border-radius:999px; border:1.5px solid transparent;
  cursor:pointer; transition:transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space:nowrap;
}
.btn svg{ width:1.05em; height:1.05em; flex:0 0 auto; }
.btn-primary{ background:var(--navy); color:#fff; box-shadow:0 8px 22px rgba(7,37,74,.22); }
.btn-primary:hover{ background:var(--navy-2); color:#fff; transform:translateY(-2px); box-shadow:0 12px 28px rgba(7,37,74,.28); }
.btn-ghost{ background:transparent; color:var(--navy); border-color:var(--line); }
.btn-ghost:hover{ background:var(--navy); color:#fff; border-color:var(--navy); transform:translateY(-2px); }
.btn-light{ background:rgba(251,248,242,.12); color:#fff; border-color:rgba(251,248,242,.35); }
.btn-light:hover{ background:var(--ivory); color:var(--navy); border-color:var(--ivory); transform:translateY(-2px); }

/* =========================================================
   Header / sticky nav
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(251,248,242,.82);
  backdrop-filter:saturate(140%) blur(12px);
  -webkit-backdrop-filter:saturate(140%) blur(12px);
  border-bottom:1px solid transparent;
  transition:border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled{
  border-bottom-color:var(--line-soft);
  box-shadow:0 6px 24px rgba(7,37,74,.07);
  background:rgba(251,248,242,.92);
}
.nav{ display:flex; align-items:center; justify-content:space-between; gap:20px; height:116px; transition:height .28s ease; }
.brand{ display:inline-flex; align-items:center; }
.brand img{ height:84px; width:auto; transition:height .28s ease; }
.site-header.is-scrolled .nav{ height:84px; }
.site-header.is-scrolled .brand img{ height:58px; }
.brand .brand-fallback{ font-family:var(--serif); font-size:1.5rem; font-weight:600; color:var(--navy); }
.nav-contact{ display:flex; flex-direction:column; align-items:flex-end; gap:3px; font-family:var(--sans); font-size:clamp(.8rem,1.05vw,.92rem); line-height:1.3; }
.nav-contact a{ color:var(--ink); letter-spacing:.01em; }
.nav-contact a:hover{ color:var(--sea); }
.nav-links{ display:flex; align-items:center; gap:28px; }
.nav-links a.nav-link{
  font-family:var(--sans); font-size:.9rem; font-weight:500; letter-spacing:.02em;
  color:var(--ink); position:relative; padding:4px 0;
}
.nav-links a.nav-link::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:1.5px;
  background:var(--sea); transform:scaleX(0); transform-origin:left; transition:transform .25s ease;
}
.nav-links a.nav-link:hover{ color:var(--navy); }
.nav-links a.nav-link:hover::after{ transform:scaleX(1); }
.nav-cta{ display:flex; align-items:center; gap:10px; }
.nav-cta .btn{ padding:.6em 1.05em; font-size:.88rem; }
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:999px; border:1.5px solid var(--line); color:var(--navy);
  transition:background .2s ease, color .2s ease, border-color .2s ease, transform .18s ease;
}
.icon-btn svg{ width:18px; height:18px; }
.icon-btn:hover{ background:var(--navy); color:#fff; border-color:var(--navy); transform:translateY(-2px); }

/* =========================================================
   Top quote ribbon (a compact bookend of the closing quote)
   ========================================================= */
.topquote{ background:var(--ivory-2); border-bottom:1px solid var(--line-soft); text-align:center; padding-block:clamp(22px,3.4vw,36px); }
.topquote__inner{ display:flex; flex-direction:column; align-items:center; gap:12px; }
.topquote__wave{ width:52px; height:auto; color:var(--sea-soft); opacity:.95; }
.topquote__text{ font-family:var(--serif); font-style:italic; font-size:clamp(1.08rem,2vw,1.45rem); line-height:1.42; color:var(--navy); margin:0; max-width:60ch; }
.topquote__cite{ font-family:var(--sans); font-size:.7rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); margin:0; }
.topquote__cite em{ font-family:var(--serif); font-style:italic; font-size:.98rem; letter-spacing:0; text-transform:none; color:var(--sea); }

/* =========================================================
   Hero
   ========================================================= */
.hero{ position:relative; overflow:hidden; background:var(--ivory); padding-block:clamp(72px,11vw,140px); }
.hero__wave{
  position:absolute; right:-8%; top:50%; transform:translateY(-50%);
  width:min(680px,62vw); color:var(--navy); opacity:.05; pointer-events:none; z-index:0;
}
.hero__inner{ position:relative; z-index:1; max-width:760px; }
.hero h1{
  font-size:clamp(2.6rem,6.2vw,4.6rem);
  line-height:1.02; letter-spacing:-.01em; color:var(--navy); margin:0 0 24px;
}
.hero h1 .accent{ display:block; color:var(--ink); }
.hero .lead{ max-width:640px; margin-bottom:34px; }
.hero__cta{ display:flex; flex-wrap:wrap; gap:14px; }
.hero__meta{
  margin-top:40px; display:flex; flex-wrap:wrap; gap:10px 26px; align-items:center;
  font-family:var(--sans); font-size:.85rem; letter-spacing:.04em; color:var(--muted);
}
.hero__meta .dot{ width:5px; height:5px; border-radius:50%; background:var(--sea-soft); }

/* Navy hero variant (mockup energy, sage-green accent) */
.hero--navy{ background:radial-gradient(125% 135% at 12% 0%, var(--navy-2) 0%, var(--navy) 52%, var(--navy-deep) 125%); }
.hero--navy .hero__wave{ color:#ffffff; opacity:.055; }
.hero--navy .eyebrow{ color:var(--sea-soft); }
.hero--navy h1{ color:var(--ivory); }
.hero--navy h1 .accent{ display:block; color:var(--sea-soft); }
.hero--navy .lead{ color:rgba(255,255,255,.86); }
.hero__stat{ margin-top:44px; padding-top:26px; border-top:1px solid rgba(255,255,255,.16); display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 14px; }
.hero__stat .num{ font-family:var(--serif); font-size:1.75rem; font-weight:600; color:var(--ivory); line-height:1; }
.hero__stat .cap{ font-family:var(--sans); font-size:.82rem; letter-spacing:.14em; text-transform:uppercase; color:var(--sea-soft); }
.btn-solid-light{ background:var(--ivory); color:var(--navy); border-color:var(--ivory); }
.btn-solid-light:hover{ background:#fff; color:var(--navy); transform:translateY(-2px); box-shadow:0 12px 30px rgba(0,0,0,.28); }
.btn-outline-light{ background:transparent; color:#fff; border-color:rgba(255,255,255,.42); }
.btn-outline-light:hover{ background:var(--ivory); color:var(--navy); border-color:var(--ivory); transform:translateY(-2px); }

/* =========================================================
   About / experience
   ========================================================= */
.about{ background:var(--white); border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
.about__grid{ display:grid; grid-template-columns:1.35fr .9fr; gap:clamp(40px,6vw,84px); align-items:start; }
.about h2{ font-size:clamp(2rem,3.6vw,2.9rem); margin:0 0 26px; color:var(--navy); }
.about__body p{ font-size:1.06rem; color:var(--body); }
.about__body .note{
  margin-top:30px; padding:24px 30px; border-left:4px solid var(--sea);
  background:var(--ivory); border-radius:0 12px 12px 0; box-shadow:0 12px 34px rgba(7,37,74,.06);
}
.about__body .note .note__lead{ margin:0 0 12px; font-size:1rem; color:var(--body); }
.about__body .note .note__emph{ margin:0; font-family:var(--serif); font-weight:600; font-size:clamp(1.34rem,2.5vw,1.95rem); line-height:1.22; color:var(--navy); }
.about__body .note .note__emph strong{ font-weight:600; color:var(--sea); }

.cred{ position:relative; background:var(--navy); color:#fff; border-radius:var(--radius); padding:34px 32px; box-shadow:var(--shadow-md); overflow:hidden; }
.cred__wave{ position:absolute; right:-30px; bottom:-40px; width:220px; color:#fff; opacity:.06; }
.cred .stat{ position:relative; z-index:1; }
.cred .stat .pre{ font-family:var(--sans); font-size:.7rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--sea-soft); margin:0 0 6px; }
.cred .stat .num{ font-family:var(--serif); font-size:3.4rem; font-weight:600; line-height:1; color:#fff; }
.cred .stat .num small{ font-size:1.2rem; vertical-align:top; margin-left:2px; }
.cred .stat .cap{ font-family:var(--sans); font-size:.8rem; letter-spacing:.16em; text-transform:uppercase; color:var(--sea-soft); margin-top:8px; }
.cred hr{ border:none; border-top:1px solid rgba(255,255,255,.16); margin:26px 0; }
.cred .cred-label{ position:relative; z-index:1; font-family:var(--sans); font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--sea-soft); margin:0 0 14px; }
.cred ul{ position:relative; z-index:1; list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.cred ul li{ display:flex; align-items:center; gap:12px; font-size:1rem; color:rgba(255,255,255,.92); }
.cred ul li svg{ width:15px; height:15px; color:var(--sea-soft); flex:0 0 auto; }
.cred ul li .yrs{ color:var(--sea-soft); }

/* =========================================================
   Contact
   ========================================================= */
.contact{ background:var(--ivory-2); }
.contact__grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(36px,6vw,72px); align-items:center; }
.contact h2{ font-size:clamp(2rem,3.6vw,2.9rem); color:var(--navy); margin:0 0 18px; }
.contact .lead{ max-width:44ch; }
.contact__cards{ display:flex; flex-direction:column; gap:16px; }
.info-row{
  display:flex; align-items:flex-start; gap:18px;
  background:var(--white); border:1px solid var(--line-soft); border-radius:12px;
  padding:20px 22px; transition:transform .18s ease, box-shadow .2s ease;
}
.info-row:hover{ transform:translateY(-2px); box-shadow:var(--shadow-sm); }
.info-row .ico{ display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:10px; background:var(--ivory); color:var(--navy); flex:0 0 auto; }
.info-row .ico svg{ width:20px; height:20px; }
.info-row .k{ font-family:var(--sans); font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); margin:0 0 4px; }
.info-row .v{ font-size:1.08rem; color:var(--ink); font-weight:500; }
.info-row .v a{ color:var(--ink); }
.info-row .v a:hover{ color:var(--sea); }

/* =========================================================
   Quote band (the feature)
   ========================================================= */
.quote{
  position:relative; overflow:hidden; text-align:center; color:#fff;
  background:radial-gradient(120% 120% at 50% -10%, var(--navy-2) 0%, var(--navy) 46%, var(--navy-deep) 100%);
  padding-top:clamp(80px,12vw,140px); padding-bottom:clamp(64px,9vw,112px);
}
.quote__top-wave, .quote__bottom-wave{ position:absolute; left:0; width:100%; line-height:0; z-index:1; }
.quote__top-wave{ top:-1px; color:var(--ivory-2); }             /* blends down from the Contact section */
.quote__bottom-wave{ bottom:-1px; color:var(--navy-deep); transform:rotate(180deg); }  /* seats the footer */
.quote__top-wave svg, .quote__bottom-wave svg{ display:block; width:100%; height:clamp(44px,6vw,80px); }
.quote__watermark{ position:absolute; left:50%; top:52%; transform:translate(-50%,-50%); width:min(720px,88vw); color:#fff; opacity:.05; z-index:0; pointer-events:none; }
.quote__inner{ position:relative; z-index:2; max-width:900px; margin-inline:auto; }
.closing__photo{ position:relative; z-index:2; margin:0 auto clamp(40px,6vw,62px); max-width:clamp(280px,40vw,410px); text-align:center; }
.closing__photo img{ width:100%; height:auto; display:block; border-radius:14px; border:1px solid rgba(255,255,255,.18); box-shadow:0 30px 64px rgba(0,0,0,.40); }
.closing__photo figcaption{ margin-top:16px; font-family:var(--serif); font-style:italic; font-size:1.04rem; color:var(--sea-soft); letter-spacing:.01em; }
.closing__note{ position:relative; z-index:2; max-width:60ch; margin:clamp(48px,7vw,72px) auto; text-align:center; }
.closing__note .eyebrow{ margin-bottom:16px; }
.closing__note p:not(.eyebrow){ font-family:var(--sans); font-size:clamp(1.02rem,1.5vw,1.16rem); line-height:1.78; color:rgba(255,255,255,.9); margin:0; }
.quote__mark{ font-family:var(--serif); font-size:5rem; line-height:.5; color:var(--sea-soft); opacity:.55; height:.5em; display:block; margin-bottom:.15em; }
.quote blockquote{ margin:0; }
.quote .line{
  font-family:var(--serif); font-weight:500; font-style:italic;
  font-size:clamp(1.7rem,4.4vw,3.1rem); line-height:1.24; color:#fff; letter-spacing:.005em;
}
.quote .divider{ display:flex; align-items:center; justify-content:center; gap:16px; margin:26px auto; opacity:.9; }
.quote .divider svg{ width:64px; height:auto; color:var(--sea-soft); }
.quote .divider .rule{ width:44px; height:1px; background:rgba(255,255,255,.28); }
.quote .attrib{ margin-top:44px; }
.quote .attrib .who{
  font-family:var(--sans); font-size:.82rem; font-weight:600; letter-spacing:.24em; text-transform:uppercase; color:#fff;
}
.quote .attrib .work{ font-family:var(--serif); font-style:italic; font-size:1.1rem; color:var(--sea-soft); margin-top:8px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ background:var(--navy-deep); color:rgba(255,255,255,.72); padding-block:clamp(48px,7vw,72px); }
.footer__grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:40px; }
.footer__brand img{ height:104px; width:auto; margin-bottom:18px; }
.footer__brand p{ color:rgba(255,255,255,.6); font-size:.95rem; max-width:34ch; }
.site-footer h3{ font-family:var(--sans); font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--sea-soft); margin:0 0 16px; font-weight:600; }
.footer__a11y{ margin-top:20px; }
.footer__a11y summary{ cursor:pointer; font-family:var(--sans); font-size:.8rem; font-weight:600; letter-spacing:.05em; color:rgba(255,255,255,.82); list-style:none; display:inline-flex; align-items:center; gap:8px; }
.footer__a11y summary::-webkit-details-marker{ display:none; }
.footer__a11y summary::after{ content:"+"; font-size:1.05rem; line-height:1; color:var(--sea-soft); }
.footer__a11y[open] summary::after{ content:"\2013"; }
.footer__a11y summary:hover{ color:#fff; }
.footer__a11y p{ margin-top:12px; font-size:.82rem; line-height:1.72; color:rgba(255,255,255,.62); max-width:78ch; }
.footer__a11y a{ color:rgba(255,255,255,.85); text-decoration:underline; }
.footer__a11y a:hover{ color:#fff; }
.site-footer a{ color:rgba(255,255,255,.82); }
.site-footer a:hover{ color:#fff; }
.site-footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; font-size:.98rem; }
.site-footer address{ font-style:normal; font-size:.98rem; line-height:1.7; color:rgba(255,255,255,.82); }
.footer__bottom{
  margin-top:44px; padding-top:26px; border-top:1px solid rgba(255,255,255,.12);
  display:flex; flex-wrap:wrap; gap:14px 24px; justify-content:space-between; align-items:center;
}
.footer__bottom .copy{ font-size:.85rem; color:rgba(255,255,255,.55); }
.footer__disclaimer{ font-size:.78rem; line-height:1.65; color:rgba(255,255,255,.55); max-width:70ch; margin-top:18px; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
/* Content is visible by default; only hidden for animation when JS is active. */
.reveal{ transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal{ opacity:0; transform:translateY(22px); }
.js .reveal.is-in{ opacity:1; transform:none; }
.reveal.d1{ transition-delay:.08s; } .reveal.d2{ transition-delay:.16s; } .reveal.d3{ transition-delay:.24s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:900px){
  .about__grid{ grid-template-columns:1fr; gap:44px; }
  .contact__grid{ grid-template-columns:1fr; gap:36px; }
  .footer__grid{ grid-template-columns:1fr 1fr; }
  .footer__brand{ grid-column:1 / -1; }
}
@media (max-width:680px){
  body{ font-size:16px; }
  html{ scroll-padding-top:88px; }
  .nav{ height:88px; }
  .brand img{ height:60px; }
  .site-header.is-scrolled .nav{ height:74px; }
  .site-header.is-scrolled .brand img{ height:50px; }
  .nav-cta{ display:none; }         /* email lives in Contact + footer on small screens */
  .hero__wave{ opacity:.045; right:-24%; }
  .footer__grid{ grid-template-columns:1fr; gap:32px; }
  .footer__bottom{ flex-direction:column; align-items:flex-start; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ animation:none !important; }
  .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
  .btn:hover, .icon-btn:hover, .info-row:hover{ transform:none !important; }
}
