/* ===== Variables ===== */
:root {
  --teal: #0a5c6e;
  --teal-dark: #064050;
  --teal-light: #1a8a9e;
  --saffron: #ff9933;
  --green: #138808;
  --navy: #0a2540;
  --white: #ffffff;
  --off-white: #f7f9fb;
  --gray-100: #eef2f6;
  --gray-200: #d8e0e8;
  --gray-600: #5a6a7a;
  --gray-800: #2d3748;
  --shadow-sm: 0 2px 8px rgba(10, 92, 110, 0.08);
  --shadow-md: 0 8px 30px rgba(10, 92, 110, 0.12);
  --shadow-lg: 0 20px 60px rgba(10, 92, 110, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --ticker-height: 36px;
  --logo-size: 92px;
  --nav-pad-y: 14px;
  --nav-height: calc(var(--logo-size) + (var(--nav-pad-y) * 2));
  --header-total: calc(var(--ticker-height) + var(--nav-height));
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-total); width: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
main { width: 100%; max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: min(1140px, 92vw); margin: 0 auto; }

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-logo {
  width: 140px;
  margin: 0 auto 24px;
  animation: logoPulse 1.5s ease-in-out infinite;
}
.preloader-bar {
  width: 160px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}
.preloader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--saffron), var(--teal-light), var(--green));
  border-radius: 3px;
  animation: loadBar 1.8s ease forwards;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(26, 138, 158, 0.5)); }
}
@keyframes loadBar { to { width: 100%; } }

/* ===== Sky Layer ===== */
.sky-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bird {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0.06;
  animation: flyAcross linear infinite;
}
.bird-1 { top: 12%; animation-duration: 28s; animation-delay: 0s; }
.bird-2 { top: 28%; animation-duration: 35s; animation-delay: -8s; font-size: 1rem; }
.bird-3 { top: 55%; animation-duration: 22s; animation-delay: -14s; font-size: 0.9rem; }
.bird-4 { top: 72%; animation-duration: 40s; animation-delay: -20s; }
.bird-5 { top: 88%; animation-duration: 30s; animation-delay: -5s; font-size: 1.4rem; }

@keyframes flyAcross {
  0% { left: -5%; transform: translateY(0) scaleX(1); }
  25% { transform: translateY(-20px) scaleX(1); }
  50% { transform: translateY(10px) scaleX(1); }
  75% { transform: translateY(-15px) scaleX(1); }
  100% { left: 105%; transform: translateY(0) scaleX(1); }
}

/* ===== Header ===== */
.top-ticker {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ticker-wrap {
  overflow: hidden;
  width: 100%;
}
.ticker-content {
  display: flex;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-content span {
  flex-shrink: 0;
  padding: 9px 48px 9px 0;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ticker-content span::before {
  content: '★';
  margin-right: 14px;
  color: var(--saffron);
  font-size: 0.65rem;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-content { animation: none; }
  .ticker-wrap { overflow-x: auto; }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 37, 64, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--transition);
  padding: 0;
  overflow: visible;
}
.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 28px;
  padding: var(--nav-pad-y) 0;
  min-height: var(--nav-height);
  overflow: visible;
}
.header.scrolled .nav {
  padding: var(--nav-pad-y) 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  grid-column: 1;
  justify-self: start;
}
.nav-brand-text {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}
.nav-logo-wrap {
  width: var(--logo-size);
  height: var(--logo-size);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.nav-logo {
  width: 110%;
  height: 110%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}
.nav-drawer {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 100%;
}
.nav-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  flex-shrink: 0;
}
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
}
.nav-menu-contact { display: none; }
.nav-drawer-brand { display: none; }
.nav-link {
  color: rgba(255,255,255,0.88);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 10px;
  border-radius: 8px;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--saffron);
  transition: width var(--transition), left var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { width: 60%; left: 20%; }

.nav-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  flex-shrink: 0;
  background: rgba(255, 153, 51, 0.15);
  color: var(--saffron);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 8px;
  border: 1px solid rgba(255, 153, 51, 0.45);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.nav-admin-btn:hover {
  background: var(--saffron);
  color: var(--gray-800);
  border-color: var(--saffron);
}
.nav-admin-btn svg { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 37, 64, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.nav-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(10, 92, 110, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(10, 92, 110, 0.45); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-accent {
  background: linear-gradient(135deg, var(--saffron), #e88a2a);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255, 153, 51, 0.35);
  white-space: nowrap;
}
.btn-sm { padding: 10px 22px; font-size: 0.88rem; }
.btn-outline-dark {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline-dark:hover {
  background: var(--teal);
  color: var(--white);
}
.btn-full { width: 100%; justify-content: center; border: none; font-family: var(--font-sans); }

/* ===== Slider ===== */
.slider-section {
  padding-top: var(--header-total);
  background: var(--white);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  height: min(520px, 75vh);
  overflow: hidden;
  border-radius: 0;
}
.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 58% 42%;
  width: 100%;
  max-width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.slide-image {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-width: 0;
  width: 100%;
}
.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 6s ease;
}
.slide.active .slide-image img { transform: scale(1); }

.slide-panel {
  background: var(--teal);
  color: var(--white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.slide-panel.panel-alt { background: #3d5a45; }
.slide-panel.panel-green { background: var(--teal-dark); }

.slide-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
  margin-bottom: 12px;
}
.slide-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}
.slide-text {
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.9;
  margin-bottom: 28px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.slide-btn {
  display: inline-block;
  align-self: flex-start;
  padding: 12px 28px;
  background: var(--saffron);
  color: var(--gray-800);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.slide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  background: #ffaa44;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--teal-dark);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s ease, transform 0.3s ease;
}
.slider-arrow:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.08);
}
.slider-prev { left: 20px; right: auto; }
.slider-next { right: 20px; left: auto; }

/* Desktop: keep both arrows on the image side */
@media (min-width: 993px) {
  .slider-next {
    left: calc(58% - 64px);
    right: auto;
  }
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 29%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
.dot.active,
.dot:hover {
  background: var(--white);
  transform: scale(1.15);
}

/* ===== Page Sections ===== */
.page-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-light);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--teal-dark);
  font-weight: 700;
}
.section-line {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--green));
  margin: 14px auto 0;
  border-radius: 2px;
}

/* Inner pages */
.inner-page main {
  padding-top: var(--header-total);
}

/* 12-column grid */
.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.col-12 { grid-column: span 12; }
.col-11 { grid-column: span 11; }
.col-10 { grid-column: span 10; }
.col-9 { grid-column: span 9; }
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.col-2 { grid-column: span 2; }
.col-1 { grid-column: span 1; }

/* About */
.about-section { background: var(--white); }
.about-page-section { background: var(--white); }
.about-page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a4fa0;
}
.about-page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/about-banner.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
}
.about-page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 48px 0;
}
.about-page-head {
  text-align: left;
  max-width: 480px;
}
.about-page-head .section-label {
  color: rgba(255, 255, 255, 0.85);
}
.about-page-head .section-title {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 40, 100, 0.35);
}
.about-page-head .section-line {
  margin-left: 0;
  background: linear-gradient(90deg, #ff9933, #fff, #138808);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.about-page-row {
  margin-top: 8px;
}
.about-page-content {
  border-left: 3px solid #0073aa;
  padding: 8px 0 8px 28px;
  max-width: 100%;
}
.about-page-content p {
  color: #444;
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 18px;
  text-align: left;
}
.about-page-content p:last-child { margin-bottom: 0; }
.about-page-content strong {
  color: #222;
  font-weight: 700;
}
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.95);
  padding: 8px 14px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}
.about-badge img { width: 32px; height: 32px; border-radius: 50%; }
.about-badge span { font-size: 0.8rem; font-weight: 600; color: var(--teal-dark); }
.about-content p {
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.8;
  text-align: justify;
}
.about-content strong { color: var(--teal-dark); }
.about-highlight {
  font-size: 1.05rem;
  color: var(--teal) !important;
  margin-bottom: 24px !important;
}
.about-highlight em { font-style: normal; color: var(--saffron); font-weight: 600; }
.about-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Race Results */
.results-section { background: var(--off-white); }
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}
.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.result-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-light);
}
.result-card:hover::before { transform: scaleX(1); }
.result-card.featured {
  background: linear-gradient(160deg, var(--teal-dark), var(--teal));
  color: var(--white);
  border-color: transparent;
}
.result-card.featured .result-year { color: var(--saffron); }
.result-card.featured p { color: rgba(255,255,255,0.85); }
.result-card.featured .result-link { color: var(--saffron); }
.result-year {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 8px;
}
.result-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.result-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.65;
}
.result-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--teal);
}

/* Race results page */
.results-page-section { background: var(--off-white); }
.results-page-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.7;
}
.result-detail-section { background: var(--off-white); }
.result-detail-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 32px;
}
.result-back {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--teal);
  font-size: 0.92rem;
  transition: color 0.25s ease;
}
.result-back:hover { color: var(--saffron); }
.result-detail-bar p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 0;
}

/* Year race event cards */
.race-event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.race-event-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(10, 37, 64, 0.08);
  border: 1px solid rgba(10, 92, 110, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.race-event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(10, 37, 64, 0.14);
}
.race-event-media {
  position: relative;
  overflow: hidden;
}
.race-event-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.race-event-card:hover .race-event-media img {
  transform: scale(1.06);
}
.race-event-media .place-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  margin: 0;
  color: #fff;
  background: rgba(255, 153, 51, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.race-event-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.race-event-body time {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0073aa;
  margin-bottom: 8px;
}
.race-event-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--teal-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}
.race-event-body .place-meta {
  margin-bottom: 14px;
}
.race-event-link {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
}
.race-event-card:hover .race-event-link { color: var(--saffron); }

/* Full race detail - image + 12-col description */
.race-full-section { background: var(--white); }
.race-full-article {
  max-width: 100%;
  padding: 8px 0 20px;
}
.race-full-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.race-full-header time {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0073aa;
  margin-bottom: 10px;
}
.race-full-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--teal-dark);
  margin-bottom: 10px;
  line-height: 1.25;
}
.race-full-header .place-badge {
  margin-bottom: 12px;
  color: #fff;
  background: #0073aa;
}
.race-full-header .place-meta {
  font-size: 1rem;
  margin-bottom: 0;
}
.race-full-body {
  margin: 0 0 32px;
  border-left: 3px solid #0073aa;
  padding: 4px 0 4px 24px;
}
.race-full-body p {
  color: #444;
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 18px;
  text-align: left;
}
.race-full-body p:last-child { margin-bottom: 0; }
.race-full-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.race-fact {
  background: var(--off-white);
  border-radius: 10px;
  padding: 14px 16px;
  border-left: 3px solid #0073aa;
}
.race-fact span {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-bottom: 4px;
}
.race-fact strong {
  color: var(--teal-dark);
  font-size: 0.95rem;
}

.result-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.result-detail-card {
  background: var(--white);
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 92, 110, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.result-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.result-detail-card.featured-place {
  background: linear-gradient(160deg, var(--teal-dark), var(--teal));
  color: var(--white);
  border: none;
}
.result-detail-card.featured-place .place-meta,
.result-detail-card.featured-place p { color: rgba(255,255,255,0.88); }
.result-detail-card.featured-place h3 { color: var(--white); }
.place-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--saffron);
  background: rgba(255, 153, 51, 0.15);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.result-detail-card.featured-place .place-badge {
  background: rgba(255, 153, 51, 0.25);
  color: var(--saffron);
}
.result-detail-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--teal-dark);
  margin-bottom: 6px;
}
.place-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 10px;
}
.result-detail-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}
.result-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}
/* Breeders */
.breeders-section { background: var(--white); }
.breeders-text p {
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.8;
  text-align: justify;
}
.pedigree-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}
.pedigree-tags .tag {
  padding: 8px 16px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-dark);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.pedigree-tags .tag:hover {
  transform: translateY(-2px);
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.breeders-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.breeder-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease;
}
.breeder-item:hover { transform: translateY(-4px) scale(1.02); }
.breeder-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.breeder-item span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

/* What's Special */
.special-section { background: var(--off-white); }
.special-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}
.special-content { grid-column: span 6; }
.special-video { grid-column: span 6; }
.special-content p {
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.8;
  text-align: justify;
}
.special-content p:last-child { margin-bottom: 0; }
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--navy);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.special-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.special-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.special-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.special-icon { font-size: 2rem; margin-bottom: 12px; }
.special-item h3 {
  font-family: var(--font-serif);
  color: var(--teal-dark);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.special-item p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.65; }
.special-visit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  border-radius: var(--radius-lg);
  color: var(--white);
}
.special-visit p { opacity: 0.92; font-size: 0.95rem; flex: 1; }

/* Gallery */
.gallery-section { background: var(--white); }
.gallery-head { margin-bottom: 40px; }
.gallery-head .section-title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  letter-spacing: 0.01em;
}
.gallery-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-card:hover img { transform: scale(1.04); }
.gallery-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}
.gallery-more {
  text-align: center;
  margin-top: 36px;
}

/* Gallery page */
.gallery-page-section {
  background: linear-gradient(180deg, #f7f9fb 0%, #fff 40%);
}
.gallery-page-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.7;
}
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.gallery-page-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(10, 37, 64, 0.08);
  border: 1px solid rgba(10, 92, 110, 0.08);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-page-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(10, 37, 64, 0.14);
}
.gallery-page-card-media {
  position: relative;
  overflow: hidden;
}
.gallery-page-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.gallery-page-card:hover .gallery-page-card-media img {
  transform: scale(1.08);
}
.gallery-page-card-body {
  padding: 18px 20px 22px;
  flex: 1;
}
.gallery-page-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0073aa;
  background: rgba(0, 115, 170, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.gallery-page-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--teal-dark);
  margin-bottom: 8px;
}
.gallery-page-card-body p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* Blog */
.blog-section { background: var(--off-white); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-tile {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.blog-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.blog-tile-image {
  display: block;
  overflow: hidden;
}
.blog-tile-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-tile:hover .blog-tile-image img { transform: scale(1.05); }
.blog-tile-body { padding: 22px 24px 26px; }
.blog-tile-date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-light);
  margin-bottom: 10px;
}
.blog-tile-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--teal-dark);
  margin-bottom: 10px;
  line-height: 1.35;
}
.blog-tile-title a {
  transition: color 0.25s ease;
}
.blog-tile-title a:hover { color: var(--teal); }
.blog-tile-desc {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 14px;
}
.blog-tile-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--saffron);
  transition: color 0.25s ease;
}
.blog-tile-link:hover { color: var(--teal); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox p {
  color: var(--white);
  margin-top: 16px;
  font-size: 0.95rem;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.lightbox-close:hover { opacity: 1; }

/* Contact */
.contact-section { background: var(--off-white); }
.contact-page-section {
  background: var(--white);
  padding-bottom: 0;
}
.contact-page-head {
  text-align: left;
  margin-bottom: 28px;
}
.contact-heading {
  color: #0073aa;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2rem);
}
.contact-page-head .section-line { display: none; }

.contact-top-row {
  align-items: start;
  margin-bottom: 8px;
}
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-right: 12px;
}
.contact-flag img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.contact-loft-name {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #0073aa;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.contact-address-text {
  font-size: 1rem;
  color: var(--gray-800);
  line-height: 1.75;
  margin-bottom: 22px;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-channel {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  color: var(--gray-800);
  font-weight: 500;
  transition: color 0.25s ease, transform 0.25s ease;
}
.contact-channel:hover {
  color: #0073aa;
  transform: translateX(4px);
}
.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.contact-icon-phone { background: #0073aa; }
.contact-icon-wa { background: #25d366; }
.contact-icon-mail { background: #0073aa; }

.contact-map-col { min-width: 0; }
.contact-map {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--gray-100);
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.mail-us-wrap {
  background: #eef2f6;
  padding: 48px 0 64px;
  margin-top: 40px;
}
.mail-us {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid #d8dee6;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(10, 37, 64, 0.1);
  padding: 32px 40px 36px;
}
.mail-us-title {
  text-align: center;
  color: #0073aa;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  text-transform: uppercase;
  font-family: var(--font-sans);
}
.mail-us-form .form-group { margin-bottom: 16px; }
.mail-us-form input,
.mail-us-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #c5ccd4;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.mail-us-form input:focus,
.mail-us-form textarea:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}
.mail-us-form textarea { resize: vertical; min-height: 140px; }
.mail-us-btn {
  display: block;
  margin: 10px auto 0;
  min-width: 100px;
  padding: 10px 28px;
  background: #0073aa;
  border: none;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mail-us-btn:hover {
  background: #005f8a;
  transform: translateY(-1px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--gray-800);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(26, 138, 158, 0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  margin-top: 14px;
  padding: 12px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--teal);
}
.info-card h3 {
  font-family: var(--font-serif);
  color: var(--teal-dark);
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.info-card p, .info-card li {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.8;
}
.info-card ul li { margin-bottom: 6px; }
.info-card a { color: var(--teal); font-weight: 500; }
.info-card a:hover { color: var(--saffron); }
.map-card { text-align: center; border-left-color: var(--saffron); }
.info-logo { width: 70px; margin: 0 auto 12px; }

/* ===== Footer ===== */
.footer { position: relative; z-index: 1; }
.footer-top {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.2fr;
  gap: 36px;
}
.footer-logo { width: 80px; margin-bottom: 16px; }
.footer-address { font-size: 0.9rem; line-height: 1.8; opacity: 0.8; }
.footer-col h4 {
  font-family: var(--font-serif);
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.9rem;
  opacity: 0.75;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.footer-links a:hover { opacity: 1; color: var(--saffron); }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  opacity: 0.8;
}
.footer-contact svg { flex-shrink: 0; opacity: 0.6; margin-top: 2px; }
.footer-contact a {
  transition: color 0.3s ease, opacity 0.3s ease;
}
.footer-contact a:hover { color: var(--saffron); opacity: 1; }
.footer-col h4 + .footer-address { margin-top: 0; }
.footer-tagline { font-size: 0.9rem; opacity: 0.75; line-height: 1.7; margin-bottom: 16px; }
.footer-flags { display: flex; height: 4px; border-radius: 2px; overflow: hidden; max-width: 120px; }
.flag-stripe { flex: 1; }
.flag-stripe.saffron { background: var(--saffron); }
.flag-stripe.white { background: var(--white); }
.flag-stripe.green { background: var(--green); }

.footer-bottom {
  background: #061525;
  padding: 16px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ===== Scroll Animations ===== */
.reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-stagger > * {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal { transform: translateY(40px); }
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-stagger > * { transform: translateY(30px); }

.reveal.visible, .reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(10) { transition-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(11) { transition-delay: 0.55s; }
.reveal-stagger.visible > *:nth-child(12) { transition-delay: 0.6s; }

.reveal-up.visible { transition-delay: var(--delay, 0s); }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .slide {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    grid-template-rows: unset;
  }
  .slide-image {
    flex: 0 0 50%;
    width: 100%;
    height: auto;
    min-height: 220px;
  }
  .slide-panel {
    flex: 1 1 auto;
    width: 100%;
    padding: 32px 24px;
  }
  .slider { height: min(640px, 90vh); }
  .slider-arrow {
    top: 25%;
    transform: translateY(-50%);
  }
  .slider-arrow:hover {
    transform: translateY(-50%) scale(1.08);
  }
  .slider-prev { left: 12px; right: auto; }
  .slider-next { right: 12px; left: auto; }
  .slider-dots {
    left: 50%;
    bottom: auto;
    top: calc(50% - 28px);
    transform: translateX(-50%);
  }
  .about-grid { grid-template-columns: 1fr; }
  .col-md-12 { grid-column: span 12; }
  .col-md-6 { grid-column: span 6; }
  .about-page-content { padding-left: 18px; }
  .about-page-hero {
    min-height: 220px;
  }
  .about-page-hero-bg {
    background-position: 38% center;
  }
  .about-page-hero-inner {
    padding: 36px 0;
  }
  .results-grid { grid-template-columns: 1fr; }
  .result-detail-grid { grid-template-columns: 1fr; }
  .race-event-grid { grid-template-columns: 1fr; }
  .race-full-facts { grid-template-columns: 1fr 1fr; }
  .special-grid { grid-template-columns: 1fr; gap: 28px; }
  .special-content,
  .special-video { grid-column: span 1; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .result-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .race-event-grid { grid-template-columns: repeat(2, 1fr); }
  .race-full-facts { grid-template-columns: repeat(2, 1fr); }
  .special-cards { grid-template-columns: repeat(2, 1fr); }
  .breeders-gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-page-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-top-row { gap: 32px; }
  .contact-info-col { padding-right: 0; }
  .contact-map iframe { height: 340px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .special-visit { flex-direction: column; text-align: center; }
}

@media (max-width: 1100px) {
  :root {
    --logo-size: 80px;
    --nav-pad-y: 12px;
  }
  .nav-brand-text { display: none; }
  .nav-link {
    padding: 8px 7px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 768px) {
  .row > [class*="col-"] { grid-column: span 12; }
  .header .nav.container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 12px;
    padding: var(--nav-pad-y) 0;
  }
  :root {
    --logo-size: 72px;
    --nav-pad-y: 10px;
  }
  .nav-brand-text { display: inline; font-size: 1.1rem; }
  .nav-drawer {
    grid-column: auto;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 20px 20px 24px;
    gap: 0;
    transition: right var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    z-index: 1000;
    --drawer-pad-x: 16px;
  }
  .nav-drawer.open { right: 0; }
  .nav-drawer-brand {
    display: flex;
    justify-content: center;
    padding: 0 var(--drawer-pad-x) 16px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
  }
  .nav-drawer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-align: center;
  }
  .nav-drawer-logo-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-drawer-logo-wrap img {
    width: 108%;
    height: 108%;
    object-fit: contain;
    display: block;
  }
  .nav-drawer-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .nav-actions { gap: 10px; }
  .nav-toggle { display: flex; position: relative; z-index: 1001; }
  .nav-admin-btn {
    height: 36px;
    padding: 0 12px;
    margin: 0;
  }
  .nav-menu {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    flex: 1;
    overflow-y: auto;
    width: 100%;
    padding: 0;
  }
  .nav-menu li {
    width: 100%;
    flex: 0 0 auto;
  }
  .nav-link {
    display: block;
    width: 100%;
    padding: 13px var(--drawer-pad-x);
    font-size: 0.8rem;
    white-space: normal;
    border-left: 3px solid transparent;
  }
  .nav-link::after { display: none; }
  .nav-link.active {
    color: var(--white);
    border-left-color: var(--saffron);
    background: rgba(255, 255, 255, 0.04);
  }
  .nav-menu-contact {
    display: block;
    margin-top: auto;
    padding-top: 4px;
    flex-shrink: 0;
    width: 100%;
  }
  .nav-menu-divider {
    height: 2px;
    width: 72px;
    background: linear-gradient(90deg, var(--saffron), rgba(255, 153, 51, 0.3));
    margin: 4px var(--drawer-pad-x) 16px;
    border-radius: 2px;
  }
  .nav-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px var(--drawer-pad-x);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    line-height: 1.5;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
  }
  .nav-contact-item:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
  }
  .nav-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--saffron);
  }
  .nav-contact-address { cursor: default; }
  .nav-contact-address:hover { background: transparent; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .page-section { padding: 56px 0; }
  .slider-section {
    padding-top: calc(var(--header-total) - 4px);
    width: 100%;
    max-width: 100vw;
  }
  .slider {
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: min(620px, 92vh);
  }
  .slide-image {
    flex: 0 0 42%;
    min-height: 200px;
  }
  .slide-image img {
    transform: none;
  }
  .slide.active .slide-image img {
    transform: none;
  }
  .slide-panel {
    padding: 24px 20px;
  }
  .slide-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }
  .slide-text {
    font-size: 0.88rem;
    margin-bottom: 18px;
  }
  .slide-btn {
    padding: 11px 22px;
    font-size: 0.85rem;
  }
  .slider-dots {
    top: calc(42% - 24px);
    gap: 8px;
  }
  .dot {
    width: 10px;
    height: 10px;
  }
  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    top: 21%;
    transform: translateY(-50%);
  }
  .slider-arrow:hover {
    transform: translateY(-50%) scale(1.08);
  }
  .slider-prev { left: 12px; right: auto; }
  .slider-next { right: 12px; left: auto; }
  .gallery-cards { grid-template-columns: repeat(2, 1fr); }
  .gallery-page-grid { grid-template-columns: 1fr; gap: 20px; }
  .race-event-grid { grid-template-columns: 1fr; }
  .race-full-facts { grid-template-columns: 1fr; }
  .race-full-body { padding-left: 16px; }
  .blog-grid { grid-template-columns: 1fr; }
  .special-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-map iframe { height: 260px; }
  .mail-us-wrap { padding: 36px 0 48px; margin-top: 28px; }
  .mail-us { padding: 24px 18px 28px; }
  .contact-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .nav-admin-btn span { display: none; }
  .nav-admin-btn { width: 36px; padding: 0; }
  .slider { height: min(580px, 94vh); }
  .slide-image { flex: 0 0 38%; min-height: 180px; }
  .slide-panel { padding: 20px 16px; }
  .slide-title { font-size: 1.3rem; }
  .slider-dots { top: calc(38% - 20px); }
  .slider-arrow { width: 32px; height: 32px; font-size: 0.9rem; top: 19%; }
  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }
}
