/* ===================== Design tokens ===================== */
:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --orange: #ff6b1a;
  --orange-dark: #e55a0c;
  --teal: #0d9488;
  --teal-dark: #0b7d72;
  --gold: #f5a524;
  --violet: #7c5cff;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f5;
  --gray-200: #dfe4ea;
  --gray-500: #6b7788;
  --gray-700: #3a4453;
  --white: #ffffff;
  --success: #1e9e5a;
  --warn: #d98c00;
  --danger: #d64545;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 16px 40px rgba(11, 37, 69, 0.16);
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-ta: 'Noto Sans Tamil', 'Inter', sans-serif;
  --gradient-brand: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
  --gradient-cta: linear-gradient(135deg, var(--orange) 0%, #ff8c42 100%);
}

/* When Tamil is active, layer the Tamil font stack in so Tamil glyphs render
   correctly while English text/numbers still use Inter. */
body.lang-ta { font-family: var(--font-ta), var(--font); }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-alt { background: var(--gray-50); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12.5px;
  display: inline-block;
  margin-bottom: 10px;
  background: rgba(255,107,26,0.10);
  padding: 6px 14px;
  border-radius: 20px;
}
.eyebrow::before { content: none; }
.section-head h2 { font-size: 30px; color: var(--navy); margin-bottom: 10px; }
.section-head p { color: var(--gray-500); font-size: 16px; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gradient-cta); color: var(--white); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.65); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--gradient-brand); color: var(--white); }
.btn-navy:hover { filter: brightness(1.1); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1eb958; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 6px; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-light { background: var(--gray-100); color: var(--navy); }

/* ===================== Header / Nav ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--navy); }
.brand-logo { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; box-shadow: var(--shadow); }
.brand-text { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: none; gap: 26px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 14.5px; color: var(--gray-700); transition: color .15s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -19px; height: 3px; border-radius: 2px;
  background: var(--gradient-cta);
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta { display: none; }
.lang-toggle-btn {
  background: var(--gray-100); color: var(--navy); font-weight: 700; font-size: 13px;
  padding: 8px 14px; border-radius: 20px; transition: background .15s;
}
.lang-toggle-btn:hover { background: var(--gray-200); }
.lang-toggle-mobile { align-self: flex-start; margin-top: 8px; }
.nav-toggle {
  display: flex; background: none; font-size: 24px; color: var(--navy); align-items: center;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 12px 20px 20px; border-top: 1px solid var(--gray-200);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 0; font-weight: 600; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.mobile-menu a.active { color: var(--orange); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

.hero h1 .accent { color: var(--orange); }

/* ===================== Hero ===================== */
.hero {
  background: var(--gradient-brand);
  color: var(--white);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; right: -80px; top: -80px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,107,26,0.32), transparent 70%);
}
.hero::before {
  content: '';
  position: absolute; left: -100px; bottom: -120px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(124,92,255,0.28), transparent 70%);
}
.hero-grid { display: grid; gap: 36px; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; background: rgba(255,107,26,0.18); color: var(--orange);
  padding: 6px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 700; letter-spacing: .5px; margin-bottom: 18px;
  border: 1px solid rgba(255,107,26,0.35);
}
.hero h1 { font-size: 34px; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: var(--orange); }
.hero p { color: rgba(255,255,255,0.8); font-size: 16px; margin-bottom: 26px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 460px; }
.hero-stats div { text-align: left; }
.hero-stats strong { display: block; font-size: 24px; color: var(--orange); }
.hero-stats span { font-size: 12.5px; color: rgba(255,255,255,0.7); }
.hero-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .hero h1 { font-size: 46px; }
}

/* ===================== About / Why cards ===================== */
.about-grid { display: grid; gap: 32px; }
.about-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-points { display: grid; gap: 14px; margin-top: 20px; }
.about-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.about-points li::before { content: '✓'; color: var(--success); font-weight: 800; }

@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; align-items: center; } }

.cards-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.icon-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 26px 22px; transition: box-shadow .2s, transform .2s; border-top: 3px solid transparent;
}
.icon-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.icon-circle {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(255,107,26,0.12); color: var(--orange);
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px;
}
.icon-circle img { width: 22px; height: 22px; }
/* Cycle through brand colors for visual variety across repeated icon cards */
.cards-grid .icon-card:nth-child(3n+1) { border-top-color: var(--orange); }
.cards-grid .icon-card:nth-child(3n+1) .icon-circle { background: rgba(255,107,26,0.12); color: var(--orange); }
.cards-grid .icon-card:nth-child(3n+2) { border-top-color: var(--teal); }
.cards-grid .icon-card:nth-child(3n+2) .icon-circle { background: rgba(13,148,136,0.12); color: var(--teal); }
.cards-grid .icon-card:nth-child(3n+3) { border-top-color: var(--violet); }
.cards-grid .icon-card:nth-child(3n+3) .icon-circle { background: rgba(124,92,255,0.12); color: var(--violet); }
.icon-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.icon-card p { font-size: 14.5px; color: var(--gray-500); }

/* ===================== Vehicle cards ===================== */
.vehicle-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column;
  position: relative;
}
.vehicle-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-cta); z-index: 2;
}
.vehicle-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.vehicle-card-img { position: relative; aspect-ratio: 4/3; background: var(--gray-100); overflow: hidden; }
.vehicle-card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .4px;
}
.badge-available { background: var(--success); }
.badge-reserved { background: var(--warn); }
.badge-leased { background: #5b6b8c; }
.badge-sold { background: var(--danger); }
.vehicle-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.vehicle-card-body h3 { font-size: 17px; color: var(--navy); }
.vehicle-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--gray-500); }
.vehicle-meta span { background: var(--gray-100); padding: 4px 9px; border-radius: 6px; }
.vehicle-price { font-size: 19px; font-weight: 800; color: var(--teal-dark); margin-top: 4px; }
.vehicle-price small { font-size: 12px; font-weight: 500; color: var(--gray-500); }
.vehicle-card-footer { padding: 0 18px 18px; }

/* ===================== Filters ===================== */
.filters-bar {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 18px; margin-bottom: 30px; display: grid; gap: 12px;
}
.filters-bar input, .filters-bar select {
  width: 100%; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--gray-200);
  font-size: 14px; background: var(--gray-50); color: var(--gray-700);
}
.filters-bar input:focus, .filters-bar select:focus { outline: 2px solid var(--orange); background: var(--white); }
.filters-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .filters-row { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) { .filters-bar { grid-template-columns: 2fr 1fr; align-items: end; } }

/* ===================== Contact ===================== */

/* ===================== Contact ===================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Desktop layout */
@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

/* Contact information card */
.contact-info-card {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    height: fit-content;
}

.contact-info-card h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.contact-info-item .icon-circle {
    background: rgba(255,255,255,0.12);
    color: var(--orange);
    flex-shrink: 0;
    margin-bottom: 0;
}

.contact-info-item .icon-circle img {
    filter: brightness(0) invert(1);
}

/* Enquiry form card */
.form-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
}

.form-card h3 {
    font-size: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    font-size: 14px;
    background: var(--gray-50);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--orange);
    background: var(--white);
}

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

.form-msg {
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 12px;
    display: none;
}

.form-msg.success {
    display: block;
    background: #e7f7ee;
    color: var(--success);
}

.form-msg.error {
    display: block;
    background: #fdeaea;
    color: var(--danger);
}

/* Mobile layout */
@media (max-width: 600px) {

    .contact-grid {
        gap: 16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .contact-info-card,
    .form-card {
        padding: 18px;
        border-radius: 12px;
    }

    .contact-info-card h3,
    .form-card h3 {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .contact-info-item {
        gap: 10px;
        font-size: 13.5px;
        margin-bottom: 12px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }

    .form-group textarea {
        min-height: 85px;
    }

    .contact-info-card .btn,
    .form-card .btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* ===================== Footer ===================== */
.site-footer { background: linear-gradient(180deg, var(--navy-dark) 0%, #051021 100%); color: rgba(255,255,255,0.75); padding: 50px 0 20px; }
.footer-grid { display: grid; gap: 32px; margin-bottom: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: var(--white); margin-bottom: 14px; font-size: 15px; }
.footer-grid ul li { margin-bottom: 10px; font-size: 14px; }
.footer-grid ul li a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 13px; text-align: center; }

/* ===================== WhatsApp floating button ===================== */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  background: #25D366; color: white; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  font-size: 26px;
}
.wa-float img { width: 26px; height: 26px; }
.wa-float:hover { transform: scale(1.06); }

/* ===================== Page header (inner pages) ===================== */
.page-header {
  background: var(--gradient-brand);
  color: var(--white); padding: 42px 0; text-align: center;
  position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,107,26,0.25), transparent 70%);
}
.page-header h1 { font-size: 28px; margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.75); }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 6px; }
.breadcrumb a { color: rgba(255,255,255,0.85); }

/* ===================== Vehicle details page ===================== */
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--gray-100); margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gallery-thumbs img { border-radius: 6px; aspect-ratio: 1/1; object-fit: cover; cursor: pointer; border: 2px solid transparent; opacity: .75; }
.gallery-thumbs img.active { border-color: var(--orange); opacity: 1; }
.details-panel { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; }
.details-panel h1 { font-size: 24px; color: var(--navy); margin-bottom: 8px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.spec-table tr { border-bottom: 1px solid var(--gray-100); }
.spec-table td { padding: 11px 4px; font-size: 14.5px; }
.spec-table td:first-child { color: var(--gray-500); width: 45%; }
.spec-table td:last-child { color: var(--navy); font-weight: 600; }
.details-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .details-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }

/* ===================== Lightbox ===================== */
.lightbox {
  position: fixed; inset: 0; background: rgba(7,26,51,0.92); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: white; font-size: 30px; background: none; }

/* ===================== Design polish & extra responsiveness ===================== */

/* Subtle entrance animation for cards and sections */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.icon-card, .vehicle-card { animation: fadeInUp 0.45s ease both; }

/* Slightly richer button interactions */
.btn { position: relative; overflow: hidden; }
.btn-primary, .btn-navy, .btn-whatsapp {
  box-shadow: 0 2px 10px rgba(11, 37, 69, 0.12);
}
.btn:active { transform: scale(0.98); }

/* Refined card visuals */
.icon-card, .vehicle-card, .form-card, .filters-bar, .details-panel {
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.icon-card:hover { border-color: rgba(255,107,26,0.35); }
.vehicle-card-img img { transition: transform .35s ease; }
.vehicle-card:hover .vehicle-card-img img { transform: scale(1.05); }

/* Section divider accent (eyebrow is now a pill badge, no extra dash needed) */

/* Hero stat cards get a subtle top border accent on larger screens */
@media (min-width: 960px) {
  .hero-stats div { border-left: 2px solid rgba(255,107,26,0.4); padding-left: 12px; }
  .hero-stats div:first-child { border-left: none; padding-left: 0; }
}

/* Extra-large screens: widen the content container slightly for breathing room */
@media (min-width: 1440px) {
  :root { --max-width: 1320px; }
  .hero h1 { font-size: 50px; }
  .section { padding: 80px 0; }
}

/* Small phones (< 380px): tighten spacing so nothing feels cramped or clipped */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 28px; }
  .section { padding: 48px 0; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-stats strong { font-size: 19px; }
}

/* Tablet-specific refinements (between phone and small desktop) */
@media (min-width: 640px) and (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { order: -1; max-height: 320px; }
  .hero-image img { height: 100%; object-fit: cover; }
}

/* Ensure long Tamil text wraps gracefully in buttons and nav without overflow */
body.lang-ta .btn { white-space: normal; line-height: 1.3; text-align: center; }
body.lang-ta .nav-links a { font-size: 13.5px; }
body.lang-ta .hero h1 { font-size: 30px; line-height: 1.35; }
@media (min-width: 960px) { body.lang-ta .hero h1 { font-size: 38px; } }

/* Smooth, accessible focus states throughout */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 2px;
}

/* ===================== Utility ===================== */
.text-center { text-align: center; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--gray-200); border-top-color: var(--orange); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }


