:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#4b5563;
  --line:#e5e7eb;
  --accent:#0a2a4a; /* Navy-ish */
  --card:#f8fafc;
  --max: 980px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

.wrap{max-width:var(--max);margin:0 auto;padding:28px 18px}

/* Accessibility */
.skip{
  position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;
}
.skip:focus{
  left:18px;top:18px;width:auto;height:auto;
  padding:10px 12px;background:#fff;border:1px solid var(--line);z-index:999
}

/* Header */
header{
  border-bottom:1px solid var(--line);
  background:#fff;
}
.brand{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.brand h1{
  font-size:18px;
  margin:0;
  letter-spacing:.3px;
}
.brand small{color:var(--muted)}

nav{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  font-size:14px;
}
nav a{
  padding:8px 10px;
  border-radius:8px;
}
nav a.active{
  background:var(--card);
  border:1px solid var(--line);
  text-decoration:none;
}

/* Logo + header alignment */
.brand-left{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-left a{
  display:inline-flex;
  align-items:center;
}
.logo{
  height:54px;
  width:auto;
}

/* Sections */
.section{
  padding:10px 0 6px;
}
.section h2{font-size:22px;margin:18px 0 8px}
.section h3{font-size:16px;margin:16px 0 8px}
.section p{color:var(--muted);max-width:90ch}
.section ul{color:var(--muted);padding-left:18px;max-width:95ch}

/* Hero (default: internal pages / normal sections) */
.hero{
  padding:22px 0 16px;
}
.hero h2{
  font-size:34px;
  line-height:1.15;
  margin:0 0 10px 0;
}
.hero p{
  margin:0 0 14px 0;
  color:var(--muted);
  font-size:16px;
  max-width:80ch;
}

/* ===== Homepage full-width hero band =====
   Assumes index.html uses:
   <main id="main">
     <section class="hero hero--home">
       <img class="hero-logo" ...>
       <div class="wrap hero-text">...</div>
     </section>
     <div class="wrap section">...</div>
   </main>
*/
.hero.hero--home{
  padding:44px 0 28px;
  text-align:center;
  background:#fff;
}

/* Tall stacked logo: constrain by HEIGHT to stop billboard effect */
.hero-logo{
  display:block;
  width:auto;
  height:140px;      /* adjust 120–160 if you want; this is the “right” band size */
  max-height:140px;
  max-width:100%;
  margin:0 auto 18px auto;
  object-fit:contain;
}

/* Text block inside wrap should be left-aligned for professional hierarchy */
.hero-text{
  text-align:left;
}

/* On homepage, keep copy width sane */
.hero.hero--home p{
  max-width:80ch;
}

/* Badges align with text block on desktop */
.hero.hero--home .badges{
  justify-content:flex-start;
}

/* Badges */
.badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.badge{
  font-size:12px;
  color:#0b1220;
  border:1px solid var(--line);
  background:var(--card);
  padding:6px 10px;
  border-radius:999px;
}

/* Grid / cards */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
  margin:18px 0 6px;
}
.card{
  grid-column: span 6;
  border:1px solid var(--line);
  background:var(--card);
  border-radius:14px;
  padding:14px 14px 12px;
}
.card h3{margin:0 0 8px 0;font-size:16px}
.card ul{margin:0;padding-left:18px;color:var(--muted)}
.card p{margin:0;color:var(--muted)}

/* CTA */
.cta{
  margin:22px 0 10px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
.cta strong{display:block;margin-bottom:6px}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  margin-top:26px;
  padding:18px 0 28px;
  color:var(--muted);
  font-size:13px;
}
.footer .row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* Key/Value list */
.kv{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap:10px;
  max-width:90ch;
}
.kv div{
  padding:8px 0;
  border-bottom:1px dashed var(--line);
}
.kv .k{color:var(--text);font-weight:600}

.note{font-size:13px;color:var(--muted)}

/* Contact page business identifiers */
.registrations{
  margin:22px 0 10px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
.registrations ul{
  list-style:none;
  padding-left:0;
  margin:0;
  color:var(--muted);
}
.registrations li{margin:6px 0}

/* Responsive */
@media (max-width: 720px){
  .card{grid-column: span 12}
  .hero{padding:18px 0 12px}
  .hero h2{font-size:28px}
  .logo{height:36px}

  /* Homepage band: tighter and centered on mobile */
  .hero.hero--home{
    padding:26px 0 18px;
  }
  .hero-logo{
    height:110px;
    max-height:110px;
    margin:0 auto 12px auto;
  }
  .hero-text{
    text-align:center;
  }
  .hero.hero--home .badges{
    justify-content:center;
  }
}
/* FORCE: homepage logo sizing regardless of other rules */
.hero-logo{
  height:140px !important;
  max-height:140px !important;
  width:auto !important;
  max-width:100% !important;
  display:block !important;
  margin:0 auto 18px auto !important;
  object-fit:contain !important;
}

/* FORCE: homepage hero band spacing */
.hero.hero--home{
  padding:44px 0 28px !important;
  text-align:center !important;
}
.hero-text{
  text-align:left !important;
}
