/* =========================================================
   Sefas Cleaning — styles.css
   Coastal Wilmington, NC palette tuned to the brand logo.
   Simple, professional, mobile-first.
   ========================================================= */

:root {
  /* ----- Coastal brand palette (matched to logo) ----- */
  --color-primary:        #4a90c8;   /* Sefas wordmark blue        */
  --color-primary-light:  #a8d0e8;   /* Carolina sky blue          */
  --color-primary-dark:   #2c5f8d;   /* Deep coastal / hover blue  */
  --color-slate:          #2d4a6a;   /* "Cleaning, LLC" navy text  */
  --color-slate-deep:     #1e3552;   /* Footer / deepest navy      */
  --color-sky:            #eaf4fb;   /* Very soft section bg       */
  --color-sky-soft:       #f5fafd;   /* Even softer alt bg         */
  --color-white:          #ffffff;
  --color-muted:          #5e6a7a;   /* Body copy secondary text   */
  --color-silver:         #c9d3df;   /* Subtle silver-gray accents */
  --color-border:         #dde7f0;

  /* ----- Typography ----- */
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* ----- Layout ----- */
  --radius:       14px;
  --radius-sm:    10px;
  --shadow-sm:    0 1px 3px rgba(45, 74, 106, 0.06), 0 1px 2px rgba(45, 74, 106, 0.04);
  --shadow-md:    0 8px 22px rgba(45, 74, 106, 0.10);
  --shadow-lg:    0 14px 34px rgba(45, 74, 106, 0.14);
  --container:    1120px;
  --transition:   200ms ease;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 160px;
}

@media (max-width: 900px) {
  html { scroll-padding-top: 120px; }
}
@media (max-width: 480px) {
  html { scroll-padding-top: 100px; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-slate);
  background: var(--color-white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-primary); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-slate-deep);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  letter-spacing: 0.01em;
  transition: transform var(--transition), background var(--transition),
              color var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(74, 144, 200, 0.28);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(44, 95, 141, 0.32);
}

.btn-outline {
  background: var(--color-white);
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 0.75rem;
}

.header-top {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-deep);
  transition: transform var(--transition);
}
.logo:hover { color: var(--color-slate-deep); }

.logo-img {
  height: 120px;
  width: auto;
  display: block;
  transition: height var(--transition);
}

/* Shrink the logo once the user scrolls so the sticky bar
   doesn't consume too much screen height. */
.site-header.scrolled .logo-img { height: 72px; }

@media (max-width: 900px) {
  .logo-img { height: 100px; }
  .site-header.scrolled .logo-img { height: 64px; }
}

@media (max-width: 480px) {
  .logo-img { height: 72px; }
  .site-header.scrolled .logo-img { height: 54px; }
}

.header-nav {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* On mobile the nav row collapses (menu is shown via the hamburger). */
@media (max-width: 899px) {
  .header-inner { gap: 0; padding-bottom: 1rem; }
}

.nav-menu {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
}
.nav-menu a {
  font-weight: 500;
  color: var(--color-slate);
  padding: 0.4rem 0;
  position: relative;
}
.nav-menu a:hover { color: var(--color-primary); }
.nav-menu a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}
.nav-menu a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 0.55rem 1.15rem !important;
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 10px rgba(74, 144, 200, 0.24);
}
.nav-cta:hover { background: var(--color-primary-dark); }

/* Mobile toggle — pinned right of centered logo */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-slate);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu open — drops under whole header */
.nav-menu.open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 1.25rem 1rem;
  box-shadow: var(--shadow-md);
}
.nav-menu.open li { width: 100%; }
.nav-menu.open a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}
.nav-menu.open li:last-child a { border-bottom: none; }
.nav-menu.open .nav-cta {
  margin-top: 0.5rem;
  text-align: center;
}

/* ===== Phone bar (top of header) ===== */
.phone-bar {
  width: 100%;
  background: var(--color-slate-deep);
  color: #a8c4dc;
  padding: 0.42rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem 0.75rem;
  letter-spacing: 0.01em;
}
.phone-bar a {
  color: #c8dff0;
  font-weight: 700;
  transition: color var(--transition);
}
.phone-bar a:hover { color: #fff; }
.phone-bar .phone-sep { color: #3a5a7a; }
.phone-bar .phone-hours { color: #7a99b8; font-size: 0.76rem; }
/* Reclaim screen space once the user starts scrolling */
.site-header.scrolled .phone-bar { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 50% -100px, rgba(168, 208, 232, 0.55) 0%, rgba(168, 208, 232, 0) 70%),
    linear-gradient(180deg, var(--color-sky-soft) 0%, var(--color-white) 100%);
  padding: 3.5rem 0 5.5rem;
  text-align: center;
  overflow: hidden;
}

/* Subtle wave at the bottom of the hero */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 70px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path d='M0,40 C240,80 480,0 720,30 C960,60 1200,20 1440,50 L1440,80 L0,80 Z' fill='%23ffffff'/></svg>");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
  pointer-events: none;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text { width: 100%; }

.hero-media {
  margin: 0;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  background: var(--color-sky-soft);
}
.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero { text-align: left; padding: 4rem 0 6rem; }
  .hero-inner {
    max-width: var(--container);
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
  }
  .hero .hero-sub,
  .hero .trust-line { margin-left: 0; margin-right: 0; }
  .hero .hero-actions { justify-content: flex-start; }
}

.eyebrow {
  display: inline-block;
  color: var(--color-primary-dark);
  background: rgba(74, 144, 200, 0.10);
  border: 1px solid rgba(74, 144, 200, 0.28);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 0.75rem;
  color: var(--color-slate-deep);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto 1.25rem;
}

.trust-line {
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 auto 2rem;
}
.trust-line span { color: var(--color-silver); margin: 0 0.35rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* ===== Page hero (used by Services / Contact / per-service pages) ===== */
.page-hero {
  position: relative;
  background:
    radial-gradient(1000px 380px at 50% -60px, rgba(168, 208, 232, 0.5) 0%, rgba(168, 208, 232, 0) 70%),
    linear-gradient(180deg, var(--color-sky-soft) 0%, var(--color-white) 100%);
  padding: 3.5rem 0 4rem;
  text-align: center;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 60px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path d='M0,40 C240,80 480,0 720,30 C960,60 1200,20 1440,50 L1440,80 L0,80 Z' fill='%23ffffff'/></svg>");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
  pointer-events: none;
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p {
  color: var(--color-muted);
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}
.breadcrumb a { color: var(--color-primary-dark); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { margin: 0 0.4rem; color: var(--color-silver); }

/* ===== Sections ===== */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--color-sky); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}
.section-sub {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Optional thin wave divider available between sections */
.wave-divider {
  display: block;
  width: 100%;
  height: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'><path d='M0,20 C240,40 480,0 720,15 C960,30 1200,10 1440,25' fill='none' stroke='%23a8d0e8' stroke-width='2'/></svg>");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.7;
}

/* ===== Trust Badges ===== */
.badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.badge {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.badge::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
}
.badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 144, 200, 0.25);
}
.badge-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.badge-label {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  left: 1.4rem; top: 1.4rem;
  width: 34px; height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: 2px;
}
.card h3 {
  margin-top: 1rem;
  color: var(--color-slate-deep);
}
.card p {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.97rem;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 144, 200, 0.25);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}
.contact-info h3 {
  margin-top: 0;
  color: var(--color-slate-deep);
}
.info-list li {
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.97rem;
}
.info-list li:last-child { border-bottom: none; }
.info-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-slate-deep);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-slate);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74, 144, 200, 0.18);
}
.field textarea { resize: vertical; min-height: 110px; }

.form-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  min-height: 1.1em;
}

/* ===== Talk CTA (contact page sidebar) ===== */
.talk-cta {
  background: var(--color-sky-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.talk-prompt {
  margin: 0 0 0.65rem;
  font-weight: 600;
  color: var(--color-slate-deep);
  font-size: 0.97rem;
}
.talk-phones {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.talk-phones a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
.talk-phones a:hover { color: var(--color-primary); }
.talk-hours {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-slate-deep);
  color: #cdd9e6;
  padding: 3rem 0 1.75rem;
  margin-top: 1rem;
  position: relative;
}
.site-footer::before {
  content: "";
  display: block;
  width: 100%;
  height: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 30' preserveAspectRatio='none'><path d='M0,15 C240,30 480,0 720,12 C960,24 1200,5 1440,18' fill='none' stroke='%234a90c8' stroke-width='1.5' opacity='0.55'/></svg>");
  background-size: cover;
  background-repeat: no-repeat;
  margin: -3rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-logo {
  height: 64px;
  width: auto;
  background: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.footer-tagline {
  margin: 0;
  color: var(--color-primary-light);
  font-style: italic;
  font-size: 1rem;
}
.footer-copy {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #8ea1b8;
}

/* ===== Footer contact / address ===== */
.footer-contact {
  font-style: normal; /* <address> defaults to italic */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  margin: 0;
}
.footer-phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.footer-phones a {
  color: var(--color-primary-light);
  transition: color var(--transition);
}
.footer-phones a:hover { color: #fff; }
.footer-phones .footer-sep { color: #3a5a7a; }
.footer-contact small {
  color: #7a99b8;
  font-size: 0.8rem;
}

/* ===== Showcase (image + text) ===== */
.showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.showcase-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  background: var(--color-sky-soft);
}
.showcase-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}
.showcase-text h2 {
  margin-top: 0;
}
.showcase-text p {
  color: var(--color-muted);
  font-size: 1.02rem;
}
.showcase-text .btn { margin-top: 0.5rem; }

@media (min-width: 900px) {
  .showcase {
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
  }
}

/* ===== Service detail page ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  max-width: 1000px;
  margin: 0 auto;
}
.service-detail h2 {
  margin-top: 0;
  color: var(--color-slate-deep);
}
.service-detail .panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}
.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}
.checklist li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--color-slate);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}

.cta-band {
  text-align: center;
  background: linear-gradient(180deg, var(--color-sky) 0%, var(--color-sky-soft) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.cta-band h2 { margin-top: 0; }
.cta-band p { color: var(--color-muted); margin-bottom: 1.25rem; }
.cta-band .btn { margin: 0.25rem; }

/* "Other services" mini grid on detail pages */
.other-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  max-width: 1000px;
  margin: 0 auto;
}
.other-services-grid a {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  color: var(--color-slate-deep);
  font-weight: 600;
  font-size: 0.97rem;
  transition: border-color var(--transition), transform var(--transition),
              color var(--transition), box-shadow var(--transition);
}
.other-services-grid a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) {
  .checklist           { grid-template-columns: repeat(2, 1fr); }
  .other-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .other-services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Card link wrapper (used on services overview to make whole cards clickable) */
.card-link {
  display: block;
  color: inherit;
  height: 100%;
}
.card-link .card {
  height: 100%;
}
.card-link:hover .card h3 { color: var(--color-primary-dark); }

/* ===== Before / After image pair ===== */
.before-after {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}
.ba-item {
  margin: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.ba-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.ba-item figcaption {
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--color-slate-deep);
  font-size: 0.95rem;
  background: var(--color-sky-soft);
  border-top: 1px solid var(--color-border);
}
.ba-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-slate);
  box-shadow: var(--shadow-sm);
}
.ba-tag.after { background: var(--color-primary); }

@media (min-width: 640px) {
  .before-after { grid-template-columns: 1fr 1fr; }
}

/* ===== Service action banner (single wide image) ===== */
.action-banner {
  margin: 0 auto 2rem;
  max-width: 1000px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  background: var(--color-sky-soft);
}
.action-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ===== Owners card (small portrait + copy) ===== */
.owners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}
.owners-portrait {
  margin: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-primary-light);
  box-shadow: var(--shadow-sm);
  justify-self: center;
  background: var(--color-sky-soft);
}
.owners-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.owners-text h3 {
  margin: 0 0 0.4rem;
  color: var(--color-slate-deep);
}
.owners-text p {
  margin: 0;
  color: var(--color-muted);
}

@media (min-width: 640px) {
  .owners { grid-template-columns: 200px 1fr; gap: 2rem; padding: 1.75rem; }
  .owners-portrait { width: 180px; height: 180px; justify-self: start; }
  .owners-text { text-align: left; }
}

/* ===== Accordion (services) ===== */
.accordion {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}
.accordion-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.accordion-item.is-open {
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 144, 200, 0.32);
}
.accordion-toggle {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-slate-deep);
  transition: color var(--transition), background var(--transition);
}
.accordion-toggle:hover { color: var(--color-primary-dark); background: var(--color-sky-soft); }
.accordion-toggle .icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-sky);
  color: var(--color-primary-dark);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 300ms ease, background var(--transition), color var(--transition);
}
.accordion-item.is-open .accordion-toggle .icon {
  background: var(--color-primary);
  color: #fff;
  transform: rotate(45deg);
}
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms ease;
}
.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}
.accordion-panel > .panel-inner { overflow: hidden; }
.accordion-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 0.25rem 1.25rem 1.4rem;
}
.accordion-content p {
  color: var(--color-muted);
  margin: 0 0 0.75rem;
}
.accordion-content ul {
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.4rem;
}
.accordion-content li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-slate);
  font-size: 0.97rem;
}
.accordion-content li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}
.accordion-content img {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--color-border);
  background: var(--color-sky-soft);
}
.accordion-content .btn { margin-top: 0.25rem; }

@media (min-width: 768px) {
  .accordion-content.has-media {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
    gap: 1.75rem;
  }
}

/* ===== Scroll-spy active nav state ===== */
.nav-menu a.is-active:not(.nav-cta) {
  color: var(--color-primary-dark);
}
.nav-menu a.is-active:not(.nav-cta)::after { width: 100%; }
.nav-menu.open a.is-active:not(.nav-cta) {
  background: var(--color-sky-soft);
  border-radius: var(--radius-sm);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .badges { grid-template-columns: repeat(3, 1fr); }
  .cards  { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex;
    position: static;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
  }
  .nav-menu a { padding: 0.4rem 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards.cards-3 { grid-template-columns: repeat(3, 1fr); }
  .contact-grid {
    grid-template-columns: 1fr 1.3fr;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}
