html { scroll-padding-top: 86px; }
body > .site-header.global-header {
  position: fixed;
  inset: 10px 0 auto;
  z-index: 30;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}
.global-header .brand, .global-header .service-nav, .global-header-actions {
  background: #ffffffe0;
  border: 1px solid #ffffffb3;
  border-radius: 14px;
  box-shadow: 0 5px 18px #11111120;
  backdrop-filter: blur(12px);
  pointer-events: auto;
}
.global-header .header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 2vw, 24px);
  align-items: center;
  height: auto;
  min-height: 0;
  padding-block: 0;
}
.global-header .brand { justify-self: start; min-width: 0; padding: 7px 11px; color: var(--ink); }
.global-header .brand-mark { border-color: var(--line); color: #a34700; }
.global-header .brand small { color: #606060; }
.global-header .service-nav {
  position: static;
  display: flex;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  justify-self: center;
  padding: 5px 7px;
  overflow: visible;
}
.global-header .service-nav a { padding: 8px clamp(7px, .9vw, 13px); color: var(--ink); font-size: .875rem; }
.global-header .service-nav a:hover, .global-header .service-nav a:focus-visible { background: var(--coral); color: var(--ink); }
.global-header-actions { display: flex; align-items: center; gap: 7px; padding: 5px; }
.global-header .header-call, .global-header .header-cta { display: inline-flex; min-height: 38px; margin: 0; padding: 8px 11px; white-space: nowrap; }
.global-header .header-call { border: 1px solid #d9d9d9 !important; color: var(--ink) !important; box-shadow: none; }
.global-header .header-cta { color: var(--ink); }
.global-header a:focus-visible { outline: 2px solid #ffb66a; outline-offset: 2px; }
body:has(> .global-header) main > section:first-child { padding-top: clamp(112px, 10vw, 155px); }
@media (max-width: 1020px) {
  html { scroll-padding-top: 116px; }
  .global-header .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; min-height: 0; }
  .global-header .service-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; justify-content: center; }
  .global-header-actions { grid-column: 2; grid-row: 1; }
}
@media (max-width: 570px) {
  html { scroll-padding-top: 150px; }
  body > .site-header.global-header { top: 7px; }
  body:has(> .global-header) main > section:first-child { padding-top: 152px; }
  .global-header .header-inner { width: calc(100% - 22px); }
  .global-header .brand { gap: 6px; padding: 6px 7px; font-size: .8rem; }
  .global-header .brand-mark { width: 28px; height: 28px; flex-shrink: 0; font-size: .9rem; }
  .global-header .brand small { font-size: .55rem; }
  .global-header .service-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-self: stretch; gap: 2px; }
  .global-header .service-nav a { padding: 6px 2px; font-size: clamp(.69rem, 2.35vw, .8rem); text-align: center; }
  .global-header .header-call, .global-header .header-cta { min-height: 34px; padding: 6px 7px; font-size: .69rem; }
}

.global-header .service-nav > a, .global-header .service-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px clamp(8px, 1.2vw, 16px);
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ink);
}
.global-header .service-menu { position: relative; }
.global-header .service-menu summary { gap: 7px; cursor: pointer; list-style: none; }
.global-header .service-menu summary::-webkit-details-marker { display: none; }
.global-header .service-menu summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.global-header .service-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.global-header .service-menu summary:hover, .global-header .service-menu[open] summary { background: var(--coral); }
.global-header .service-menu summary:focus-visible { outline: 2px solid #a34700; outline-offset: 2px; }
.global-header .service-menu-links {
  position: absolute;
  z-index: 1;
  inset: calc(100% + 10px) auto auto 0;
  min-width: 180px;
  max-height: min(65vh, 420px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #e9e4de;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px #17171726;
}
.global-header .service-menu:nth-of-type(2) .service-menu-links { inset-inline: auto 0; }
.global-header .service-menu-links a { display: block; padding: 10px 12px; text-align: left; border-radius: 6px; white-space: nowrap; }
@media (max-width: 570px) {
  .global-header .service-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .global-header .service-menu:nth-of-type(2) .service-menu-links { inset-inline: 0 auto; }
  .global-header .service-menu:first-of-type .service-menu-links { inset-inline: auto 0; }
  .global-header .service-nav > a, .global-header .service-menu summary { min-height: 34px; padding: 6px 7px; font-size: clamp(.69rem, 2.65vw, .8rem); }
  .global-header .service-menu summary { gap: 5px; }
  .global-header .service-menu-links a { font-size: .875rem; }
}

.site-whatsapp { position: fixed; z-index: 25; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; min-height: 45px; padding: 8px 14px; border-radius: 24px; background: #11643b; color: #fff; font: inherit; font-size: .9rem; font-weight: 750; text-decoration: none; box-shadow: 0 4px 16px #0003; }
.site-whatsapp:hover { background: #084c2c; color: #fff; }
.site-whatsapp:focus-visible { outline: 3px solid #ffac60; outline-offset: 3px; }
@media (max-width: 570px) { .site-whatsapp { min-height: 42px; padding-inline: 11px; font-size: .8rem; } }

.site-search { background: #f6f3ef; padding: 28px 0; color: #25211d; }
.site-search > .container { max-width: 760px; }
.site-search h2 { font-size: 1.35rem; margin: 0 0 8px; }
.site-search label { display: block; margin-bottom: 6px; }
.site-search-fields { display: flex; gap: 8px; }
.site-search-fields input { flex: 1; min-width: 0; padding: 11px; border: 1px solid #b5aca4; border-radius: 8px; color: #25211d; background: #fff; font: inherit; }
.site-search-fields .button { min-height: 42px; }
.site-search [role=status] { margin: 8px 0 0; }
.site-search ul { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: 8px; margin: 8px 0 0; }
.site-search [role=status]:empty, .site-search ul:empty { margin: 0; }
.site-search li a { display: inline-block; padding: 7px 10px; background: #fff; color: #873c00; border-radius: 6px; text-decoration: underline; }

@media (min-width: 571px) and (max-width: 1120px) {
  html { scroll-padding-top: 116px; }
  .global-header .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; }
  .global-header .service-nav { grid-column: 1 / -1; grid-row: 2; }
  .global-header-actions { grid-column: 2; grid-row: 1; }
}
@media (max-width: 570px) {
  .global-header .service-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .global-header .service-nav > a, .global-header .service-menu summary { white-space: normal; text-align: center; }
  .global-header .service-menu:first-of-type .service-menu-links { inset-inline: auto auto; left: 50%; transform: translateX(-50%); }
  .global-header .service-menu:nth-of-type(2) .service-menu-links { inset-inline: auto 0; }
}

.site-area-footer { padding-block: 12px 18px; }
.site-area-footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.mobile-menu-toggle { display: none; }
@media (max-width: 1020px) {
  html:has(.has-mobile-menu) { scroll-padding-top: 74px; }
  body:has(> .global-header.has-mobile-menu) main > section:first-child { padding-top: 90px; }
  .global-header.has-mobile-menu .header-inner { width: calc(100% - 20px); gap: 6px; }
  .global-header.has-mobile-menu .brand { gap: 6px; padding: 6px 8px; font-size: .78rem; }
  .global-header.has-mobile-menu .brand-mark { width: 30px; height: 30px; flex: none; }
  .global-header.has-mobile-menu .global-header-actions { gap: 4px; padding: 3px; }
  .global-header.has-mobile-menu .header-cta { display: none; }
  .global-header.has-mobile-menu .header-call, .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 9px;
    font: inherit;
    font-size: .8rem;
    font-weight: 750;
    white-space: nowrap;
  }
  .mobile-menu-toggle { border: 1px solid #ded6cd; border-radius: 9px; background: #fff; color: #23201d; cursor: pointer; }
  .mobile-menu-toggle[aria-expanded="true"] { background: #f9e6d1; }
  .global-header.has-mobile-menu .service-nav { display: none; }
  .global-header.has-mobile-menu.mobile-menu-open .service-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-self: stretch;
    max-height: min(70vh, calc(100dvh - 82px));
    overflow: auto;
    overscroll-behavior: contain;
    background: #fff;
  }
  .global-header.has-mobile-menu .service-nav > a,
  .global-header.has-mobile-menu .service-menu summary { justify-content: flex-start; min-height: 44px; padding: 8px 12px; text-align: left; }
  .global-header.has-mobile-menu .service-menu .service-menu-links {
    position: static;
    transform: none;
    width: auto;
    min-width: 0;
    box-shadow: none;
    margin: 0 4px 4px 12px;
  }
  .global-header.has-mobile-menu .service-menu-links a { min-height: 44px; display: flex; align-items: center; text-align: left; font-size: .875rem; }
}
@media (max-width: 720px) {
  .hero h1, .detail-hero h1, .detail-hero-airco .detail-hero-copy h1,
  .pitched-hero h1, .solar-hero h1 { font-size: clamp(2.1rem, 9vw, 3.15rem); overflow-wrap: anywhere; }
  .detail-hero-airco .detail-crumb { margin-bottom: 18px; }
  .detail-hero-airco .detail-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
  .detail-hero-airco .detail-actions a, .pitched-actions a, .solar-actions a { min-height: 44px; display: inline-flex; align-items: center; }
  .hero-copy > p { font-size: 1rem; }
  .quote-card, .airco-hero-form, .pitched-quote { min-width: 0; }
  main :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"]), select, textarea) { font-size: 16px; max-width: 100%; min-width: 0; }
  main :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"]), select) { min-height: 44px; }
  .site-whatsapp { min-height: 44px; bottom: max(12px, env(safe-area-inset-bottom)); right: 10px; }
  .site-whatsapp span { display: none; }
  .solar-projects { scroll-margin-top: 4px; }
}
@media (max-width: 420px) {
  .hero-form-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  body:has(> .global-header.has-mobile-menu) main > .home-hero {
    padding: 65px 0 24px;
    background: #f7f3ef;
  }
  .home-hero .hero-grid { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-hero .home-hero-scenes, .home-hero .home-motion-toggle, .home-hero .home-motion-label { display: none; }
  .home-hero .hero-copy {
    padding: 34px 20px 26px;
    background: linear-gradient(0deg, #181612f5, #181612a8 68%, #1816124d), url("visuals/pannendak-hero.webp") center 48% / cover;
  }
  .home-hero .hero-copy h1 { max-width: 17ch; line-height: 1.06; margin: 12px 0; }
  .home-hero .hero-copy > p { margin-bottom: 0; line-height: 1.55; }
  .home-hero .hero-actions { align-items: center; gap: 8px; margin-top: 17px; }
  .home-hero .hero-actions a { min-height: 44px; padding: 11px 14px; display: inline-flex; align-items: center; }
  .home-hero .hero-promises { gap: 5px 15px; margin-top: 16px; }
  main > .home-mobile-offer { padding: 0 16px 26px; background: #f7f3ef; }
  .home-hero .quote-card, .home-mobile-offer .quote-card { width: min(100%, 610px); margin: 0 auto; padding: 19px 16px; box-shadow: 0 5px 20px #27201618; }
  .home-hero .quote-card { width: min(calc(100% - 32px), 610px); }
  .home-mobile-offer .form-fields { grid-template-columns: minmax(0, 1fr); }
  .home-services .work-copy { padding: 13px 16px 16px; }
  .home-services .home-service-art { width: min(65%, 180px); }
  .frames-hero h1, .battery-hero h1, .move-hero h1, .about-hero h1 { font-size: clamp(2rem, 8.5vw, 3.15rem); line-height: 1.08; overflow-wrap: anywhere; }
  main :is(.detail-hero-with-form, .frames-hero-grid, .move-hero-grid, .battery-hero-grid, .solar-hero-content) { grid-template-columns: minmax(0, 1fr); }
  main :is(.airco-hero-form, .pitched-hero-quote) { width: 100%; border-radius: 15px; box-shadow: 0 5px 22px #18161224; }
  main :is(.airco-hero-form, .quote-card) :is(button[type="submit"], input[type="submit"]) { min-height: 48px; }
  main :is(.detail-hero-airco, .pitched-hero, .solar-hero, .battery-hero, .frames-hero, .move-hero) { padding-bottom: 27px; }
  .detail-hero-airco .hero-scroll { display: none; }
  .site-search { padding-bottom: 44px; }
}

main > section :is(h1, h2, h3) { overflow-wrap: anywhere; }
main .home-hero .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
main .home-hero .hero-copy, main .home-hero .quote-card { min-width: 0; }
main .home-hero .hero-copy h1 { font-size: clamp(2.5rem, 5vw, 4.65rem); line-height: 1.04; }
main .home-hero .service-choices, main .home-hero .form-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
main .home-hero .service-choice { min-width: 0; }
@media (min-width: 721px) and (max-width: 960px) {
  main .home-hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
  main .home-hero .hero-copy { max-width: 660px; }
  main .solar-hero h1, main .battery-hero h1, main .pitched-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 100%; }
}
@media (max-width: 720px) {
  main .home-hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
  main .home-hero .hero-copy h1 { font-size: clamp(2.1rem, 9vw, 3.15rem); }
}

.site-whatsapp:has(img) { color: #0d3926; background: #fff; border: 1px solid #c3e8cf; gap: 7px; padding: 6px 12px 6px 6px; }
.site-whatsapp:has(img):hover { color: #0d3926; background: #eaffef; }
.site-whatsapp img { display: block; flex: none; width: 36px; height: 36px; border-radius: 8px; }
@media (max-width: 720px) {
  .site-whatsapp:has(img) { padding: 3px; }
  .site-whatsapp img { width: 42px; height: 42px; border-radius: 10px; }
}
