/* ============================================================
   Life Care Ambulance Services — main stylesheet
   ============================================================ */
:root {
  --red: #d62828;
  --red-dark: #b31f1f;
  --navy: #14213d;
  --navy-light: #1f2f52;
  --ink: #22303f;
  --muted: #5b6b7b;
  --bg: #f6f8fa;
  --white: #ffffff;
  --green: #1faa55;
  --green-dark: #178a45;
  --border: #e3e8ee;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(20, 33, 61, 0.08);
  --shadow-lg: 0 10px 34px rgba(20, 33, 61, 0.14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 50px; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); }
.btn-white { background: #fff; color: var(--navy); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy); color: #cfd8e6; font-size: .84rem;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  background: #fff; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(20,33,61,.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px; background: var(--red);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-mark svg { width: 24px; height: 24px; }
.logo-text { line-height: 1.15; }
.logo-text strong { display: block; color: var(--navy); font-size: 1.05rem; }
.logo-text span { font-size: .72rem; color: var(--red); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: 9px 14px; border-radius: 8px; transition: background .15s, color .15s;
}
.main-nav a:hover { background: #f1f4f8; color: var(--red); }
.main-nav a.active { color: var(--red); background: #fdeeee; }
.header-call { display: inline-flex; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle svg { width: 28px; height: 28px; stroke: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #1d2c4f 55%, #46203a 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(214,40,40,.28), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(31,47,82,.6), transparent 60%);
}
.hero-inner { position: relative; padding: 84px 0 96px; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(214,40,40,.18); border: 1px solid rgba(214,40,40,.45);
  color: #ffb3b3; font-weight: 700; font-size: .82rem; letter-spacing: .05em;
  padding: 6px 14px; border-radius: 50px; text-transform: uppercase; margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5252; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.12; margin-bottom: 18px; font-weight: 800; }
.hero p { font-size: 1.13rem; color: #c9d3e2; margin-bottom: 32px; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-phone-note { margin-top: 18px; font-size: .95rem; color: #9fb0c6; }
.hero-phone-note a { color: #fff; font-weight: 700; }

/* ---------- Stats strip ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--border); }
.stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr); text-align: center;
}
.stat { padding: 26px 10px; }
.stat b { display: block; font-size: 1.7rem; color: var(--red); font-weight: 800; }
.stat span { font-size: .88rem; color: var(--muted); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 74px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head .eyebrow {
  color: var(--red); font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; font-size: .8rem; display: block; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--navy); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 26px; border: 1px solid var(--border);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; background: #fdeeee;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card .icon svg { width: 28px; height: 28px; stroke: var(--red); }
.card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--muted); font-size: .95rem; }
.card-img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; margin-bottom: 18px; }

/* ---------- City cards ---------- */
.city-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.city-map { width: 100%; height: 220px; border: 0; display: block; }
.city-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.city-title { display: flex; align-items: center; gap: 10px; }
.city-title h3 { color: var(--navy); font-size: 1.2rem; font-weight: 800; }
.badge {
  background: #fdeeee; color: var(--red); font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 50px;
}
.city-body .meta { color: var(--muted); font-size: .92rem; display: flex; gap: 8px; align-items: flex-start; }
.city-body .meta svg { width: 16px; height: 16px; stroke: var(--red); flex-shrink: 0; margin-top: 3px; }
.city-actions { margin-top: auto; padding-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.city-actions .btn { padding: 10px 18px; font-size: .9rem; }

/* ---------- About ---------- */
.about-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.about-visual {
  border-radius: var(--radius); min-height: 340px; overflow: hidden; position: relative;
  background: linear-gradient(140deg, var(--navy), #2a3d63);
  display: flex; align-items: center; justify-content: center;
}
.about-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-visual .fallback-icon svg { width: 110px; height: 110px; stroke: rgba(255,255,255,.35); }
.about-text h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--navy); font-weight: 800; margin-bottom: 16px; }
.about-text p { color: var(--muted); margin-bottom: 20px; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.check-list svg { width: 22px; height: 22px; stroke: var(--green); flex-shrink: 0; margin-top: 2px; }

/* ---------- Testimonials ---------- */
.testimonial p { font-style: italic; color: var(--ink); margin-bottom: 16px; }
.testimonial .who { font-weight: 700; color: var(--navy); font-size: .92rem; }
.testimonial .who span { color: var(--muted); font-weight: 500; }
.stars { color: #f4b400; letter-spacing: 2px; margin-bottom: 12px; font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery-grid img {
  width: 100%; height: 210px; object-fit: cover; border-radius: 12px;
  box-shadow: var(--shadow); transition: transform .18s;
}
.gallery-grid img:hover { transform: scale(1.025); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red) 0%, #a31616 100%);
  color: #fff; text-align: center; padding: 64px 0;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: #ffd9d9; margin-bottom: 28px; max-width: 560px; margin-inline: auto; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 38px; border: 1px solid var(--border); max-width: 720px; margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: .88rem; color: var(--navy); }
.form-field label .req { color: var(--red); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  background: #fbfcfd; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(214,40,40,.12); background: #fff;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.form-status { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.form-status.error { display: block; background: #fdeeee; color: var(--red-dark); border: 1px solid #f5c6c6; }
.form-status.info { display: block; background: #eef6ff; color: #1d4e89; border: 1px solid #cfe3f7; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy), #23345c); color: #fff;
  padding: 56px 0; text-align: center;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: #c9d3e2; max-width: 560px; margin: 0 auto; }

/* ---------- Contact info ---------- */
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 46px; }
.info-tile { text-align: center; }
.info-tile .icon { margin: 0 auto 14px; }
.info-tile a { font-weight: 700; color: var(--navy); word-break: break-word; }
.info-tile a:hover { color: var(--red); }

/* ---------- Thank you ---------- */
.thankyou-wrap { text-align: center; padding: 90px 0; max-width: 620px; margin: 0 auto; }
.thankyou-wrap .big-check {
  width: 92px; height: 92px; border-radius: 50%; background: #e8f7ee;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 26px;
}
.thankyou-wrap .big-check svg { width: 48px; height: 48px; stroke: var(--green); }
.thankyou-wrap h1 { color: var(--navy); font-size: 2rem; font-weight: 800; margin-bottom: 14px; }
.thankyou-wrap p { color: var(--muted); margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c5d6; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-weight: 700; }
.site-footer a { color: #b9c5d6; display: block; padding: 4px 0; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: .93rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center;
  font-size: .85rem; color: #8fa0b5;
}

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: #fff; box-shadow: 0 -4px 18px rgba(20,33,61,.16);
  grid-template-columns: 1fr 1fr 1fr;
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 4px 12px; font-size: .74rem; font-weight: 700; color: var(--navy);
}
.mobile-bar a svg { width: 22px; height: 22px; }
.mobile-bar .m-call { color: var(--red); }
.mobile-bar .m-call svg { stroke: var(--red); }
.mobile-bar .m-wa { color: var(--green); }
.mobile-bar .m-wa svg { stroke: var(--green); }
.mobile-bar .m-book svg { stroke: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px; box-shadow: 0 12px 24px rgba(20,33,61,.12); gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 16px; }
  .nav-toggle { display: block; }
  .header-call { display: none; }
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .mobile-bar { display: grid; }
  body { padding-bottom: 64px; }
  .hero-inner { padding: 60px 0 70px; }
  .form-card { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .topbar .container { justify-content: center; }
}
