/* =========================
   1) Base + Variables
========================= */
:root{
  --maxw: 1100px;
  --pad: 16px;

  --text: #111;
  --muted: rgba(0,0,0,.7);
  --border: rgba(30,144,255,.20);
  --bg: #fff;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);

  --btn-bg: #111;
  --btn-text: #fff;
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Safe default for images */
img{
  max-width: 100%;
  height: auto;
}

/* Links */
a{ color: inherit; text-decoration: none; }
a:hover{ opacity:.85; }

/* Layout helpers */
.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section{ padding: 56px 0; }

.h1{
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}
.h2{
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}
.p{
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

/* =========================
   2) Utility Bar
========================= */
.utility-bar{
  position: sticky;
  top: 0;
  background: #0a4d68;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 8px 20px;
  z-index: 1000;
}
.utility-left{ font-size: 14px; }
.utility-right button{
  background: #0a4d68;
  border: 1px solid #fff;
  color: #fff;
  padding: 5px 10px;
  margin-left: 8px;
  cursor: pointer;
}
.utility-right .icon{ padding: 5px 10px; }

/* =========================
   3) Header / Nav
========================= */
.site-header{
  position: sticky;
  top: 0; /* If your utility bar is above this, and you want no overlap, change to: top: 34px; */
  z-index: 9999;
  background: rgba(250,250,250,1);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Logo container */
.logo{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Logo image sizing (override everything) */
.logo img,
.logo-img{
  height: 36px;
  width: auto;
  max-height: 36px;
  display: block;
}

.nav{
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.nav a{
  padding: 8px 10px;
  border-radius: 12px;
}
.nav a:hover{
  background: rgba(30,144,255,.40);
}

@media (max-width: 820px){
  .nav{ gap: 8px; }
  .nav a{ padding: 8px 8px; }
}

/* =========================
   4) Buttons
========================= */
.btn,
.btn-outline{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: transform .12s ease, opacity .12s ease, background .12s ease;
}
.btn{
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-bg);
}
.btn-outline{
  background: transparent;
  color: var(--text);
}
.btn:active,
.btn-outline:active{
  transform: translateY(1px);
}

/* =========================
   5) Hero
========================= */
.hero{
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-media{
  height: clamp(240px, 40vw, 430px);
  background: #e9e9e9;
  background-size: cover;
  background-position: center;
}
.hero-body{ padding: 26px; }
.hero-actions{
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================
   6) Grid / Cards
========================= */
.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
}

.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}
.card small{
  color: rgba(0,0,0,.55);
  font-weight: 600;
}
.card ul{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.card li{ margin: 6px 0; }

.quote{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
}
.quote p{
  font-size: clamp(18px, 2vw, 26px);
  margin: 0;
  line-height: 1.4;
}
.quote .by{
  margin-top: 12px;
  color: rgba(0,0,0,.6);
  font-size: 14px;
}

.list{
  display: grid;
  gap: 12px;
}
.list-item{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}
.list-item .meta{
  font-size: 12px;
  color: rgba(0,0,0,.6);
}
.list-item .title{
  margin-top: 6px;
  font-weight: 650;
}



/* =========================
   8) Mobile Menu (CLEAN FIX)
========================= */
.nav-desktop{ display:flex; }

.nav-toggle{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 10000;
}

/* IMPORTANT: anchor dropdown under the header row */
.site-header .container{
  position: relative;
}

/* Default: keep mobile menu hidden */
.nav.nav-mobile{
  display: none;
}

/* Mobile behavior */
@media (max-width: 820px){
  .nav-desktop{ display:none; }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }

  /* dropdown panel under header */
  .nav.nav-mobile{
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    z-index: 9998;

    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
  }

  /* open state */
  .nav.nav-mobile.is-open{
    display: block;
  }

  .nav.nav-mobile a{
    display:block;
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 15px;
  }

  .nav.nav-mobile a.btn{
    display: inline-flex;
    margin-top: 8px;
    width: fit-content;
  }
}

/* =========================
   9) Dropdown (Desktop)
========================= */
.dropdown{ position: relative; }
.dropbtn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-menu{
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 200px;
  margin-top: 8px;

  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  display: none;
  z-index: 100;
}

.dropdown-menu::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.dropdown-menu a{
  display: block;
  padding: 10px 10px;
  border-radius: 12px;
  font-size: 14px;
  white-space: nowrap;
}
.dropdown-menu a:hover{
  background: rgba(0,0,0,.04);
}

@media (min-width: 641px){
  .dropdown:hover .dropdown-menu{ display: block; }
}

/* =========================
   10) Mobile dropdown accordion
========================= */
.m-dropbtn{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.m-dropbtn:hover{ background: rgba(0,0,0,.03); }

.m-dropdown{
  display: none;
  padding: 8px 0 2px;
  margin-left: 6px;
  border-left: 2px solid rgba(0,0,0,.08);
}
.m-dropdown a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}
.m-dropdown a:hover{ background: rgba(0,0,0,.04); }
.m-dropdown.is-open{ display: block; }

.m-dropbtn .chev{ transition: transform .15s ease; }
.m-dropbtn.is-open .chev{ transform: rotate(180deg); }

/* =========================
   11) Page Hero + Content Layout
========================= */
.page-hero{
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}
.page-hero .eyebrow{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  font-weight: 700;
}
.page-hero h1{
  margin: 10px 0 0;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.page-hero p{
  margin: 12px 0 0;
  max-width: 70ch;
  color: var(--muted);
}
.page-hero .actions{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content{ padding: 26px 0 10px; }
.content h2{
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.01em;
}
.content p{ margin: 10px 0 0; color: var(--muted); }

.hr{
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

/* =========================
   12) Home sections (optional)
========================= */
.scroll-gallery{
  display: flex;
  overflow-x: auto;
  padding: 20px;
  gap: 10px;
  background: #f3f3f3;
}
.scroll-gallery img{
  height: 180px;
  flex: 0 0 auto;
  border-radius: 5px;
}

.news-section{ padding: 30px 20px; background: #fff; }
.news-section h2{ margin-bottom: 20px; }

.news-grid{ display: flex; flex-wrap: wrap; gap: 20px; }

.news-card{
  flex: 1 1 300px;
  background: #f9f9f9;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.news-card img{
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.news-card .content{ padding: 15px; }
.news-card h3{ margin-bottom: 10px; font-size: 18px; }
.news-card p{ font-size: 14px; margin-bottom: 10px; }
.news-card a{
  color: #0a4d68;
  text-decoration: none;
  font-weight: bold;
}
.news-card a:hover{ text-decoration: underline; }

.gallery-strip{
  display: flex;
  overflow-x: auto;
  padding: 20px;
  gap: 10px;
  background: #f3f3f3;
}
.gallery-strip img{
  height: 80px;
  flex: 0 0 auto;
  border-radius: 5px;
}

.card-image{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================
   13) Footer
========================= */
.site-footer{
  margin-top: 60px;
  background: #fafafa;
}

.footer-grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding: 40px 0;
}

.footer-brand p{
  margin-top: 10px;
  color: var(--muted);
  max-width: 36ch;
}

.footer-logo{
  height: 32px;
  width: auto;
}

.footer-links h4{
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}

.footer-links a{
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}
.footer-links a:hover{
  color: var(--text);
}

.footer-bottom{
  border-top: 1px solid var(--border);
  padding: 14px 0;
  font-size: 13px;
  color: rgba(0,0,0,.6);
  text-align: center;
}

/* Mobile */
@media (max-width: 720px){
  .footer-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* =========================
   Footer – Full Width Partners
========================= */
.footer-partners{
  width: 100%;
  background: #fafafa;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

/* Inner wrapper to control max width */
.partners-inner{
  max-width: 1400px;   /* wider than normal container */
  margin: 0 auto;
  padding: 0 24px;
}

.partners-title{
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(0,0,0,.6);
  margin-bottom: 20px;
  text-align: center;
}

/* Centered grid (tight, not stretched) */
.partners-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, 160px);
  gap: 18px;
  justify-content: center;   /* this is the key */
}

/* Card */
.partner-card{
  width: 160px;              /* match the column width */
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 96px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform .12s ease, box-shadow .12s ease;
}

.partner-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.partner-card img{
  max-height: 44px;
  width: auto;
  opacity: .85;
  filter: grayscale(100%);
  transition: opacity .15s ease, filter .15s ease;
}

.partner-card:hover img{
  opacity: 1;
  filter: none;
}

.alert{
  border-radius: 14px;
  padding: 12px 14px;
  margin: 14px 0;
  border: 1px solid var(--border);
  background: #fff;
}
.alert.success{ border-color: rgba(255,175,0,.90); }
.alert.error{ border-color: rgba(255,0,0,.50); }
