/* Airyn website - one shared stylesheet, no framework. */

/* Work Sans (SIL Open Font License 1.1), self-hosted variable font, weights 400-700. */
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/work-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/work-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue: #007bff;
  --blue-hover: #0063cf;
  --indigo: #2110e6;
  --ink: #1c1c1c;
  --text: #111111;
  --muted: #6f6a6a;
  --line: #1c1c1c;
  --field: #fafafa;
  --field-border: #d6d3cf;
  --beige: #f6f3ee;
  --offwhite: #fafafa;
  --white: #ffffff;
  --plant-grey: #ececec;
  --error: #b42318;
  --success: #146c2e;
  --radius-lg: 48px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1300px;
  --section-pad: clamp(56px, 8vw, 112px);
  --header-h: 96px;
  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h1, .h1 { font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1.15; }
h2, .h2 { font-size: clamp(1.75rem, 2.6vw, 2.2rem); }
h3, .h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
.h4 { font-size: clamp(1.2rem, 1.7vw, 1.6rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
li::marker { font-size: 0.8em; }
strong { font-weight: 700; }
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.blue { color: var(--blue); }
.white { color: #fff; }
.center { text-align: center; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.kicker { font-size: clamp(1.2rem, 1.7vw, 1.6rem); font-weight: 500; color: var(--ink); letter-spacing: -0.02em; line-height: 1.3; margin: 0 0 0.7em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9em 2.4em;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--blue-hover); }
.btn--dark { background: var(--ink); }
.btn--dark:hover { background: #000; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-row { margin-top: 2rem; }

/* ---------- header and navigation ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.site-logo { display: inline-block; flex-shrink: 0; position: relative; z-index: 2; }
.site-logo img { width: auto; height: 44px; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav__list { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.site-nav__list li { margin: 0; }
.site-nav__list a {
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 4px 0;
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.site-header--light .site-logo img { filter: brightness(0) invert(1); }
.site-header--light .site-nav__list a { color: #fff; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.site-header--light .nav-toggle { color: #fff; }
.nav-toggle__bar {
  position: absolute;
  left: 7px; right: 7px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle__bar:first-child { top: 16px; }
.nav-toggle__bar:last-child { top: 25px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 32px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--offwhite);
    overflow-y: auto;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav__list { flex-direction: column; gap: 18px; }
  .site-nav__list a,
  .site-header--light .site-nav__list a { color: var(--ink); font-size: 26px; }
  .nav-open .site-header--light .site-logo img { filter: none; }
  .nav-open .nav-toggle { color: var(--ink); }
  .nav-open .nav-toggle__bar:first-child { top: 20px; transform: rotate(45deg); }
  .nav-open .nav-toggle__bar:last-child { top: 20px; transform: rotate(-45deg); }
}

/* ---------- sections ---------- */
.section { padding: var(--section-pad) 0; }
.section--white { background: var(--white); }
.section--beige { background: var(--beige); }
.section--offwhite { background: var(--offwhite); }
.section--first { padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px)); }
.section-title { margin-bottom: clamp(28px, 4vw, 48px); }

/* heading + body beside an image; on phones: heading, image, body */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "head media" "body media";
  column-gap: clamp(32px, 7vw, 120px);
  row-gap: 0;
  align-items: center;
}
.feature--media-left { grid-template-areas: "media head" "media body"; }
.feature__head { grid-area: head; align-self: end; }
.feature__body { grid-area: body; align-self: start; }
.feature__media { grid-area: media; }
@media (max-width: 800px) {
  .feature,
  .feature--media-left {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "media" "body";
  }
  .feature__media { margin: 1.5rem 0 2rem; }
}

.rounded { border-radius: var(--radius-lg); }
@media (max-width: 800px) { .rounded { border-radius: 32px; } }
.media-fill { width: 100%; }

.grid-cols {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  gap: 32px clamp(20px, 3vw, 48px);
}
.grid-cols--2 { --cols: 2; }
.grid-cols--4 { --cols: 4; }
@media (max-width: 1100px) { .grid-cols { --cols: 3; } .grid-cols--2 { --cols: 2; } .grid-cols--4 { --cols: 2; } }
@media (max-width: 700px) { .grid-cols, .grid-cols--2, .grid-cols--4 { --cols: 1; } }
.grid-cols p { margin-bottom: 0.6em; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px clamp(32px, 7vw, 120px);
  align-items: center;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- hero (background image sections) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 72vh, 720px);
  padding: calc(var(--header-h) + 32px) 0 clamp(48px, 6vw, 80px);
  background-color: var(--beige);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero > .container { position: relative; }
.hero--dark { background-color: #0b1320; color: #fff; }
.hero--dark h1, .hero--dark h2 { color: #fff; }
.hero__text { max-width: 560px; }
.hero__text p { font-size: 1.05rem; }

.hero--home { background-color: #f6f2ec; background-image: url("../img/home-hero-background.webp"); background-position: 30% 40%; }
.hero--products { background-image: url("../img/products-hero-boxes.webp"); background-position: 52% 35%; background-color: #1e7cf0; }
.hero--safety { background-image: url("../img/safety-hero-network.webp"); }
.hero--need-help {
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1) 60%), url("../img/need-help-hero-magnifier.webp");
}
.hero--about { background-color: var(--plant-grey); background-image: url("../img/plant-in-vase.webp"); background-position: left center; }

/* home hero: title, visual, lead, button; phones get the visual after the title */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "title visual" "lead visual" "cta visual";
  column-gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.home-hero__title { grid-area: title; align-self: end; color: var(--blue); margin-bottom: 0.4em; }
.home-hero__lead {
  grid-area: lead;
  margin: 0;
  max-width: 560px;
  color: #fff;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  text-shadow: 0 1px 12px rgba(0, 40, 50, 0.35);
}
.home-hero__cta { grid-area: cta; align-self: start; margin-top: 2rem; }
.home-hero__visual { grid-area: visual; }
@media (max-width: 800px) {
  .hero--home { background-size: auto 84%; background-position: 24% 100%; }
  .home-hero { grid-template-columns: 1fr; grid-template-areas: "title" "visual" "lead" "cta"; }
  .home-hero__visual { margin: 8px 0 28px; }
  .home-hero__lead { max-width: 20em; }
}

.hero-visual { position: relative; width: 100%; max-width: 620px; margin-left: auto; aspect-ratio: 7 / 6; }
.hero-visual img { position: absolute; height: auto; }
.hero-visual__device { left: 14%; top: 7%; width: 72%; }
.hero-visual__humidity { left: 64%; top: 1%; width: 35%; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12)); }
.hero-visual__co2 { left: 64%; top: 41%; width: 35%; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12)); }
.hero-visual__aq { left: 0; top: 70%; width: 37%; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2)); }

.hero-card {
  max-width: 470px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
}
.hero-card h1 { font-size: clamp(1.75rem, 2.6vw, 2.2rem); color: var(--blue); }

/* plant background section (home "About us") */
.plant-section {
  background: var(--plant-grey) url("../img/plant-in-vase.webp") no-repeat left 30% center / cover;
  padding: clamp(72px, 9vw, 120px) 0;
}
.plant-section__text { margin-left: 55%; max-width: 440px; }
.hero--about .hero__text { margin-left: 52%; max-width: 520px; }
@media (max-width: 800px) {
  .plant-section,
  .hero--about {
    background-size: 125% auto;
    background-position: 15% top;
    padding-top: 88vw;
    min-height: 0;
  }
  .plant-section__text,
  .hero--about .hero__text { margin-left: 0; max-width: none; }
}

/* dark image band on Safety */
.band-dark {
  position: relative;
  background: #07101c url("../img/safety-data-security-background.webp") center top / cover no-repeat;
  color: #fff;
}
.band-dark h2 { color: #fff; }

/* ---------- home pieces ---------- */
.impact-card {
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--radius-md);
  background: #fff;
}
.impact-card h3 { color: var(--blue); font-size: clamp(1.25rem, 1.6vw, 1.5rem); margin-bottom: 0.9em; }
.impact-card p { font-size: 0.875rem; }
.impact-card .source { color: var(--muted); }

.member { text-align: center; }
.member img { width: 260px; margin: 0 auto 12px; }
.member h3 { font-size: 1.15rem; margin-bottom: 0.5em; }
.member p { font-size: 0.875rem; max-width: 460px; margin-left: auto; margin-right: auto; }

/* ---------- video ---------- */
.video {
  position: relative;
  max-width: 1100px;
  margin: clamp(32px, 4vw, 48px) auto 0;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video img,
.video iframe,
.video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* ---------- accordions (native details/summary) ---------- */
.accordion { border-bottom: 1px solid var(--line); }
.accordion details { border-top: 1px solid var(--line); }
.accordion summary {
  position: relative;
  display: block;
  padding: 1.1em 2.5em 1.1em 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before,
.accordion summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 13px; height: 1px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.accordion summary::after { transform: rotate(90deg); }
.accordion details[open] > summary::after { transform: rotate(0deg); }
.accordion__body { padding: 0 2.5em 1.4em 0; font-size: 0.95rem; }
.accordion--large summary { font-size: clamp(1.1rem, 1.4vw, 1.3rem); font-weight: 500; padding-top: 1.2em; padding-bottom: 1.2em; }
.accordion--large .accordion__body p { margin-bottom: 0.3em; }
.accordion--large .accordion__body ul { margin-bottom: 1em; }

.faq-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 24px clamp(24px, 4vw, 64px);
  padding: clamp(36px, 4.5vw, 56px) 0;
}
.faq-group h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
@media (max-width: 800px) { .faq-group { grid-template-columns: 1fr; } }

/* ---------- contact cards ---------- */
.contact-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 32px clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-top h1 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 660px; }
.card { padding: 20px 20px 24px; border-radius: var(--radius-sm); background: #fff; font-size: 0.9rem; }
.card p { margin-bottom: 0.6em; }
@media (max-width: 800px) { .contact-top { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 40px clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 800px) { .form-layout { grid-template-columns: 1fr; } }

.form { max-width: 660px; }
.form fieldset { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: 6px; font-size: 0.95rem; }
.field { margin-bottom: 22px; }
.form fieldset .field { margin-bottom: 14px; }
.form fieldset .field:last-child { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field-row--phone { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.form label,
.form .label { display: block; margin-bottom: 6px; font-size: 0.875rem; }
.form legend .req,
.form label .req { color: var(--muted); font-size: 0.85em; margin-left: 0.3em; }
.field__hint { margin: -2px 0 8px; color: var(--muted); font-size: 0.8rem; }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.form textarea { min-height: 130px; resize: vertical; }
.form select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } .field-row--phone { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }

.file-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 110px;
  padding: 20px;
  border: 1px dashed var(--ink);
  border-radius: 2px;
  text-align: center;
  cursor: pointer;
}
.file-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.file-drop__plus { font-size: 1.6rem; line-height: 1; }
.file-drop__name { font-size: 0.875rem; color: var(--muted); word-break: break-all; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 1.6em; margin: 16px 0 0; font-weight: 500; }
.form-status--ok { color: var(--success); }
.form-status--error { color: var(--error); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--indigo);
  color: #fff;
  padding: clamp(56px, 6vw, 80px) 0 clamp(64px, 8vw, 110px);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 40px clamp(24px, 4vw, 64px);
  align-items: start;
}
.site-footer h2 { color: #fff; font-size: 1.35rem; margin-bottom: 1.2em; }
.site-footer p { font-size: 0.9rem; margin-bottom: 1em; }
.site-footer a { color: #fff; }
.site-footer__about p { max-width: 440px; }
.site-footer__badge { display: flex; justify-content: center; }
.site-footer__badge img { width: 140px; }
.site-footer__links ul { margin: 0; padding: 0; list-style: none; }
.site-footer__links li { margin-bottom: 0.9em; font-size: 0.9rem; }
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__badge { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- misc ---------- */
.container--mid { max-width: calc(1000px + 2 * var(--gutter)); }
.two-col--top { align-items: start; }
.band-dark__list { padding-top: 0.4rem; }
.strong-heading { font-weight: 700; letter-spacing: -0.01em; }
.field__hint--after { margin: 8px 0 0; }
.products-accordion { margin-top: clamp(56px, 7vw, 96px); }
.products-accordion__note { margin-top: 1.5rem; }
.safety-icon { width: 104px; margin: 0 auto 24px; }
.dimensions { max-width: 640px; width: 100%; }
.not-found { min-height: 60vh; display: flex; align-items: center; }
