/* ============================================================
   WALDRON LEGACY LIFE — Brand Stylesheet
   ------------------------------------------------------------
   Single source of truth for the site's look & feel.
   Link it on EVERY page:
       <link rel="stylesheet" href="styles.css">

   Build pages with the component classes below — don't write
   one-off styles per page. If a new pattern is needed, add it
   here so the whole site stays consistent.
   ============================================================ */

/* Fonts load with the stylesheet for simplicity. For best
   performance you can instead move this <link> into each page's
   <head> and delete this @import:
   <link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400&family=Hanken+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet"> */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root{
  /* Brand palette */
  --forest:#1d3527;        /* primary dark — headings, brand */
  --pine:#2f5240;          /* secondary green */
  --moss:#5c7a5f;          /* muted green — eyebrows, accents */
  --cream:#f6f1e7;         /* page background (paper) */
  --cream-deep:#efe6d4;    /* inset / alt surface */
  --card:#fffdf8;          /* card surface */
  --ink:#1a2620;           /* body text */
  --muted:#5f6b60;         /* secondary text */
  --ochre:#c0701f;         /* warm accent — CTAs, links */
  --ochre-deep:#a45e16;    /* accent hover / pressed */
  --line:rgba(29,53,39,.14); /* hairline borders */

  /* Semantic aliases */
  --bg:var(--cream);
  --text:var(--ink);
  --accent:var(--ochre);
  --accent-strong:var(--ochre-deep);

  /* Type */
  --font-display:'Fraunces',Georgia,'Times New Roman',serif;
  --font-body:'Hanken Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;

  /* Scale */
  --maxw:1080px;
  --gutter:24px;
  --radius-sm:8px;
  --radius:11px;
  --radius-lg:18px;

  /* Shadows */
  --shadow-soft:0 14px 36px -22px rgba(29,53,39,.45);
  --shadow-card:0 1px 0 rgba(255,255,255,.6) inset, 0 26px 60px -28px rgba(29,53,39,.5), 0 6px 18px -12px rgba(29,53,39,.3);
}

/* ------------------------------------------------------------
   2. BASE & BACKGROUND
   ------------------------------------------------------------ */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}

body{
  font-family:var(--font-body);
  color:var(--text);
  background-color:var(--bg);
  background-image:
    radial-gradient(120% 90% at 85% -10%, rgba(192,112,31,.10), transparent 55%),
    radial-gradient(110% 80% at 5% 110%, rgba(47,82,64,.14), transparent 50%);
  background-attachment:fixed;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  position:relative;
}

/* Faint topographic contour texture — sits behind everything */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:.5;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%231d3527' stroke-opacity='0.05' stroke-width='1.2'%3E%3Cpath d='M-50 120C120 60 260 200 420 140s260-40 280 20'/%3E%3Cpath d='M-50 220C120 160 260 300 420 240s260-40 280 20'/%3E%3Cpath d='M-50 320C120 260 260 400 420 340s260-40 280 20'/%3E%3Cpath d='M-50 420C120 360 260 500 420 440s260-40 280 20'/%3E%3Cpath d='M-50 520C120 460 260 600 420 540s260-40 280 20'/%3E%3C/g%3E%3C/svg%3E");
  background-size:760px 760px;
}

/* Keep real content above the texture */
.container,.site-header,.site-footer{position:relative;z-index:1}

img{max-width:100%;display:block}
a{color:var(--accent-strong)}

/* ------------------------------------------------------------
   3. LAYOUT
   ------------------------------------------------------------ */
.container{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.container--narrow{max-width:760px}

/* Vertical rhythm between page sections */
.section{padding:72px 0}
.section--tight{padding:44px 0}
@media (max-width:640px){.section{padding:48px 0}}

/* Simple 2-up split (e.g., copy + form/image) */
.split{display:grid;grid-template-columns:1.05fr 1fr;gap:54px;align-items:start}
@media (max-width:860px){.split{grid-template-columns:1fr;gap:34px}}

/* ------------------------------------------------------------
   4. TYPOGRAPHY
   ------------------------------------------------------------ */
.eyebrow{
  display:inline-flex;align-items:center;gap:9px;
  font-size:12.5px;font-weight:600;letter-spacing:.13em;text-transform:uppercase;
  color:var(--accent-strong);margin-bottom:20px;
}
.eyebrow::before{content:"";width:26px;height:1.5px;background:var(--accent)}

h1,h2,h3,.display{font-family:var(--font-display);font-weight:600;color:var(--forest);line-height:1.08;letter-spacing:-.01em}
h1{font-size:clamp(2.2rem,4.6vw,3.5rem);line-height:1.04;margin-bottom:20px}
h2{font-size:clamp(1.7rem,3vw,2.4rem);margin-bottom:16px}
h3{font-size:1.3rem;margin-bottom:10px}
em{font-style:italic;color:var(--accent-strong)}

.lede{font-size:clamp(1.02rem,1.4vw,1.18rem);color:var(--muted);max-width:46ch}

/* Long-form body copy (about page, explainers, articles) */
.prose{max-width:68ch;color:var(--ink);font-size:1.05rem;line-height:1.7}
.prose p{margin-bottom:1.1em}
.prose h2{margin-top:1.6em}
.prose h3{margin-top:1.4em}
.prose a{color:var(--accent-strong);text-decoration:underline;text-underline-offset:2px}
.prose ul,.prose ol{margin:0 0 1.1em 1.3em}
.prose li{margin-bottom:.4em}
.prose blockquote{border-left:3px solid var(--accent);padding:.2em 0 .2em 1.1em;margin:1.3em 0;font-family:var(--font-display);font-size:1.2rem;color:var(--pine)}

/* ------------------------------------------------------------
   5. HEADER / NAV
   ------------------------------------------------------------ */
.site-header{padding:26px 0 8px}
.site-header .container{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none}
.brand-mark{
  width:38px;height:38px;border-radius:9px;flex:0 0 auto;
  background:linear-gradient(150deg,var(--forest),var(--pine));
  display:grid;place-items:center;color:var(--cream);
  font-family:var(--font-display);font-weight:600;font-size:19px;
  box-shadow:0 4px 14px rgba(29,53,39,.22);
}
.brand-name{font-family:var(--font-display);font-weight:600;font-size:18px;color:var(--forest);line-height:1.1}
.brand-name span{display:block;font-family:var(--font-body);font-weight:500;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--moss);margin-top:2px}
.nav-links{display:flex;align-items:center;gap:24px;list-style:none}
.nav-links a{color:var(--forest);text-decoration:none;font-weight:500;font-size:15px;transition:color .2s ease}
.nav-links a:hover{color:var(--accent-strong)}
@media (max-width:560px){.nav-links{display:none}} /* swap for a menu if needed */

/* ------------------------------------------------------------
   6. BUTTONS  (work on <a> and <button>)
   ------------------------------------------------------------ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:var(--font-body);font-weight:600;font-size:16px;letter-spacing:.01em;
  padding:14px 24px;border-radius:var(--radius);border:none;cursor:pointer;
  text-decoration:none;transition:.2s ease;
}
.btn-primary{color:#fffdf8;background:linear-gradient(170deg,var(--ochre),var(--ochre-deep));box-shadow:0 12px 24px -12px rgba(164,94,22,.7)}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 16px 30px -12px rgba(164,94,22,.8)}
.btn-primary:active{transform:translateY(0)}
.btn-ghost{color:var(--forest);background:rgba(255,253,248,.6);border:1.5px solid var(--line);padding:9px 18px}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent-strong);background:#fffdf8}
.btn-pill{border-radius:999px}
.btn:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.btn-block{width:100%}

/* ------------------------------------------------------------
   7. CARDS
   ------------------------------------------------------------ */
.card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius-lg);
  padding:34px 32px 30px;box-shadow:var(--shadow-card);position:relative;overflow:hidden;
}
.card--accent::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--ochre),var(--ochre-deep))}
.card--soft{box-shadow:var(--shadow-soft)}
@media (max-width:460px){.card{padding:26px 20px 24px}}

/* ------------------------------------------------------------
   8. FORMS
   ------------------------------------------------------------ */
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field{margin-bottom:16px}
label{display:block;font-size:13px;font-weight:600;color:var(--forest);margin-bottom:6px}
label .req{color:var(--accent-strong)}
input,select,textarea{
  width:100%;font-family:var(--font-body);font-size:15.5px;color:var(--ink);
  padding:12px 14px;border:1.5px solid var(--line);border-radius:var(--radius-sm);
  background:#fcfaf4;transition:.18s ease;appearance:none;
}
select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232f5240' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;padding-right:38px;cursor:pointer;
}
input::placeholder,textarea::placeholder{color:#a7ad9f}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);background:#fff;box-shadow:0 0 0 3px rgba(192,112,31,.14)}

/* SMS / marketing consent block — keep the checkbox OPTIONAL & unchecked.
   See CLAUDE.md "Compliance" before changing any consent wording. */
.consent{display:flex;gap:12px;align-items:flex-start;background:var(--cream-deep);border:1px solid var(--line);border-radius:var(--radius);padding:14px 15px;margin:6px 0 20px}
.consent input[type=checkbox]{flex:0 0 auto;width:20px;height:20px;margin-top:2px;border-radius:5px;border:1.5px solid var(--moss);background:#fcfaf4;cursor:pointer;position:relative;transition:.15s ease}
.consent input[type=checkbox]:checked{background:var(--pine);border-color:var(--pine)}
.consent input[type=checkbox]:checked::after{content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.consent input[type=checkbox]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.consent label{font-weight:400;font-size:12.5px;line-height:1.5;color:var(--muted);margin:0;cursor:pointer}
.consent a{color:var(--accent-strong);font-weight:600;text-decoration:underline;text-underline-offset:2px}
@media (max-width:460px){.form-row{grid-template-columns:1fr}}

/* ------------------------------------------------------------
   9. FEATURE / TRUST LISTS
   ------------------------------------------------------------ */
.trust-list{list-style:none;display:grid;gap:14px}
.trust-list li{display:flex;align-items:flex-start;gap:12px;font-size:15.5px;color:var(--ink)}
.trust-list .tick{flex:0 0 auto;width:24px;height:24px;border-radius:50%;background:rgba(47,82,64,.1);display:grid;place-items:center;margin-top:1px}
.trust-list .tick svg{width:13px;height:13px;stroke:var(--pine);fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.trust-list b{font-weight:600;color:var(--forest)}

/* 3-up feature grid (services, benefits) */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
@media (max-width:780px){.grid-3{grid-template-columns:1fr}}

/* ------------------------------------------------------------
   10. FOOTER
   ------------------------------------------------------------ */
.site-footer{border-top:1px solid var(--line);margin-top:34px}
.site-footer .container{padding-top:26px;padding-bottom:40px;display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.site-footer .biz{line-height:1.7}
.site-footer .biz b{font-family:var(--font-display);font-weight:600;color:var(--forest);font-size:14.5px}
.site-footer a{color:var(--pine);text-decoration:none;font-weight:600}
.site-footer a:hover{color:var(--accent-strong);text-decoration:underline}
.site-footer .links{display:flex;gap:18px;flex-wrap:wrap}
@media (max-width:460px){.site-footer .container{flex-direction:column}}

/* ------------------------------------------------------------
   11. MOTION  — one tasteful page-load reveal.
   Add class "reveal" to elements; stagger with --d.
   ------------------------------------------------------------ */
.reveal{animation:rise .7s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--d,0s)}
@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media (prefers-reduced-motion:reduce){.reveal{animation:none}}

/* ------------------------------------------------------------
   12. MEDIA FRAME  — framed photo/illustration (e.g., portrait)
   ------------------------------------------------------------ */
.media{border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow-card);background:var(--card)}
.media img{width:100%;height:100%;object-fit:cover;display:block}

/* ------------------------------------------------------------
   13. LINKABLE CARD  — a .card that is itself an <a>
   Pairs with .card / .card--accent. Adds hover lift + arrow link.
   ------------------------------------------------------------ */
a.card{text-decoration:none;color:inherit;display:block}
a.card:hover{transform:translateY(-3px);transition:transform .2s ease}
.card-link{display:inline-block;margin-top:16px;font-weight:600;font-size:14px;color:var(--accent-strong)}
.card-link::after{content:" \2192"}

/* ------------------------------------------------------------
   14. NUMBERED STEP  — for "how it works" sequences (use in .grid-3)
   ------------------------------------------------------------ */
.step-num{
  display:grid;place-items:center;width:44px;height:44px;border-radius:50%;
  background:linear-gradient(150deg,var(--forest),var(--pine));color:var(--cream);
  font-family:var(--font-display);font-weight:600;font-size:19px;margin-bottom:16px;
  box-shadow:0 6px 16px -8px rgba(29,53,39,.5);
}

/* ------------------------------------------------------------
   15. CHIPS  — small pill labels (proof points) + inline rows
   ------------------------------------------------------------ */
.chip-row{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 8px}
.proof-chip{
  font-size:12.5px;font-weight:600;letter-spacing:.04em;color:var(--pine);
  background:rgba(47,82,64,.09);border:1px solid var(--line);
  border-radius:999px;padding:7px 14px;
}
/* select + button row (e.g., license lookup) */
.inline-row{display:flex;gap:12px;align-items:stretch;flex-wrap:wrap;max-width:520px}
.inline-row select{flex:1 1 240px}

/* ------------------------------------------------------------
   16. LOGO MARQUEE  — scrolling carrier/partner logo wall.
   Track must contain TWO identical copies of the logo set so the
   -50% loop is seamless. Honors reduced-motion (static wrap).
   ------------------------------------------------------------ */
.logo-wall{
  overflow:hidden;position:relative;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
}
.logo-track{display:flex;align-items:center;gap:56px;width:max-content;animation:marquee 40s linear infinite}
.logo-track img{height:34px;width:auto;opacity:.72;filter:grayscale(1);transition:.25s ease}
.logo-track img:hover{opacity:1;filter:grayscale(0)}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){
  .logo-track{animation:none;flex-wrap:wrap;justify-content:center;width:auto}
}

/* Quiet inline link row (e.g., hero contact bar) */
.meta-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:22px;font-size:14px;color:var(--muted)}
.meta-row a{color:var(--pine);text-decoration:none;font-weight:600}
.meta-row a:hover{color:var(--accent-strong)}
.meta-row .dot{width:4px;height:4px;border-radius:50%;background:var(--line)}
