/* Brian Corsi Agency — shared styles (mobile-first) */
:root{
  --blue:#0B4F9C; --blue-dark:#083B75; --sky:#4A90D9; --sky-light:#E8F0FA;
  --gray:#F4F6F9; --gray-line:#DDE3EA; --text:#1C2733; --muted:#4A5868; --white:#fff;
  --radius:14px; --shadow:0 10px 30px rgba(11,79,156,.12);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--text);background:var(--white);line-height:1.6;font-size:17px;-webkit-text-size-adjust:100%}
img{max-width:100%;display:block}
a{color:var(--blue)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--sky);outline-offset:2px}
.container{width:100%;max-width:1160px;margin:0 auto;padding:0 20px}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--blue);color:#fff;padding:10px 16px;z-index:100}
.skip-link:focus{left:10px;top:10px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* Header */
.site-header{background:#fff;border-bottom:1px solid var(--gray-line);position:sticky;top:0;z-index:50}
.site-header .container{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px}
.brand img{height:46px;width:auto}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 20px;border-radius:999px;font-weight:700;font-size:1rem;text-decoration:none;border:2px solid transparent;cursor:pointer;line-height:1.2}
.btn-call{background:var(--blue);color:#fff;white-space:nowrap}
.btn-call:hover{background:var(--blue-dark)}
.btn-call svg{width:20px;height:20px;flex:none}
.btn-call .num{display:none}
.btn-primary{background:var(--blue);color:#fff;width:100%;font-size:1.1rem;min-height:54px;border-radius:12px}
.btn-primary:hover{background:var(--blue-dark)}
.btn-outline{background:#fff;color:var(--blue);border-color:var(--blue)}
.btn-outline:hover{background:var(--sky-light)}

/* Hero */
.hero{background:linear-gradient(160deg,var(--blue) 0%,#0E5DB5 55%,var(--sky) 100%);color:#fff;padding:36px 0 44px;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:60px;background:#fff;clip-path:polygon(0 100%,0 70%,18% 40%,32% 62%,50% 20%,66% 55%,80% 35%,100% 65%,100% 100%);opacity:1}
.hero .container{position:relative;z-index:1;display:grid;gap:28px}
.eyebrow{display:inline-block;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35);padding:6px 14px;border-radius:999px;font-size:.85rem;font-weight:600;letter-spacing:.02em}
.hero h1{font-size:2rem;line-height:1.15;margin:14px 0 12px;letter-spacing:-.01em}
.hero .sub{font-size:1.1rem;margin:0 0 18px;color:#EAF2FC;max-width:34em}
.hero-points{list-style:none;padding:0;margin:0 0 20px;display:grid;gap:8px}
.hero-points li{display:flex;gap:10px;align-items:flex-start;color:#fff}
.hero-points svg{width:22px;height:22px;flex:none;margin-top:2px}
.hero-call{color:#fff;font-weight:600}
.hero-call a{color:#fff}

/* Form card */
.form-card{background:#fff;color:var(--text);border-radius:var(--radius);box-shadow:0 18px 50px rgba(0,0,0,.22);padding:22px 18px}
.form-card h2{margin:0 0 4px;font-size:1.45rem;color:var(--blue)}
.form-card .form-intro{margin:0 0 16px;color:var(--muted);font-size:.95rem}
.field-row{display:grid;gap:14px}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.field-row .field{margin-bottom:0}
.field-row{margin-bottom:14px}
label,.legend{font-weight:600;font-size:.95rem;color:var(--text)}
.req{color:#B3261E}
.optional{font-weight:400;color:var(--muted);font-size:.85rem}
input[type=text],input[type=tel],input[type=email],select,textarea{font:inherit;font-size:16px;width:100%;min-height:48px;padding:11px 14px;border:1.5px solid #B8C4D2;border-radius:10px;background:#fff;color:var(--text)}
input:focus,select:focus,textarea:focus{border-color:var(--blue)}
textarea{min-height:84px;resize:vertical}
fieldset{border:0;padding:0;margin:0 0 14px;min-width:0}
.legend{display:block;margin-bottom:8px;padding:0}
.chips{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.chip{position:relative}
.chip input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.chip span{display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;border:1.5px solid #B8C4D2;border-radius:10px;font-weight:600;color:var(--blue);background:#fff;user-select:none}
.chip span::before{content:"";width:18px;height:18px;border:2px solid var(--blue);border-radius:4px;flex:none;background:#fff}
.chip input:checked + span{background:var(--sky-light);border-color:var(--blue)}
.chip input:checked + span::before{background:var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat}
.chip input:focus-visible + span{outline:3px solid var(--sky);outline-offset:2px}
.consent{display:flex;gap:12px;align-items:flex-start;background:var(--gray);border:1px solid var(--gray-line);border-radius:10px;padding:12px;margin-bottom:16px}
.consent input{width:24px;height:24px;flex:none;margin-top:2px;accent-color:var(--blue);cursor:pointer}
.consent label{font-weight:400;font-size:.82rem;line-height:1.5;color:#33404E}
.error-msg{color:#B3261E;font-size:.88rem;font-weight:600;margin:6px 0 0;display:none}
.error-msg.show{display:block}
.form-status{margin:12px 0 0;font-size:.9rem;color:#B3261E;font-weight:600}
.form-foot{margin:10px 0 0;font-size:.85rem;color:var(--muted);text-align:center}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Sections */
section{padding:56px 0}
.section-head{text-align:center;max-width:640px;margin:0 auto 30px}
.section-head h2{font-size:1.75rem;line-height:1.2;margin:0 0 10px;color:var(--blue)}
.section-head p{margin:0;color:var(--muted)}
.cards{display:grid;gap:18px}
.card{background:#fff;border:1px solid var(--gray-line);border-radius:var(--radius);padding:26px 22px;box-shadow:var(--shadow)}
.card .icon{width:56px;height:56px;border-radius:14px;background:var(--sky-light);display:grid;place-items:center;margin-bottom:14px}
.card .icon svg{width:30px;height:30px;color:var(--blue)}
.card h3{margin:0 0 8px;font-size:1.25rem;color:var(--blue)}
.card p{margin:0 0 14px;color:var(--muted)}
.card a{font-weight:700;text-decoration:none;display:inline-flex;min-height:44px;align-items:center}
.card a:hover{text-decoration:underline}

.meet{background:var(--gray)}
.meet .container{display:grid;gap:28px;align-items:center}
.headshot{width:100%;max-width:300px;margin:0 auto;border-radius:50%;overflow:hidden;aspect-ratio:1/1;background:#fff;border:6px solid #fff;box-shadow:0 0 0 4px var(--sky),0 14px 34px rgba(11,79,156,.18)}
.headshot img{width:100%;height:100%;object-fit:cover;object-position:50% 30%}
.meet h2{font-size:1.75rem;color:var(--blue);margin:0 0 12px;line-height:1.2}
.meet p{margin:0 0 14px;color:#33404E}
.meet .facts{list-style:none;padding:0;margin:18px 0 22px;display:grid;gap:10px}
.meet .facts li{display:flex;gap:10px;align-items:flex-start;font-weight:600;line-height:1.45}
.meet .facts svg{width:22px;height:22px;color:var(--sky);flex:none;margin-top:1px}
.meet .actions{display:flex;flex-wrap:wrap;gap:12px}

.steps{list-style:none;padding:0;margin:0;display:grid;gap:18px;counter-reset:step}
.step{background:#fff;border:1px solid var(--gray-line);border-radius:var(--radius);padding:24px 22px 22px;position:relative}
.step .num{width:44px;height:44px;border-radius:50%;background:var(--blue);color:#fff;font-weight:800;font-size:1.2rem;display:grid;place-items:center;margin-bottom:12px}
.step h3{margin:0 0 6px;font-size:1.15rem;color:var(--text)}
.step p{margin:0;color:var(--muted)}
.cta-band{text-align:center;margin-top:30px}
.cta-band .btn{width:auto;padding:14px 28px}

/* Footer */
.site-footer{background:#082F5E;color:#DCE7F5;padding:44px 0 24px;font-size:.95rem}
.site-footer .grid{display:grid;gap:26px}
.site-footer h2{font-size:1rem;color:#fff;margin:0 0 10px;text-transform:uppercase;letter-spacing:.06em}
.site-footer a{color:#fff}
.site-footer address{font-style:normal}
.site-footer .foot-logo{background:#fff;border-radius:10px;padding:8px 10px;display:inline-block}
.site-footer .foot-logo img{height:40px;width:auto}
.site-footer .bottom{border-top:1px solid rgba(255,255,255,.15);margin-top:30px;padding-top:18px;display:flex;flex-wrap:wrap;gap:10px 20px;justify-content:space-between;align-items:center;font-size:.85rem;color:#B9CBE3}
.site-footer .bottom a{color:#fff}
.footer-links a{display:inline-flex;min-height:44px;align-items:center}

/* Mobile sticky call bar */
.mobile-cta{position:fixed;left:0;right:0;bottom:0;z-index:60;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--gray-line);box-shadow:0 -6px 20px rgba(0,0,0,.08)}
.mobile-cta .btn{width:100%;border-radius:12px;padding:12px 10px}
body.has-mobile-cta{padding-bottom:76px}

/* Simple pages */
.page{padding:44px 0 60px}
.page .container{max-width:780px}
.page h1{color:var(--blue);font-size:2rem;line-height:1.2;margin:0 0 12px}
.page h2{color:var(--blue);font-size:1.25rem;margin:28px 0 8px}
.thanks{text-align:center;padding:70px 0 80px;background:linear-gradient(180deg,var(--sky-light),#fff)}
.thanks .check{width:84px;height:84px;border-radius:50%;background:var(--blue);display:grid;place-items:center;margin:0 auto 20px}
.thanks .check svg{width:44px;height:44px}
.thanks h1{color:var(--blue);font-size:2.2rem;margin:0 0 12px}
.thanks p{font-size:1.15rem;color:#33404E;max-width:32em;margin:0 auto 24px}
.thanks .actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}

/* Tablet+ */
@media (min-width:640px){
  .field-row.two{grid-template-columns:1fr 1fr}
  .btn-call .num{display:inline}
  .btn-call .lbl{display:none}
  .cards{grid-template-columns:repeat(3,1fr)}
  .steps{grid-template-columns:repeat(3,1fr)}
  .site-footer .grid{grid-template-columns:repeat(3,1fr)}
  .brand img{height:54px}
}
@media (min-width:900px){
  body.has-mobile-cta{padding-bottom:0}
  .mobile-cta{display:none}
  .site-header .container{min-height:84px}
  .brand img{height:60px}
  .hero{padding:56px 0 90px}
  .hero .container{grid-template-columns:1.05fr .95fr;align-items:start;gap:48px}
  .hero-copy{padding-top:24px}
  .hero h1{font-size:2.85rem}
  .hero .sub{font-size:1.2rem}
  .form-card{padding:26px 26px 22px}
  .meet .container{grid-template-columns:320px 1fr;gap:56px}
  .headshot{max-width:300px;justify-self:center}
  .headshot{margin:0}
  section{padding:72px 0}
  .section-head h2,.meet h2{font-size:2.1rem}
}

/* Small-screen tightening: get the form closer to the top */
@media (max-width:639px){
  .hero{padding:26px 0 40px}
  .hero h1{font-size:1.8rem}
  .hero .sub{font-size:1.02rem;margin-bottom:6px}
  .hero-points,.hero-call{display:none}
  .headshot{max-width:220px}
  .chip span{gap:5px;font-size:.95rem}
}
