/* Shared visual scale. Keep this last, after page-specific styles.
   Deliberately use layout/type sizes rather than zoom or transforms. */
:root {
  --page-gutter: max(4.5vw, calc((100vw - 1320px) / 2));
  --header-height: 76px;
}
html { scroll-padding-top: calc(var(--header-height) + 16px); }
section[id] { scroll-margin-top: 16px; }
.header { height: var(--header-height); padding-inline: var(--page-gutter); gap: 28px; }
.brand img { width: 66px; height: 59px; }
.nav { gap: 26px; }
.nav a, .solutions-toggle { font-size: 14px; }
.button { min-height: 46px; padding: 11px 18px; gap: 24px; font-size: 14px; }
.header-cta { white-space: nowrap; }
.section { padding: 72px var(--page-gutter); }
h2, .section-heading h2, .maintenance h2, .about h2, .contact h2 { font-size: clamp(28px, 2.65vw, 38px); }
.section-heading { gap: 18px 56px; margin-bottom: 32px; }
.eyebrow { margin-bottom: 16px; }
.section-heading p, .solar-intro>p, .maintenance-copy>p, .about-copy>p,
.contact-copy>p, .bluetti-copy>p, .faq-intro>p, .energy-heading>p { font-size: 16px; }
.cinematic { min-height: 620px; min-height: clamp(600px, calc(100svh - var(--header-height)), 720px); }
.cinematic .hero-copy { padding: 48px var(--page-gutter) 24px; max-width: none; }
.cinematic h1 { font-size: clamp(40px, 4.1vw, 60px); max-width: 800px; }
.cinematic .hero-copy p { font-size: 17px; max-width: 490px; margin: 20px 0 24px; }
.hero-bottom { padding: 0 var(--page-gutter) 24px; }
.carousel-bar { margin-bottom: 16px; }
.glass-modules { gap: 12px; }
.glass-modules a { padding: 18px 22px; border-radius: 12px; }
.glass-modules strong { font-size: 20px; margin: 8px 0; }
.page-hero { padding: 44px var(--page-gutter) 48px; }
.page-hero h1 { font-size: clamp(34px, 3.6vw, 52px); max-width: 800px; }
.page-hero p { font-size: 16px; max-width: 600px; margin: 20px 0 24px; }
.breadcrumb { margin-bottom: 22px; }
.service-grid article, .service-grid article+article { padding: 24px; }
.service-grid h3 { font-size: 22px; margin: 22px 0 14px; }
.process-steps li { padding: 24px; }
.process-steps h3, .solar-applications h3 { font-size: 22px; }
.maintenance figure>img { height: 390px; }
.bluetti-section { padding: 60px var(--page-gutter); }
.energy-heading { margin-bottom: 28px; }
.energy-explanation h3 { font-size: 26px; }
.energy-layout { gap: 28px; }
.cta-band { margin: 0 var(--page-gutter) 64px; padding: 32px; }
.cta-band h2 { font-size: clamp(26px, 2.2vw, 32px); }
.footer { padding-inline: var(--page-gutter); }
.footer-columns { gap: 24px; }
.floating-contact { padding: 12px 16px; bottom: 20px; right: 20px; }
.installation-photo { height: 390px; }
.gallery-heading h3 { font-size: 26px; }
.line-card { padding: 30px; }
.models-grid article { padding: 22px; }
.models-grid h3, .line-product h3 { font-size: 23px; }
.line-product { padding: 24px; }
.contact-form input, .contact-form select, .contact-form textarea,
.model-select select { font-size: 16px; }
/* A smaller navigation fits laptops; tablets get the touch menu. */
@media (max-width: 1000px) {
  :root { --header-height: 68px; }
  .header { gap: 16px; }
  .header-cta { margin-left: auto; }
  .menu-button { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; border: 0; background: transparent; padding: 11px; flex-shrink: 0; cursor: pointer; }
  .menu-button span { height: 2px; width: 22px; background: var(--green); }
  .nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 12px var(--page-gutter) 20px; display: none; background: #fff; border-bottom: 1px solid var(--line); }
  .nav.open { display: grid; gap: 0; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain; }
  .nav a, .solutions-toggle { font-size: 16px; }
  .nav>a, .solutions-toggle { min-height: 48px; padding: 12px 8px; }
  .solutions-menu { width: 100%; }
  .solutions-toggle { width: 100%; justify-content: space-between; }
  .solutions-submenu, .about-menu .solutions-submenu, .solutions-submenu.mega { position: static; width: 100%; margin-bottom: 8px; padding: 8px; box-shadow: none; background: #f2f6f2; border-radius: 10px; }
  .submenu-title { display: none; }
  .nav .solutions-submenu a { padding: 12px; }
  .header-social { margin: 8px 0 0; padding: 12px 8px 0; border-left: 0; border-top: 1px solid var(--line); gap: 8px; }
  .nav .header-social a { width: 44px; height: 44px; background: #f2f6f2; }
  .section { padding-block: 56px; }
  .autonomy-result { top: 88px; }
}
/* Phone layout: compact headings and cards, with readable body text. */
@media (max-width: 760px) {
  :root { --page-gutter: 20px; --header-height: 64px; }
  .brand img { width: 57px; height: 51px; }
  .header { gap: 12px; }
  .header-cta { padding: 9px 12px; gap: 12px; font-size: 13px; min-height: 44px; }
  .solutions-submenu.mega { grid-template-columns: minmax(0, 1fr); }
  .nav>a[aria-current=page], .solutions-menu:has([aria-current=page]) .solutions-toggle { box-shadow: inset 3px 0 0 currentColor; }
  .section { padding-block: 44px; }
  h2, .section-heading h2, .maintenance h2, .about h2, .contact h2, .energy-heading h2 { font-size: clamp(27px, 7vw, 32px); line-height: 1.18; }
  .eyebrow { font-size: 10px; margin-bottom: 12px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading p { margin-top: 16px; }
  .cinematic { min-height: 0; gap: 22px; }
  .cinematic .hero-copy { padding: 32px var(--page-gutter) 0; }
  .cinematic h1 { font-size: clamp(30px, 7.8vw, 38px); line-height: 1.12; }
  .cinematic .eyebrow { font-size: 10px; margin-bottom: 16px; }
  .cinematic .hero-copy p { font-size: 16px; line-height: 1.55; margin: 18px 0 22px; }
  .hero-bottom { padding: 0 var(--page-gutter) 20px; }
  .carousel-bar { gap: 10px; margin-bottom: 10px; }
  .slide-count b { font-size: 18px; }
  .slide-selectors { gap: 6px; }
  .slide-selectors button { width: 22px; }
  .glass-modules { gap: 8px; }
  .glass-modules a { padding: 10px 14px; column-gap: 10px; }
  .glass-modules strong { font-size: 16px; margin: 3px 0 0; }
  .glass-modules .module-index { font-size: 9px; }
  .page-hero { padding: 26px var(--page-gutter) 32px; }
  .page-hero h1 { font-size: clamp(30px, 8vw, 36px); line-height: 1.14; }
  .page-hero p { margin: 16px 0 22px; line-height: 1.55; }
  .breadcrumb { font-size: 12px; margin-bottom: 20px; flex-wrap: wrap; }
  .service-grid article, .service-grid article+article { padding: 20px; }
  .service-grid h3 { font-size: 21px; margin: 14px 0 12px; }
  .solar-section, .maintenance, .about, .contact { gap: 28px; }
  .maintenance figure>img { height: 280px; }
  .bluetti-section { padding: 44px var(--page-gutter) 32px; }
  .process-steps li { padding: 20px; }
  .process-steps h3, .solar-applications h3 { font-size: 21px; }
  .contact-form { padding: 20px 16px; }
  .energy-heading>p { margin-top: 16px; }
  .energy-layout { gap: 8px; padding: 8px 12px 20px; }
  .energy-explanation h3 { font-size: 24px; }
  .demo-toolbar { padding: 12px; }
  .cta-band { margin-bottom: 44px; padding: 24px 20px; gap: 22px; }
  .cta-band h2 { font-size: 26px; }
  .installation-photo { height: 250px; }
  .gallery-heading h3 { font-size: 24px; }
  .installation-slide figcaption { padding: 16px; }
  .line-card, .line-product, .models-grid article { padding: 20px; }
  .model-media { aspect-ratio: 3 / 2; }
  .device-qty { gap: 0; padding-inline: 0; }
  .device-qty button { width: 36px; height: 44px; border-radius: 8px; }
  .device-qty output { min-width: 18px; }
  .step-panel figcaption { padding: 18px; }
  .step-panel figcaption strong { font-size: 21px; }
  .steps-arrows button { width: 44px; height: 44px; }
  .footer { padding-top: 30px; padding-bottom: 92px; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-columns>div:last-child { grid-column: 1 / -1; }
  .footer-columns a { min-height: 44px; font-size: 14px; overflow-wrap: anywhere; }
  .footer-contact { grid-column: 1 / -1; }
  .floating-contact { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 12px; }
  .floating-contact svg { width: 22px; height: 22px; }
}
/* Solar demo: proportionate tabs and less padding around its controls. */
@media (min-width: 1101px) {
  .solutions-explorer { grid-template-columns: 140px minmax(220px, .7fr) minmax(0, 1.5fr); gap: 26px; }
  .solutions-tabs, .solutions-panels { margin-top: 120px; }
  .solutions-tabs { gap: 18px; }
  .solutions-tabs:before { right: 29px; }
  .solutions-tabs button { min-height: 60px; gap: 10px; font-size: 14px; }
  .tab-icon { width: 60px; height: 60px; }
  .solution-panel h3 { font-size: clamp(26px, 2.1vw, 30px); }
  .solution-panel p { font-size: 16px; margin-bottom: 24px; }
  .operation-controls { margin-inline: 12px; padding: 12px; }
}
@media (max-width: 760px) {
  .solutions-head { margin-bottom: 20px; }
  .solutions-explorer { gap: 18px; }
  .solutions-tabs button { font-size: 12px; }
  .tab-icon { width: 48px; height: 48px; }
  .tab-glyph { width: 22px; height: 22px; }
  .solutions-tabs:before { top: 24px; left: 24px; right: 24px; }
  .operation-controls { padding: 10px; gap: 8px; }
  .operation-modes button { padding-inline: 10px; }
  .operation-explanation { padding: 14px; }
  .operation-copy { font-size: 15px; }
  .solution-panel h3 { font-size: 25px; }
  .solution-panel p { margin-bottom: 18px; }
}
@media (max-width: 360px) {
  :root { --page-gutter: 16px; }
  .header { gap: 8px; }
  .carousel-bar { gap: 6px; }
  .carousel-actions { gap: 3px; }
  .slide-selectors button { width: 18px; }
  .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .gallery-controls { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
  .gallery-arrows { grid-column: 2; grid-row: 1; }
  .gallery-arrows button { width: 44px; height: 44px; }
  .gallery-dots { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
  .gallery-dots button { width: 32px; }
}
