/* =========================================================
   APJ Innova Car Rental — shared stylesheet
   Mobile-first, conversion-focused redesign
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #e53935;
  --primary-dark: #b71c1c;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --paper: #ffffff;
  --cream: #faf7f2;
  --line: #ece6dd;
  --gold: #c99b3f;
  --green: #1fae57;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20,20,20,.08);
  --shadow-lg: 0 20px 50px rgba(20,20,20,.14);
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
.section-tight { padding: 44px 0; }

h1, h2, h3, h4 { line-height: 1.18; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }
p { color: var(--ink-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary-dark); background: #fdeceb; padding: 6px 14px; border-radius: 30px;
  margin-bottom: 14px;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { margin: 0 auto; }
.rule { width: 60px; height: 3px; background: var(--primary); margin: 16px auto 0; border-radius: 3px; }
.rule-left { margin: 16px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; background: var(--primary); color: #fff; border: none;
  border-radius: 8px; font-weight: 700; font-size: .96rem; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn:hover { background: var(--primary-dark); box-shadow: 0 8px 20px rgba(229,57,53,.35); transform: translateY(-2px); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #000; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-green { background: var(--green); }
.btn-green:hover { background: #17913f; box-shadow: 0 8px 20px rgba(31,174,87,.35); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.top-strip {
  background: var(--ink); color: #ddd; font-size: .82rem;
}
.top-strip .container { display: flex; justify-content: space-between; align-items: center; padding: 7px 20px; flex-wrap: wrap; gap: 6px; }
.top-strip a { color: #ddd; text-decoration: none; }
.top-strip .ts-links { display: flex; gap: 18px; flex-wrap: wrap; }
.top-strip .ts-links a:hover { color: var(--primary); }
.top-strip i { color: var(--primary); margin-right: 5px; }

header.site-header {
  background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.08);
  position: sticky; top: 0; width: 100%; z-index: 1000;
}
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.logo { font-size: clamp(1.3rem, 4vw, 1.6rem); font-weight: 900; text-decoration: none; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--ink); }
.logo small { display: block; font-size: .6rem; font-weight: 600; letter-spacing: .08em; color: var(--ink-soft); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem;
  border-radius: 6px; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: #fdeceb; }
.nav-links .nav-cta { background: var(--primary); color: #fff !important; margin-left: 6px; }
.nav-links .nav-cta:hover { background: var(--primary-dark); }

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); background: none; border: none; }

@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: min(78vw, 320px);
    background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 90px 22px 30px; gap: 4px; transition: right .3s ease; box-shadow: -10px 0 30px rgba(0,0,0,.15);
    overflow-y: auto;
  }
  .nav-links.active { right: 0; }
  .nav-links a { padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links .nav-cta { text-align: center; border-radius: 8px; border-bottom: none; margin-top: 10px; }
  .hamburger { display: block; }
  .top-strip .ts-links { display: none; }
}

.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999; opacity: 0; pointer-events: none; transition: opacity .3s; }
.nav-overlay.active { opacity: 1; pointer-events: auto; }

/* Breadcrumb */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--line); font-size: .85rem; }
.breadcrumb .container { padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #bbb; }
.breadcrumb .current { color: var(--primary-dark); font-weight: 600; }

/* Quick action floating buttons */
.quick-actions { position: fixed; right: 18px; bottom: 18px; z-index: 998; display: flex; flex-direction: column; gap: 12px; }
.action-btn {
  display: flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 50px;
  text-decoration: none; color: #fff; font-weight: 700; font-size: .88rem; box-shadow: var(--shadow-lg);
  transition: transform .2s;
}
.action-btn:hover { transform: scale(1.05); }
.whatsapp-btn { background: #25D366; }
.call-btn { background: var(--primary); }
@media (max-width: 600px) {
  .quick-actions { right: 12px; bottom: 12px; }
  .action-btn span.label { display: none; }
  .action-btn { padding: 15px; border-radius: 50%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; min-height: 78vh; display: flex; align-items: center;
  background: #111 url('../images/desktop.jpg') center/cover no-repeat;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.25) 100%);
}
.hero .container { position: relative; z-index: 2; padding: 90px 20px 60px; }
.hero-content { max-width: 700px; }
.hero .eyebrow { background: rgba(255,255,255,.12); color: #ffd8d6; backdrop-filter: blur(4px); }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p.lead { color: #f0f0f0; font-size: 1.08rem; max-width: 600px; margin-bottom: 26px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-trust div { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: #eee; font-weight: 600; }
.hero-trust i { color: var(--gold); }

@media (max-width: 700px) {
  .hero { min-height: auto; background-image: url('../images/mobile.jpg'); }
  .hero::before { background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.82) 65%, rgba(0,0,0,.92) 100%); }
  .hero .container { padding: 74px 16px 36px; }
}

/* ---------- Booking form (WhatsApp) ---------- */
.booking-wrap { background: var(--ink); padding: 0; position: relative; z-index: 5; }
.booking-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 26px; margin-top: -60px; position: relative; z-index: 6;
}
.booking-card { transition: box-shadow .25s ease; }
.booking-card h2 { font-size: 1.3rem; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.booking-card h2 i { color: var(--green); }
.booking-card .sub { color: var(--ink-soft); font-size: .9rem; margin-bottom: 20px; }

.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .half { grid-column: span 2; }
@media (max-width: 900px) { .form-grid { grid-template-columns: repeat(2, 1fr); } .form-grid .half { grid-column: span 2; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; gap: 16px; } .form-grid .half { grid-column: 1; } }

.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.field label .req { color: var(--primary); font-weight: 700; }
.field input, .field select {
  width: 100%; padding: 13px 40px 13px 14px; border: 1.5px solid var(--line); border-radius: 8px; font-size: .95rem;
  font-family: inherit; color: var(--ink); background: var(--cream); transition: border .2s, background .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field input:hover, .field select:hover { border-color: #d8cfc1; }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(229,57,53,.12);
}
.field i.field-icon { position: absolute; right: 14px; top: 39px; color: var(--primary); pointer-events: none; font-size: .95rem; }
.field i.select-caret { font-size: .8rem; color: var(--ink-soft); }
.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="time"]::-webkit-calendar-picker-indicator {
  position: absolute; right: 0; top: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}

/* Inline validation */
.field-error {
  display: none; font-size: .76rem; font-weight: 600; color: var(--primary-dark);
  align-items: center; gap: 5px;
}
.field-error::before { content: '\f06a'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.field.invalid input { border-color: var(--primary); background: #fff6f5; box-shadow: 0 0 0 4px rgba(229,57,53,.1); }
.field.invalid .field-error { display: flex; }
.field.invalid i.field-icon { color: var(--primary-dark); }

.trip-type-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.trip-type-toggle label {
  flex: 1; min-width: 100px; text-align: center; padding: 11px 8px; border: 1.5px solid var(--line); border-radius: 8px;
  cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--ink-soft); text-transform: none; letter-spacing: 0;
  transition: all .2s;
}
.trip-type-toggle label:hover { border-color: var(--primary); color: var(--primary-dark); }
.trip-type-toggle input { display: none; }
.trip-type-toggle input:checked + label,
.trip-type-toggle label.checked { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(229,57,53,.3); }

.booking-card .submit-row { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.booking-card .submit-note { font-size: .78rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.booking-card .submit-note i { color: var(--green); }

@media (max-width: 560px) {
  .booking-card { padding: 20px 18px; margin-top: -40px; }
  .booking-card .submit-row { flex-direction: column; align-items: stretch; }
  .booking-card .submit-row .btn { width: 100%; }
  .booking-card .submit-note { justify-content: center; text-align: center; }
}

/* Autocomplete dropdown */
.autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow-lg); z-index: 50; max-height: 240px; overflow-y: auto; display: none;
}
.autocomplete-list.show { display: block; }
.autocomplete-list div { padding: 10px 14px; cursor: pointer; font-size: .88rem; border-bottom: 1px solid var(--line); }
.autocomplete-list div:last-child { border-bottom: none; }
.autocomplete-list div:hover, .autocomplete-list div.hi { background: #fdeceb; }
.autocomplete-list div b { color: var(--ink); }
.autocomplete-list div small { display: block; color: var(--ink-soft); }

/* ---------- Trust bar ---------- */
.trust-bar { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.trust-grid div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.trust-grid i { font-size: 1.5rem; color: var(--primary); }
.trust-grid span { font-weight: 700; font-size: .85rem; }
@media (max-width: 700px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Services ---------- */
.services { background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: #fff; padding: 30px 24px; border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s; border-top: 3px solid transparent;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-top-color: var(--primary); }
.service-icon { width: 54px; height: 54px; border-radius: 12px; background: #fdeceb; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.service-icon i { font-size: 1.4rem; color: var(--primary); }

/* ---------- Fleet ---------- */
.fleet { background: #fff; }
.fleet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) { .fleet-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fleet-grid { grid-template-columns: 1fr; } }
.fleet-card { background: var(--cream); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.fleet-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.fleet-image { background: #fff; padding: 14px; }
.fleet-image img { width: 100%; height: 160px; object-fit: contain; }
.fleet-info { padding: 18px 20px 22px; }
.fleet-info h3 { margin-bottom: 6px; }
.fleet-info p { font-size: .88rem; margin-bottom: 12px; }
.fleet-price { font-weight: 800; color: var(--primary-dark); font-size: 1.05rem; margin-bottom: 12px; }
.fleet-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.fleet-tags span { background: #fff; border: 1px solid var(--line); font-size: .72rem; padding: 4px 9px; border-radius: 20px; color: var(--ink-soft); font-weight: 600; }

/* ---------- Route / fare table ---------- */
.route-info { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: start; }
@media (max-width: 900px) { .route-info { grid-template-columns: 1fr; } }
.fare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fare-table th, .fare-table td { padding: 14px 16px; text-align: left; font-size: .9rem; }
.fare-table th { background: var(--ink); color: #fff; font-weight: 700; }
.fare-table tr:nth-child(even) { background: var(--cream); }
.fare-table td:first-child { font-weight: 700; }
.route-facts { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.route-facts li { display: flex; gap: 12px; align-items: flex-start; background: #fff; padding: 14px 16px; border-radius: 10px; box-shadow: var(--shadow); }
.route-facts i { color: var(--primary); font-size: 1.1rem; margin-top: 3px; }
.route-facts b { display: block; }

/* ---------- About ---------- */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .about-content { grid-template-columns: 1fr; } }
.about-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
@media (max-width: 560px) { .about-features { grid-template-columns: 1fr; } }
.feature { display: flex; gap: 12px; }
.feature-icon { width: 42px; height: 42px; min-width: 42px; border-radius: 10px; background: #fdeceb; display: flex; align-items: center; justify-content: center; }
.feature-icon i { color: var(--primary); }
.feature h4 { font-size: .98rem; margin-bottom: 2px; }
.feature p { font-size: .85rem; margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--ink); color: #fff; }
.testimonials .section-head p { color: #ccc; }
.testimonials .section-head h2 { color: #fff; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .t-grid { grid-template-columns: 1fr; } }
.t-card { background: #232323; padding: 26px; border-radius: var(--radius); }
.t-card .stars { color: var(--gold); margin-bottom: 12px; }
.t-card p { color: #ddd; font-size: .92rem; margin-bottom: 16px; }
.t-card .who { font-weight: 700; font-size: .9rem; color: #fff; }
.t-card .who span { display: block; font-weight: 400; color: #999; font-size: .78rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; cursor: pointer;
  font-weight: 700; font-size: .96rem;
}
.faq-q i { color: var(--primary); transition: transform .25s; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 22px; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 22px 20px; }
.faq-a p { font-size: .9rem; margin: 0; }

/* ---------- Related links ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; padding: 16px 18px;
  border-radius: 10px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem;
  transition: transform .2s, box-shadow .2s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--primary-dark); }
.related-card i { color: var(--primary); }

/* ---------- Contact ---------- */
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
@media (max-width: 900px) { .contact-content { grid-template-columns: 1fr; } }
.contact-details { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; background: #fff; padding: 16px; border-radius: 10px; box-shadow: var(--shadow); }
.contact-icon { width: 42px; height: 42px; min-width: 42px; border-radius: 10px; background: #fdeceb; display: flex; align-items: center; justify-content: center; }
.contact-icon i { color: var(--primary); }
.contact-detail h4 { font-size: .92rem; margin-bottom: 2px; }
.contact-detail p { margin: 0; font-size: .9rem; }
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 360px; }
.map-container iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ---------- CTA strip ---------- */
.cta-strip { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; text-align: center; }
.cta-strip h2 { color: #fff; margin-bottom: 10px; }
.cta-strip p { color: #ffe3e1; margin-bottom: 22px; }
.cta-strip .hero-btns { justify-content: center; }

/* ---------- Footer ---------- */
footer { background: #141414; color: #ccc; padding: 60px 0 0; }
.footer-content { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 26px; padding-bottom: 40px; }
@media (max-width: 960px) { .footer-content { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-content { grid-template-columns: 1fr; } }
.footer-column h3 { font-size: 1rem; color: #fff; margin-bottom: 16px; }
.footer-column h3 span { color: var(--primary); }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #aaa; text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--primary); }
.footer-column p { color: #999; font-size: .88rem; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a { width: 36px; height: 36px; background: #232323; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; color: #ccc; transition: background .2s, color .2s; }
.social-links a:hover { background: var(--primary); color: #fff; }
.copyright { border-top: 1px solid #262626; padding: 20px; text-align: center; font-size: .82rem; color: #888; }
.copyright a { color: #aaa; text-decoration: none; }

/* Utility */
.mt-0 { margin-top: 0; } .center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
