:root{
  --bg: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --brand: #2f6f9f;
  --link: #2563eb;
  --line: #e5e7eb;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans";
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a{color: var(--link); text-decoration: none}
a:hover{text-decoration: underline}

.container{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ===== Top Nav ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

/* Make brand (left) and nav links (right) stretch to both sides */
.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  height: 52px;
  gap: 16px;                 /* add spacing so items don't touch on narrow widths */
}

/* Keep the brand from shrinking */
.brand{
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 18px;
  flex: 0 0 auto;            /* prevent shrink */
  white-space: nowrap;
}

/* Let nav links take remaining space and align to the right edge */
.navlinks{
  display:flex;
  gap: 16px;
  align-items:center;
  justify-content: flex-end; /* push links to the right */
  flex: 1 1 auto;            /* occupy remaining space */
  flex-wrap: wrap;           /* wrap on smaller screens instead of overflow */
  text-align: right;
}

.navlinks a{
  color: rgba(255,255,255,.92);
  font-size: 14px;
  white-space: nowrap;
}
.navlinks a.dim{color: rgba(255,255,255,.72)}
.navlinks a:hover{color:#fff; text-decoration:none}
.navlinks .sep{color: rgba(255,255,255,.35)}

/* On very small screens, allow the topbar to grow in height to fit wrapped links */
@media (max-width: 720px){
  .nav{
    height: auto;            /* allow multi-line nav */
    padding: 10px 0;         /* keep vertical breathing room */
    align-items: flex-start; /* align to top when wrapped */
  }
  .navlinks{
    row-gap: 8px;
  }
}

/* =========================
   Topbar: make it full-width (override .container)
   ========================= */

/* In topbar, the node is: <div class="container nav"> */
.topbar .container.nav{
  max-width: none;        /* remove the 1080px cap */
  width: 100%;            /* stretch to viewport */
  margin: 0;              /* no centering margin */
  padding: 0 24px;        /* keep some breathing room from window edges */
}

/* Keep left-right alignment */
.topbar .nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  gap: 16px;
}

/* Right-align links and allow wrap */
.topbar .navlinks{
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Small screens: allow multi-line nav */
@media (max-width: 720px){
  .topbar .nav{
    height: auto;
    padding: 10px 0;
    align-items: flex-start;
  }
}


/* ===== Hero ===== */
.hero{
  position: relative;
  min-height: 240px;         /* reduced from 320px */
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("./hero.jpg") center/cover no-repeat;
  transform: scale(1.02);
}
.hero-inner{
  position: relative;
  padding: 44px 18px 40px;   /* reduced vertical padding */
  max-width: 980px;
}
.hero h1{
  margin:0;
  font-size: 48px;           /* reduced from 54px */
  font-weight: 800;
  font-style: italic;
  letter-spacing: .2px;
}
.hero .underline{
  width: 76px;
  height: 5px;
  background: #7fb4da;
  margin: 16px auto 0;       /* slightly reduced */
  border-radius: 999px;
  opacity: .95;
}

/* ===== Section ===== */
.section{
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}
.section-title{
  text-align:center;
  font-size: 34px;
  font-weight: 700;
  font-style: italic;
  color: var(--brand);
  margin: 0 0 26px;
}
.lead{
  max-width: 860px;
  margin: 0 auto;
  color: var(--text);
  font-size: 16px;
}
.lead b{font-weight: 800}
.bullets{
  margin: 14px auto 0;
  max-width: 860px;
  color: var(--text);
}
.bullets li{margin: 8px 0}

/* ===== Cards / rows ===== */
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items:start;
}
@media (max-width: 880px){
  .grid-2{grid-template-columns: 1fr}
  .hero h1{font-size: 38px}  /* slightly smaller than before */
  .hero{min-height: 200px}   /* further reduce hero height on small screens */
  .hero-inner{padding: 34px 18px 32px}
}

.card{
  display:flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.icon{
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
}
.card h3{
  margin: 0 0 8px;
  font-size: 18px;
  color: #1f2937;
}
.card .text{
  color: var(--muted);
  font-size: 14px;
}
.card ul{
  margin: 10px 0 0 18px;
  color: #111827;
}
.card li{margin: 6px 0}

.mini-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 18px;
}
@media (max-width: 880px){
  .mini-grid{grid-template-columns: 1fr}
}

.linkline{
  margin-top: 10px;
  font-size: 14px;
}

/* ===== Footer ===== */
.footer{
  padding: 26px 0 40px;
  color: var(--muted);
  text-align:center;
  font-size: 13px;
}
