:root{
      --black:#0b0b0b;
      --white:#ffffff;

      --gray-50:#f7f7f7;
      --gray-100:#f1f1f1;
      --gray-200:#e2e2e2;
      --gray-400:#b5b5b5;
      --gray-700:#3a3a3a;

      --orange:#e06b1a;
      --orange-dark:#c85f17;
      --orange-soft:#fff1e6;

      --max:1100px;
      --radius:18px;
      --shadow-soft: 0 12px 30px rgba(0,0,0,.10);
    }

    *{box-sizing:border-box}
    html,body{height:100%}
    body{
      margin:0;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
      color:var(--black);
      background:var(--white);
      line-height:1.55;
    }
    img{max-width:100%; display:block}
    a{color:inherit}
    .container{width:min(var(--max), calc(100% - 2rem)); margin-inline:auto}
    .muted{color:var(--gray-700)}
    section{padding:2.6rem 0}

/* Top bar */
    .topbar{
      background:var(--black);
      color:var(--gray-200);
      font-size:.9rem;
    }
    .topbar .inner{
      display:flex;
      gap:1rem;
      align-items:center;
      justify-content:space-between;
      padding:.65rem 0;
    }
    .topbar a{color:var(--gray-200); text-decoration:none}
    .topbar a:hover{color:var(--white)}
    .topbar .meta{display:flex; gap:1rem; flex-wrap:wrap}
    .topbar .meta span{opacity:.9}

    /* Header / Nav */
    header{
      position:sticky;
      top:0;
      z-index:50;
      background:rgba(11,11,11,.92);
      backdrop-filter: blur(10px);
      border-bottom:1px solid rgba(255,255,255,.08);
    }
    .nav{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:1rem;
      padding:.9rem 0;
    }
    .brand{
      display:flex;
      align-items:center;
      gap:.75rem;
      text-decoration:none;
      color:var(--white);
      white-space:nowrap;
      font-weight:700;
      letter-spacing:.2px;
    }
    .brand-mark{
      width:38px;
      height:38px;
      border-radius:10px;
      background:linear-gradient(145deg, #111, #000);
      border:1px solid rgba(255,255,255,.12);
      display:grid;
      place-items:center;
      box-shadow:0 6px 20px rgba(0,0,0,.35);
      font-size:.95rem;
    }

    .nav-cta{
      display:flex;
      align-items:center;
      gap:.75rem;
    }

    /* --- NAV: smooth hover + dropdowns --- */
.primary-nav .nav-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:1.1rem;
}

.primary-nav a{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  color:var(--gray-200);
  text-decoration:none;
  font-weight:650;
  font-size:.95rem;
  padding:.45rem .2rem;
  transition: color .18s ease, transform .18s ease;
  will-change: transform;
}

/* Animated underline */
.primary-nav a::after{
  content:"";
  position:absolute;
  left:.2rem;
  right:.2rem;
  bottom:.15rem;
  height:2px;
  border-radius:999px;
  background: var(--orange, #e06b1a);
  transform: scaleX(0);
  transform-origin:left;
  transition: transform .22s ease;
  opacity:.95;
}

/* Hover / focus animation */
.primary-nav a:hover,
.primary-nav a:focus-visible{
  color:var(--white);
  transform: translateY(-1px);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after{
  transform: scaleX(1);
}

/* Dropdown container */
.has-dropdown{
  position:relative;
}

/* Chevron subtle animation */
.has-dropdown .chev{
  font-size:.8rem;
  opacity:.85;
  transform: translateY(1px);
  transition: transform .18s ease, opacity .18s ease;
}

.has-dropdown:hover .chev,
.has-dropdown:focus-within .chev{
  transform: translateY(1px) rotate(180deg);
  opacity:1;
}

/* Dropdown panel */
.dropdown{
  position:absolute;
  top: 100%;
  left: 0;
  margin-top: .35rem;
  min-width: 220px;
  padding:.5rem;
  margin:0;
  list-style:none;

  background: rgba(11,11,11,.98);
  border:1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);

  opacity:0;
  transform: translateY(6px);
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 100;
}

/* Open on hover (desktop) + keyboard focus */
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}

/* Dropdown links */
.dropdown a{
  width:100%;
  padding:.65rem .6rem;
  border-radius: 12px;
  color: rgba(255,255,255,.9);
  font-weight:650;
  font-size:.92rem;
}

.dropdown a::after{ display:none; } /* remove underline inside dropdown */
.dropdown a:hover,
.dropdown a:focus-visible{
  background: rgba(255,255,255,.07);
  transform: none;
  color: var(--white);
}

/* Keep your existing mobile breakpoint behaviour */
@media (max-width: 980px){
  .primary-nav .nav-list{display:none;} /* you already hide desktop nav here */
}
.topbar-right{
  display:flex;
  align-items:center;
  gap:1rem;
}

.topbar-social{
  display:flex;
  gap:.45rem;
  margin-left:.5rem;
}

.topbar-social a{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  transition: background .15s ease, transform .15s ease;
}

.topbar-social a:hover{
  background:rgba(224,107,26,.25);
  transform: translateY(-1px);
}

.topbar-social svg{
  width:14px;
  height:14px;
  fill: rgba(255,255,255,.9);
}
@media (max-width: 560px){
  .topbar-social{
    display:none;
  }
}


    .btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:.5rem;
      padding:.7rem 1rem;
      border-radius:999px;
      border:1px solid rgba(255,255,255,.16);
      background:transparent;
      color:var(--white);
      text-decoration:none;
      font-weight:700;
      font-size:.95rem;
      transition: transform .15s ease, background .15s ease, border-color .15s ease;
      white-space:nowrap;
    }
    .btn:hover{transform: translateY(-1px); background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.26)}
    .btn.primary{
      background:var(--orange);
      color:var(--white);
      border-color:transparent;
    }

    .btn.primary:hover{
      background:var(--orange-dark);
    }

 .btn-orange{
  background: var(--orange);
  color: var(--white);
  border-color: transparent;
}

.btn-orange:hover{
  background: var(--orange-dark);
  color: var(--white);
}


    .burger{
      display:none;
      width:44px; height:44px;
      border-radius:12px;
      border:1px solid rgba(255,255,255,.14);
      background:rgba(255,255,255,.06);
      color:var(--white);
      cursor:pointer;
    }
    .burger:active{transform: translateY(1px)}

    /* Mobile nav */
    @media (max-width: 980px){
      nav ul{display:none}
      .burger{display:inline-grid; place-items:center}
    }
    .mobile-menu{
      display:none;
      border-top:1px solid rgba(255,255,255,.08);
      background:rgba(11,11,11,.92);
    }
    .mobile-menu.open{display:block}
    .mobile-menu a{
      display:block;
      padding:1rem 0;
      color:var(--gray-200);
      text-decoration:none;
      border-bottom:1px solid rgba(255,255,255,.08);
      font-weight:650;
    }
    .mobile-menu a:hover{color:var(--white)}
    .mobile-menu .container{padding-bottom:.25rem}

/* ================= HERO (NEW) ================= */

.hero{
  background:
    linear-gradient(180deg, rgba(11,11,11,.70), rgba(11,11,11,.88)),
    url("images/clubrulesimg.png");
  background-size:cover;
  background-position:center;
  color:var(--white);
  border-bottom:1px solid rgba(0,0,0,.08);
}

.hero .inner{
  max-width:1100px;
  margin:auto;
  padding:2.35rem 1rem 2.2rem;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}

.hero .kicker{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.35rem .75rem;
  border-radius:999px;
  background: rgba(224,107,26,.16);
  border:1px solid rgba(224,107,26,.28);
  color:#ffd7b8;
  font-weight:900;
  font-size:.9rem;
  width:max-content;
}

.hero h1{
  margin:.65rem 0 .4rem;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  letter-spacing:-.45px;
  line-height:1.12;
}

.hero p{
  margin:0;
  max-width:70ch;
  color:rgba(255,255,255,.86);
  font-weight:650;
}

.hero-actions{
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
  align-items:center;
}

.btn.ghost{
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  color: var(--white);
}

.btn.ghost:hover{
  background: rgba(255,255,255,.12);
}

/* ================= MAIN ================= */

main{
  padding:5rem 10rem 3.5rem;
}

/* ================= DOCUMENT ================= */

.document{
  max-width:var(--max);
  margin:auto;
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid var(--gray-200);
  padding:2.2rem 2.2rem 2.5rem;
}

/* Document Header */
.doc-head{
  border-bottom:1px solid var(--gray-200);
  padding-bottom:1.3rem;
  margin-bottom:2rem;
}

.rules-pdf-section{
  display:grid;
  gap:1rem;
}

.rules-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
  padding:1rem 1.1rem;
  border:1px solid var(--gray-200);
  border-radius:16px;
  background:linear-gradient(180deg, var(--gray-50), #fff);
}

.rules-actions{
  display:flex;
  gap:.7rem;
  flex-wrap:wrap;
  align-items:center;
}

.pdf-frame-wrap{
  border:1px solid var(--gray-200);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow: var(--shadow-soft);
}

.pdf-frame-wrap iframe{
  display:block;
  width:100%;
  min-height:1100px;
  border:0;
  background:#fff;
}

.btn.ghost-dark{
  background: rgba(11,11,11,.06);
  border:1px solid var(--gray-200);
  color: var(--black);
}

.btn.ghost-dark:hover{
  background: rgba(11,11,11,.10);
  border-color: var(--gray-400);
}

@media (max-width: 980px){
  .pdf-frame-wrap iframe{
    min-height:900px;
  }
}

@media (max-width: 620px){
  .rules-toolbar{
    padding:.9rem;
  }

  .rules-actions{
    width:100%;
  }

  .rules-actions .btn{
    width:100%;
  }

  .pdf-frame-wrap iframe{
    min-height:700px;
  }
}

.kicker{
  display:inline-block;
  background:var(--orange-soft);
  border:1px solid rgba(224,107,26,.25);
  color:var(--orange-dark);
  padding:.3rem .7rem;
  border-radius:999px;
  font-weight:900;
  font-size:.85rem;
  margin-bottom:.6rem;
}

h1{
  margin:0;
  font-size:2rem;
  letter-spacing:-.4px;
}

.lead{
  margin:.6rem 0 0;
  color:var(--gray-700);
  max-width:70ch;
  font-weight:650;
}

/* ================= RULES ================= */

.section{
  margin-bottom:2.2rem;
}

.section h2{
  margin:0 0 .4rem;
  font-size:1.25rem;
  letter-spacing:-.2px;
}

.section p{
  margin:.35rem 0;
  color:var(--gray-700);
  font-weight:650;
}

.section ul{
  margin:.6rem 0 0;
  padding-left:1.2rem;
  color:var(--gray-700);
}

.section li{
  margin:.4rem 0;
  font-weight:650;
}

/* ================= DOCUMENT FOOTER ACTIONS ================= */

.doc-actions{
  border-top:1px solid var(--gray-200);
  padding-top:1.5rem;
  margin-top:2rem;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
}

.note{
  color:var(--gray-700);
  font-weight:650;
}

/* Footer */
    /* --- FOOTER COMPLETE --- */
.site-footer{
  background:#050505;
  color:rgba(255,255,255,.88);
  border-top:1px solid rgba(255,255,255,.10);
}

.site-footer .container{
  padding:2.75rem 0 1.25rem;
}

.site-footer::before{
  content:"";
  display:block;
  height:3px;
  background:linear-gradient(
    90deg,
    rgba(224,107,26,0),
    rgba(224,107,26,.9),
    rgba(224,107,26,0)
  );
}

/* Layout */
.footer-top{
  display:grid;
  grid-template-columns:1.15fr 1.85fr;
  gap:2rem;
  align-items:start;
}

.footer-brand{
  display:flex;
  gap:1rem;
  align-items:flex-start;
}

.footer-mark{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:950;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}

.footer-brand p{
  margin:.45rem 0 0;
  max-width:50ch;
}

/* Social */
.footer-social{
  margin-top:.75rem;
  display:flex;
  gap:.6rem;
}

.footer-social a{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  transition: background .15s ease, transform .15s ease;
}

.footer-social a:hover{
  background:rgba(224,107,26,.25);
  transform: translateY(-1px);
}

.footer-social svg{
  width:18px;
  height:18px;
  fill: rgba(255,255,255,.9);
}


/* Columns */
.footer-cols{
  display:grid;
  grid-template-columns: 1fr 1.25fr; /* hours | map */
  gap: 1.75rem;
}


.footer-col h4{
  margin:0 0 .75rem;
  font-size:.95rem;
  color:var(--white);
}

.footer-col ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:.45rem;
}

.footer-col a{
  color:rgba(255,255,255,.78);
  text-decoration:none;
  font-weight:650;
}
.footer-col a:hover{
  color:var(--orange);
}

/* Opening hours */
.hours{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:.55rem;
}

.hours li{
  display:grid;
  grid-template-columns: 1fr auto; /* left label + right time */
  align-items:baseline;
  gap:1rem;
  padding:.35rem 0;
  border-bottom: 1px dashed rgba(255,255,255,.12);
}

.hours li:last-child{
  border-bottom:none;
}

.hours li span:first-child{
  color: rgba(255,255,255,.86);
  font-weight: 750;
}

.hours li span:last-child{
  color: rgba(255,255,255,.76);
  font-weight: 650;
  white-space:nowrap; /* prevents wrapping into weird shapes */
}

/* Map */
.footer-map{
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 10px 25px rgba(0,0,0,.35);
}
.footer-map iframe{
  width:100%;
  height:160px;
  border:0;
}

.address{
  margin-top:.5rem;
  font-size:.85rem;
}

/* Bottom */
.footer-bottom{
  margin-top:2rem;
  padding-top:1.25rem;
  border-top:1px solid rgba(255,255,255,.12);
  display:flex;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  font-size:.9rem;
  color:rgba(255,255,255,.65);
}

/* Back to top */
.back-to-top{
  color:var(--orange);
  font-weight:800;
  text-decoration:none;
}
.back-to-top:hover{
  text-decoration:underline;
}

/* Footer readability overrides */
.site-footer .muted{
  color: rgba(255,255,255,.70) !important;
}

.site-footer p,
.site-footer li,
.site-footer span{
  color: rgba(255,255,255,.78);
}

.site-footer .footer-bottom{
  color: rgba(255,255,255,.68);
}

.site-footer .address{
  color: rgba(255,255,255,.72);
}

/* =========================
   RESPONSIVE — Club Rules
   Paste at VERY END of clubrules.css
   ========================= */

/* Tablet and down */
@media (max-width: 980px){
  /* Topbar: stop cramping */
  .topbar .inner{
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
  }

  /* Brand: allow wrap instead of overflow */
  .brand{
    white-space: normal;
    max-width: 78%;
    line-height: 1.15;
  }

  /* Main padding: remove desktop huge side padding */
  main{
    padding: 2.25rem 0 2.75rem;
  }

  /* Document spacing: less padding so content fits */
  .document{
    padding: 1.75rem 1.5rem 2rem;
  }

  /* Hero inner spacing */
  .hero .inner{
    padding: 2rem 1rem 1.85rem;
  }

  /* Footer collapses */
  .footer-top{ grid-template-columns: 1fr; }
  .footer-cols{ grid-template-columns: 1fr; }
  .footer-map iframe{ height: 220px; }
}

/* Phone */
@media (max-width: 620px){
  /* Slightly tighter container on very small screens */
  .container{ width: min(var(--max), calc(100% - 1.25rem)); }

  /* Hero text scales */
  .hero h1{
    font-size: clamp(1.45rem, 6.2vw, 2rem);
  }
  .hero p{
    font-size: .98rem;
  }

  /* Document padding smaller */
  .document{
    padding: 1.25rem 1.1rem 1.5rem;
    border-radius: 16px;
  }

  /* Headline in document */
  .doc-head h1{
    font-size: 1.6rem;
    line-height: 1.15;
  }

  /* Section headings slightly smaller */
  .section h2{
    font-size: 1.1rem;
  }

  /* Actions stack neatly */
  .doc-actions{
    flex-direction: column;
    align-items: flex-start;
  }

  /* Footer bottom stacks */
  .footer-bottom{
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
  }

  /* Opening hours: avoid cramped 2-column rows */
  .hours li{
    grid-template-columns: 1fr;
    gap: .25rem;
  }
  .hours li span:last-child{
    white-space: normal;
  }
}

@media print{
  .topbar,
  header,
  .hero,
  .site-footer,
  .rules-toolbar,
  .doc-actions{
    display:none !important;
  }

  body{
    background:#fff;
  }

  main{
    padding:0 !important;
  }

  .document{
    box-shadow:none;
    border:none;
    padding:0;
    max-width:none;
  }

  .doc-head{
    display:none;
  }

  .pdf-frame-wrap{
    border:none;
    box-shadow:none;
    border-radius:0;
  }

  .pdf-frame-wrap iframe{
    min-height:100vh !important;
    height:100vh !important;
  }
}
