/* ===================================================
   sportsmedical-mallorca.es — Global Stylesheet
   Dr. med. Stefan Heidl · Sports Medicine Mallorca
   Colors: Navy #1a2744, Gold #c8a94a, White #ffffff
   =================================================== */

:root {
  --navy: #1a2744;
  --navy-dark: #111c33;
  --navy-light: #243258;
  --gold: #c8a94a;
  --gold-light: #dfc06a;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --light-gray: #eeecea;
  --text-dark: #1a2744;
  --text-mid: #4a5568;
  --text-light: #718096;
  --font-main: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(26,39,68,0.12);
  --shadow-sm: 0 2px 8px rgba(26,39,68,0.08);
  --transition: 0.2s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-mid); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.gold { color: var(--gold); }
.text-center { text-align: center; }

/* === LAYOUT === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 72px 0;
}
.section-sm {
  padding: 48px 0;
}
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--white);
}
.section-dark p {
  color: rgba(255,255,255,0.8);
}
.section-light {
  background: var(--off-white);
}

/* === SECTION HEADER === */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-header h2 {
  margin-bottom: 16px;
}
.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.divider {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 39, 68, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200,169,74,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo .logo-super {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-logo .logo-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-logo .logo-sub {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
}
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700 !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,169,74,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-emergency {
  background: #d63031;
  color: var(--white);
}
.btn-emergency:hover {
  background: #b02020;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(214,48,49,0.4);
}
.btn-sm {
  padding: 10px 22px;
  font-size: 0.82rem;
}

/* === CARDS === */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-body {
  padding: 28px;
}

/* === SPORT CARDS (homepage grid) === */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1000px) {
  .sports-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sport-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  border: 2px solid var(--light-gray);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.sport-card:hover {
  border-color: var(--gold);
  background: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.sport-card:hover .sport-card-title { color: var(--white); }
.sport-card:hover .sport-card-sub { color: var(--gold); }
.sport-card:hover .sport-icon { background: rgba(200,169,74,0.2); }
.sport-icon {
  width: 64px; height: 64px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 14px;
  transition: var(--transition);
}
.sport-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  transition: var(--transition);
}
.sport-card-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  transition: var(--transition);
}

/* === CONTACT BAR === */
.contact-bar {
  background: var(--navy-dark);
  padding: 14px 0;
  border-top: 2px solid var(--gold);
}
.contact-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.contact-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.88rem;
}
.contact-bar-item strong {
  color: var(--gold);
  font-size: 1.05rem;
}
.contact-bar-item a {
  color: var(--white);
  transition: color var(--transition);
}
.contact-bar-item a:hover { color: var(--gold); }

/* === FOOTER === */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.footer-brand .logo-sub {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  line-height: 1.7;
}
footer h4 {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
footer ul li {
  margin-bottom: 8px;
}
footer ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color var(--transition);
}
footer ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--gold); }

/* === LEGAL POPUP === */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 28, 51, 0.76);
  backdrop-filter: blur(6px);
}
.legal-modal.open {
  display: flex;
}
.legal-modal-dialog {
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border: 1px solid rgba(200,169,74,0.35);
}
.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}
.legal-modal-header h2 {
  color: var(--white);
  font-size: 1.35rem;
  margin: 0;
}
.legal-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}
.legal-modal-close:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.legal-modal-body {
  padding: 28px 30px 32px;
  overflow-y: auto;
  max-height: calc(min(82vh, 760px) - 82px);
}
.legal-modal-body h3 {
  font-size: 1rem;
  margin: 22px 0 8px;
}
.legal-modal-body h3:first-child {
  margin-top: 0;
}
.legal-modal-body p,
.legal-modal-body li {
  color: var(--text-mid);
  font-size: 0.94rem;
}
.legal-modal-body ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0 0 16px;
}
.legal-modal-body a {
  color: var(--navy);
  font-weight: 700;
}

/* === HERO BASE === */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,39,68,0.92) 50%, rgba(26,39,68,0.7) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(200,169,74,0.4);
  border-radius: 4px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  margin-bottom: 36px;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stat {
  border-left: 2px solid var(--gold);
  padding-left: 16px;
}
.hero-stat .num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* === TRUST BADGES === */
.trust-bar {
  background: var(--gold);
  padding: 16px 0;
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
}
.trust-item .ti-icon { font-size: 1.2rem; }

/* === FEATURE BLOCKS === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.feature-item {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--off-white);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.feature-item h4 {
  margin-bottom: 8px;
}

/* === INJURY LIST === */
.injury-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.injury-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-mid);
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
}
.injury-list li:last-child { border-bottom: none; }
.injury-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* === EMERGENCY SECTION === */
.emergency-block {
  background: #d63031;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--white);
}
.emergency-block h3 { color: var(--white); margin-bottom: 8px; }
.emergency-block p { color: rgba(255,255,255,0.9); margin-bottom: 20px; }
.emergency-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

/* === SUBPAGE HERO (smaller) === */
.page-hero {
  background: var(--navy);
  padding: 120px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
}

/* === TWO COL LAYOUT === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* === BREADCRUMB === */
.breadcrumb {
  background: var(--off-white);
  padding: 12px 0;
  font-size: 0.82rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { margin: 0 8px; }

/* === MOBILE NAV === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 2px solid var(--gold);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { gap: 24px; }
  .sports-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-bar-inner { gap: 20px; flex-direction: column; }
  .trust-bar-inner { gap: 20px; }
}

/* === RANDOM GALLERY (shared) === */
.rgallery { position: relative; }
.gallery-mosaic { display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:165px; grid-auto-flow:dense; gap:10px; }
.gallery-mosaic:empty { min-height:340px; }
.g-item { position:relative; overflow:hidden; border-radius:var(--radius); cursor:pointer; background:var(--navy); display:block; }
.g-item img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .45s ease; }
.g-item:hover img { transform:scale(1.06); }
.g-2x2 { grid-column:span 2; grid-row:span 2; }
.g-2x1 { grid-column:span 2; }
.g-1x2 { grid-row:span 2; }
@media (max-width:900px){ .gallery-mosaic{ grid-template-columns:repeat(3,1fr); grid-auto-rows:150px; } }
@media (max-width:600px){ .gallery-mosaic{ grid-template-columns:repeat(2,1fr); grid-auto-rows:128px; } .g-2x2{ grid-row:span 2; } }
.lb-overlay{ position:fixed; inset:0; background:rgba(10,16,30,0.93); display:none; align-items:center; justify-content:center; z-index:3000; padding:30px; }
.lb-overlay.open{ display:flex; }
.lb-overlay img{ max-width:92vw; max-height:88vh; border-radius:6px; box-shadow:0 24px 70px rgba(0,0,0,.55); }
.lb-close{ position:absolute; top:18px; right:28px; color:#fff; font-size:2.6rem; line-height:1; font-weight:300; cursor:pointer; opacity:.85; }
.lb-nav{ position:absolute; top:50%; transform:translateY(-50%); color:#fff; font-size:2.6rem; cursor:pointer; padding:8px 18px; user-select:none; opacity:.8; }
.lb-prev{ left:6px; } .lb-next{ right:6px; }
.lb-close:hover,.lb-nav:hover{ opacity:1; }

/* === FULL MENU / BURGER (shared) === */
.nav-logo { margin-right: auto; }
.nav-toggle { display: none !important; }   /* replaced by full burger menu */
.menu-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 32px; height: 32px; padding: 0 8px; margin-left: 10px; background: transparent; border: 1px solid rgba(200,169,74,0.4); border-radius: 6px; cursor: pointer; transition: var(--transition); }
.menu-burger:hover { border-color: var(--gold); background: rgba(200,169,74,0.12); }
.menu-burger span { display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.menu-burger:hover span { background: var(--gold); }

.menu-overlay { position: fixed; inset: 0; z-index: 2500; display: none; }
.menu-overlay.open { display: block; }
.menu-backdrop { position: absolute; inset: 0; background: rgba(17,28,51,0.62); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s ease; }
.menu-overlay.open .menu-backdrop { opacity: 1; }
.menu-drawer { position: absolute; top: 0; right: 0; height: 100%; width: min(370px, 87vw); background: var(--navy-dark); border-left: 3px solid var(--gold); box-shadow: -14px 0 44px rgba(0,0,0,0.45); transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; padding: 22px 26px 44px; }
.menu-overlay.open .menu-drawer { transform: translateX(0); }
.menu-drawer .md-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.menu-drawer .md-brand { font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--white); }
.menu-drawer .md-brand small { display: block; font-size: 0.62rem; letter-spacing: 2px; color: var(--gold); font-weight: 600; margin-top: 2px; }
.menu-drawer .md-close { flex-shrink: 0; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; background: transparent; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: var(--transition); }
.menu-drawer .md-close:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.menu-drawer h5 { color: var(--gold); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; margin: 24px 0 6px; }
.menu-drawer a.md-link { display: block; color: rgba(255,255,255,0.85); font-size: 0.95rem; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.08); transition: var(--transition); }
.menu-drawer a.md-link:hover { color: var(--gold); padding-left: 6px; }
.menu-drawer a.md-link.active { color: var(--gold); font-weight: 700; }
.menu-drawer .md-emergency { display: block; text-align: center; margin-top: 26px; background: #d63031; color: #fff; padding: 14px; border-radius: var(--radius); font-weight: 700; letter-spacing: 0.3px; transition: var(--transition); }
.menu-drawer .md-emergency:hover { background: #b02020; }

/* === LANGUAGE SWITCHER (shared) === */
.lang-switch { position: relative; display: inline-flex; }
.lang-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; margin-left: 10px; background: transparent; border: 1px solid rgba(200,169,74,0.4); border-radius: 6px; color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.lang-btn:hover { border-color: var(--gold); background: rgba(200,169,74,0.12); color: var(--gold); }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 2400; width: min(360px, 90vw); max-height: min(70vh, 520px); overflow-y: auto; background: var(--navy-dark); border: 1px solid rgba(200,169,74,0.35); border-top: 3px solid var(--gold); border-radius: 8px; box-shadow: 0 18px 50px rgba(0,0,0,0.45); padding: 12px; display: none; grid-template-columns: 1fr 1fr; gap: 2px; }
.lang-menu.open { display: grid; }
.lang-menu .lang-link { display: block; color: rgba(255,255,255,0.85); font-size: 0.9rem; padding: 9px 11px; border-radius: 5px; transition: var(--transition); }
.lang-menu .lang-link:hover { background: rgba(200,169,74,0.14); color: var(--gold); }
@media (max-width: 480px) { .lang-menu { grid-template-columns: 1fr; } }

/* === COOKIE CONSENT (shared) === */
.cookie-banner { position: fixed; left: 24px; bottom: 24px; z-index: 2600; width: min(430px, calc(100vw - 48px)); background: var(--white); border-radius: var(--radius); box-shadow: 0 18px 55px rgba(0,0,0,0.30); border-top: 4px solid var(--gold); padding: 26px 26px 22px; display: none; }
.cookie-banner.open { display: block; }
.cookie-banner h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.3rem; }
.cookie-banner p { color: var(--text-mid); font-size: 0.9rem; margin-bottom: 18px; }
.cookie-banner a.cookie-choose { color: var(--navy); font-weight: 700; text-decoration: underline; }
.cookie-banner a.cookie-choose:hover { color: var(--gold); }
.cookie-banner-actions { display: flex; gap: 12px; }
.cookie-banner-actions .cookie-btn { flex: 1; }

.cookie-btn { padding: 13px 20px; border-radius: var(--radius); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.5px; text-transform: uppercase; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.cookie-accept { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.cookie-accept:hover { background: var(--gold-light); }
.cookie-reject { background: var(--white); color: var(--navy); border-color: var(--light-gray); }
.cookie-reject:hover { border-color: var(--navy); }
.cookie-save { background: var(--navy); color: var(--white); border-color: var(--navy); width: 100%; margin-top: 14px; }
.cookie-save:hover { background: var(--navy-dark); }

.cookie-modal { position: fixed; inset: 0; z-index: 2600; display: none; align-items: center; justify-content: center; padding: 24px; }
.cookie-modal.open { display: flex; }
.cookie-backdrop { position: absolute; inset: 0; background: rgba(17,28,51,0.76); backdrop-filter: blur(6px); }
.cookie-dialog { position: relative; width: min(640px, 100%); max-height: min(86vh, 760px); background: var(--white); border-radius: var(--radius); box-shadow: 0 24px 70px rgba(0,0,0,0.35); border: 1px solid rgba(200,169,74,0.35); overflow: hidden; display: flex; flex-direction: column; }
.cookie-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; background: var(--navy); border-bottom: 3px solid var(--gold); flex-shrink: 0; }
.cookie-dialog-head h2 { color: var(--white); font-size: 1.35rem; margin: 0; }
.cookie-close { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.35); border-radius: 50%; background: transparent; color: var(--white); font-size: 1.45rem; line-height: 1; cursor: pointer; transition: var(--transition); }
.cookie-close:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.cookie-dialog-body { padding: 26px 28px 30px; overflow-y: auto; }
.cookie-intro { color: var(--text-mid); font-size: 0.92rem; margin-bottom: 8px; }
.cookie-intro a.cookie-privacy { color: var(--navy); font-weight: 700; text-decoration: underline; }
.cookie-intro a.cookie-privacy:hover { color: var(--gold); }
.cookie-cat { padding: 20px 0; border-top: 1px solid var(--light-gray); }
.cookie-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.cookie-cat-head h4 { color: var(--navy); font-size: 1rem; margin: 0; }
.cookie-cat p { color: var(--text-light); font-size: 0.85rem; margin: 0; }
.cookie-dialog-actions { display: flex; gap: 12px; margin-top: 24px; }
.cookie-dialog-actions .cookie-btn { flex: 1; }

.cookie-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider { position: absolute; inset: 0; background: #cbd2dc; border-radius: 26px; transition: var(--transition); cursor: pointer; }
.cookie-slider::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: var(--transition); }
.cookie-switch input:checked + .cookie-slider { background: var(--gold); }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(20px); }
.cookie-switch input:disabled + .cookie-slider { opacity: 0.6; cursor: not-allowed; }
@media (max-width: 520px) { .cookie-banner { left: 16px; right: 16px; bottom: 16px; width: auto; } .cookie-dialog-actions { flex-direction: column; } }

/* === NARROW PHONES (<=400px): keep the nav bar on one tidy row === */
@media (max-width: 400px) {
  .nav-inner { padding: 0 14px; }
  .nav-logo .logo-super,
  .nav-logo .logo-title,
  .nav-logo .logo-sub { white-space: nowrap; }
  .nav-logo .logo-super { font-size: 0.56rem; letter-spacing: 1.2px; }
  .nav-logo .logo-title { font-size: 0.76rem; letter-spacing: 0.4px; }
  .nav-logo .logo-sub { font-size: 0.58rem; letter-spacing: 1.2px; }
  /* collapse the wide "Language" button to a compact globe icon */
  .lang-btn { width: 38px; height: 38px; padding: 0; margin-left: 8px; font-size: 0; justify-content: center; }
  .lang-btn::before { content: "\1F310"; font-size: 1.15rem; line-height: 1; }
  .menu-burger { width: 40px; height: 38px; padding: 8px 9px; margin-left: 8px; }
}
