/* ==========================================================================
   Royal Auto Fès - Pure Modern CSS (Vert Royal & Blanc)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --primary: #064e3b;
  --primary-dark: #043629;
  --primary-light: #0b6850;
  --primary-subtle: #ecfdf5;
  --gold: #d4af37;
  --gold-dark: #b8933b;
  --bg: #fbfdfb;
  --surface: #ffffff;
  --surface-muted: #f4f6f3;
  --text-main: #18181b;
  --text-muted: #71717a;
  --text-light: #a1a1aa;
  --border: #e4e4e7;
  --border-subtle: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.font-serif {
  font-family: var(--font-serif);
}

/* ----------------- Top Header Announcement ----------------- */
.top-bar {
  background-color: var(--primary-dark);
  color: #d1fae5;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #34d399;
  border-radius: 50%;
  margin-right: 6px;
}
.top-bar a {
  color: var(--gold);
  font-weight: 600;
}
.top-bar a:hover {
  text-decoration: underline;
}

/* ----------------- Main Navigation ----------------- */
.navbar {
  background-color: var(--primary);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--primary-dark);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

/* Brand Wordmark */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-badge {
  width: 38px;
  height: 38px;
  background-color: var(--gold);
  color: var(--primary);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}
.brand-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}
.brand-subtitle {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a7f3d0;
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #f1f5f9;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--gold);
}

/* Right Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.currency-select {
  background: var(--primary-dark);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
}
.btn-whatsapp-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp-nav:hover {
  background-color: #f0fdf4;
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
}

/* ----------------- Hero Section ----------------- */
.hero {
  background-color: var(--primary);
  color: #ffffff;
  padding: 40px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero-desc {
  font-size: 16px;
  color: #d1fae5;
  line-height: 1.6;
  margin-bottom: 24px;
}
.hero-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  font-size: 13px;
  color: #ecfdf5;
}
.hero-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: var(--primary);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background-color: #ecfdf5;
  transform: translateY(-2px);
}

.btn-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #10b981;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-whatsapp-cta:hover {
  background-color: #059669;
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.15);
  background-color: var(--primary-dark);
}
.hero-visual img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s;
}
.hero-visual:hover img {
  transform: scale(1.03);
}
.hero-visual-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #ffffff;
  font-size: 13px;
}

/* ----------------- Search Bar Box ----------------- */
.search-box-card {
  margin-top: 30px;
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}
.search-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 16px;
  align-items: end;
}
.form-group {
  display: flex;
  flex-col: column;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
  transition: border 0.2s;
}
.form-control:focus {
  border-color: var(--primary);
  background-color: #ffffff;
}

/* ----------------- Value Props Strip ----------------- */
.props-strip {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
}
.props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.prop-card h4 {
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}
.prop-card p {
  font-size: 11px;
  color: var(--text-muted);
}
.prop-value {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

/* ----------------- Section Headers ----------------- */
.section {
  padding: 70px 0;
}
.section-header {
  max-width: 650px;
  margin-bottom: 40px;
}
.section-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 12px;
}
.section-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* ----------------- Fleet Catalog & Cards ----------------- */
.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 30px;
}
.tab-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background-color: #e4e4e7;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.tab-btn:hover {
  background-color: #d4d4d8;
  color: var(--text-main);
}
.tab-btn.active {
  background-color: var(--primary);
  color: #ffffff;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.car-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.car-img-wrapper {
  position: relative;
  height: 220px;
  background-color: #f4f4f5;
  overflow: hidden;
}
.car-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.car-card:hover .car-img-wrapper img {
  transform: scale(1.05);
}
.car-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(6, 78, 59, 0.9);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}
.car-category-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.car-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.car-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.car-brand {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 700;
}
.car-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}
.car-pricing {
  text-align: right;
}
.car-price-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  font-family: monospace;
}
.car-price-unit {
  font-size: 10px;
  color: var(--text-muted);
}

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.car-specs span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.car-features {
  list-style: none;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.car-features li {
  margin-bottom: 4px;
}
.car-features li::before {
  content: '✓';
  color: #10b981;
  font-weight: 800;
  margin-right: 6px;
}

.car-actions {
  display: flex;
  gap: 8px;
}
.btn-card-details {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  background-color: var(--surface-muted);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
}
.btn-card-whatsapp {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.btn-card-whatsapp:hover {
  background-color: var(--primary-dark);
}

/* ----------------- Simulator Section ----------------- */
.simulator-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 30px;
  align-items: start;
}
.sim-form-card, .sim-receipt-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.sim-form-card h3, .sim-receipt-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 16px;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.option-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  background-color: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  cursor: pointer;
}
.option-label input {
  margin-top: 2px;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  margin-top: 10px;
  border-top: 2px solid var(--border);
}
.total-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  font-family: monospace;
}

/* ----------------- Airport Saiss ----------------- */
.airport-banner {
  background-color: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 30px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.step-card {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.step-num {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

/* ----------------- Blog Articles ----------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.blog-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.blog-img {
  height: 200px;
  overflow: hidden;
}
.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.blog-card:hover .blog-img img {
  transform: scale(1.05);
}
.blog-content {
  padding: 24px;
}
.blog-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.blog-meta strong {
  color: var(--primary);
}
.blog-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}
.blog-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ----------------- Contact & FAQ ----------------- */
.agency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}
.agency-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.agency-card.featured {
  border: 2px solid var(--primary);
  background-color: var(--primary-subtle);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background-color: #ffffff;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--text-muted);
  display: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}
.faq-item.open .faq-answer {
  display: block;
}

/* ----------------- Reviews ----------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0 50px;
}
.review-card {
  background: #ffffff;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-stars {
  color: var(--gold);
  margin-bottom: 8px;
}
.review-text {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.review-author {
  font-weight: 700;
  color: var(--text-main);
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
}

/* ----------------- Footer ----------------- */
.footer {
  background-color: var(--primary-dark);
  color: #a1a1aa;
  padding: 60px 0 30px;
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
.footer h4 {
  color: #ffffff;
  font-size: 13px;
  margin-bottom: 14px;
}
.footer ul {
  list-style: none;
}
.footer ul li {
  margin-bottom: 8px;
}
.footer a:hover {
  color: #ffffff;
}
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

/* ----------------- Floating WhatsApp Button ----------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background-color: #25D366;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.floating-whatsapp:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ----------------- Modal ----------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-card {
  background: #ffffff;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-xl);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}

/* ----------------- Responsive ----------------- */
@media (max-width: 1024px) {
  .hero-grid, .simulator-layout {
    grid-template-columns: 1fr;
  }
  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid, .reviews-grid, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .search-form {
    grid-template-columns: 1fr;
  }
  .cars-grid, .blog-grid, .agency-grid, .props-grid, .steps-grid, .reviews-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 28px;
  }
  .section-title {
    font-size: 24px;
  }
}
