/* ========================================
   Saddington Racing — Style System
   Based on Golf Club template structure
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;400;500;600;700&family=Open+Sans:wght@300;400;600;700;800&display=swap');

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Variables --- */
:root {
  --color-bg: #0a0a0a;
  --color-dark: #111111;
  --color-card: #1a1a1a;
  --color-light-bg: #f5f5f5;
  --color-white: #ffffff;
  --color-primary: #e63946;
  --color-secondary: #3e4e52;
  --color-accent: #ab9f9f;
  --color-text: #666666;
  --color-heading: #333333;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* --- Base --- */
body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-text);
  background: var(--color-white);
  margin: 0 auto;
  max-width: 1500px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-secondary); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Screen-reader only text (SEO + accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--color-heading); margin-bottom: 0; letter-spacing: 1px; }
h1 { font-size: 50px; font-weight: 400; line-height: 60px; }
h2 { font-size: 44px; font-weight: 400; line-height: 54px; }
h3 { font-size: 40px; font-weight: 400; line-height: 50px; }
h4 { font-size: 27px; font-weight: 400; line-height: 37px; }
h5 { font-size: 23px; font-weight: 400; line-height: 33px; }
h6 { font-size: 16px; font-weight: 400; line-height: 27px; }
p { margin-bottom: 0; }
.text-center { text-align: center; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ========== PRE-NAVBAR (TOP BAR) ========== */
.pre-navbar {
  background: var(--color-secondary);
  padding: 8px 0;
  font-size: 13px;
}
.pre-navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pre-nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #ccc;
}
.pre-nav-left a { color: #ccc; }
.pre-nav-left a:hover { color: #fff; }
.pre-nav-left i { margin-right: 6px; color: var(--color-primary); }
.pre-nav-divider {
  width: 1px;
  height: 14px;
  background: #666;
}
.pre-nav-right {
  display: flex;
  gap: 16px;
}
.pre-nav-right a {
  color: #ccc;
  font-size: 16px;
  transition: color 0.2s;
}
.pre-nav-right a:hover { color: var(--color-primary); }

/* ========== NAVBAR ========== */
.navbar {
  background: var(--color-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.5s;
}
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.logo-img {
  height: 55px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 0;
}
.nav-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 400;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  padding: 36px 15px;
  color: var(--color-heading);
  transition: all 0.3s;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid #ddd;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 4px;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-heading);
}
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 999;
  padding: 80px 30px;
}
.mobile-nav-overlay.active { display: block; }
.mobile-nav-links a {
  display: block;
  font-family: var(--font-heading);
  font-size: 24px;
  color: #fff;
  padding: 12px 0;
  border-bottom: 1px solid #333;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-text {
  max-width: 600px;
  margin-left: auto;
  text-align: right;
}
.hero-logo {
  max-width: 300px;
  margin-left: auto;
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  font-size: 55px;
  font-weight: 600;
  margin-bottom: 10px;
}
.hero-subtitle {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 15px;
}
.hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.5px;
  margin-bottom: 30px;
}
.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  text-align: center;
  font-size: 17px;
  font-weight: 400;
  padding: 0 25px;
  line-height: 45px;
  border-radius: 50px;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  transition: all 0.3s ease-in;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}
.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
  border: 1px solid var(--color-secondary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--color-heading);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--color-primary);
}

/* ========== SECTIONS ========== */
.section { padding: 80px 0; }
.section-light { background: var(--color-light-bg); }
.section-white { background: var(--color-white); }
.section-dark { background: var(--color-dark); }
.section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5, .section-dark h6,
.section-dark p { color: #fff; }

.section-header {
  width: 60%;
  margin: 0 auto;
  padding-bottom: 50px;
  text-align: center;
}
.section-header.light h2, .section-header.light h6 { color: #fff; }
.section-tag {
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 7px;
  display: block;
}
.section-tag.light { color: var(--color-primary); }
.section-desc {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  line-height: 28px;
  margin-top: 15px;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-text h6 { margin-bottom: 7px; }
.about-text h2 { margin-bottom: 15px; }
.about-text p {
  margin-bottom: 15px;
  line-height: 26px;
}
.about-text .btn { margin-top: 30px; }
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-img-1 {
  border-radius: 4px;
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.about-img-2 {
  border-radius: 4px;
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-top: 40px;
}

/* ========== STATS ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.stat-box {
  background: var(--color-light-bg);
  text-align: center;
  padding: 30px;
}
.stat-icon {
  font-size: 40px;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.stat-box h3 {
  font-size: 24px;
  line-height: 34px;
}
.stat-box h3 b {
  font-weight: 700;
}

/* ========== MEDIA GRID ========== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.media-card {
  overflow: hidden;
}
.media-item {
  position: relative;
  overflow: hidden;
}
.media-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.3s;
}
.media-card:hover .media-item img {
  transform: scale(1.1);
}
.video-embed {
  position: relative;
  padding-bottom: 140%;
  height: 0;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.media-card-content {
  background: rgba(0,0,0,0.7);
  padding: 12px 20px;
  margin-top: -4px;
}
.media-card-content h6 { color: #fff; font-size: 13px; margin-bottom: 4px; }
.media-card-content h5 { color: #fff; font-size: 18px; }
.media-card-content h5 a { color: #fff; }

/* ========== FORM SECTION ========== */
.form-section {
  position: relative;
  padding: 80px 0;
  background: var(--color-secondary);
  background-image: url('media/4.JPG');
  background-size: cover;
  background-position: center;
}
.form-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}
.form-section .container { position: relative; z-index: 2; }
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.form-image {
  overflow: hidden;
  border-radius: 4px;
  display: flex;
}
.form-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.form-box {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 4px;
}
.form-box h6 {
  color: var(--color-primary);
  margin-bottom: 7px;
}
.form-box h4 {
  color: #fff;
  margin-bottom: 30px;
}
.form-group {
  position: relative;
  margin-bottom: 20px;
}
.form-group i {
  position: absolute;
  left: 20px;
  top: 13px;
  color: #fff;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 7px;
  color: #fff;
  padding-left: 50px;
  padding-right: 20px;
  font-family: var(--font-body);
  font-size: 14px;
}
.form-group input {
  height: 45px;
}
.form-group textarea {
  padding-top: 12px;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

/* ========== TESTIMONIALS ========== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
}
.testimonial-card img {
  width: 100%;
  height: auto;
}

/* ========== CTA ========== */
.cta-section {
  background: var(--color-primary);
  padding: 60px 0;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cta-text h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 32px;
}
.cta-contact-info {
  display: flex;
  gap: 30px;
}
.cta-contact-info span {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 16px;
}
.cta-contact-info a { color: #fff; }
.cta-contact-info a:hover { color: rgba(255,255,255,0.8); }
.cta-contact-info i { margin-right: 8px; }
.cta-buttons {
  display: flex;
  gap: 12px;
}

/* ========== FEATURE GRID (Video + Image) ========== */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}
.feature-video .video-embed {
  padding-bottom: 0;
  height: 100%;
}
.feature-video .video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.feature-image {
  overflow: hidden;
  border-radius: 4px;
}
.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== SPONSORSHIP ========== */
.sponsorship-content {
  max-width: 600px;
  margin: 0 auto;
}
.sponsorship-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* ========== RACING HISTORY ========== */
.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
  align-items: start;
}
.history-block h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 15px;
  letter-spacing: 1px;
}
.history-block p {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.history-block .video-embed {
  padding-bottom: 56.25%;
}
@media (max-width: 767px) {
  .history-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ========== FOOTER ========== */
.site-footer {
  background: #000;
  padding: 60px 0 0;
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer-logo {
  max-width: 200px;
  margin-bottom: 15px;
}
.footer-col p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 22px;
}
.footer-col h5 {
  color: var(--color-primary);
  margin-bottom: 15px;
  font-size: 20px;
}
.footer-col ul li {
  padding: 5px 0;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--color-primary); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--color-primary); }

.footer-social-labels p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.footer-social-labels i { margin-right: 6px; width: 16px; text-align: center; }

.footer-bottom {
  border-top: 1px solid #222;
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-icon {
  width: 40px;
  height: auto;
}
.footer-bottom p {
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1199px) {
  .nav-link { padding: 36px 10px; }
}
@media (max-width: 991px) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: flex; }
  .section-header { width: 100%; padding-bottom: 30px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-images { margin-top: 20px; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .form-layout { grid-template-columns: 1fr; }
  .form-image { display: none; }
  .testimonial-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .cta-inner { flex-direction: column; text-align: center; gap: 20px; }
  .cta-contact-info { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 40px; line-height: 50px; }
  h2 { font-size: 35px; line-height: 45px; }
  h3 { font-size: 30px; line-height: 40px; }
}
@media (max-width: 767px) {
  .pre-nav-left { display: none; }
  .pre-nav-right { margin: 0 auto; }
  .hero { min-height: 500px; }
  .hero h1 { font-size: 35px; line-height: 45px; }
  .hero-text { text-align: center; margin: 0 auto; }
  .hero-logo { margin: 0 auto 20px; max-width: 250px; }
  .hero-buttons { justify-content: center; }
  .hero-desc { font-size: 16px; line-height: 24px; }
  .about-images { grid-template-columns: 1fr; }
  .about-img-1, .about-img-2 { height: 300px; margin-top: 0; }
  .media-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .media-item img { height: 250px; }
  .stats-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { margin: 0 auto 15px; }
  .footer-social { justify-content: center; }
  .section { padding: 60px 0; }
  h2 { font-size: 30px; line-height: 40px; }
}
@media (max-width: 575px) {
  .hero { min-height: 420px; padding: 60px 0; }
  .hero h1 { font-size: 30px; line-height: 38px; }
  .hero-subtitle { font-size: 14px; }
  .hero-desc { font-size: 15px; line-height: 22px; }
  .section { padding: 50px 0; }
  h1 { font-size: 30px; line-height: 40px; }
  h2 { font-size: 27px; line-height: 37px; }
  .cta-contact-info { flex-direction: column; gap: 8px; }
  .cta-buttons { flex-direction: column; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { font-size: 15px; padding: 0 20px; line-height: 42px; min-height: 44px; }
  .nav-link { padding: 12px 8px; }
  .form-box { padding: 25px 20px; }
  .form-group input { height: 44px; }
  .testimonial-grid { gap: 16px; }
  .stat-box { padding: 24px 16px; }
  .section-header { width: 100%; }
  .pre-nav-right { gap: 20px; }
  .pre-nav-right a { font-size: 18px; padding: 4px; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* Touch target minimum 44px for mobile accessibility */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .nav-link { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-social a { width: 44px; height: 44px; }
  .mobile-menu-toggle { min-width: 44px; min-height: 44px; }
}
