/* ============================================
   AMANI MOTORSPORTS — Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --coral: #E07A5F;
  --coral-dark: #C96A52;
  --coral-light: #F2A894;
  --coral-bg: #FFF0EC;
  --charcoal: #2D3436;
  --charcoal-light: #4A5254;
  --charcoal-dark: #1A1E1F;
  --sand: #F4F1EB;
  --sand-light: #FAF8F5;
  --white: #FFFFFF;
  --gray-100: #F7F7F7;
  --gray-200: #EAEAEA;
  --gray-300: #D1D1D1;
  --gray-500: #888888;
  --gray-700: #555555;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(45, 52, 54, 0.06);
  --shadow-md: 0 4px 20px rgba(45, 52, 54, 0.10);
  --shadow-lg: 0 8px 40px rgba(45, 52, 54, 0.14);
  --shadow-coral: 0 6px 24px rgba(224, 122, 95, 0.30);
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Quicksand', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--sand-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--coral);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--coral-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--charcoal);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
  box-shadow: var(--shadow-coral);
}

.btn-primary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(224, 122, 95, 0.40);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--sand);
  transform: translateY(-2px);
  color: var(--charcoal);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--charcoal);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* --- Section Shared --- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  background: var(--coral-bg);
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--gray-700);
  line-height: 1.8;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--coral-light);
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.0);
  padding: 16px 0;
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  padding: 10px 0;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}

.nav.scrolled .nav-logo {
  color: var(--charcoal);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  color: var(--coral);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.nav.scrolled .nav-links a {
  color: var(--charcoal-light);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.nav.scrolled .nav-links a:hover {
  color: var(--coral);
  background: var(--coral-bg);
}

.nav-cta {
  background: var(--coral) !important;
  color: var(--white) !important;
  border-radius: var(--radius-lg) !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--coral-dark) !important;
  transform: scale(1.04);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 4px;
  transition: all var(--transition);
}

.nav.scrolled .nav-toggle span {
  background: var(--charcoal);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 30, 31, 0.82) 0%,
    rgba(45, 52, 54, 0.65) 50%,
    rgba(224, 122, 95, 0.25) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 120px 24px 80px;
  margin-left: 8%;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-light);
  background: rgba(224, 122, 95, 0.18);
  border: 1px solid rgba(224, 122, 95, 0.35);
  padding: 7px 18px;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --- SERVICES --- */
.services {
  background: var(--sand-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card .card-icon {
  width: 56px;
  height: 56px;
  background: var(--coral-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--coral);
  transition: all var(--transition);
}

.service-card:hover .card-icon {
  background: var(--coral);
  color: var(--white);
  transform: scale(1.06);
}

.service-card .card-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* --- ABOUT --- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-img-float {
  position: absolute;
  bottom: -30px;
  right: -30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--white);
}

.about-img-float img {
  width: 260px;
  height: 200px;
  object-fit: cover;
}

.about-content .section-tag {
  margin-bottom: 14px;
}

.about-content .section-title {
  margin-bottom: 20px;
}

.about-content p {
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--gray-500);
  font-weight: 600;
}

/* --- WHY US --- */
.why {
  background: var(--sand);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--coral);
  border-radius: 0 4px 4px 0;
  transition: height 0.4s ease;
}

.why-card:hover::before {
  height: 100%;
}

.why-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--coral-bg);
  line-height: 1;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.why-card:hover .why-num {
  color: rgba(224, 122, 95, 0.15);
}

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- CTA BANNER --- */
.cta-banner {
  position: relative;
  padding: 80px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
}

.cta-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 52, 54, 0.88) 0%, rgba(224, 122, 95, 0.55) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 620px;
}

.cta-content h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* --- CONTACT --- */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-intro {
  color: var(--gray-700);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--coral-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-item strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--gray-700);
  font-size: 0.92rem;
  line-height: 1.6;
}

.contact-item a {
  color: var(--coral);
}

/* Form */
.contact-form-wrap {
  background: var(--sand);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  background: #E8F5E9;
  border-radius: var(--radius-md);
  color: #2E7D32;
}

.form-success svg {
  width: 48px;
  height: 48px;
}

.form-success p {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

/* --- MAP --- */
.map-section {
  border-top: 4px solid var(--coral-bg);
}

.map-section iframe {
  filter: grayscale(0.3);
  transition: filter var(--transition);
}

.map-section:hover iframe {
  filter: grayscale(0);
}

/* --- FOOTER --- */
.footer {
  background: var(--charcoal-dark);
  color: rgba(255, 255, 255, 0.70);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logo {
  margin-bottom: 16px;
  display: inline-flex;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.8;
  max-width: 280px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.60);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--coral-light);
}

.footer-contact p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 4px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.60);
}

.footer-contact a:hover {
  color: var(--coral-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.40);
  text-align: center;
}

/* --- ANIMATIONS --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 40px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--charcoal) !important;
    width: 100%;
    padding: 12px 16px;
  }

  .nav-links a:hover {
    background: var(--coral-bg) !important;
    color: var(--coral) !important;
  }

  .nav-cta {
    margin-left: 0 !important;
    margin-top: 12px;
    text-align: center;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    margin-left: 0;
    padding: 140px 24px 100px;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-img-float {
    right: 10px;
    bottom: -20px;
  }

  .about-img-float img {
    width: 200px;
    height: 160px;
  }

  .about-stats {
    gap: 20px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrap {
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .stat {
    text-align: left;
  }
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}
