/* ====== Custom Font: Agrandir ====== */
@font-face {
  font-family: "Agrandir";
  src: url("/assets-front-pages/fonts/Agrandir.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Agrandir";
  src: url("/assets-front-pages/fonts/Agrandir-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ====== Tokens ====== */
:root {
  --bg: #f6f7fb;
  --card: #ffffff;

  /* NOTE: renamed text token conflict:
     before: --text used as BOTH color and font-size token
     now: --text-color for color, --text for font-size */
  --text-color: #061e4b;
  --muted: #64748b;
  --line: #e5e7eb;
  --primary: #3389bf;
  --dark: #061e4b;

  /* ====== Typography Scale (Desktop) ====== */
  --h1: 56px;
  --h2: 48px;
  --h3: 40px;
  --h4: 32px;
  --h5: 24px;
  --h6: 20px;

  --text-lg: 20px;
  --text-md: 18px;
  --text: 16px;
  --text-sm: 14px;
  --text-xs: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Agrandir", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size: var(--text);
  background: var(--bg);
  color: var(--text-color);
}

a {
  color: inherit;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ====== Typography (global) ====== */
h1 {
  font-size: var(--h1);
  line-height: 1.1;
  margin: 0 0 10px;
  font-weight: 700;
}
h2 {
  font-size: var(--h2);
  line-height: 1.15;
  margin: 0 0 10px;
  font-weight: 700;
}
h3 {
  font-size: var(--h3);
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: 700;
}
h4 {
  font-size: var(--h4);
  line-height: 1.25;
  margin: 0 0 8px;
  font-weight: 700;
}
h5 {
  font-size: var(--h5);
  line-height: 1.3;
  margin: 0 0 6px;
  font-weight: 700;
}
h6 {
  font-size: var(--h6);
  line-height: 1.35;
  margin: 0 0 6px;
  font-weight: 700;
}

p {
  margin: 0 0 12px;
  line-height: 1.5;
  font-size: var(--text);
}

small {
  font-size: var(--text-xs);
}

/* ====== Topbar ====== */
.topbar {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.12); */
    color: #fff;
    border-bottom: 1px solid var(--primary);
    position: fixed;
    width: 100%;
    z-index: 50;
    padding-inline: 20px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand-logo {
  width: 50px;
  height: 50px;
  /* border-radius: 8px; */
  object-fit: contain;
  /* background: #fff; */
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: var(--text-md);
}

/* ====== Desktop nav ====== */
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
  font-size: var(--text-sm);
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav a.active {
  background: rgba(51, 137, 191, 0.28);
  color: #fff;
}

.btn-link {
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
}

/* ====== Mobile toggle button ====== */
.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
}

/* ====== Page spacing ====== */
main.container {
  padding-top: 18px;
}

/* ====== Buttons ====== */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 400;
  border: 0;
  cursor: pointer;
  font-size: var(--text-sm);
  line-height: 1;
}

.btn.outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* ====== Cards + grids ====== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.section {
   padding: 40px 0;
  margin:  0;
}
@media (max-width: 720px){
  .section{ 
    padding: 30px 0; 
  }
}

.section h2 {
  margin: 0 0 10px;
  font-size: var(--h5);
  font-weight: 700;
}

.muted {
  color: var(--muted);
  font-size: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.badge {
  margin-bottom: 24px;
  display: inline-block;
  font-size: var(--text-xs);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(51, 137, 191, 0.12);
  color: var(--dark);
  border: 1px solid rgba(51, 137, 191, 0.22);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.item-title {
  font-weight: 700;
  margin: 0;
  font-size: var(--text-sm);
}

.item-meta {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 3px 0 0;
}

.item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* ====== Forms ====== */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form .full {
  grid-column: 1/-1;
}

.input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: var(--text);
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* ====== Footer ====== */
.footer {
  margin-top: 28px;
  background: var(--dark);
  color: #cbd5e1;
  padding: 18px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 12px;
  font-size: var(--text-xs);
}

/* =========================================================
   HERO (FULL WIDTH) — background image opacity + overlay
   Required HTML inside hero:
   <div class="hero-bg"></div>
   <div class="hero-overlay"></div>
   <div class="container hero-content">...</div>
========================================================= */
.hero {
  min-height: 80vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  padding: 32px 0;
  overflow: hidden;
}

/* background image (opacity only) */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* opacity: 0.32; adjust: 0.25 - 0.45 */
  transform: scale(1.02);
}

/* gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  /* background: rgba(0,0,0,.5); */
  background: linear-gradient(
    120deg,
    rgba(6, 30, 75, 0.92),
    rgba(51, 137, 191, 0.55)
  );
  mix-blend-mode: multiply;
}

/* optional soft highlight */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
   background: rgba(0,0,0,.1);
  /* background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.1),
    transparent 55%
  ); */
  pointer-events: none;
}

/* HERO text (no card) */
.hero-content { position: relative; z-index: 2; }



.hero-title{
  color: #fff;
  font-size: var(--h1);
  line-height: 1.05;
  margin: 10px 0 10px;
  font-weight: 700;
  text-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.hero-sub{
  color: rgba(255,255,255,.92);
  font-size: var(--text-lg);
  line-height: 1.75;
  /* max-width: 820px; */
}

/* badge on dark bg */
.hero .badge{
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,.95);
}

/* buttons on dark bg */
.hero .btn{ box-shadow: 0 10px 22px rgba(0,0,0,.18); }

.hero .btn.outline.light{
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
}

/* responsive tweaks */
@media (max-width: 980px){
  .hero-title{ font-size: var(--h2); }
  .hero-sub{ font-size: var(--text-md); }
 
}
@media (max-width: 720px){
  .hero-title{ font-size: var(--h3); }
  .hero-sub{ font-size: var(--text); }
   
  
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 16px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: var(--h2);
  margin: 0 0 8px;
  line-height: 1.05;
  font-weight: 700;
}

.hero-sub {
  font-size: var(--text-md);
  /* color: #0b2a66; */
  margin: 0 0 14px;
  line-height: 1.75;
  width: 70%;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero-sub{
    width: 100%;
  }
}

/* ====== RESPONSIVE ====== */

/* Tablet typography */
@media (max-width: 980px) {
  :root {
    --h1: 48px;
    --h2: 42px;
    --h3: 36px;
    --h4: 28px;
    --h5: 22px;
    --h6: 18px;

    --text-lg: 18px;
    --text-md: 16px;
    --text: 16px;
    --text-sm: 14px;
    --text-xs: 12px;
  }

  .hero {
    min-height: 100vh;
    padding: 44px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile typography + menu */
@media (max-width: 720px) {
  :root {
    --h1: 40px;
    --h2: 36px;
    --h3: 32px;
    --h4: 24px;
    --h5: 20px;
    --h6: 18px;

    --text-lg: 18px;
    --text-md: 16px;
    --text: 16px;
    --text-sm: 14px;
    --text-xs: 12px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .form {
    grid-template-columns: 1fr;
  }

  /* show toggle, hide desktop nav initially */
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    z-index: 60;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 12px;
    border-radius: 12px;
  }

  .btn-link {
    display: block;
    text-align: center;
  }
}

.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: clamp(20px, 4.44vw, 64px);
  margin-top: -18px;
}
.hero-content{
  padding: 0 !important;
  /* margin: 0 !important; */
}
html, body {
  overflow-x: hidden;
}


.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}
@media(max-width:720px){
  .section-head{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* ===== Featured clubs cards ===== */
.clubs-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media(max-width:980px){
  .clubs-grid{ grid-template-columns: 1fr 1fr; }
}
@media(max-width:720px){
  .clubs-grid{ grid-template-columns: 1fr; }
}

.club-card{
  overflow:hidden;
  padding:0;
}
.club-thumb{
  height:160px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.club-body{
  padding:16px;
}
.club-title{
  margin:10px 0 6px;
}
.club-desc{
  margin:0 0 14px;
  line-height:1.6;
}

/* ===== Map ===== */
.map-card{
  padding:0;
  overflow:hidden;
}
.map-embed{
  width:100%;
  height:420px;
  border:0;
  display:block;
}
@media(max-width:720px){
  .map-embed{ height:320px; }
}

/* ABOUT TOP */
.about-top{
  max-width: 980px;
  margin: 0 0 18px;
}
.about-heading{ margin: 0 0 8px; }
.about-lead{ margin: 0; line-height: 1.7; }

/* 2-col layout */
.about-grid{
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: stretch; 
}


.about-media{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(6,30,75,0.10);
  box-shadow: 0 18px 40px rgba(6,30,75,0.12);
  min-height: 420px; /* IMPORTANT */
}


.about-img{
  width: 100%;
  height: 100%;
  min-height: 420px; 
  object-fit: cover;  
  display: block;
}

/* RIGHT content */
.about-content{
  min-width: 0;
}

/* Bento grid */
.bento{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bento-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

/* spans */
.bento-hero{ grid-column: 1 / -1; }
.bento-wide{ grid-column: 1 / -1; }

.about-actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* responsive */
@media (max-width: 980px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-media{ min-height: 320px; }
  .about-img{ min-height: 320px; }
}

@media (max-width: 720px){
  .bento{ grid-template-columns: 1fr; }
  .bento-hero, .bento-wide{ grid-column: auto; }
}

/* CLUBS PAGE */
.clubs-top{
  max-width: 980px;
  margin: 0 0 18px;
}
.clubs-heading{ margin: 0 0 8px; }
.clubs-lead{ margin: 0; line-height: 1.7; }

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 14px;
}

/* bento on clubs */
.clubs-bento{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.clubs-search{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom: 8px;
}
.clubs-search .input{ flex:1; }

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.chip{
  display:inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration:none;
  font-size: var(--text-sm);
  color: var(--text-color);
}
.chip:hover{ border-color: rgba(51,137,191,.45); }
.chip.active{
  background: rgba(51,137,191,.12);
  border-color: rgba(51,137,191,.28);
}

/* featured club cards w/ image */
.clubs-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.club-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.club-cover{
  height: 170px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.club-body{ padding: 16px; }
.club-title{ margin: 10px 0 6px; }
.club-desc{ margin: 0 0 12px; }
.club-actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* responsive */
@media (max-width: 980px){
  .clubs-bento{ grid-template-columns: 1fr; }
  .clubs-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .clubs-grid{ grid-template-columns: 1fr; }
  .section-head{ align-items:flex-start; flex-direction:column; }
}
