
/* Levin & Whitmore – main stylesheet
   Built for: mobile/desktop/tablet, automatic dark mode, performance, accessibility.
*/

/* ------------------------------
   Design tokens (light + dark)
--------------------------------*/
:root{
  --color-primary:#002060;
  --color-secondary:#d4af37;

  --color-bg:#ffffff;
  --color-bg-soft:#f7f7f9;
  --color-surface:#ffffff;

  --color-text:#1b1f2a;
  --color-text-muted:#5a6270;
  --color-border:rgba(0,0,0,.12);

  --shadow-1:0 8px 30px rgba(0,0,0,.08);

  --font-body:'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-heading:'Playfair Display', Georgia, 'Times New Roman', serif;

  --container:1200px;
  --radius:14px;

  --space-1:8px;
  --space-2:12px;
  --space-3:16px;
  --space-4:24px;
  --space-5:32px;
  --space-6:48px;
  --space-7:72px;

  --header-h:74px;
  --transition:.2s ease;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark){
  :root{
    --color-bg:#0e1220;
    --color-bg-soft:#0b0f1b;
    --color-surface:#131a2f;

    --color-text:#eef1ff;
    --color-text-muted:#b7c0d6;
    --color-border:rgba(255,255,255,.12);

    --shadow-1:0 10px 35px rgba(0,0,0,.45);
  }
}

/* ------------------------------
   Base
--------------------------------*/
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#ffffff;
  font-family:var(--font-body);
  background:var(--color-bg);
  color:var(--color-text);
  line-height:1.6;
}

html, body { overflow-x: hidden; }
img{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
a:hover{opacity:.92}
p{margin:0 0 1rem}
h1,h2,h3,h4{margin:0 0 .6rem; line-height:1.15}
h1,h2{font-family:var(--font-heading)}
h3,h4{font-family:var(--font-body)}

.container{
  width: 100%;
  max-width: var(--container);
  padding-inline: 16px;
  margin-inline: auto;
}


/* Force clean white page background (premium) */
main{ background:#ffffff; }
.section.alt,
.section.muted,
.section-muted,
.bg-muted{ background:#ffffff !important; }


.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

:focus-visible{
  outline:3px solid color-mix(in srgb, var(--color-secondary) 70%, white 30%);
  outline-offset:3px;
  border-radius:10px;
}

/* ------------------------------
   Buttons
--------------------------------*/
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  font-weight:600;
  font-size:15px;
  white-space:nowrap;
}
.btn:active{transform:translateY(1px)}
.btn-primary{
  background:var(--color-secondary);
  color:#1a1a1a;
  border-color:color-mix(in srgb, var(--color-secondary) 70%, black 30%);
}
.btn-primary:hover{filter:brightness(.98)}
.btn-ghost{
  background:transparent;
  color:var(--color-text);
  border-color:var(--color-border);
}
.btn-ghost:hover{background:color-mix(in srgb, var(--color-surface) 82%, var(--color-primary) 18%)}

.btn-link{
  background:transparent;
  border:none;
  padding:0;
  color:color-mix(in srgb, var(--color-secondary) 92%, var(--color-text) 8%);
  font-weight:700;
  cursor:pointer;
}

/* ------------------------------
   Header / Nav
--------------------------------*/
header.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  height:var(--header-h);
  display:flex;
  align-items:center;
  background: rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--color-border);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
header.site-header a:hover{ opacity:1; }


header.site-header > .container{
  flex: 1 1 auto;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:180px;
}
.brand img{
  width:146px;
  height:auto;
}
.nav{
  display:flex;
  align-items:center;
  gap:18px;
}
.nav a{
  font-weight:600;
  font-size:14px;
  padding:10px 10px;
  border-radius:10px;
}
.nav a.active,
.nav a:hover{
  background:color-mix(in srgb, var(--color-surface) 80%, var(--color-primary) 20%);
}

.header-cta{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Header over hero (premium glass look) */
header.site-header.over-hero{
  background: rgba(10,12,18,.28);
  border-bottom: 1px solid rgba(255,255,255,.16);
  box-shadow: none;
}
header.site-header.over-hero .nav a{
  color: rgba(255,255,255,.92);
}
header.site-header.over-hero .nav a.active,
header.site-header.over-hero .nav a:hover{
  background: rgba(255,255,255,.12);
}
header.site-header.over-hero .mobile-toggle{
  border-color: rgba(255,255,255,.25);
  color:#fff;
}
header.site-header.over-hero .btn-ghost{
  border-color: rgba(255,255,255,.25);
  color:#fff;
  background: rgba(255,255,255,.06);
}
header.site-header.over-hero .btn-ghost:hover{
  background: rgba(255,255,255,.12);
}

/* Mobile nav */
.mobile-toggle{
  display:none;
  background:transparent;
  border:1px solid var(--color-border);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
}
.mobile-drawer{
  display:none;
  position:fixed;
  inset:var(--header-h) 0 auto 0;
  background:var(--color-bg);
  border-bottom:1px solid var(--color-border);
  box-shadow:var(--shadow-1);
}
.mobile-drawer .mobile-nav{
  display:flex;
  flex-direction:column;
  padding:16px;
  gap:8px;
}
.mobile-drawer a{
  padding:12px 12px;
  border-radius:12px;
  font-weight:700;
}
.mobile-drawer a:hover{
  background:color-mix(in srgb, var(--color-surface) 75%, var(--color-primary) 25%);
}

/* ------------------------------
   Hero
--------------------------------*/
.hero{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(90deg, rgba(0,32,96,.90), rgba(0,32,96,.55)),
    url("/images/hero-desktop.webp") center/cover no-repeat;
  color:#fff;
}
@media (max-width: 820px){
  .hero{
    background:
      linear-gradient(90deg, rgba(0,32,96,.92), rgba(0,32,96,.62)),
      url("/images/hero-mobile.webp") center/cover no-repeat;
  }
}
.hero-inner{
  padding:clamp(54px, 6vw, 110px) 0;
}
.hero h1{
  font-size:clamp(34px, 4vw, 56px);
  letter-spacing:.2px;
  max-width:18ch;
}
.hero p{
  max-width:62ch;
  font-size:clamp(16px, 1.25vw, 19px);
  color:rgba(255,255,255,.92);
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}
.proof-strip{
  margin-top:26px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:12px;
}
.proof-item{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  padding:12px 12px;
  backdrop-filter: blur(10px);
}
.proof-item strong{
  display:block;
  color:#fff;
  font-size:14px;
}
.proof-item span{
  display:block;
  color:rgba(255,255,255,.9);
  font-size:12.5px;
}
@media (max-width: 900px){
  .proof-strip{grid-template-columns:repeat(2, minmax(0,1fr))}
}

/* ------------------------------
   Sections
--------------------------------*/
.section{
  padding:var(--space-7) 0;
}
.section.alt{
  background:var(--color-bg-soft);
  border-top:1px solid var(--color-border);
  border-bottom:1px solid var(--color-border);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:26px;
}
.section-title h2{
  font-size:clamp(28px, 2.6vw, 40px);
}
.section-title p{
  margin:0;
  color:var(--color-text-muted);
  max-width:60ch;
}

/* ------------------------------
   Cards / grids
--------------------------------*/
.grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
}
@media (max-width: 980px){
  .grid{grid-template-columns:repeat(2, minmax(0,1fr))}
}
@media (max-width: 640px){
  .grid{grid-template-columns:1fr}
}

.card{
  background:var(--color-surface);
  border:1px solid var(--color-border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-1);
  overflow:hidden;
}
.card-body{
  padding:16px 16px 18px;
}
.card h3{font-size:18px}
.card p{color:var(--color-text-muted); margin-bottom:0}
.card .meta{color:var(--color-text-muted); font-size:13px; margin-top:8px}
.card .thumb{aspect-ratio: 16/10; object-fit:cover; width:100%}

/* Services */
.service-badge{
  display:inline-flex;
  gap:10px;
  align-items:center;
  font-weight:800;
  font-size:12px;
  letter-spacing:.2px;
  color:color-mix(in srgb, var(--color-secondary) 78%, var(--color-text) 22%);
}
.service-badge i{
  color:var(--color-secondary);
}

/* Testimonials */
.quote{
  font-size:15px;
}
.quote cite{
  display:block;
  margin-top:10px;
  color:var(--color-text-muted);
  font-style:normal;
  font-weight:700;
}

/* ------------------------------
   CTA band
--------------------------------*/
.cta-band{
  margin-top:22px;
  padding:18px;
  border-radius:18px;
  border:1px solid var(--color-border);
  background:color-mix(in srgb, var(--color-surface) 82%, var(--color-primary) 18%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.cta-band p{margin:0; color:var(--color-text-muted)}
.cta-band strong{color:var(--color-text)}

/* ------------------------------
   Forms
--------------------------------*/
form{
  width:100%;
}
.form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}
@media (max-width: 760px){
  .form-grid{grid-template-columns:1fr}
}
.field{display:flex; flex-direction:column; gap:8px}
label{font-weight:700; font-size:14px}
input, select, textarea{
  font:inherit;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--color-border);
  background:var(--color-surface);
  color:var(--color-text);
}
textarea{min-height:140px; resize:vertical}
.help{font-size:12.5px; color:var(--color-text-muted)}
.error{font-size:12.5px; color:#d9534f; display:none}
.field.invalid .error{display:block}
.form-actions{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:14px}
.form-note{font-size:12.5px; color:var(--color-text-muted)}

/* ------------------------------
   Footer
--------------------------------*/
footer{
  padding:42px 0;
  border-top:1px solid var(--color-border);
  background:color-mix(in srgb, var(--color-bg) 92%, var(--color-primary) 8%);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap:18px;
}
@media (max-width: 900px){
  .footer-grid{grid-template-columns:1fr}
}
.footer-col h4{margin-bottom:10px}
.footer-col a{display:inline-block; padding:6px 0; color:var(--color-text-muted); font-weight:600}
.small{font-size:13px; color:var(--color-text-muted)}
hr.sep{border:none; border-top:1px solid var(--color-border); margin:18px 0}

/* ------------------------------
   Mobile sticky actions
--------------------------------*/
.mobile-cta{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:1200;
  display:none;
  background:color-mix(in srgb, var(--color-bg) 92%, var(--color-primary) 8%);
  border-top:1px solid var(--color-border);
  padding:10px 12px;
  gap:10px;
}
.mobile-cta .container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  display:flex;
  gap:10px;
}
.mobile-cta a{flex:1}
@media (max-width: 820px){
  .mobile-cta{display:flex}
  body{padding-bottom:74px;}
}

/* ------------------------------
   Back to top
--------------------------------*/
.back-to-top{
  position:fixed;
  right:14px;
  bottom:92px;
  z-index:1200;
  display:none;
  border-radius:999px;
  padding:10px 12px;
  border:1px solid var(--color-border);
  background:var(--color-surface);
  box-shadow:var(--shadow-1);
}
.back-to-top.show{display:inline-flex}

/* ------------------------------
   Responsive nav triggers
--------------------------------*/
@media (max-width: 980px){
  .nav{display:none}
  .mobile-toggle{display:inline-flex}
}

/* ------------------------------
   Reduced motion
--------------------------------*/
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{transition:none!important; animation:none!important}
}


/* Cookie banner */
.cookie-banner{
  display:none;
  position:fixed;
  left:16px; right:16px; bottom:90px;
  z-index:1300;
  background:var(--color-surface);
  border:1px solid var(--color-border);
  border-radius:18px;
  box-shadow:var(--shadow-1);
  padding:14px 14px;
}
.cookie-banner .row{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.cookie-banner p{margin:0; color:var(--color-text-muted); font-size:13px; max-width:80ch}
.cookie-banner .actions{display:flex; gap:10px; flex-wrap:wrap}
@media (max-width: 820px){
  .cookie-banner{bottom:140px}
}


/* iOS/Safari overflow + header fit tweaks */
@media (max-width: 520px){
  header.site-header{ height:auto; }
  .header-inner{ gap:10px; }
  .brand{ min-width:auto; }
  .brand img{ width:140px; }

  /* Let header CTAs fit without horizontal overflow */
  .site-header .btn{
    padding:10px 12px;
    font-size:14px;
  }
  .site-header .btn-primary{
    max-width:52vw;
    white-space:normal;
    line-height:1.15;
    text-align:center;
  }
  .site-header .btn-ghost{
    padding:10px 12px;
  }
}

/* Respect iOS safe-area for bottom CTA bar */
@supports (padding: max(0px)){
  .mobile-cta{
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

