/* =========================================================
   EDENS REFRIGERATION & AIR-CONDITIONING — MASTER STYLESHEET
   Design tokens derived from brand logo:
   navy (mountain) / electric blue (cold) / red (heat) / ice white
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Work+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  /* Color tokens */
  --navy-900: #0b1b3a;
  --navy-800: #122451;
  --blue-500: #1d6fe0;
  --blue-400: #4c93f0;
  --red-500: #d6283f;
  --red-600: #b81f33;
  --ice-50: #f4f8fc;
  --ice-100: #e9f1fa;
  --slate-600: #4a5568;
  --slate-400: #8b96a8;
  --white: #ffffff;

  /* Gradient signature: cold -> hot, echoes the logo's snowflake/sun icon */
  --gradient-thermo: linear-gradient(90deg, var(--blue-500) 0%, var(--blue-400) 35%, var(--red-500) 70%, var(--red-600) 100%);

  /* Type */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1400px;
  --radius: 10px;
  --shadow-soft: 0 8px 30px rgba(11, 27, 58, 0.08);
  --shadow-card: 0 4px 18px rgba(11, 27, 58, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.1;
  letter-spacing: 0.3px;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { color: var(--slate-600); }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--blue-500);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--red-500);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-600); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(214, 40, 63, 0.3); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--navy-900);
}
.btn-outline-navy:hover { background: var(--navy-900); color: var(--white); }

.btn-block { width: 100%; }

/* Thermo divider - the signature element, used between sections */
.thermo-divider {
  height: 4px;
  width: 100%;
  background: var(--gradient-thermo);
  border: none;
}

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ice-100);
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand img { height: 54px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--navy-900);
  position: relative;
  padding: 6px 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gradient-thermo);
  transition: width 0.2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--blue-500); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 22px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 26px; height: 2.5px;
  background: var(--navy-900);
  border-radius: 2px;
}

/* Brand name stacked under the logo */
.brand-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 0.9;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1.2rem;
  letter-spacing: 0.6px;
  margin-left: 10px;
}
.brand-name .main {
  display: block;
  font-size: 1.4rem;
  text-transform: uppercase;
  line-height: 1;
}
.brand-name .sub {
  display: block;
  font-size: 0.52rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--navy-900);
  opacity: 0.9;
  margin-top: 4px;
  white-space: nowrap;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-900) 0%, #142a5c 100%);
  color: var(--white);
  overflow: hidden;
  padding: 26px 0 0;
}

.hero-mountain {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
  padding-bottom: 26px;
}

.hero-copy .eyebrow { color: var(--blue-400); }
.hero-copy h1 { color: var(--white); margin: 14px 0 18px; }
.hero-copy p { color: #c7d2e8; font-size: 1.12rem; max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Centered hero container for better structure and mobile readability */
.centered-hero {
  max-width: 780px;
  margin: 0 auto;
}
.centered-hero .hero-actions { justify-content: flex-start; }

@media (max-width: 980px) {
  .centered-hero { text-align: center; padding: 0 12px; }
  .centered-hero .hero-actions { justify-content: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; max-width: 640px; }
}

@media (max-width: 420px) {
  .hero-copy h1 { font-size: 1.6rem; }
  .hero-copy p { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { gap: 12px; }
}

.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-panel h4 { color: var(--white); font-family: var(--font-mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500; margin-bottom: 18px; color: var(--blue-400);}
.hero-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-row:last-child { border-bottom: none; }
.hero-stat-row span:first-child { color: #c7d2e8; font-size: 0.95rem; }
.hero-stat-row span:last-child { font-family: var(--font-mono); color: var(--white); font-weight: 500; }

/* Service ticker */
.ticker-band {
  background: var(--navy-800);
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: inline-flex;
  animation: scroll-ticker 32s linear infinite;
  padding: 14px 0;
}
.ticker-track span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #a9b7d1;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
@keyframes scroll-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ===================== SECTION GENERIC ===================== */
.section { padding: 44px 0; }
.section-alt { background: var(--ice-50); padding: 44px 0 28px; }
.cta-section { padding: 18px 0 14px; }
.section-head { max-width: 640px; margin-bottom: 20px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 8px; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ===================== SERVICES GRID ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--ice-100);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-thermo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 50px; height: 50px;
  border-radius: 8px;
  background: var(--ice-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--blue-500);
}
.service-card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.service-card p { font-size: 0.95rem; }
.service-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--slate-400);
  margin-bottom: 8px;
  display: block;
}

/* ===================== WHY US ===================== */
.why-section { padding: 26px 0 20px; }
.about-qa-section { padding: 20px 0 20px; }
.about-page-header { padding: 22px 0 18px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.why-card {
  text-align: left;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--ice-100);
  box-shadow: 0 2px 10px rgba(11, 27, 58, 0.04);
}
.why-card .num { display: none; }
.why-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.why-card p { font-size: 0.92rem; line-height: 1.5; color: var(--slate-600); }

/* ===================== CAROUSEL (services + reviews) ===================== */
.carousel { position: relative; margin: 12px 0; }
.carousel .carousel-track-wrap {
  overflow: hidden;
  position: relative;
  min-height: 0;
  transition: height 0.22s ease;
}
.carousel-track { display: block; list-style: none; padding: 0; margin: 0; position: relative; min-height: 1px; }
.carousel-item { position: absolute; left: 50%; top: 0; transform: translateX(-50%) translateY(8px); width: min(880px, 100%); display: flex; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s; }
.carousel-item.active { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.carousel .carousel-item .service-card, .carousel .carousel-item .review-card { height: 100%; width: 100%; }
.carousel-btn { position: absolute; top: 50%; left: 0; background: var(--white); border: 1px solid rgba(11,27,58,0.08); width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:20px; cursor:pointer; z-index:70; box-shadow: 0 6px 20px rgba(11,27,58,0.06);} 
.carousel-btn.prev { left: auto; }
.carousel-btn.next { right: auto; }
.carousel-dots { text-align:center; margin-top:12px; }
.carousel-dots button { width:10px; height:6px; border-radius:6px; background:#e6eefb; border:none; margin:0 6px; display:inline-block; }
.carousel-dots button.active { background:var(--blue-500); height:6px; }

/* Reviews specific sizing */
.reviews-carousel .carousel-track-wrap {
  overflow: hidden;
  min-height: 215px;
  touch-action: pan-y;
}
.reviews-carousel .carousel-item {
  width: min(620px, 92%);
  height: auto;
  overflow: hidden;
}

/* Service cards in carousel */
.carousel .service-card {
  min-height: 130px;
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 26px;
}
.carousel .service-card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.carousel .service-card p { line-height: 1.55; color: var(--slate-600); margin: 0; max-height: none; overflow: visible; }

/* Review cards: fixed uniform height (150 char limit) so all cards stay identical and never jump */
.reviews-carousel .review-card {
  height: 215px;
  min-height: 215px;
  max-height: 215px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--ice-100);
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
  overflow: hidden;
  touch-action: pan-y;
}
.reviews-carousel .review-card .review-stars {
  margin-bottom: 8px;
  font-size: 0.95rem;
  flex-shrink: 0;
  line-height: 1;
}
.reviews-carousel .review-card .quote {
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--navy-900);
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reviews-carousel .review-author {
  margin-top: 10px;
  flex-shrink: 0;
}
.reviews-action { text-align: center; margin-top: 14px; }
.view-all-services { text-align: center; margin-top: 14px; }
.services-carousel .service-icon,
.services-full-grid .service-icon { display: none; }
.service-full-card { gap: 0; }

/* Smooth arrow reposition animation */
.carousel-btn { transition: left 0.18s ease, right 0.18s ease, transform 0.18s ease, box-shadow 0.12s ease; }

@media (max-width: 720px) {
  .carousel .service-card { min-height: 130px; max-height: none; padding: 18px 20px; }
  .services-carousel .carousel-track-wrap { overflow: hidden; min-height: 0; }
  .services-carousel .carousel-item {
    width: calc(100% - 88px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
  }
  .reviews-carousel .carousel-item {
    width: calc(100% - 88px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
  }
  .services-carousel .carousel-item.active,
  .reviews-carousel .carousel-item.active {
    transform: translateX(-50%) translateY(0);
  }
  .carousel-btn { width:36px; height:36px; }
  .carousel-track-wrap { min-height: 0; }
  .carousel-btn.prev { left: 8px; right: auto; transform: translateY(-50%); }
  .carousel-btn.next { right: 8px; left: auto; transform: translateY(-50%); }

  .reviews-carousel .carousel-track-wrap {
    min-height: 210px;
    overflow: hidden;
    touch-action: pan-y;
  }
  .reviews-carousel .review-card {
    height: 210px;
    min-height: 210px;
    max-height: 210px;
    padding: 16px 18px;
    margin-top: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    touch-action: pan-y;
  }
  .reviews-carousel .review-card .review-stars {
    margin-bottom: 6px;
    line-height: 1;
    flex-shrink: 0;
  }
  .reviews-carousel .review-card .quote {
    margin-bottom: auto;
    font-size: 0.95rem;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .reviews-carousel .review-author {
    margin-top: 8px;
    flex-shrink: 0;
  }
  .reviews-action { margin-top: 12px; }
  .view-all-services { margin-top: 12px; }
  .services-page-header { padding-top: 20px; padding-bottom: 16px; }
  .services-list-section { padding-top: 18px; padding-bottom: 24px; }
}

/* Keep review cards consistent on larger viewports */
@media (min-width: 721px) {
  .reviews-carousel .carousel-item { width: min(720px, 100%); }
}

@media (max-width: 980px) {
  .carousel-item { flex: 0 0 100%; max-width: 720px; }
  .carousel-btn.prev { left: 6px; }
  .carousel-btn.next { right: 6px; }
}
@media (max-width: 720px) {
  .carousel-item { flex: 0 0 88%; max-width: 420px; }
  .carousel-btn { width:36px; height:36px; font-size:18px; }
  .carousel-btn.prev { left: 6px; }
  .carousel-btn.next { right: 6px; }

/* Prevent focus/active causing visual shift; keep box-shadow stable */
.carousel-btn:focus { outline: none; box-shadow: 0 6px 20px rgba(11,27,58,0.06); }
.carousel-btn:active { box-shadow: 0 6px 20px rgba(11,27,58,0.06); }
  .carousel { margin: 8px 0 18px; }
}

/* ===================== ABOUT TEASER ===================== */
.about-teaser {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-teaser-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3.2;
  background: var(--navy-900);
}
.about-teaser-media img { width: 100%; height: 100%; object-fit: cover; }
.about-list { margin-top: 22px; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--ice-100);
  font-size: 0.96rem;
  color: var(--slate-600);
}
.about-list li:first-child { border-top: none; }
.about-list li .tick {
  color: var(--blue-500);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===================== REVIEWS ===================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--ice-100);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.review-stars { color: var(--red-500); font-size: 0.95rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-card p.quote { font-size: 0.96rem; color: var(--navy-900); margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gradient-thermo);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
}
.review-author .name { font-weight: 600; font-size: 0.9rem; }
.review-author .loc { font-size: 0.8rem; color: var(--slate-400); }

/* ===================== CTA BANNER ===================== */
.cta-banner {
  background: var(--navy-900);
  border-radius: 16px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-thermo);
}
.cta-banner h2 { color: var(--white); max-width: 480px; }
.cta-banner p { color: #c7d2e8; margin-top: 10px; }
.cta-contact-info { display: flex; flex-direction: column; gap: 8px; }
.cta-contact-info > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cta-contact-info a { color: var(--white); font-weight: 600; font-size: 1.05rem; }
.cta-contact-info a[href^="tel:"] { white-space: nowrap; }
.cta-contact-info span { color: #8b96a8; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-mono); }

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--navy-900);
  color: #c7d2e8;
  padding: 44px 0 24px;
  margin-top: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img {
  height: 56px;
  margin-bottom: 14px;
  background: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
}
.footer-brand p { color: #8b96a8; font-size: 0.9rem; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #a9b7d1; font-size: 0.92rem; }
.footer-col ul li a:hover { color: var(--blue-400); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #6f7d99;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===================== PAGE HEADER (inner pages) ===================== */
.page-header {
  background: var(--navy-900);
  color: var(--white);
  padding: 16px 0 12px;
  text-align: center;
}
.page-header .eyebrow { color: var(--blue-400); margin-bottom: 4px; display: inline-block; font-size: 0.74rem; }
.page-header h1 { color: var(--white); margin: 0 0 6px; }
.page-header p { color: #c7d2e8; max-width: 560px; margin: 0 auto; font-size: 0.95rem; line-height: 1.4; }
.services-page-header { padding: 16px 0 12px; }
.services-list-section { padding: 16px 0 24px; }

/* ===================== SERVICES PAGE ===================== */
.services-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.service-full-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.service-full-link:hover .service-full-card {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.service-full-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--ice-100);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-full-card .service-icon { flex-shrink: 0; }
.service-full-card h3 { margin-bottom: 8px; }
.service-full-card p { font-size: 0.94rem; }
.service-full-card .service-tag { margin-bottom: 8px; }

.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  border: 1px solid var(--ice-100);
  border-radius: var(--radius);
  background: var(--white);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}
.service-detail-card:last-child { margin-bottom: 0; }
.service-detail-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}
.service-detail-card ul {
  margin-top: 18px;
  padding-left: 20px;
  color: var(--slate-600);
}
.service-detail-card ul li {
  margin-bottom: 10px;
  line-height: 1.55;
}
.service-detail-card .service-tag {
  display: inline-block;
  margin-bottom: 16px;
}
.service-detail-card h3 { margin-bottom: 14px; }
.service-detail-card p { margin-bottom: 16px; color: var(--slate-600); font-size: 1rem; }

#service-details {
  scroll-margin-top: 120px;
}
#service-details .service-detail-card {
  scroll-margin-top: 110px;
}

@media (max-width: 980px) {
  .service-detail-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .service-detail-card {
    padding: 24px;
  }
}

/* ===================== ABOUT PAGE ===================== */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-story p { margin-bottom: 16px; font-size: 1.02rem; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 10px;
}
.value-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ice-50);
}
.value-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; }

.location-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 60px;
}
.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--ice-100);
}
.location-map iframe { width: 100%; height: 320px; border: none; display: block; }
.location-details h3 { margin-bottom: 14px; }
.location-details p { margin-bottom: 8px; }

/* ===================== CONTACT PAGE ===================== */
.contact-layout {
  max-width: 780px;
  margin: 0 auto;
}
.contact-info-card {
  display: none;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--ice-100);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
}
.form-tabs { display: flex; gap: 8px; margin-bottom: 26px; border-bottom: 1px solid var(--ice-100); }
.form-tab {
  padding: 12px 4px;
  margin-right: 24px;
  font-weight: 600;
  color: var(--slate-400);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  background: none; border: none; font-family: var(--font-body); font-size: 1rem;
}
.form-tab.active { color: var(--navy-900); border-bottom-color: var(--red-500); }
.form-panel { display: none; }
.form-panel.active { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--navy-900);
}
.form-group .req { color: var(--red-500); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--ice-100);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--ice-50);
  color: var(--navy-900);
  transition: border-color 0.15s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.field-error { color: var(--red-500); font-size: 0.8rem; margin-top: 6px; display: none; }
.field-error.show { display: block; }

.star-rating { display: flex; gap: 6px; font-size: 1.7rem; margin-bottom: 6px; }
.star-rating span { cursor: pointer; color: var(--ice-100); transition: color 0.1s ease; }
.star-rating span.active { color: var(--red-500); }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #e6f7ec; color: #1c7a3f; }
.form-status.error { background: #fce8e8; color: var(--red-600); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-teaser { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-full-grid { grid-template-columns: 1fr; }
  .about-story { grid-template-columns: 1fr; }
  .location-strip { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .nav-wrap { padding: 10px 16px; }
  .nav-links, .nav-cta .btn-outline-navy { display: none; }
  .menu-toggle { display: flex; }
  .brand-name { display: inline-block; font-size: 0.95rem; margin-left:6px; }
  .brand img { height: 42px; }
  .nav-wrap.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(14, 44, 88, 0.12);
    border-radius: 14px;
    padding: 18px 18px 14px;
    gap: 14px;
    box-shadow: var(--shadow-soft);
    z-index: 50;
  }
  .nav-wrap.menu-open .nav-links a {
    width: 100%;
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(14, 44, 88, 0.08);
  }
  .nav-wrap.menu-open .nav-links a:last-child {
    border-bottom: none;
  }
  .section { padding: 14px 0; }
  .section-head { margin-bottom: 14px; }
  .why-section { padding: 16px 0 12px; }
  .about-qa-section { padding: 12px 0 14px; }
  .about-page-header { padding: 16px 0 12px; }
  .why-grid { grid-template-columns: 1fr; gap: 10px; }
  .why-card { padding: 14px 16px; }
  .why-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
  .why-card p { font-size: 0.88rem; line-height: 1.45; }
  .services-grid, .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .cta-banner { padding: 22px 18px; flex-direction: column; text-align: center; }
  .cta-contact-info { align-items: center; }
  .cta-contact-info > div { align-items: center; }

  /* Page Header compact mobile */
  .page-header { padding: 8px 0 5px; }
  .page-header .eyebrow { font-size: 0.68rem; letter-spacing: 1.5px; margin-bottom: 1px; }
  .page-header h1 { font-size: 1.22rem; line-height: 1.15; margin: 0 0 3px; }
  .page-header p { font-size: 0.8rem; line-height: 1.28; max-width: 380px; margin: 0 auto; color: #c7d2e8; }

  /* Contact Page mobile layout */
  .contact-layout {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  /* Form Card mobile compact */
  .form-card {
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(11, 27, 58, 0.06);
  }
  .form-tabs {
    gap: 4px;
    margin-bottom: 8px;
  }
  .form-tab {
    padding: 5px 2px;
    margin-right: 12px;
    font-size: 0.86rem;
  }
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 5px;
  }
  .form-group {
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
  }
  .form-group label {
    font-size: 0.74rem;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.2;
    color: var(--navy-900);
  }
  .form-group input,
  .form-group select {
    width: 100%;
    padding: 5px 9px;
    font-size: 0.82rem;
    height: 33px;
    border: 1px solid #d5e1f0;
    border-radius: 5px;
    background: var(--ice-50);
    color: var(--navy-900);
    box-sizing: border-box;
  }
  .form-group input::placeholder,
  .form-group textarea::placeholder {
    font-size: 0.78rem;
    color: #8c9bb0;
    font-weight: 400;
  }
  .form-group textarea {
    width: 100%;
    padding: 6px 9px;
    font-size: 0.82rem;
    min-height: 48px;
    height: 48px;
    border: 1px solid #d5e1f0;
    border-radius: 5px;
    background: var(--ice-50);
    color: var(--navy-900);
    box-sizing: border-box;
    resize: vertical;
  }
  .field-error {
    font-size: 0.7rem;
    margin-top: 2px;
  }
  .star-rating {
    font-size: 1.25rem;
    gap: 4px;
    margin-bottom: 2px;
  }
  .form-panel .btn {
    padding: 8px 14px;
    font-size: 0.88rem;
    border-radius: 5px;
  }
  .form-status {
    margin-top: 6px;
    padding: 7px 10px;
    font-size: 0.8rem;
  }

  /* Leave a Review section reduced spacing */
  #review-panel .form-row {
    margin-bottom: 5px;
  }
  #review-panel .form-group {
    margin-bottom: 5px;
  }
  #review-panel textarea {
    min-height: 46px;
    height: 46px;
  }

  .hero { padding-top: 18px; }
  .hero-inner { padding-bottom: 14px; }
  .hero-copy h1 { margin: 4px 0 6px; }
  .hero-copy p { margin-bottom: 10px; }
  .site-footer { margin-top: 8px; padding-top: 14px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 360px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Centered contact block for About page */
.centered-contact {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 8px 18px;
}

@media (max-width: 980px) {
  .centered-contact { padding: 6px 12px; }
}

/* Centered Q&A card for About page */
.centered-qa {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 8px 18px;
  background: transparent;
}
.centered-qa .eyebrow { display: block; margin-bottom: 6px; }
.centered-qa h3 { margin: 6px 0 8px; }
.centered-qa h4 { margin: 8px 0 4px; }
.centered-qa p { margin: 4px 0 8px; color: var(--slate-600); }

@media (max-width: 720px) {
  .centered-qa { padding: 4px 12px; }
  .centered-qa h3 { font-size: 1.05rem; margin: 4px 0 6px; }
  .centered-qa h4 { font-size: 0.98rem; margin: 6px 0 4px; }
  .centered-qa .qa-item { margin: 10px 0; }
}

/* When `location-strip` contains a single child, make it span and center */
.location-strip > :only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
}

/* Q&A polish */
.centered-qa .qa-item { margin: 18px 0; }
.centered-qa h3 {
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  color: var(--navy-900);
  margin-bottom: 6px;
}
.centered-qa h4 {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: var(--navy-900);
  font-weight: 700;
  margin: 12px 0 6px;
}
.centered-qa p {
  font-size: clamp(0.98rem, 1.8vw, 1.05rem);
  color: var(--slate-600);
  line-height: 1.6;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.centered-qa .btn { margin-top: 20px; }

@media (max-width: 420px) {
  .centered-qa h3 { font-size: 1.15rem; }
  .centered-qa h4 { font-size: 1.02rem; }
  .centered-qa p { font-size: 0.98rem; }
}

/* Additional mobile polish and accessibility tweaks */
html { -webkit-text-size-adjust: 100%; }

/* Slightly smaller body text on very small screens for better fit */
@media (max-width: 420px) {
  body { font-size: 15px; }
  h1 { font-size: 1.8rem; }
}

/* Make mobile menu open as a clean dropdown panel under the header */
.nav-wrap.menu-open .nav-links {
  position: absolute;
  inset: auto 16px auto 16px;
  top: calc(100% + 10px);
  padding: 18px 18px 12px;
  overflow: visible;
  z-index: 200;
}

/* Ensure headers and hero have reduced padding on small phones */
@media (max-width: 420px) {
  .hero { padding-top: 22px; }
  .hero-copy p { font-size: 1rem; }
  .hero-actions .btn { padding: 12px 18px; font-size: 0.95rem; }
}

@media (max-width: 420px) {
  .section { padding: 10px 0; }
  .hero { padding-top: 16px; }
  .hero-inner { padding-bottom: 16px; }
  .page-header { padding: 10px 0 8px; }
  .services-page-header { padding-top: 12px; padding-bottom: 8px; }
  .services-list-section { padding-top: 10px; padding-bottom: 14px; }
  .site-footer { margin-top: 8px; padding: 14px 0 10px; }
  .cta-banner { padding: 16px 12px; }
  .centered-contact { padding: 4px 10px; }
}

/* Service cards: stack content and increase tap area on mobile */
.service-card, .service-full-card {
  touch-action: manipulation;
}
@media (max-width: 720px) {
  .service-full-card { flex-direction: column; gap: 12px; padding: 18px; }
  .service-full-card .service-icon { width: 44px; height: 44px; }
  .service-detail-card { padding: 20px; gap: 18px; }
  .service-detail-card img { height: auto; max-height: 320px; }
}

/* Footer readability on small screens */
@media (max-width: 720px) {
  .site-footer { padding: 16px 0 12px; }
  .footer-grid { gap: 10px; padding-bottom: 8px; }
  .footer-col h4 { margin-bottom: 6px; font-size: 0.95rem; }
  .footer-col ul li { margin-bottom: 4px; font-size: 0.86rem; }
  .footer-col ul li,
  .footer-col ul li a { overflow-wrap: anywhere; }
  .footer-bottom { padding-top: 8px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 4px; font-size: 0.76rem; }
}

/* Improve anchor jump offset on small screens (sticky header) */
@media (max-width: 720px) {
  #service-details { scroll-margin-top: 86px; }
  #service-details .service-detail-card { scroll-margin-top: 76px; }
}

/* Focus visibility for keyboard users */
:focus { outline: 3px solid rgba(29,111,224,0.18); outline-offset: 2px; }

/* Keep static content readable if the site script cannot run. */
html:not(.js-ready) .carousel-item,
html:not(.js-ready) .carousel-item.active {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  flex: initial;
  margin-bottom: 12px;
  transform: none;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}
html:not(.js-ready) .carousel-track-wrap {
  height: auto !important;
  min-height: 0;
  overflow: visible;
}
html:not(.js-ready) .carousel-btn,
html:not(.js-ready) .carousel-dots { display: none; }

