:root {
  --color-canvas: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-nav: #0B3B82;
  --color-nav-dark: #082A5E;
  --color-cta: #DC2626;
  --color-cta-dark: #B91C1C;
  --color-pill-bg: #EFF6FF;
  --color-pill-text: #1D4ED8;
  --color-heading: #0F172A;
  --color-body: #475569;
  --color-border: #E2E8F0;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-canvas);
  color: var(--color-body);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--color-heading); margin: 0 0 0.5em; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--color-cta); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Nav */
.site-nav { background: var(--color-nav); }
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: #fff; text-decoration: none; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--color-cta); color: #fff; padding: 10px 20px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.9rem; white-space: nowrap;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--color-cta-dark); }

/* Active nav link */
.nav-links a.is-active { color: #fff; font-weight: 600; position: relative; }
.nav-links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--color-cta); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal:nth-child(6) { transition-delay: 0.3s; }

/* Messages */
.messages { max-width: 1160px; margin: 16px auto 0; padding: 0 24px; }
.message { background: var(--color-pill-bg); color: var(--color-pill-text); border-radius: 10px; padding: 12px 16px; font-size: 0.95rem; }

/* Hero */
.hero {padding: 72px 24px 96px; }

/* Contact Page Map Section */
.contact-hero {
  position: relative;
  width: 100%;
  height: 420px; /* Explicit height to contain the map */
  overflow: hidden;
  background: var(--color-canvas);
}

.map-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.map-bg iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none; /* Prevents scrolling interference */
  object-fit: cover;
}

/* Fades the map into the background color */
.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Fades from semi-transparent to solid background color at the bottom */
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.3) 0%, rgba(248, 250, 252, 1) 100%);
}

/* Mobile height adjustment */
@media (max-width: 860px) {
  .contact-hero {
    height: 320px;
  }
}




/* Contact card */
.contact-wrap { max-width: 1040px; margin: -56px auto 80px; padding: 0 24px; position: relative; z-index: 10;}
.contact-card {
  background: var(--color-surface); border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(15,23,42,0.25);
  display: grid; grid-template-columns: 0.85fr 1.15fr;
}
.contact-info { padding: 44px 40px; border-right: 1px solid var(--color-border); }
.contact-info h2 { font-size: 1.4rem; }
.contact-info > p.lead { margin-bottom: 26px; }
.contact-method { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-method .icon {
  width: 38px; height: 38px; border-radius: 50%; background: var(--color-pill-bg); color: var(--color-pill-text);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-method h3 { font-size: 0.92rem; margin: 0 0 2px; }
.contact-method p { margin: 0; font-size: 0.9rem; }
.response-note { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--color-border); font-size: 0.86rem; color: #64748B; }

.contact-form { padding: 44px 40px; }
.contact-form h2 { font-size: 1.4rem; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--color-heading); }
.form-field input, .form-field textarea {
  border: 1px solid var(--color-border); border-radius: 10px; padding: 12px 14px;
  font-family: var(--font-body); font-size: 0.95rem; background: #F8FAFC;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--color-nav); background: #fff;
  box-shadow: 0 0 0 3px rgba(11,59,130,0.12);
}
.btn-send {
  background: var(--color-cta); color: #fff; border: none; padding: 14px 32px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: background 0.15s ease;
}
.btn-send:hover { background: var(--color-cta-dark); }

/* Align this breakpoint with the nav's 860px, instead of 760px */
@media (max-width: 860px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-info { border-right: none; border-bottom: 1px solid var(--color-border); }
  .form-row { grid-template-columns: 1fr; }
  .contact-wrap { margin-top: -32px; }
  .contact-info, .contact-form { padding: 32px 24px; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  position: relative;
  width: 26px; height: 20px;
  background: none; border: none; padding: 0;
  cursor: pointer;
}
.nav-toggle .bar {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle .bar1 { top: 0; }
.nav-toggle .bar2 { top: 9px; }
.nav-toggle .bar3 { top: 18px; }
.nav-toggle.is-active .bar1 { transform: translateY(9px) rotate(45deg); }
.nav-toggle.is-active .bar2 { opacity: 0; }
.nav-toggle.is-active .bar3 { transform: translateY(-9px) rotate(-45deg); }

.nav-collapse { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-collapse {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 18px;
  }
  .nav-collapse.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 14px; width: 100%; }
  .nav-cta { width: 100%; text-align: center; }
}

/* Let grid items actually shrink instead of forcing overflow */
.contact-info, .contact-form {
  min-width: 0;
}

/* Let long emails/numbers wrap instead of pushing the layout wider */
.contact-method p,
.contact-info .lead,
.response-note {
  overflow-wrap: break-word;
}

/* Footer */
.site-footer { background: var(--color-heading); color: rgba(255,255,255,0.7); padding: 56px 24px 28px; }
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px;
}
.footer-brand p { margin-top: 12px; font-size: 0.9rem; max-width: 32ch; overflow-wrap: break-word; }
.footer-col h3 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.92rem; overflow-wrap: break-word; }
.footer-col a:hover { color: #fff; }
.footer-col li { overflow-wrap: break-word; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background 0.15s ease;
}
.footer-social a:hover { background: var(--color-cta); }
.footer-bottom {
  max-width: 1160px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
}

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
 
}

/* Inventory header */
.inventory-header {padding: 48px 24px 40px; }
.inventory-header-inner { max-width: 1160px; margin: 0 auto; margin-top: -20px; }
.inventory-header h1 { color: #000000; font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin-bottom: 6px; }
.inventory-header p { color: #000000; margin: 0; }

.inventory-wrap { max-width: 1160px; margin: 0 auto; margin-top: -20px; padding: 32px 24px 80px; }

.filter-toggle {
  display: none; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--color-border); border-radius: 10px;
  padding: 10px 16px; font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  color: var(--color-heading); cursor: pointer; margin-bottom: 20px;
}

.inventory-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }

.filter-panel {
  background: #fff; border: 1px solid var(--color-border); border-radius: 16px;
  padding: 24px; position: sticky; top: 24px; min-width: 0;
}
.filter-form { display: flex; flex-direction: column; gap: 32px; }
.filter-group { display: flex; flex-direction: column; gap: 15px; }
.filter-group label, .filter-label { font-size: 0.85rem; font-weight: 600; color: var(--color-heading); }
.filter-group input[type="text"], .filter-group input[type="number"], .filter-group select {
  border: 1px solid var(--color-border); border-radius: 8px; padding: 10px 12px;
  font-family: var(--font-body); font-size: 0.9rem; background: var(--color-canvas); width: 100%; min-width: 0;
}

#filter-usd{
  margin-top: 20px;
}
.sort-by{
  margin-top: 20px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 24px; /* Creates horizontal space between the Apply button and Reset link */
  margin-top: 8px; /* Adds a little extra push away from the Sort dropdown */
}
.filter-group input:focus, .filter-group select:focus {
  outline: none; border-color: var(--color-nav); background: #fff;
  box-shadow: 0 0 0 3px rgba(11,59,130,0.12);
}
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 400; color: var(--color-body); }
.price-inputs { display: flex; align-items: center; gap: 10px; }
.muted { font-size: 0.85rem; color: #94A3B8; margin: 0; }

.btn-apply {
  background: var(--color-cta); color: #fff; border: none; border-radius: 10px;
  padding: 12px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background 0.15s ease;
}
.btn-apply:hover { background: var(--color-cta-dark); }
.btn-reset { text-align: center; font-size: 0.85rem; color: var(--color-body); text-decoration: underline; }

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.vehicle-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow 0.15s ease, transform 0.15s ease;
  max-width: 380px;
}
.vehicle-card:hover { box-shadow: 0 16px 32px -18px rgba(15,23,42,0.25); transform: translateY(-2px); }
.vehicle-photo { position: relative; aspect-ratio: 4 / 3; background: var(--color-canvas); }
.vehicle-photo img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #94A3B8; font-size: 0.85rem; }
.pill { position: absolute; top: 12px; left: 12px; background: var(--color-pill-bg); color: var(--color-pill-text); font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.vehicle-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.vehicle-info h3 { font-size: 1.05rem; margin: 0; }
.vehicle-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price { font-family: var(--font-heading); font-weight: 700; color: var(--color-heading); font-size: 1.05rem; }
.btn-enquire {
  background: var(--color-cta); color: #fff; text-decoration: none; font-size: 0.85rem; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; white-space: nowrap; transition: background 0.15s ease;
}
.btn-enquire:hover { background: var(--color-cta-dark); }

.empty-state { grid-column: 1 / -1; text-align: center; color: var(--color-body); padding: 60px 20px; }
.empty-state a { color: var(--color-nav); font-weight: 600; }

/* About hero */
.about-hero {
  min-height: 480px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 56px 24px;
}
.about-hero-inner { max-width: 640px; }
.about-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.about-hero p { color: rgba(255,255,255,0.88); font-size: 1.05rem; max-width: 56ch; margin: 0; }

/* Stats */
.stats-section { padding: 64px 24px; }
.stats-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  background: #fff; border-radius: 16px; padding: 28px 24px;
  box-shadow: 0 8px 24px -16px rgba(15,23,42,0.2);
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.stat-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--color-pill-bg); color: var(--color-pill-text);
  display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
}
.stat-number { font-family: var(--font-heading); font-weight: 700; font-size: 2.1rem; color: var(--color-nav); line-height: 1; }
.stat-label { font-size: 0.92rem; color: var(--color-body); }

@media (max-width: 860px) {
  /* Sidebar base styling */
.filter-sidebar {
  background: #fff; border: 1px solid var(--color-border); border-radius: 16px;
  padding: 24px; position: sticky; top: 24px; min-width: 0;
}

/* Flex wrapper for the collapsible items */
.advanced-filters {
  display: flex; flex-direction: column; gap: 22px; margin-top: 22px;
}

/* Button styling - hidden on desktop */
.filter-toggle {
  display: none; align-items: center; justify-content: center; gap: 8px;
  background: var(--color-canvas); border: 1px solid var(--color-border); border-radius: 8px;
  padding: 12px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  color: var(--color-heading); cursor: pointer; width: 100%; margin-top: 16px;
  transition: background 0.15s ease;
}

.filter-toggle:hover {
  background: var(--color-border);
}

/* Mobile Layout Override */
@media (max-width: 860px) {
  .inventory-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; padding: 20px; }
  
  /* Show the toggle button */
  .filter-toggle { display: flex; }
  
  /* Hide advanced filters by default on mobile */
  #filterPanel { display: none; margin-top: 20px; }
  
  /* Show them when JS adds the class */
  #filterPanel.is-open { display: flex; }
}
}
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr; }
  .vehicle-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .price { text-align: center; }
  .btn-enquire {
    width: 100%;
    text-align: center;
  }
}

/* Services Header */
.services-header {
  padding: 80px 24px 40px;
  background: var(--color-canvas);
  text-align: center;
}

.services-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.subheading {
  display: inline-block;
  font-family: var(--font-heading);
  color: var(--color-cta);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.services-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--color-nav);
}

.services-header h1 span {
  color: var(--color-cta); /* Highlights "Your Needs" like the orange text in the template */
}

/* Services Grid */
.services-section {
  padding: 0 24px 96px;
  background: var(--color-canvas);
}

.services-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px 32px;
}

/* Service Card Container */
.svc-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px; /* Soft rounded corners matching site structure */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(15,23,42,0.15);
}

/* Image Wrap & Gradient */
.svc-img-wrap {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Intersecting Icon Box */
.svc-icon-box {
  position: absolute;
  bottom: -28px;      /* Pulls the icon halfway out of the image */
  left: 24px;         /* Anchors it to the bottom-left */
  width: 64px;
  height: 64px;
  background: var(--color-nav);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid var(--color-surface); /* Creates the cutout effect */
  box-sizing: content-box; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Text Content Area */
.svc-content {
  padding: 44px 32px 32px; /* Top padding is large to clear the overlapping icon */
  flex-grow: 1;
}

.svc-content h3 {
  font-size: 1.25rem;
  color: var(--color-heading);
  margin-bottom: 12px;
}

.svc-content p {
  font-size: 0.95rem;
  color: var(--color-body);
  margin: 0;
  line-height: 1.6;
}

/* Tablet & Mobile adjustments */
@media (max-width: 860px) {
  .services-header {
    padding: 56px 24px 32px;
  }
  
  .services-section {
    padding: 0 24px 64px;
  }
  
  .services-grid {
    /* Forces a strict single column rather than relying only on auto-fit */
    grid-template-columns: 1fr; 
    gap: 32px;
  }
}

/* Small phone adjustments */
@media (max-width: 480px) {
  .svc-img-wrap {
    height: 180px; /* Prevents the image from taking up too much vertical space */
  }
  
  .svc-content {
    padding: 36px 20px 24px; /* Reduces side padding to give text more room */
  }
  
  .svc-icon-box {
    left: 20px; /* Re-aligns with the new content padding */
    width: 56px;
    height: 56px;
    bottom: -24px; /* Adjusts intersection depth for the slightly smaller icon */
  }
  
  /* Scale down the SVG inside the icon box proportionally */
  .svc-icon-box svg {
    width: 20px;
    height: 20px;
  }
}


/* Home Hero Section */
.home-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Apply the gradient and grab the image variable passed from HTML */
  background-image: linear-gradient(to right, rgba(248, 250, 252, 1) 0%, rgba(248, 250, 252, 0.9) 35%, rgba(248, 250, 252, 0) 100%), var(--hero-bg);
}

.home-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Constrain the text width to keep it left-aligned */
.home-hero-content {
  max-width: 580px;
}

/* Small Kicker Text */
.home-kicker {
  display: block;
  font-family: var(--font-heading);
  color: var(--color-cta);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* Main Headline */
.home-hero h1 {
  /* Dropped the minimum size from 2.8rem to 2rem so it scales down beautifully on mobile */
  font-size: clamp(2rem, 8vw, 4.2rem); 
  color: var(--color-nav);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.home-hero h1 span {
  color: var(--color-cta); /* Highlights "DREAM TODAY" in red */
}

/* Subtext */
.home-hero p {
  font-size: 1.1rem;
  color: var(--color-body);
  max-width: 45ch;
  margin: 0 0 40px;
  line-height: 1.6;
}

/* Buttons Container */
.home-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Solid Button (Browse Inventory) */
.btn-solid {
  background: var(--color-cta);
  color: #fff;
  padding: 16px 32px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px; /* Slightly squarer borders to match the template */
  transition: background 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-solid:hover {
  background: var(--color-cta-dark);
}

/* Outline Button (Staff Dashboard) */
.btn-outline {
  background: transparent;
  color: var(--color-heading);
  border: 2px solid var(--color-heading);
  padding: 14px 30px; /* Accounts for the 2px border to match the solid button height */
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  background: var(--color-heading);
  color: #fff;
}

/* Tablet & Mobile Adjustments */
@media (max-width: 860px) {
  .home-hero {
    min-height: 70vh;
    /* Switch gradient to fade top-to-bottom so text is readable, while keeping the dynamic image */
    background-image: linear-gradient(to bottom, rgba(248, 250, 252, 1) 0%, rgba(248, 250, 252, 0.9) 55%, rgba(248, 250, 252, 0.3) 100%), var(--hero-bg);
  }
  
  .home-hero-content {
    margin-top: 40px; /* Pushes the text down slightly on mobile */
  }
  
  .home-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-solid, .btn-outline {
    width: 100%;
  }
}

/* Testimonials Grid Layout */
.testimonials-section {
  padding: 0 24px 96px;
  background: var(--color-canvas);
}

.testimonials-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  /* Mirrors the exact responsive grid from the services page */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

/* Testimonial Card Styling */
.testimonial-card {
  background: var(--color-surface); /* White card */
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px; /* Even spacing between stars, text, and user info */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(15,23,42,0.15);
}

/* Star Rating */
.stars {
  display: flex;
  gap: 4px;
  color: #F59E0B; /* Classic amber color for stars */
}

/* Review Text */
.review-text {
  font-size: 0.95rem;
  color: var(--color-body);
  line-height: 1.7;
  margin: 0;
  flex-grow: 1; /* Pushes the user profile securely to the bottom of the card */
}

/* User Info Section */
.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-pill-bg);
  color: var(--color-pill-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-heading);
  line-height: 1;
}

.user-role {
  font-size: 0.85rem;
  color: #64748B; /* Slightly muted color for the role */
  line-height: 1;
}

/* Mobile Adjustments */
@media (max-width: 860px) {
  .testimonials-section {
    padding: 0 24px 64px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .testimonial-card {
    padding: 28px 24px;
  }
}

.login-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: 16px;
  padding: 40px; max-width: 380px; width: 100%;
  box-shadow: 0 20px 50px -30px rgba(15,23,42,0.3);
}
.login-card h1 { font-size: 1.4rem; margin-bottom: 6px; }
.login-card .muted { font-size: 0.9rem; color: #64748B; margin-bottom: 24px; }
.login-card form { display: flex; flex-direction: column; gap: 18px; }
.login-error { background: #FEF2F2; color: #B91C1C; padding: 10px 14px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 16px; }
.login-card .btn-send { width: 100%; }

/* Dashboard */
.dash-wrap { max-width: 1160px; margin: 0 auto; padding: 40px 24px 80px; }
.dash-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.dash-topbar h1 { margin-bottom: 4px; }
.dash-topbar .muted { color: #64748B; font-size: 0.92rem; margin: 0; }
.dash-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.btn-outline-sm {
  border: 1.5px solid var(--color-nav); color: var(--color-nav); text-decoration: none;
  padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease; white-space: nowrap;
}
.btn-outline-sm:hover { background: var(--color-nav); color: #fff; }
.btn-text-sm { color: var(--color-body); text-decoration: underline; font-size: 0.85rem; }

.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
.dash-panel { background: #fff; border: 1px solid var(--color-border); border-radius: 16px; padding: 24px; min-width: 0; }
.dash-panel h2 { font-size: 1.05rem; margin-bottom: 16px; }
.dash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dash-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 0.9rem; color: var(--color-body); padding-bottom: 12px; border-bottom: 1px solid var(--color-border);
}
.dash-list li:last-child { border-bottom: none; padding-bottom: 0; }
.dash-amount { font-family: var(--font-heading); font-weight: 700; color: var(--color-heading); white-space: nowrap; }
.dash-empty { color: #94A3B8; font-style: italic; border-bottom: none !important; }

@media (max-width: 860px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-topbar { flex-direction: column; align-items: stretch; }
  .dash-actions { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr; }
}

.message { position: relative; padding-right: 36px; transition: opacity 0.4s ease, transform 0.4s ease; }
.message.is-fading { opacity: 0; transform: translateY(-8px); }
.message-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 4px;
}

button[type="submit"]:disabled { opacity: 0.7; cursor: not-allowed; }
.field-error { color: #B91C1C; font-size: 0.82rem; margin: 4px 0 0; }