/* ================================================================
   DRACONIS FRIBOURG — Global Styles v3
   Fanclub HC Fribourg-Gottéron | draconis-fribourg.ch
   ================================================================ */
:root {
  --blue: #165A9E;
  --blue-deep: #0C3A6B;
  --blue-light: #1D6DB8;
  --blue-muted: rgba(22,90,158,0.08);
  --blue-border: rgba(22,90,158,0.15);
  --black: #1A1718;
  --black-pure: #0E0D0D;
  --white: #E6E6E6;
  --white-bright: #FFFFFF;
  --grey: #D9D9D9;
  --grey-mid: #999;
  --grey-dim: #666;
  --grey-dark: #333;
  --surface: #141213;
  --surface-raised: #1C1A1B;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.1);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black-pure); color: var(--white);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============ NAVIGATION ============ */
.nav {
  position: sticky; top: 0; z-index: 100; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(14,13,13,0.85);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-brand img { width: 36px; height: 36px; border-radius: 8px; transition: transform .3s var(--ease); }
.nav-brand:hover img { transform: scale(1.08); }
.nav-brand-text { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 3px; line-height: 1; }
.nav-brand-sub { font-size: 9px; letter-spacing: 3px; color: var(--grey-mid); font-family: 'Inter', sans-serif; font-weight: 400; text-transform: uppercase; display: block; }
.nav-center { display: flex; align-items: center; flex: 1; justify-content: center; }
.nav-menu { display: flex; gap: 32px; list-style: none; }
.nav-menu a { color: var(--grey-mid); font-size: 13px; font-weight: 500; letter-spacing: .3px; transition: color .25s; position: relative; padding: 4px 0; }
.nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1.5px; background: var(--blue-light); transition: width .3s var(--ease); }
.nav-menu a:hover { color: var(--white); }
.nav-menu a:hover::after, .nav-menu a.on::after { width: 100%; }
.nav-menu a.on { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-join { display: inline-block; padding: 8px 24px; background: var(--blue); color: var(--white-bright); font-size: 12px; font-weight: 600; letter-spacing: .5px; border: none; border-radius: 100px; cursor: pointer; transition: all .3s var(--ease); }
.nav-join:hover { background: var(--blue-light); box-shadow: 0 0 24px rgba(22,90,158,.25); transform: translateY(-1px); }

/* Hamburger */
.nav-ham { display: none; background: none; border: none; cursor: pointer; padding: 8px; width: 44px; height: 44px; position: relative; -webkit-tap-highlight-color: transparent; }
.nav-ham span { display: block; width: 20px; height: 1.5px; background: var(--white); position: absolute; left: 12px; transition: all .3s; }
.nav-ham span:nth-child(1) { top: 14px; }
.nav-ham span:nth-child(2) { top: 21px; }
.nav-ham span:nth-child(3) { top: 28px; }

/* Mobile Menu */
.mob-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: rgba(14,13,13,.97); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); z-index: 99; padding: 32px 24px; flex-direction: column; gap: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mob-menu.open { display: flex; }
.mob-menu a { font-size: 20px; font-family: 'Bebas Neue', sans-serif; letter-spacing: 3px; color: var(--grey-mid); padding: 18px 0; border-bottom: 1px solid var(--border); transition: all .3s; display: block; -webkit-tap-highlight-color: transparent; }
.mob-menu a:hover, .mob-menu a.on { color: var(--white); padding-left: 12px; }

/* ============ PAGE HERO (subpages) ============ */
.page-hero {
  padding: 140px 48px 64px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22,90,158,.04) 0%, var(--black-pure) 100%);
}
.page-hero::before {
  content: ''; position: absolute; left: -20%; top: -40%; width: 140%; height: 140%;
  background: radial-gradient(ellipse at 30% 0%, rgba(22,90,158,.06) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero .inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }

/* ============ SECTIONS ============ */
.sec { padding: 80px 48px; max-width: 1100px; margin: 0 auto; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--blue-light); margin-bottom: 16px; display: block; }
.sec h2, .page-hero h1 { font-family: 'Bebas Neue', sans-serif; letter-spacing: 2px; line-height: 1; margin-bottom: 20px; }
.sec h2 { font-size: clamp(28px, 4vw, 42px); }
.page-hero h1 { font-size: clamp(40px, 7vw, 72px); letter-spacing: 4px; line-height: .95; }
.page-hero h1 em { font-style: normal; color: var(--blue-light); }
.lead { font-size: 16px; font-weight: 300; color: var(--grey-mid); line-height: 1.8; max-width: 560px; }
.bg-subtle { background: var(--surface); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block; padding: 14px 36px; font-size: 14px; font-weight: 600;
  letter-spacing: .3px; border-radius: 100px; cursor: pointer;
  transition: all .3s var(--ease); text-align: center; border: none;
  background: var(--blue); color: var(--white-bright);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:hover { background: var(--blue-light); box-shadow: 0 4px 30px rgba(22,90,158,.25); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ============ TWO COL ============ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 48px; }
.two-col p { font-size: 15px; line-height: 1.8; color: var(--grey); margin-bottom: 16px; }
.img-box { aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); transition: border-color .3s; }
.img-box:hover { border-color: var(--blue-border); }
.img-box img { width: 100%; height: 100%; object-fit: cover; }

/* ============ FORMS ============ */
.form-wrap { padding: 40px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 4px; }
.field.wide { grid-column: 1 / -1; }
.field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey-mid); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: 10px;
  color: var(--white); font-family: 'Inter', sans-serif; font-size: 16px;
  outline: none; transition: all .25s; height: 50px;
  -webkit-appearance: none; appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,90,158,.1); }
.field input::placeholder, .field textarea::placeholder { color: var(--grey-dim); }
.field textarea { height: 120px; resize: none; }
.field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: var(--black); }

/* ============ EQUAL HEIGHT GRID ============ */
.eq-grid { display: grid; gap: 20px; margin-top: 40px; }
.eq-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.eq-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.eq-card {
  padding: 36px; background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: 16px; transition: all .35s var(--ease);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.eq-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0; transition: opacity .35s;
}
.eq-card:hover { border-color: var(--blue-border); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.25); }
.eq-card:hover::before { opacity: 1; }
.eq-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; margin-bottom: 10px; }
.eq-card p { font-size: 13px; line-height: 1.7; color: var(--grey-mid); flex: 1; }

/* ============ FOOTER ============ */
.ft { padding: 64px 48px 32px; border-top: 1px solid var(--border); background: var(--black-pure); }
.ft-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.ft-brand img { width: 48px; border-radius: 10px; margin-bottom: 16px; transition: transform .3s; }
.ft-brand img:hover { transform: scale(1.05); }
.ft-brand p { font-size: 13px; color: var(--grey-dim); line-height: 1.7; }
.ft-col h4 { font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: 2px; color: var(--white); margin-bottom: 20px; }
.ft-col a { display: block; color: var(--grey-dim); font-size: 13px; padding: 4px 0; transition: all .25s; position: relative; }
.ft-col a:hover { color: var(--white); padding-left: 6px; }
.ft-bottom { margin: 40px -48px 0; padding: 20px 48px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 11px; color: var(--grey-dim); }

/* ============ SOCIAL ICONS ============ */
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.soc-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; transition: all .25s var(--ease); -webkit-tap-highlight-color: transparent; }
.soc-btn:hover { border-color: var(--blue); background: var(--blue-muted); transform: translateY(-2px); }
.soc-btn svg { width: 20px; height: 20px; fill: var(--grey-mid); }
.soc-btn:hover svg { fill: var(--white); }

/* ============ SCROLL ANIMATE ============ */
.aos { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.aos.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   RESPONSIVE — TABLET
   ================================================================ */
@media (max-width: 1024px) {
  .nav { padding: 0 24px; }
  .nav-menu { gap: 20px; }
  .nav-menu a { font-size: 12px; }
  .page-hero { padding: 120px 32px 56px; }
  .sec { padding: 64px 32px; }
  .two-col { gap: 48px; }
  .ft-inner { gap: 24px; }
  .eq-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   RESPONSIVE — MOBILE
   ================================================================ */
@media (max-width: 768px) {
  .nav { padding: 0 16px; height: 56px; }
  .nav-menu, .nav-center { display: none; }
  .nav-ham { display: block; }
  .nav-brand-text { font-size: 17px; letter-spacing: 2px; }
  .nav-brand-sub { font-size: 8px; }
  .nav-brand img { width: 32px; height: 32px; }
  .nav-brand { gap: 10px; }
  .nav-join { display: none !important; }
  .nav-ham { order: 3; margin-left: auto; }
  .mob-menu { top: 56px; }

  .page-hero { padding: 100px 20px 40px; }
  .page-hero h1 { font-size: clamp(32px, 9vw, 48px); letter-spacing: 2px; }
  .lead { font-size: 14px; line-height: 1.7; }

  .sec { padding: 48px 20px; }
  .sec h2 { font-size: clamp(26px, 7vw, 36px); }
  .tag { font-size: 10px; letter-spacing: 2px; margin-bottom: 12px; }

  .two-col { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .two-col p { font-size: 14px; }

  .form-wrap { padding: 24px; border-radius: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .field input, .field textarea, .field select { font-size: 16px; padding: 12px 14px; height: 48px; }
  .field textarea { height: 100px; }

  .eq-grid.cols-2, .eq-grid.cols-4 { grid-template-columns: 1fr; }
  .eq-card { padding: 28px; }

  .btn { padding: 14px 28px; font-size: 14px; width: 100%; display: block; }

  .ft { padding: 48px 20px 24px; }
  .ft-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ft-brand { grid-column: 1 / -1; text-align: center; }
  .ft-brand img { margin: 0 auto 16px; }
  .ft-col { text-align: center; }
  .ft-col a { padding: 6px 0; }
  .ft-bottom { flex-direction: column; align-items: center; gap: 4px; text-align: center; margin: 40px -20px 0; padding: 20px 20px 0; }
  .social-row { justify-content: center; }
}

@media (max-width: 375px) {
  .nav { padding: 0 12px; }
  .nav-brand-text { font-size: 15px; }
  .page-hero { padding: 88px 16px 36px; }
  .sec { padding: 40px 16px; }
  .form-wrap { padding: 20px; }
  .ft-inner { grid-template-columns: 1fr; }
}
