/* E10 Domestic Appliances & Repairs — plain system fonts, no external requests */

:root {
  --bg: #f6f5f2;
  --bg-alt: #ece9e2;
  --ink: #201d1a;
  --ink-soft: #55504a;
  --line: #ddd7cc;
  --accent: #1f6f4a;      /* deep workshop green */
  --accent-dark: #164f35;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c3e;
  --gas: #8a5a1a;
  --gas-bg: #f6ead6;
  --radius: 10px;
  --max: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--accent-dark); }
img, iframe { max-width: 100%; }

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

/* keep the sticky header from covering a section's heading when you jump to it
   (nav links, the buy/repair picker, and the browser's own back/forward anchor jumps) */
main > section { scroll-margin-top: 76px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246,245,242,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 9px; background: var(--accent); color: #fff;
  font-weight: 800; letter-spacing: .5px; flex: none;
}
.brand-name { font-weight: 700; font-size: .95rem; line-height: 1.15; }
.main-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--accent-dark); }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 8px 14px; border-radius: 8px;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 700;
  font-size: .95rem; border: 1px solid transparent; cursor: pointer;
}
.btn .icon { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-lg { padding: 14px 22px; font-size: 1rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-whatsapp { background: var(--whatsapp); color: #073b1a; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }

/* hero */
.hero { padding: 44px 0 56px; }
.hero-grid { display: grid; gap: 32px; grid-template-columns: 1.1fr 1fr; align-items: center; }
.eyebrow { color: var(--accent-dark); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; margin-bottom: 8px; }
.hero-address {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px 7px 10px; margin: 0 0 14px; font-size: .88rem; font-weight: 700;
}
.hero-address svg { width: 16px; height: 16px; color: var(--accent-dark); flex: none; }
.hero-address a { color: var(--ink); text-decoration: none; }
.hero-address a:hover, .hero-address a:focus-visible { text-decoration: underline; }
.lead { font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.hero-note { font-size: .85rem; color: var(--ink-soft); }
.hero-media { position: relative; }
.hero-photo {
  width: 100%; height: 340px; object-fit: cover; object-position: center 32%;
  border: 1px solid var(--line); border-radius: var(--radius);
  display: block; background: var(--bg-alt);
}
.media-caption { font-size: .8rem; color: var(--ink-soft); margin: 8px 0 0; text-align: center; }

/* buy / repair path picker */
.path-picker { margin: 18px 0 4px; }
.path-picker-label {
  margin: 0 0 8px; font-size: .78rem; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .04em;
}
.path-picker-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.path-btn {
  flex: 1 1 160px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-weight: 700; font-size: .92rem; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.path-btn:hover { border-color: var(--ink); }
.path-btn:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.path-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.path-note { display: none; margin: 10px 0 0; font-size: .85rem; font-weight: 600; color: var(--accent-dark); }
html[data-path="repair"] .path-note-repair { display: block; }
html[data-path="buy"] .path-note-buy { display: block; }

/* buy / repair content priority - reorders sections, nothing is removed or hidden */
#main { display: flex; flex-direction: column; }
#top { order: 0; }
#products { order: 1; }
#gallery { order: 2; }
#repairs { order: 3; }
#marketplace { order: 4; }
#find-us { order: 5; }
#reviews { order: 6; }
#contact { order: 7; }
html[data-path="repair"] #repairs { order: 1; }
html[data-path="repair"] #products { order: 2; }
html[data-path="repair"] #gallery { order: 3; }

/* sections */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { max-width: 60ch; }
.two-col { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.callout {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  padding: 12px 16px; border-radius: 6px; font-weight: 600; color: var(--ink);
}

/* products */
.product-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.product-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-bottom: 10px;
  color: var(--accent-dark); background: var(--bg-alt); border-radius: 50%;
}
.product-icon svg { width: 32px; height: 32px; }
.product-card-gas .product-icon { color: var(--gas); background: #f0e0c2; }
.product-card p { margin: 0; font-size: .9rem; }
.product-card-gas { background: var(--gas-bg); border-color: #e2c98f; }
.gas-note { color: var(--gas); font-weight: 700; font-size: .82rem !important; margin-top: 6px !important; }

/* guarantees */
.guarantee-bar { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 28px; }
.guarantee-pill {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-size: .9rem; color: var(--ink);
}
.icon-shield { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* brands */
.brands-block { margin-top: 36px; text-align: center; }
.brands-heading { font-size: 1rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.brands-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 12px; }
.brand-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-weight: 700; font-size: .9rem; color: var(--ink);
}
.brands-note { font-size: .78rem; max-width: 60ch; margin: 0 auto; }

/* reviews */
.reviews-wrap { display: grid; gap: 28px; grid-template-columns: auto 1fr; align-items: center; }
.reviews-score { text-align: center; }
.stars { color: #e0a624; font-size: 1.8rem; letter-spacing: 2px; }
.reviews-line { margin: 4px 0 0; font-size: .95rem; }
.reviews-copy h2 { margin-bottom: 6px; }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* photo gallery */
.photo-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.photo-card {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.photo-card img { width: 100%; height: 230px; object-fit: cover; display: block; }
.photo-card figcaption { padding: 8px 12px 12px; font-size: .82rem; color: var(--ink-soft); font-weight: 600; }

/* marketplace */
.marketplace-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center;
}
.marketplace-box p { max-width: 50ch; margin-inline: auto; }

/* find us */
.find-us-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: start; }
.address { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.hours-list { list-style: none; padding: 0; margin: 8px 0; max-width: 40ch; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.hours-note { font-size: .85rem; }
.distance-box { margin-top: 18px; }
.distance-result { min-height: 1.2em; font-weight: 600; color: var(--accent-dark); }
.find-us-map iframe { width: 100%; height: 340px; border: 1px solid var(--line); border-radius: var(--radius); }

/* contact */
.contact-section { text-align: center; }
.contact-section .section-lead { margin: 0 auto; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 20px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 90px; background: var(--bg-alt); }
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px;
}
.footer-row p { margin: 0; font-size: .85rem; }
.footer-note { color: var(--ink-soft); }

/* whatsapp floating button (mobile-first quick access) */
.whatsapp-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); text-decoration: none;
}
.whatsapp-fab .icon { width: 28px; height: 28px; fill: #073b1a; }
.whatsapp-fab:hover { background: var(--whatsapp-dark); }
.whatsapp-fab .icon:hover { fill: #fff; }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .btn, .whatsapp-fab { transition: background-color .15s ease, transform .1s ease; }
  .btn:active, .whatsapp-fab:active { transform: scale(.97); }
}

/* responsive */
@media (max-width: 860px) {
  .hero-grid, .two-col, .find-us-grid, .reviews-wrap { grid-template-columns: 1fr; }
  .reviews-score { order: -1; }
  .hero-media { order: -1; }
  .main-nav { display: none; }
  .main-nav.nav-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    position: absolute; top: 64px; left: 0; right: 0; background: var(--bg);
    padding: 16px 20px; border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 861px) {
  .nav-toggle { display: none; }
}
.nav-toggle {
  align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.nav-toggle .bar { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px auto; }

@media (max-width: 420px) {
  .contact-actions .btn, .hero-actions .btn { width: 100%; justify-content: center; }
  .path-picker-buttons { flex-direction: column; }
  .path-btn { width: 100%; }
}
