:root {
  --bg: #f4f6f9;
  --content: #ffffff;
  --surface: #ffffff;
  --text-dark: #0f172a;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #e53935; /* red */
  --primary-dark: #c62828;
  --outline: #0f172a;
  --hero-start: #0e1a2b;
  --hero-end: #16283f;
  --radius: 16px;
  --shadow-card: 0 10px 30px rgba(2, 6, 23, 0.06);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth; /* smooth in-page scrolling */
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  font-size: 17px;
  line-height: 1.6;
  padding-top: 72px; /* offset for fixed header height */
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border-radius: 12px; }

/* Containers */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(2,6,23,0.06);
  box-shadow: 0 6px 18px rgba(2,6,23,0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.logo-img {
  height: 34px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 36px;
  width: auto;
  display: inline-block;
}

/* Panel contains the links; desktop inline, mobile becomes dropdown */
.nav-panel {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  opacity: 0.9;
  font-weight: 500;
  transition: color 160ms ease, opacity 160ms ease;
}
/* Hover red for nav links, exclude the Contact button */
.nav-links a:not(.btn):hover {
  color: var(--primary);
  opacity: 1;
}

/* Toggle + Close buttons */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle .bar {
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  display: block;
  margin: 4px 0;
}
.nav-close {
  display: none; /* shown only on mobile panel */
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-dark);
  padding: 6px;
}

/* Main layout */
main { flex: 1 0 auto; }

/* Hero */
.hero {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(255,255,255,0.05), transparent 60%),
              linear-gradient(180deg, var(--hero-start), var(--hero-end));
  color: #fff;
  padding: 96px 0 96px;
}

/* Hero layout: row with larger image column */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr; /* make image side larger */
  align-items: center;
  gap: 36px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: 0.2px;
}

.hero p {
  margin: 0 0 22px;
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-media img { width: 100%; height: auto; border-radius: 14px; }
.why-media img { width: 100%; height: auto; border-radius: 14px; }

/* Sections */
.section {
  padding: 72px 0;
}
services-footer { margin-top: 18px; text-align: center; }

/* Locations section - match Why Choose layout side-by-side */
.location_section{
  padding-top: 72px;
  border: lightslategray;
  border-top: light-grey;
}
.locations-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px; /* match site image corners */
  box-shadow: var(--shadow-card);
}

/* Make the Locations layout side-by-side like Why Choose, but with a larger/wider image */
#locations .why-grid {
  grid-template-columns: 1fr 1.3fr; /* larger image column */
  gap: 36px;                        /* consistent spacing */
  align-items: center;
}

/* Responsive: stack on tablet/phone */
@media (max-width: 1024px) {
  #locations .why-grid {
    grid-template-columns: 1fr;
  }
}

.link-red{
  color: #e53935;
  text-decoration: underline;
  padding: 10px;
  display: flex;
  justify-content: center;
}

.link-red:hover { color: var(--primary-dark); }

.section--alt {
  background: #eef2f7;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--text-dark);
  text-align: center;
}

.section-lead {
  margin: 0 auto 36px;
  color: var(--muted);
  text-align: center;
  max-width: 780px;
  font-size: 1.1rem;
}

/* Cards / Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Services carousel */
.services-carousel { position: relative; padding-top: 28px; }
.services-viewport {
  overflow: hidden;
}
.services-track {
  display: flex;
  gap: 24px;
  will-change: scroll-position;
  scroll-behavior: smooth;
}
.services-track .service-card {
  flex: 0 0 calc(33.333% - 16px);
}

.bg-grey{
  background: #eef2f7;
}

/* Arrows - top-right corner */
.svc-arrow {
  position: absolute;
  top: -18px; /* lift arrows above cards */
  right: 10px;
  transform: none;
  z-index: 2;
  background: #fff;
  border: 1px solid rgba(2,6,23,0.12);
  box-shadow: var(--shadow-card);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.svc-arrow.prev { right: 56px; left: auto; }
.svc-arrow.next { right: 10px; }
.svc-arrow:hover { background: #f5f7fa; }

/* Services cards with SVG icons */
.services-grid .service-card,
.services-track .service-card { padding-top: 22px; }
.svc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.svc-icon { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: none; border-radius: 0; box-shadow: none; }
.svc-icon svg { width: 28px; height: 28px; stroke: #e53935; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.services-grid h3, .services-track h3 { margin: 2px 0 0; font-size: 1.2rem; }
.services-grid p, .services-track p { margin: 10px 0 12px; color: var(--text); }
.services-grid .bullets, .services-track .bullets { margin: 0; padding-left: 18px; color: var(--muted); }
.services-grid .bullets li, .services-track .bullets li { margin: 4px 0; }

/* Responsive sizing for carousel cards */
@media (max-width: 1024px) {
  .services-track .service-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 640px) {
  .services-track .service-card { flex: 0 0 100%; }
  .svc-arrow.prev { left: 6px; }
  .svc-arrow.next { right: 6px; }
}

.card {
  background: var(--surface);
  border: 1px solid rgba(2,6,23,0.06);
  border-radius: var(--radius);
  padding: 28px 28px;
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--text-dark);
}
.card p {
  margin: 0;
  color: var(--muted);
}

.bullets {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.bullets li { margin: 4px 0; }

.about {
  padding-bottom: 70px;
  text-align: center;
}

/* Why section layout */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 0.3fr; /* make image about half of previous size */
  gap: 48px; /* more spacing between text and image */
  align-items: start;
}

/* New why-list style (no individual boxes) */
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 26px;
}
.why-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}
.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #10b981;
  border-radius: 999px;
  background: #ecfdf5;
}
.why-icon svg {
  width: 22px;
  height: 22px;
  stroke: #059669;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-copy h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  color: var(--text-dark);
}
.why-copy p {
  margin: 0;
  color: var(--muted);
}

.why-cards { display: none; }

/* Contact (Dark variant to match screenshot) */
.contact--dark {
  background: #0f1a2b; /* full section solid color */
  padding-bottom: 72px;
}
.section-title--light,
.section-lead--light { color: rgba(255,255,255,0.92); }
.section-lead--light { opacity: 0.9; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-layout--dark .contact-info,
.contact-layout--dark .form {
  background: transparent; /* single flat background, no card look */
  border: none;
  box-shadow: none;
}

.contact-info--dark { color: rgba(255,255,255,0.92); }
.contact-heading {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.95);
}

.contact-rows { display: grid; gap: 22px; }
.contact-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.ci-icon { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.ci-icon svg { width: 24px; height: 24px; stroke: #e53935; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.contact-info--dark strong { display: block; margin-bottom: 6px; }

.form,
.contact-info {
  background: var(--surface);
  border: 1px solid rgba(2,6,23,0.06);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.form--dark input,
.form--dark textarea {
  background: rgba(255,255,255,0.06);
  color: #e6edf7;
  border: 1px solid rgba(255,255,255,0.1);
}
.form--dark input::placeholder,
.form--dark textarea::placeholder {
  color: rgba(230,237,247,0.6);
}
.form--dark input:focus,
.form--dark textarea:focus {
  border-color: rgba(229,57,53,0.7);
  box-shadow: 0 0 0 3px rgba(229,57,53,0.12);
}

.form { max-width: none; }

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

label { color: var(--text-dark); font-size: 0.95rem; }
input, textarea {
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(2,6,23,0.12);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  outline: none;
}
input:focus, textarea:focus {
  border-color: rgba(229,57,53,0.7);
  box-shadow: 0 0 0 3px rgba(229,57,53,0.12);
}

.form-status {
  margin: 6px 0 0;
  color: var(--muted);
}

.btn-full { width: 100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(229,57,53,0.22);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline.dark {
  color: var(--text);
  border-color: rgba(2,6,23,0.4);
}
.btn-outline:hover { border-color: #fff; }

/* Footer (Dark bar per screenshot) */
.site-footer--dark {
  background: #000; /* solid black background */
  color: rgba(255,255,255,0.85);
  padding: 28px 0; /* match header/container spacing */
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-stack {
  display: flex;
  flex-direction: row;           /* arrange items in a row */
  align-items: center;           /* vertical alignment */
  justify-content: space-between;/* spread across the row */
  gap: 12px;
  flex-wrap: wrap;               /* wrap on smaller widths */
}
.footer-stack .tagline {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
}

/* Footer responsive: stack on small screens */
@media (max-width: 640px) {
  .footer-stack {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
  }
}

/* Mobile menu: backdrop under header when open */
@media (max-width: 822px) {
  .site-header.nav-open::after {
    content: "";
    position: fixed;
    inset: 72px 0 0 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: saturate(120%) blur(2px);
    z-index: 39;
  }
}

/* Mobile navigation panel (822px and below) */
@media (max-width: 822px) {
  .nav-toggle { display: block; }

  .nav-panel {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 20px;
    background: #fff;
    border-bottom: 1px solid rgba(2,6,23,0.06);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform 180ms ease, opacity 180ms ease, visibility 0s linear 180ms;
  }

  .nav-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: transform 200ms ease, opacity 200ms ease;
  }

  .nav-close { display: block; }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 8px;
  }
}

/* Other Services */
.other-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.other-card {
  display: grid;
  gap: 0; /* no spacing between image and title */
  text-decoration: none;
}
.other-card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px 14px 0 0; /* top-rounded only */
  overflow: hidden;
  background: #e5e7eb;
  border: 1px solid rgba(2,6,23,0.06);
  border-bottom: 0; /* seam with title background */
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.other-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(229,57,53,0); /* red tint off by default */
  transition: background 200ms ease;
}
.other-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
  border-radius: 14px 14px 0 0; /* remove bottom rounding, match card top */
}
.other-card .other-label {
  display: block;
  font-weight: 800;            /* bolder */
  font-size: 1.12rem;          /* slightly bigger */
  color: var(--text-dark);
  background: #ffffff;         /* white background */
  border: none;                /* remove border */
  padding: 10px 12px;
  border-radius: 0 0 14px 14px;/* bottom-rounded to form one card with image */
  box-shadow: var(--shadow-card); /* subtle depth to match image */
}
.other-card:hover .thumb {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(2,6,23,0.12);
}
.other-card:hover .thumb::after {
  background: rgba(229,57,53,0.22); /* red hover effect */
}
.other-card:hover img {
  transform: scale(1.02);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; } /* stack hero on tablets/phones */
}
@media (max-width: 822px) {
  .grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }

  .other-services-grid {
    grid-template-columns: 1fr;
  }
}