@import "tailwindcss";

@layer base {
  :root {
    /* ── Brand Palette (image_0.png) ── */
    --dark-base: #111520;          /* almost-black blue-gray */
    --dark-card: #1c2133;          /* card background */
    --dark-border: #2a3050;        /* subtle card border */
    --orange: #e85c1a;             /* burnt orange / terracotta CTA */
    --orange-hover: #f06a28;
    --orange-light: rgba(232, 92, 26, 0.15);
    --white: #ffffff;
    --white-muted: rgba(255,255,255,0.75);
    --white-dim: rgba(255,255,255,0.45);

    /* Legacy compat vars (used in other components) */
    --royal-blue: #1c2133;
    --royal-blue-dark: #111520;
    --royal-blue-light: #2a3050;
    --gold: #e85c1a;
    --gold-light: #f06a28;
    --gold-dark: #c04812;
    --text-dark: #111520;
    --text-muted: rgba(255,255,255,0.6);
    --border: #2a3050;
    --success: #16a34a;
    --whatsapp: #25d366;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: var(--font-montserrat), "Montserrat", system-ui, sans-serif;
    background-color: var(--dark-base);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-oswald), "Oswald", Impact, sans-serif;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
}

@layer utilities {
  /* ── Gradient helpers ── */
  .orange-gradient {
    background: linear-gradient(135deg, #e85c1a 0%, #f06a28 100%);
  }

  .dark-gradient {
    background: linear-gradient(135deg, #111520 0%, #1c2133 100%);
  }

  /* ── Glass effect ── */
  .glass {
    background: rgba(28, 33, 51, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
  }

  /* ── Buttons ── */
  .btn-orange {
    background: linear-gradient(135deg, #e85c1a, #f06a28);
    color: #fff;
    font-family: var(--font-montserrat), sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 2rem;
    border-radius: 0.4rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(232, 92, 26, 0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(232, 92, 26, 0.55);
    background: linear-gradient(135deg, #f06a28, #e85c1a);
  }

  /* Legacy btn-gold used by other components – redirect to orange */
  .btn-gold {
    background: linear-gradient(135deg, #e85c1a, #f06a28);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.4rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(232, 92, 26, 0.35);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 92, 26, 0.5);
  }

  .btn-blue {
    background: var(--dark-card);
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.4rem;
    border: 1px solid var(--dark-border);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .btn-blue:hover {
    transform: translateY(-2px);
    border-color: var(--orange);
  }

  /* ── Card hover ── */
  .card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  }

  /* ── Section utilities ── */
  .section-title {
    font-family: var(--font-oswald), "Oswald", sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .section-subtitle {
    color: var(--white-muted);
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto;
    font-family: var(--font-montserrat), sans-serif;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
  }

  .gold-divider {
    width: 50px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    margin: 0.75rem auto 0;
  }

  /* ── Orange tag (car name labels) ── */
  .car-tag {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-family: var(--font-montserrat), sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
  }

  /* ── Animations ── */
  .animate-float {
    animation: float 6s ease-in-out infinite;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-base); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange-hover); }

/* ── React DatePicker ── */
.react-datepicker-wrapper { width: 100%; }
.react-datepicker__input-container input {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--dark-border);
  border-radius: 0.4rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  background: var(--dark-card);
  color: white;
}
.react-datepicker__input-container input:focus {
  border-color: var(--orange);
}

/* ── Mobile-first responsive ─────────────────────── */

/* Scrollbar – hidden on mobile */
@media (max-width: 768px) {
  ::-webkit-scrollbar { display: none; }

  /* Hero heading scale-down */
  section#hero h1 { font-size: clamp(2rem,12vw,3.5rem) !important; }
  section#hero h2 { font-size: clamp(1rem,5vw,1.4rem) !important; }

  /* Hero padding for fixed navbar */
  section#hero { padding-top: 60px; }

  /* Fleet grid: 2 cols on small tablet */
  .fleet-grid { grid-template-columns: 1fr 1fr !important; }

  /* Services: 2 cols */
  .services-grid { grid-template-columns: 1fr 1fr !important; }

  /* CTA block: stack */
  .cta-grid { grid-template-columns: 1fr !important; }

  /* Booking modal: near full screen */
  [data-modal] { padding: 0.5rem; }
}

@media (max-width: 480px) {
  /* Fleet grid: 1 col */
  .fleet-grid { grid-template-columns: 1fr !important; }

  /* Services: 1 col */
  .services-grid { grid-template-columns: 1fr !important; }

  /* Hero CTA buttons: stack */
  .hero-ctas { flex-direction: column !important; align-items: flex-start !important; }

  /* Ensure all buttons are at least 44px tall */
  a[href], button { min-height: 44px; }
}
