/* Oberleen Automation - styles
   Edit the colours and fonts in the :root block below. Everything else uses them. */
:root {
  --brand: #008088;
  --brand-dark: #005f66;
  --brand-light: #e6f4f5;
  --ink: #0f2a2d;
  --ink-70: rgba(15, 42, 45, 0.7);
  --line: rgba(0, 128, 136, 0.2);
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, dl, dd, address { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-70); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* Buttons */
.btn { display: inline-block; border-radius: 8px; padding: 12px 24px; font-size: 14px; font-weight: 600; border: 2px solid var(--brand); transition: background-color .2s, color .2s; text-align: center; }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-white { background: #fff; border-color: #fff; color: var(--brand-dark); padding: 12px 28px; }
.btn-white:hover { background: var(--brand-light); border-color: var(--brand-light); }
.btn-ghost { border-color: #fff; color: #fff; padding: 12px 28px; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row-center { justify-content: center; gap: 16px; }
.icon-btn { border: 1px solid rgba(0, 128, 136, 0.3); background: #fff; color: var(--brand); border-radius: 8px; padding: 10px; display: inline-flex; }
.icon-btn:hover { background: var(--brand-light); }

/* Navbar */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid rgba(0, 128, 136, 0.15); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.nav-logo img { height: 42px; width: auto; }
.nav-links { display: none; align-items: center; gap: 38px; }
.nav-links a { font-size: 17px; font-weight: 600; color: rgba(15, 42, 45, 0.8); transition: color .2s; }
.nav-links a:hover { color: var(--brand); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.aqi-badge { display: none; align-items: center; gap: 8px; border: 1px solid; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.aqi-dot { width: 8px; height: 8px; border-radius: 50%; }
.menu-btn { border: 1px solid rgba(0, 128, 136, 0.3); background: #fff; border-radius: 8px; padding: 8px; display: inline-flex; }
.mobile-menu { border-top: 1px solid rgba(0, 128, 136, 0.15); background: #fff; padding: 0 20px 16px; }
.mobile-menu a { display: block; padding: 12px 0; font-weight: 600; color: rgba(15, 42, 45, 0.8); }

/* Hero */
.hero { position: relative; overflow: hidden; background: #fff; min-height: calc(100vh - 72px); }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.75) 28%, rgba(255,255,255,0.1) 100%); z-index: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 24px; align-items: center; min-height: calc(100vh - 72px); }
.hero-text { padding: 48px 0; animation: rise .8s ease both; }
.hero-kicker { margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--brand); }
.hero h1 { font-family: var(--font-heading); font-weight: 700; font-size: 30px; line-height: 1.15; }
.hero-lead { margin-top: 20px; max-width: 40rem; font-size: 19px; line-height: 1.7; color: var(--ink-70); }
.hero .btn-row { margin-top: 32px; }
.hero-visual { position: relative; min-height: 360px; height: clamp(360px, 60vh, 660px); }
.hero-video-wrap { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 70px rgba(0, 68, 77, 0.18); }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.1) contrast(1.08); }
.hero-aqi { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 58px; padding: 12px 20px; box-sizing: border-box; background: rgba(255, 255, 255, 0.96); color: var(--ink); }
.hero-aqi[hidden] { display: none; }
.hero-aqi-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; }
.hero-aqi-place { font-size: 14px; font-weight: 600; }
.hero-aqi-reading { min-width: 0; margin-left: auto; font-size: 14px; font-weight: 700; text-align: right; }
.globe { width: 100%; height: 100%; }
.globe canvas { display: block; }
.aqi-card { position: absolute; bottom: 24px; left: 0; width: 100%; max-width: 320px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.92); padding: 20px; box-shadow: 0 10px 25px rgba(15, 42, 45, 0.12); backdrop-filter: blur(8px); }
.aqi-card-title { font-size: 14px; font-weight: 600; color: var(--brand); }
.aqi-card-msg { margin-top: 12px; font-size: 14px; color: var(--ink-70); }
.aqi-row { display: flex; align-items: flex-end; gap: 12px; margin-top: 8px; }
.aqi-number { font-family: var(--font-heading); font-size: 48px; font-weight: 700; line-height: 1; }
.aqi-label { padding-bottom: 4px; font-size: 14px; font-weight: 600; }
.aqi-scale { position: relative; margin-top: 12px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #1a9e5c, #c99a00, #e07b00, #d93025, #8e3fa8); }
.aqi-marker { position: absolute; top: -4px; width: 6px; height: 16px; border-radius: 3px; background: var(--ink); }
.aqi-meta { margin-top: 12px; font-size: 12px; color: var(--ink-70); }

/* Sections */
.section { padding: 80px 0; background: #fff; }
.section-title { max-width: 42rem; font-family: var(--font-heading); font-weight: 700; font-size: 30px; line-height: 1.2; }
.section-lead { margin-top: 12px; max-width: 36rem; font-size: 18px; color: var(--ink-70); }

.tick-list { display: grid; gap: 8px; margin-top: 20px; }
.tick-list li { position: relative; padding-left: 26px; font-size: 14px; font-weight: 500; }
.tick-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 8px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg) scale(.9); }
.badge { position: absolute; left: 16px; top: 16px; z-index: 1; border-radius: 999px; background: var(--brand); color: #fff; padding: 6px 14px; font-size: 14px; font-weight: 600; }

/* Featured */
.featured-grid { display: grid; gap: 32px; margin-top: 48px; }
.featured-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 1px 3px rgba(15, 42, 45, 0.08); }
.featured-visual { position: relative; height: 224px; padding: 16px; background: var(--brand-light); }
.featured-visual svg { width: 100%; height: 100%; }
.featured-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.featured-body h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; }
.featured-body .muted { margin-top: 8px; }
.featured-body .btn-row { margin-top: auto; padding-top: 32px; }
.wave { animation: wave 4s linear infinite; }
.grow { transform-box: fill-box; transform-origin: bottom; animation: grow 1.2s ease-out both; }
@keyframes wave { to { transform: translateX(-100px); } }
@keyframes grow { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Products */
.products-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.carousel-buttons { display: flex; gap: 8px; }
.carousel { position: relative; display: flex; overflow-x: auto; margin-top: 40px; padding: 0 20px 16px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.product-card { flex: none; width: 288px; margin-right: 24px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgba(15, 42, 45, 0.08); }
.product-image { position: relative; height: 160px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand-light), #fff 50%, var(--brand-light)); }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.tag { width: fit-content; border: 1px solid rgba(0, 128, 136, 0.3); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; color: var(--brand-dark); }
.product-body h3 { margin-top: 12px; min-height: 56px; font-family: var(--font-heading); font-size: 18px; font-weight: 700; line-height: 1.35; }
.chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.product-body .chips { margin-top: 12px; min-height: 52px; }
.chip { border-radius: 999px; background: var(--brand-light); padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--brand-dark); }
.price { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--ink-70); }
.product-body .btn { margin-top: 12px; padding: 8px 16px; background: transparent; color: var(--brand); }
.product-body .btn:hover { background: var(--brand-light); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Details window */
.modal-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(15, 42, 45, 0.5); padding: 16px; }
.modal { width: 100%; max-width: 672px; max-height: 90vh; overflow-y: auto; border-radius: 16px; background: #fff; padding: 24px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25); }
.modal:focus { outline: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-head h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; }
.modal .chips { margin-top: 16px; gap: 8px; }
.modal .chip { padding: 4px 12px; }
.modal .chip-solid { background: var(--brand); color: #fff; }
.modal .tag { padding: 4px 12px; }
.modal-text { margin-top: 16px; line-height: 1.7; color: rgba(15, 42, 45, 0.8); }
.modal h4 { margin-top: 24px; font-family: var(--font-heading); font-size: 16px; font-weight: 700; }
.specs { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; }
.specs div + div { border-top: 1px solid rgba(0, 128, 136, 0.15); }
.specs dt { font-weight: 600; }
.specs dd { text-align: right; color: rgba(15, 42, 45, 0.75); }
.bullets { margin-top: 8px; padding-left: 20px; list-style: disc; color: rgba(15, 42, 45, 0.8); }
.bullets li + li { margin-top: 4px; }
.modal .price { margin-top: 24px; }
.modal-actions { margin-top: 12px; }

/* About */
.about-grid { display: grid; gap: 48px; align-items: center; }
.about-text { margin-top: 16px; font-size: 18px; line-height: 1.7; color: rgba(15, 42, 45, 0.75); }
.about-grid .section-title { max-width: none; }
.mission { margin-top: 24px; border-left: 4px solid var(--brand); padding-left: 16px; font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--brand-dark); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 24px; text-align: center; box-shadow: 0 1px 3px rgba(15, 42, 45, 0.08); }
.stat-number { font-family: var(--font-heading); font-size: 36px; font-weight: 700; color: var(--brand); }
.stat-label { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink-70); }

/* Services */
.service-list { display: grid; gap: 32px; margin-top: 48px; }
.service-card { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 1px 3px rgba(15, 42, 45, 0.08); }
.service-visual { height: 240px; padding: 20px; background: var(--brand-light); }
.service-visual svg { width: 100%; height: 100%; }
.service-body { padding: 24px; }
.service-body h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; }
.service-body .muted { margin-top: 8px; }
.service-body .btn { margin-top: 32px; }
.support-grid { display: grid; gap: 16px; margin-top: 40px; }
.support-grid li { border: 1px solid var(--line); border-radius: 16px; background: rgba(230, 244, 245, 0.5); padding: 20px; }
.support-grid h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 700; }
.support-grid p { margin-top: 4px; font-size: 14px; color: var(--ink-70); }

/* CTA */
.cta { border-radius: 24px; background: var(--brand); padding: 56px 24px; text-align: center; color: #fff; }
.cta h2 { max-width: 42rem; margin: 0 auto; font-family: var(--font-heading); font-size: 30px; font-weight: 700; line-height: 1.2; }
.cta > p { max-width: 36rem; margin: 16px auto 0; font-size: 18px; }
.cta .btn-row { margin-top: 32px; }
.cta .cta-small { margin-top: 24px; font-size: 14px; }
.cta-small a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Footer */
.site-footer { border-top: 1px solid rgba(0, 128, 136, 0.15); background: #fff; padding: 56px 0 32px; }
.footer-grid { display: grid; gap: 40px; }
.footer-text { max-width: 20rem; margin-top: 16px; font-size: 14px; line-height: 1.65; color: var(--ink-70); }
.social { display: flex; gap: 12px; margin-top: 20px; }
.social span, .social a { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(0, 128, 136, 0.3); border-radius: 8px; color: var(--brand); }
.social span { opacity: 0.5; }
.social a:hover { background: var(--brand-light); }
.site-footer h2 { font-family: var(--font-heading); font-size: 16px; font-weight: 700; }
.site-footer nav ul { margin-top: 16px; display: grid; gap: 8px; }
.site-footer nav a { font-size: 14px; font-weight: 600; color: rgba(15, 42, 45, 0.75); transition: color .2s; }
.site-footer a:hover { color: var(--brand); }
.site-footer address { margin-top: 16px; display: grid; gap: 8px; font-size: 14px; color: rgba(15, 42, 45, 0.75); }
.site-footer address a { font-weight: 600; }
.copyright { margin-top: 48px; border-top: 1px solid rgba(0, 128, 136, 0.15); padding-top: 24px; font-size: 12px; color: var(--ink-70); }

/* Tablet */
@media (min-width: 640px) {
  .aqi-badge { display: inline-flex; }
  .aqi-card { left: 24px; }
  .hero h1 { font-size: 38px; }
  .section-title, .cta h2 { font-size: 36px; }
  .product-card { width: 320px; }
  .modal { padding: 32px; }
  .featured-body { padding: 32px; }
  .featured-body .tick-list { grid-template-columns: 1fr 1fr; }
  .service-body { padding: 40px; }
  .service-body .tick-list { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 56px 48px; }
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-btn, .mobile-menu { display: none !important; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
/* Desktop */
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1.15fr; }
  .hero-text { padding: 0; }
  .hero h1 { font-size: 48px; }
  .hero-lead { font-size: 21px; max-width: 44rem; }
  .hero-visual { height: calc(100vh - 140px); min-height: 420px; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .service-card { grid-template-columns: 1fr 1fr; }
  .service-visual { height: auto; }
  .service-card-flip .service-visual { order: 2; }
  .support-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-text, .wave, .grow { animation: none; }
}

html, body { overflow-x: clip; }

/* Phase 11: pause / play button for the hero video (WCAG 2.2.2) */
.hero-pause { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 40, 44, 0.72); color: #fff; cursor: pointer; transition: background 0.2s; }
.hero-pause:hover { background: rgba(0, 40, 44, 0.9); }
.hero-pause:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--brand); }
