/* ===========================================================================
   Primoris — academiaprimoris.com landing page
   Tokens mirror primoris-brand/brand-guideline.html and the intake form so
   every Primoris surface reads as one system. Edit colours HERE only.
   =========================================================================== */

:root{
  --ground:#FBF7EF; --surface:#FFFFFF; --sunk:#F5EDDF;
  --text:#1B2027; --muted:#5A6472; --faint:#9AA4B0;
  --accent:#8B1A2B; --accent-deep:#6B1421; --accent-soft:#F4E1E4;
  --btn-bg:#8B1A2B; --btn-bg-hover:#6B1421; --btn-fg:#FFF6F2;
  --gold:#A87B2E; --gold-line:#E0B15E; --gold-soft:#F9EFDA;
  --line:#E3E7EB; --hair:rgba(27,32,39,.12);
  --ink-panel:#1B2027; --ink-panel-2:#232932;
  --on-ink:#F5EDDF; --on-ink-soft:#B9C1CB;
  --ok:#2E7D5B; --no:#B3261E;

  --display:'Cinzel','Trajan Pro',Optima,'Palatino Linotype',Palatino,Georgia,serif;
  --serif:'EB Garamond','Iowan Old Style','Palatino Linotype',Palatino,Georgia,serif;
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;

  --wrap:1140px;
  --r:14px;
  --shadow:0 1px 2px rgba(27,32,39,.05), 0 12px 32px -12px rgba(27,32,39,.16);
  --shadow-lg:0 2px 4px rgba(27,32,39,.06), 0 32px 64px -24px rgba(27,32,39,.28);
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ground:#14181E; --surface:#1B2027; --sunk:#232932;
    --text:#F5EDDF; --muted:#9AA4B0; --faint:#5A6472;
    --accent:#D99AA5; --accent-deep:#E8B7BF; --accent-soft:#2A1B20;
    --btn-bg:#A8283D; --btn-bg-hover:#BF3149; --btn-fg:#FDF3EE;
    --gold:#E0B15E; --gold-line:#C79445; --gold-soft:#26211A;
    --line:#333B45; --hair:rgba(245,237,223,.14);
    --ink-panel:#0E1116; --ink-panel-2:#161A21;
    --ok:#6FBF97; --no:#E8776E;
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
    --shadow-lg:0 2px 4px rgba(0,0,0,.5), 0 32px 64px -24px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"]{
  --ground:#14181E; --surface:#1B2027; --sunk:#232932;
  --text:#F5EDDF; --muted:#9AA4B0; --faint:#5A6472;
  --accent:#D99AA5; --accent-deep:#E8B7BF; --accent-soft:#2A1B20;
  --btn-bg:#A8283D; --btn-bg-hover:#BF3149; --btn-fg:#FDF3EE;
  --gold:#E0B15E; --gold-line:#C79445; --gold-soft:#26211A;
  --line:#333B45; --hair:rgba(245,237,223,.14);
  --ink-panel:#0E1116; --ink-panel-2:#161A21;
  --ok:#6FBF97; --no:#E8776E;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth; scroll-padding-top:90px;}
body{
  margin:0; background:var(--ground); color:var(--text);
  font-family:var(--serif); font-size:19px; line-height:1.62;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg{max-width:100%;}
a{color:inherit;}

/* --- bilingual switching ------------------------------------------------- */
html[lang="fr"] .en{display:none !important;}
html[lang="en"] .fr{display:none !important;}

/* --- layout -------------------------------------------------------------- */
.wrap{width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:24px;}
section{padding:96px 0;}
.section-sunk{background:var(--sunk);}
.eyebrow{
  font-family:var(--sans); font-size:12px; font-weight:600; letter-spacing:.18em;
  text-transform:uppercase; color:var(--gold); margin:0 0 18px;
}
.eyebrow.on-ink{color:var(--gold-line);}
h1,h2,h3{font-family:var(--display); font-weight:600; letter-spacing:.01em; line-height:1.15; margin:0;}
h1{font-size:clamp(34px,5.2vw,58px);}
h2{font-size:clamp(28px,3.6vw,42px);}
h3{font-size:clamp(19px,2vw,23px); line-height:1.3;}
p{margin:0 0 18px;}
.lede{font-size:clamp(19px,2.1vw,23px); color:var(--muted); max-width:62ch;}
.section-head{max-width:70ch; margin-bottom:52px;}
.rule{height:1px; background:var(--hair); border:0; margin:0;}
.gold-rule{width:64px; height:2px; background:var(--gold-line); border:0; margin:0 0 26px;}

/* --- buttons ------------------------------------------------------------- */
.btn{
  display:inline-flex; white-space:nowrap; align-items:center; justify-content:center; gap:10px;
  font-family:var(--sans); font-size:15px; font-weight:600; letter-spacing:.01em;
  padding:15px 28px; border-radius:10px; border:1px solid transparent;
  text-decoration:none; cursor:pointer; transition:transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.btn-primary{background:var(--btn-bg); color:var(--btn-fg); box-shadow:0 10px 24px -12px rgba(139,26,43,.85);}
.btn-primary:hover{background:var(--btn-bg-hover); transform:translateY(-1px);}
.btn-ghost{background:transparent; color:var(--text); border-color:var(--hair);}
.btn-ghost:hover{border-color:var(--gold-line); color:var(--gold);}
.btn-gold{background:var(--gold-line); color:#1B2027;}
.btn-gold:hover{filter:brightness(1.06); transform:translateY(-1px);}
.btn-lg{padding:18px 34px; font-size:16px;}
.btn-block{width:100%;}
.btn-note{font-family:var(--sans); font-size:13px; color:var(--muted); margin:14px 0 0;}

/* --- header -------------------------------------------------------------- */
.site-header{
  position:sticky; top:0; z-index:60; background:color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter:saturate(180%) blur(14px); border-bottom:1px solid transparent; transition:border-color .2s ease;
}
.site-header.stuck{border-bottom-color:var(--hair);}
.header-inner{display:flex; align-items:center; gap:20px; height:72px;}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none; margin-right:auto;}
.brand img{width:34px; height:auto; display:block;}
.brand-lockup{display:block;}
.brand-name{display:block; font-family:var(--display); font-size:19px; font-weight:600; letter-spacing:.16em; line-height:1; white-space:nowrap;}
.brand-motto{display:block; font-family:var(--sans); font-size:9px; letter-spacing:.18em; text-transform:uppercase; color:var(--faint); margin-top:5px; white-space:nowrap;}
@media (max-width:420px){ .brand-motto{display:none;} }
.nav{display:flex; align-items:center; gap:26px; white-space:nowrap;}
.nav a{
  font-family:var(--sans); font-size:14.5px; font-weight:500; color:var(--muted);
  text-decoration:none; transition:color .16s ease;
}
.nav a:hover{color:var(--accent);}
.header-actions{display:flex; align-items:center; gap:14px;}
.lang-toggle{
  display:inline-flex; border:1px solid var(--hair); border-radius:999px; overflow:hidden;
  font-family:var(--sans); font-size:12px; font-weight:600; letter-spacing:.06em;
}
.lang-toggle button{
  appearance:none; border:0; background:transparent; color:var(--muted);
  padding:7px 13px; cursor:pointer; font:inherit; transition:background .16s ease, color .16s ease;
}
.lang-toggle button[aria-pressed="true"]{background:var(--btn-bg); color:var(--btn-fg);}
@media (max-width:1180px){ .nav{gap:20px; font-size:13.5px;} }
@media (max-width:1040px){ .nav{display:none;} }
@media (max-width:560px){ .header-cta{display:none;} }

/* --- hero ---------------------------------------------------------------- */
.hero{position:relative; padding:84px 0 76px; overflow:hidden;}
.hero::before{
  content:""; position:absolute; inset:-30% -20% auto -20%; height:120%;
  background:radial-gradient(60% 55% at 50% 0%, var(--gold-soft) 0%, transparent 70%);
  pointer-events:none;
}
.hero .wrap{position:relative;}
.hero-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:center;}
@media (max-width:960px){ .hero-grid{grid-template-columns:1fr; gap:44px;} }
.hero h1 .accent{color:var(--accent);}
.hero .lede{margin-top:22px;}
.hero-cta{display:flex; flex-wrap:wrap; gap:14px; margin-top:32px;}
@media (max-width:520px){
  .hero-cta{flex-direction:column; align-items:stretch;}
  .hero-cta .btn{width:100%;}
}
.hero-points{
  list-style:none; margin:34px 0 0; padding:26px 0 0; border-top:1px solid var(--hair);
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
}
@media (max-width:620px){ @media (max-width:520px){
  .hero-cta{flex-direction:column; align-items:stretch;}
  .hero-cta .btn{width:100%;}
}
.hero-points{grid-template-columns:1fr; gap:16px;} }
.hero-points li{font-family:var(--sans); font-size:13.5px; line-height:1.5; color:var(--muted);}
.hero-points strong{display:block; font-family:var(--display); font-size:22px; color:var(--text); font-weight:600; margin-bottom:4px;}

/* --- VSL slot ------------------------------------------------------------ */
.vsl{
  position:relative; border-radius:var(--r); overflow:hidden; background:var(--ink-panel);
  box-shadow:var(--shadow-lg); border:1px solid var(--hair);
}
.vsl::after{content:""; display:block; padding-top:56.25%;}
.vsl-inner{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; text-align:center; padding:28px;}
.vsl-inner img{width:78px; opacity:.9;}
.vsl-title{font-family:var(--display); font-size:17px; letter-spacing:.06em; color:var(--on-ink); margin:0;}
.vsl-sub{font-family:var(--sans); font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color:#9AA4B0; margin:0;}
.vsl iframe{position:absolute; inset:0; width:100%; height:100%; border:0;}
.vsl-caption{font-family:var(--sans); font-size:12.5px; color:var(--muted); text-align:center; margin:14px 0 0;}

/* --- cards --------------------------------------------------------------- */
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
.grid-2{display:grid; grid-template-columns:repeat(2,1fr); gap:26px;}
@media (max-width:900px){ .grid-3{grid-template-columns:1fr;} .grid-2{grid-template-columns:1fr;} }
.card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:32px; box-shadow:var(--shadow);
}
.card h3{margin-bottom:12px;}
.card p:last-child{margin-bottom:0;}
.card .num{
  font-family:var(--display); font-size:13px; letter-spacing:.14em; color:var(--gold);
  display:block; margin-bottom:16px;
}
.card-ink{background:var(--ink-panel); border-color:rgba(245,237,223,.10); color:var(--on-ink);}
.card-ink h3{color:var(--gold-line);}
.card-ink p{color:var(--on-ink-soft);}

/* --- included list ------------------------------------------------------- */
.included{display:grid; grid-template-columns:repeat(2,1fr); gap:0 44px; list-style:none; margin:0; padding:0;}
@media (max-width:760px){ .included{grid-template-columns:1fr;} }
.included li{display:flex; gap:14px; padding:20px 0; border-bottom:1px solid var(--hair);}
.included .tick{
  flex:0 0 auto; width:22px; height:22px; margin-top:5px; border-radius:50%;
  background:var(--accent-soft); color:var(--accent); display:grid; place-items:center;
  font-family:var(--sans); font-size:11px; font-weight:700;
}
.included b{display:block; font-family:var(--sans); font-size:15px; font-weight:600; margin-bottom:2px;}
.included span.txt{font-size:16.5px; color:var(--muted); line-height:1.5;}

/* --- method steps -------------------------------------------------------- */
.steps{counter-reset:step; display:grid; gap:0;}
.step{
  display:grid; grid-template-columns:88px 1fr; gap:28px; padding:34px 0;
  border-top:1px solid var(--hair);
}
.step:last-child{border-bottom:1px solid var(--hair);}
@media (max-width:640px){ .step{grid-template-columns:1fr; gap:10px;} }
.step-n{
  font-family:var(--display); font-size:38px; color:var(--gold-line); line-height:1;
}
.step p:last-child{margin-bottom:0;}

/* --- guarantee ----------------------------------------------------------- */
.guarantee{
  background:var(--ink-panel); color:var(--on-ink); border-radius:var(--r);
  padding:56px; position:relative; overflow:hidden; box-shadow:var(--shadow-lg);
}
.guarantee::before{
  content:""; position:absolute; inset:14px; border:1px solid rgba(224,177,94,.35); border-radius:8px; pointer-events:none;
}
.guarantee-grid{display:grid; grid-template-columns:1.2fr .8fr; gap:48px; align-items:center; position:relative;}
@media (max-width:860px){ .guarantee-grid{grid-template-columns:1fr; gap:30px;} .guarantee{padding:38px 28px;} }
.guarantee h2{color:var(--on-ink);}
.guarantee p{color:#C4CBD4;}
.guarantee .seal{text-align:center;}
.guarantee .seal img{width:132px; margin-bottom:14px;}
.guarantee .seal-line{font-family:var(--display); font-size:13px; letter-spacing:.14em; color:var(--gold-line);}
.fine{font-family:var(--sans); font-size:13px; line-height:1.6; color:#8E97A3;}

/* --- proof --------------------------------------------------------------- */
.quote{
  background:var(--surface); border:1px solid var(--line); border-left:3px solid var(--gold-line);
  border-radius:var(--r); padding:30px 32px; box-shadow:var(--shadow);
}
.quote p{font-size:18px; font-style:italic;}
.quote footer{font-family:var(--sans); font-size:13.5px; color:var(--muted); font-style:normal;}

/* --- qualifier form ------------------------------------------------------ */
.qualify{background:var(--ink-panel); color:var(--on-ink);}
.qualify h2{color:var(--on-ink);}
.qualify .lede{color:#B9C1CB;}
.qualify-card{
  background:var(--surface); color:var(--text); border-radius:var(--r);
  padding:44px; box-shadow:var(--shadow-lg); max-width:760px; margin:0 auto;
}
@media (max-width:640px){ .qualify-card{padding:28px 22px;} }
.progress{height:3px; background:var(--sunk); border-radius:999px; overflow:hidden; margin-bottom:30px;}
.progress i{display:block; height:100%; width:0; background:var(--gold-line); transition:width .35s cubic-bezier(.4,0,.2,1);}
.q-step{display:none; border:0; margin:0; padding:0; min-inline-size:0; animation:fade .35s ease both;}
.q-step.active{display:block;}
@keyframes fade{from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:none;}}
.q-count{font-family:var(--sans); font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--faint); margin-bottom:12px;}
.q-title{font-family:var(--display); font-size:clamp(21px,2.6vw,27px); line-height:1.28; margin:0 0 8px;}
.q-help{font-family:var(--sans); font-size:14px; color:var(--muted); margin:0 0 24px;}
.pills{display:grid; gap:10px; margin:0 0 8px;}
.pill{
  display:flex; align-items:center; gap:13px; padding:16px 18px; cursor:pointer;
  border:1px solid var(--line); border-radius:11px; background:var(--surface);
  font-family:var(--sans); font-size:15.5px; transition:border-color .15s ease, background .15s ease, transform .1s ease;
}
.pill:hover{border-color:var(--gold-line); background:var(--gold-soft);}
.pill input{position:absolute; opacity:0; pointer-events:none;}
.pill .dot{
  flex:0 0 auto; width:18px; height:18px; border-radius:50%; border:1.5px solid var(--faint);
  display:grid; place-items:center; transition:border-color .15s ease;
}
.pill .dot::after{content:""; width:9px; height:9px; border-radius:50%; background:var(--accent); transform:scale(0); transition:transform .15s ease;}
.pill input:checked ~ .dot{border-color:var(--accent);}
.pill input:checked ~ .dot::after{transform:scale(1);}
.pill:has(input:checked){border-color:var(--accent); background:var(--accent-soft);}
.pill input:focus-visible ~ .dot{outline:2px solid var(--gold-line); outline-offset:3px;}
.field{margin-bottom:18px;}
.field label{display:block; font-family:var(--sans); font-size:13.5px; font-weight:600; margin-bottom:7px;}
.field input, .field textarea, .field select{
  width:100%; font-family:var(--sans); font-size:15.5px; padding:13px 15px;
  border:1px solid var(--line); border-radius:10px; background:var(--ground); color:var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus{outline:2px solid var(--gold-line); outline-offset:1px; border-color:var(--gold-line);}
.field textarea{min-height:96px; resize:vertical;}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
@media (max-width:560px){ .field-row{grid-template-columns:1fr;} }
.q-nav{display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:26px;}
@media (max-width:560px){ .q-nav #next{flex:1;} }
.link-btn{
  appearance:none; background:none; border:0; cursor:pointer; font-family:var(--sans);
  font-size:14px; color:var(--muted); padding:8px 0; text-decoration:underline; text-underline-offset:3px;
}
.link-btn:hover{color:var(--accent);}
.err{font-family:var(--sans); font-size:13.5px; color:var(--no); margin:6px 0 0; display:none;}
.err.show{display:block;}
.consent{display:flex; gap:12px; align-items:flex-start; font-family:var(--sans); font-size:13px; color:var(--muted); line-height:1.5;}
.consent input{margin-top:3px;}

/* result screens */
.result{display:none; text-align:center;}
.result.active{display:block; animation:fade .4s ease both;}
.result .crest{width:74px; margin:0 auto 20px;}
.result h3{font-size:clamp(23px,3vw,30px); margin-bottom:14px;}
.result p{color:var(--muted); max-width:52ch; margin-inline:auto;}
.result .btn{margin-top:12px;}
.summary{
  text-align:left; background:var(--ground); border:1px solid var(--line); border-radius:11px;
  padding:20px 22px; margin:26px 0 0; font-family:var(--sans); font-size:13.5px; color:var(--muted);
}
.summary dl{display:grid; grid-template-columns:auto 1fr; gap:8px 18px; margin:0;}
.summary dt{color:var(--faint);}
.summary dd{margin:0; color:var(--text);}

/* --- FAQ ----------------------------------------------------------------- */
.faq{max-width:840px;}
.faq details{border-bottom:1px solid var(--hair); padding:6px 0;}
.faq summary{
  cursor:pointer; list-style:none; padding:22px 40px 22px 0; position:relative;
  font-family:var(--display); font-size:18.5px; line-height:1.35;
}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{
  content:"+"; position:absolute; right:6px; top:50%; transform:translateY(-50%);
  font-family:var(--sans); font-size:22px; font-weight:300; color:var(--gold); transition:transform .2s ease;
}
.faq details[open] summary::after{content:"–";}
.faq .answer{padding:0 40px 24px 0; color:var(--muted); font-size:17.5px;}
.faq .answer p:last-child{margin-bottom:0;}

/* --- closing CTA --------------------------------------------------------- */
.closing{text-align:center;}
.closing .lede{margin-inline:auto;}
.closing .btn{margin-top:28px;}

/* --- footer -------------------------------------------------------------- */
.site-footer{background:var(--ink-panel); color:#9AA4B0; padding:64px 0 40px; font-family:var(--sans); font-size:14px;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; margin-bottom:44px;}
@media (max-width:760px){ .footer-grid{grid-template-columns:1fr; gap:30px;} }
.site-footer img.crest{width:52px; margin-bottom:16px;}
.site-footer h4{font-family:var(--display); font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--gold-line); margin:0 0 16px;}
.site-footer ul{list-style:none; margin:0; padding:0; display:grid; gap:11px;}
.site-footer a{color:#B9C1CB; text-decoration:none;}
.site-footer a:hover{color:var(--gold-line);}
.footer-bottom{border-top:1px solid rgba(245,237,223,.12); padding-top:24px; display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; font-size:12.5px; color:#6E7784;}
.motto{font-family:var(--display); letter-spacing:.14em; font-size:11.5px; color:var(--gold-line);}

/* --- mobile sticky CTA --------------------------------------------------- */
.mobile-cta{
  position:fixed; left:16px; right:16px; bottom:16px; z-index:70; display:none;
  justify-content:center; padding:16px 20px; border-radius:12px;
  background:var(--btn-bg); color:var(--btn-fg); text-decoration:none;
  font-family:var(--sans); font-size:15px; font-weight:600;
  box-shadow:0 12px 30px -10px rgba(27,32,39,.55);
  transform:translateY(140%); transition:transform .3s cubic-bezier(.2,.7,.2,1);
  padding-bottom:calc(16px + env(safe-area-inset-bottom));
}
@media (max-width:640px){ .mobile-cta{display:flex;} }
.mobile-cta.show{transform:none;}

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