/* Components. Mobile first: base styles are for phones, min-width queries enlarge them. */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 44px; padding: 0.6rem 1.25rem;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 52px; padding: 0.75rem 1.6rem; font-size: 1.05rem; }
.btn--whatsapp { background: var(--color-whatsapp); color: var(--color-white); box-shadow: 0 6px 16px rgba(15, 122, 64, 0.35); }
.btn--whatsapp:hover { background: #0c6535; }
.btn--ghost { background: rgba(255, 255, 255, 0.12); color: var(--color-white); border-color: rgba(255, 255, 255, 0.85); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.24); }
.icon { width: 1.3em; height: 1.3em; fill: currentColor; flex: none; }
.icon--stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--outline { background: var(--color-white); color: var(--color-primary-dark); border-color: var(--color-primary-mid); }
.btn--outline:hover { background: var(--color-primary-light); }

.skip-link {
  position: absolute; left: 0.5rem; top: -100px; z-index: 100;
  background: var(--color-navy); color: var(--color-white); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 0.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.98); /* no backdrop-filter: it would trap the fixed mobile menu */
  border-bottom: 1px solid var(--color-primary-light);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }

.brand {
  display: flex; flex-direction: column; line-height: 1.1;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--color-navy); text-decoration: none; min-height: 44px; justify-content: center;
}
.brand-sub { font-family: var(--font-body); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.btn--header { padding: 0.5rem; width: 44px; min-height: 44px; }   /* icon only on phones */
.btn--header .btn-label { display: none; }

/* Language switch (flags) */
.lang-switch { display: flex; align-items: center; }
.lang-btn {
  display: grid; place-items: center; width: 46px; height: 44px; padding: 0;
  background: transparent; border: 0; cursor: pointer; border-radius: 10px;
}
.lang-btn img {
  width: 34px; height: 17px; border-radius: 3px; opacity: 0.55;
  box-shadow: 0 1px 3px rgba(19, 28, 69, 0.25);
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.lang-btn:hover img { opacity: 0.9; }
.lang-btn[aria-pressed="true"] img {
  opacity: 1; transform: scale(1.12);
  box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-primary-mid);
}

/* Hamburger button */
.nav-toggle {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 10px; cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; display: block; width: 24px; height: 2.5px; border-radius: 2px;
  background: var(--color-navy); transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { position: absolute; top: -7px; }
.nav-toggle-bar::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Navigation: without JS it stays visible; with JS it becomes a phone panel */
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav a { display: block; color: var(--color-text); text-decoration: none; font-weight: 600; padding: 0.7rem 0.9rem; min-height: 44px; }
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--color-primary); }

.js .site-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
  background: var(--color-white); padding: var(--space-3) 1rem;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  overflow-y: auto;
}
.js .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
.js .site-nav ul { flex-direction: column; }
.js .site-nav a { font-size: 1.25rem; padding: 1rem 0.5rem; border-bottom: 1px solid var(--color-primary-light); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100vh - var(--header-h)); /* fallback for browsers without dvh */
  min-height: calc(100dvh - var(--header-h)); max-height: 820px;
  display: flex; align-items: center;
  padding-block: var(--space-5) 7rem;
  color: var(--color-white);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(19, 28, 69, 0.68) 0%, rgba(19, 28, 69, 0.6) 50%, rgba(13, 52, 105, 0.76) 100%); /* dark enough for white text (contrast >= 4.5) */
}
.hero-content { text-align: center; }
.hero-eyebrow {
  display: inline-block; margin-bottom: var(--space-2); padding: 0.3rem 0.9rem;
  border-radius: 999px; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
}
.hero h1 { color: var(--color-white); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3); }
.hero-lead { font-size: 1.15rem; max-width: 34rem; margin-inline: auto; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: var(--space-3); }
.hero-extra { margin-top: var(--space-3); font-size: 0.95rem; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; fill: var(--color-bg); z-index: 0; }


/* ---------- Section headings ---------- */
.section-head { max-width: 42rem; margin-bottom: var(--space-4); }
.section-lead { color: var(--color-text-muted); font-size: 1.1rem; margin: 0; }

/* ---------- Cards (cleaning services) ---------- */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
.card {
  background: var(--color-white); border: 1px solid var(--color-primary-light);
  border-radius: var(--radius); padding: var(--space-3); box-shadow: var(--shadow);
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.card p { color: var(--color-text-muted); margin-bottom: 0; }
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--space-2);
  border-radius: 14px; background: var(--color-primary-light); color: var(--color-primary);
}
.card-icon .icon { width: 28px; height: 28px; }
.card-icon--sm { width: 44px; height: 44px; margin: 0; flex: none; }
.card-icon--sm .icon { width: 24px; height: 24px; }
.card-link { display: inline-block; margin-top: var(--space-1); font-weight: 600; min-height: 44px; line-height: 44px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column; gap: 0.25rem;
  background: var(--color-white); border: 1px solid var(--color-primary-light);
  border-radius: var(--radius); padding: var(--space-3); box-shadow: var(--shadow);
}
.price-card h3 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; margin: 0 0 var(--space-1); }
.price-from { color: var(--color-text-muted); font-weight: 600; }
.price-amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--color-primary); }
.price-amount--quote { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.price-unit { color: var(--color-text-muted); font-weight: 600; }
.check-list { list-style: none; margin: var(--space-1) 0 var(--space-3); padding: 0; display: grid; gap: 0.5rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.6rem; }
.check-list .icon { color: var(--color-primary-mid); margin-top: 0.15em; }

.price-card--featured {
  background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white); border-color: var(--color-accent);
  box-shadow: 0 14px 34px rgba(15, 103, 173, 0.35), 0 0 0 3px rgba(49, 187, 235, 0.35);
}
.price-card--featured h3, .price-card--featured .price-amount { color: var(--color-white); }
.price-card--featured .price-unit { color: var(--color-primary-light); }
.price-card--featured .price-amount--quote { color: var(--color-primary-light); }
.price-card--featured .check-list .icon { color: #8fe0fa; }
.price-card--featured .btn { align-self: stretch; }
.badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.8rem; margin-bottom: var(--space-1); border-radius: 999px;
  background: var(--color-white); color: var(--color-primary-dark); font-size: 0.85rem; font-weight: 700;
}
.badge .icon { width: 1.1em; height: 1.1em; }

/* ---------- Repairs and maintenance (secondary section: lighter than cleaning) ---------- */
.repairs-head { display: grid; gap: var(--space-2); justify-items: start; margin-bottom: var(--space-3); }
.repair-emblem { width: 110px; height: 110px; flex: none; }
.emblem-bg { fill: var(--color-white); stroke: var(--color-primary-light); stroke-width: 2; }
.emblem-wrenches use { fill: none; stroke: var(--color-primary-dark); stroke-width: 1.05; stroke-linecap: round; stroke-linejoin: round; }
.gear { transform-box: fill-box; transform-origin: center; animation: gear-spin 28s linear infinite; }
.gear--big { fill: var(--color-primary); }
.gear--small { fill: var(--color-accent); animation-duration: 18s; }
.gear--rev { animation-direction: reverse; }
@keyframes gear-spin { to { transform: rotate(360deg); } }

.card-grid--repairs { gap: var(--space-2); }
.card--compact { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-2) var(--space-3); box-shadow: none; }
.card--compact h3 { font-size: 1.05rem; }
.card--compact p { font-size: 0.95rem; }
.partner-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); margin: 0 0 0.25rem; }
.partner-private[hidden], .partner-actions[hidden] { display: none; }

/* Repair partner: a wide, dark banner under the repair cards, with direct contact buttons */
.partner-banner {
  display: grid; gap: var(--space-3); align-items: center; margin-top: var(--space-3);
  padding: var(--space-3); border-radius: var(--radius); background: linear-gradient(150deg, var(--color-navy), var(--color-primary-dark));
  color: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow);
}
.partner-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, 0.12); color: var(--color-accent); }
.partner-badge .icon { width: 34px; height: 34px; }
.partner-banner h3 { color: var(--color-white); font-size: 1.6rem; margin: 0; }
.partner-banner p { margin: 0; }
.partner-role { margin-top: 0.15rem !important; }
.partner-person { margin-top: 0.75rem !important; font-size: 1.1rem; color: var(--color-white); }
.partner-person strong { color: var(--color-white); }
.partner-years { color: var(--color-primary-light); }
.partner-actions { display: grid; gap: 0.75rem; }
.partner-direct { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-primary-light); }
.partner-actions .btn { white-space: nowrap; }
.btn--light { background: var(--color-white); color: var(--color-navy); }
.btn--light:hover { background: var(--color-primary-light); }
.repairs-cta { margin: var(--space-3) 0 0; }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; align-items: center; }
.why-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; border-radius: var(--radius); box-shadow: var(--shadow); }
.why-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.why-list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.why-list h3 { font-size: 1.1rem; margin-bottom: 0.15rem; }
.why-list p { margin: 0; color: var(--color-text-muted); }

/* ---------- Gallery ---------- */
.gallery-subtitle { font-family: var(--font-display); font-size: 1.4rem; margin: var(--space-4) 0 var(--space-2); }
.gallery-subtitle:first-of-type { margin-top: 0; }

/* Before/after slider: the "before" image is revealed from the left up to --pos */
.ba-grid, .gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.ba-grid { grid-template-columns: 1fr; gap: var(--space-3); }
.ba { margin: 0; }
.ba-stage {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--color-primary-light); --pos: 50%;
}
.ba-stage:focus-within { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ba-img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; transform: translateX(-50%);
  background: var(--color-white); box-shadow: 0 0 6px rgba(0, 0, 0, 0.4); pointer-events: none;
}
.ba-handle::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-white); color: var(--color-primary-dark); font-size: 1.3rem; font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.ba-tag {
  position: absolute; top: 0.75rem; padding: 0.25rem 0.7rem; border-radius: 999px; pointer-events: none;
  background: rgba(19, 28, 69, 0.78); color: var(--color-white); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.ba-tag--before { left: 0.75rem; }
.ba-tag--after { right: 0.75rem; }
/* Invisible range input on top: it receives the finger/mouse/keyboard.
   touch-action: pan-y keeps vertical page scrolling working on phones. */
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  cursor: ew-resize; touch-action: pan-y;
}
.ba figcaption { margin-top: 0.6rem; color: var(--color-text-muted); font-size: 0.95rem; }

/* Photo grid */
.gallery-grid { grid-template-columns: repeat(2, 1fr); }
.gallery-item {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: var(--color-primary-light); box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 0.75rem 0.6rem; text-align: left;
  background: linear-gradient(0deg, rgba(19, 28, 69, 0.82), transparent);
  color: var(--color-white); font-size: 0.85rem; font-weight: 600; line-height: 1.3;
}

/* Lightbox (<dialog>) */
.lightbox {
  width: min(94vw, 720px); max-height: 94vh; max-height: 94dvh; padding: 0; border: 0; border-radius: var(--radius);
  background: var(--color-navy); color: var(--color-white); overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 16, 40, 0.8); }
.lightbox-img { display: block; width: 100%; max-height: calc(94vh - 4.5rem); max-height: calc(94dvh - 4.5rem); object-fit: contain; background: #000; }
.lightbox-caption { margin: 0; padding: 0.8rem 1rem; text-align: center; }
.lightbox-close {
  position: absolute; top: 0.5rem; right: 0.5rem; z-index: 1; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--color-navy);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}

/* ---------- Coverage map ---------- */
.coverage-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; align-items: start; }
.map-wrap { position: relative; }
.coverage-map {
  height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--color-primary-light);
  box-shadow: var(--shadow); z-index: 0; /* keep Leaflet panes below the sticky header */
}
.map-loading { margin: 0; height: 100%; display: grid; place-items: center; color: var(--color-text-muted); }
.map-recenter {
  position: absolute; left: 10px; bottom: 26px; z-index: 500; min-height: 44px; padding: 0.4rem 1rem;
  border: 2px solid var(--color-primary-mid); border-radius: 999px; background: var(--color-white);
  color: var(--color-primary-dark); font: inherit; font-weight: 600; cursor: pointer; box-shadow: var(--shadow);
}
.map-recenter[hidden], .map-hint[hidden] { display: none; }
.map-hint {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 500; margin: 0;
  max-width: 90%; padding: 0.5rem 1rem; border-radius: 999px; text-align: center;
  background: rgba(19, 28, 69, 0.88); color: var(--color-white); font-size: 0.9rem; pointer-events: none;
}
.map-failed .coverage-map { display: none; }
.zone-label { background: rgba(255, 255, 255, 0.92); border: 0; color: var(--color-navy); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.zone-label::before { display: none; }
.map-legend { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: 0.4rem; font-size: 0.92rem; color: var(--color-text-muted); }
.map-legend li { display: flex; align-items: center; gap: 0.6rem; }
.swatch { flex: none; width: 26px; height: 14px; border-radius: 4px; }
.swatch--core { background: rgba(29, 143, 203, 0.35); border: 2px solid var(--color-primary-dark); }
.swatch--extended { border: 2px dashed var(--color-accent); background: rgba(49, 187, 235, 0.08); }
.swatch--route { height: 0; border-top: 4px dotted var(--color-navy); border-radius: 0; }
.coverage-info h3 { font-size: 1.2rem; }
.zone-list { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.zone-list li { padding: 0.35rem 0.9rem; border-radius: 999px; background: var(--color-white); border: 1px solid var(--color-primary-light); font-weight: 600; color: var(--color-primary-dark); }
.coverage-expand { color: var(--color-text-muted); }

/* ---------- Placeholders (removed as sections are built) ---------- */
.placeholder {
  border: 2px dashed var(--color-primary-mid); border-radius: var(--radius);
  padding: var(--space-3); color: var(--color-text-muted); background: var(--color-white);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
.contact-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem;
  padding: var(--space-3); border-radius: var(--radius); background: var(--color-white);
  border: 1px solid var(--color-primary-light); box-shadow: var(--shadow);
}
.contact-card h3 { font-size: 1.3rem; margin: 0; }
.contact-card p { margin: 0; color: var(--color-text-muted); }
.contact-card .btn { margin-top: var(--space-2); }
.contact-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-1);
  border-radius: 16px; background: var(--color-primary-light); color: var(--color-primary);
}
.contact-icon .icon { width: 30px; height: 30px; }
.contact-icon--whatsapp { background: var(--color-whatsapp); color: var(--color-white); }
.contact-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; word-break: break-word; }
.contact-value a { color: var(--color-navy); text-decoration: none; }
.contact-value a:hover { color: var(--color-primary); text-decoration: underline; }
.contact-notes { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: 0.5rem; color: var(--color-text-muted); }
.contact-notes li { display: flex; align-items: center; gap: 0.6rem; }
.contact-notes .icon { color: var(--color-primary-mid); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy); color: rgba(255, 255, 255, 0.85); padding-block: var(--space-4) var(--space-3); }
.site-footer a { color: var(--color-primary-light); text-decoration: none; }
.site-footer a:hover { color: var(--color-white); text-decoration: underline; }
.site-footer h3 { color: var(--color-white); font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-2); }
.footer-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.footer-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--color-white); margin: 0; }
.footer-tag { margin: 0 0 var(--space-1); color: var(--color-accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.footer-list a { display: inline-block; padding: 0.55rem 0; min-height: 44px; }
.footer-list a.footer-icon-link, li.footer-icon-link { display: flex; align-items: center; gap: 0.6rem; word-break: break-word; }
.footer-icon-link .icon { color: var(--color-accent); width: 1.2em; height: 1.2em; }
li.footer-icon-link { padding: 0.55rem 0; }
.footer-bottom { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid rgba(255, 255, 255, 0.18); display: grid; gap: 0.4rem; font-size: 0.9rem; }
.footer-bottom p { margin: 0; }
.footer-credit { opacity: 0.9; }

/* ---------- Tablet (>= 600px) ---------- */
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-map { height: 480px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
  .repairs-head { grid-template-columns: auto 1fr; align-items: center; gap: var(--space-3); }
  .partner-banner { grid-template-columns: auto 1fr; padding: var(--space-4); }
  .partner-actions { grid-column: 1 / -1; grid-template-columns: auto 1fr 1fr; align-items: center; }
  .partner-direct { grid-column: 1; }
  .repair-emblem { width: 130px; height: 130px; }
  .btn--header { width: auto; padding: 0.5rem 1.1rem; }
  .btn--header .btn-label { display: inline; }
  .hero-actions { flex-direction: row; justify-content: center; }
  .hero-wave { height: 90px; }
}

/* ---------- Desktop (>= 1024px): horizontal navigation, no hamburger ---------- */
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .ba-grid { grid-template-columns: repeat(3, 1fr); }
  /* repair cards: 3 + 2 (centered) */
  .card-grid--repairs { grid-template-columns: repeat(6, 1fr); }
  .card-grid--repairs .card { grid-column: span 2; }
  .card-grid--repairs .card:nth-child(4) { grid-column: 2 / span 2; }
  .card-grid--repairs .card:nth-child(5) { grid-column: 4 / span 2; }
  .partner-banner { grid-template-columns: auto 1fr auto; }
  .partner-actions { grid-column: auto; grid-template-columns: 1fr; min-width: 250px; }
  .coverage-grid { grid-template-columns: 1.7fr 1fr; gap: var(--space-4); }
  .footer-grid { gap: var(--space-5); }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
  .coverage-map { height: 520px; }
  .pricing-grid { grid-template-columns: 1fr 1.15fr; gap: var(--space-4); }
  .price-card { padding: var(--space-4); }
  .why-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .nav-toggle { display: none; }
  .js .site-nav {
    position: static; inset: auto; padding: 0; background: none; overflow: visible;
    transform: none; opacity: 1; visibility: visible; transition: none;
  }
  .js .site-nav ul { flex-direction: row; gap: 0.25rem; }
  .js .site-nav a { font-size: 0.98rem; padding: 0.7rem 0.75rem; border: 0; }
  .hero { max-height: 760px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(19, 28, 69, 0.8) 0%, rgba(19, 28, 69, 0.62) 55%, rgba(15, 103, 173, 0.05) 100%); }
  .hero-content { text-align: left; }
  .hero-lead { margin-inline: 0; }
  .hero-actions { justify-content: flex-start; }
}

/* ---------- Very small phones (< 360px): keep the header on one line ---------- */
@media (max-width: 359px) {
  .brand-sub, .btn--header { display: none; }
}

/* Tablets only: with 2 columns, the 5th repair card takes the full last row */
@media (min-width: 600px) and (max-width: 1023px) {
  .card-grid--repairs .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
