/* ==========================================================================
   Elevaire — elevaireinc.com
   Brand: clean, modern, luxury. Earthy, nature-inspired. Minimal, white space.
   Palette: olive green, sage green, white.
   ========================================================================== */

:root {
  --olive:        #4E5D43;
  --olive-deep:   #38442F;
  --olive-light:  #6B7A5C;
  --sage:         #A9B79A;
  --sage-light:   #C9D3BE;
  --sage-wash:    #EDF1E8;
  --cream:        #FAFAF7;
  --white:        #FFFFFF;
  --ink:          #2A2E26;
  --ink-soft:     #5C6157;
  --line:         rgba(78, 93, 67, 0.14);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 1200px;
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--olive-deep);
}

h1 { font-size: clamp(2.75rem, 1.9rem + 4.2vw, 5.25rem); }
h2 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem); }

p + p { margin-top: 1.15em; }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive-light);
  margin-bottom: 1.5rem;
}

.lede {
  font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

.rule {
  width: 3.5rem;
  height: 1px;
  border: 0;
  background: var(--sage);
  margin: 2rem 0;
}
.rule--center { margin-inline: auto; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--sage { background: var(--sage-wash); }
.section--cream { background: var(--cream); }
.section--olive { background: var(--olive-deep); }
.section--olive h2, .section--olive h3 { color: var(--white); }
.section--olive p { color: rgba(255, 255, 255, 0.78); }
.section--olive .eyebrow { color: var(--sage); }
.section--olive .rule { background: var(--olive-light); }

.center { text-align: center; }
.narrow { max-width: 46rem; margin-inline: auto; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.15fr 1fr; }
.split--wide-right { grid-template-columns: 1fr 1.15fr; }

@media (max-width: 860px) {
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2.25rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--olive-deep);
  background: var(--olive-deep);
  color: var(--white);
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn:hover { background: var(--olive-light); border-color: var(--olive-light); }

.btn--ghost {
  background: transparent;
  color: var(--olive-deep);
}
.btn--ghost:hover { background: var(--olive-deep); color: var(--white); }

.btn--light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--olive-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95); /* white header */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
/* Desktop: pull the logo hard to the left edge (keep normal padding on the right) */
.site-header .wrap { padding-left: clamp(0.9rem, 1.8vw, 1.4rem); }

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 6.5rem;
}

.brand {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}
/* Stacked Elevaire lockup (mark + wordmark + enlarged slogan) */
.brand img {
  height: clamp(3.6rem, 6vw, 4.9rem);
  width: auto;
  max-width: 100%;
}
.site-footer .brand img { height: 3.25rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  list-style: none;
  padding: 0;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.5rem;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--olive-deep); border-color: var(--sage); }
.nav-links a[aria-current="page"] { color: var(--olive-deep); border-color: var(--olive); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--olive-deep);
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; stroke: currentColor; fill: none; stroke-width: 1.2; }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  /* Mobile: stacked lockup, left-aligned */
  .brand img { height: clamp(3.3rem, 12vw, 4.4rem); }
  .nav-links {
    position: absolute;
    inset: 100% calc(var(--gutter) * -1) auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.9rem 0;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:hover { color: var(--olive-deep); }
  .nav-links a[aria-current="page"] { color: var(--olive-deep); }
}

/* ---------- Hero ----------
   Light, editorial split: copy left, real product photography right. */
.hero {
  position: relative;
  /* soft diagonal "ribbon" bands over the green gradient */
  background:
    repeating-linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0px,
      rgba(255, 255, 255, 0.075) 55px,
      rgba(255, 255, 255, 0) 110px),
    linear-gradient(160deg, var(--olive) 0%, var(--olive-deep) 100%);
  overflow: hidden;
  border-bottom: 0;
}
/* Hero on green: white copy + light OUTLINED buttons (match comp) */
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--sage-light); }
.hero .lede { color: rgba(255, 255, 255, 0.85); }
.hero .rule { background: var(--sage); }
.hero .btn,
.hero .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.hero .btn:hover,
.hero .btn--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--olive-deep);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  min-height: min(70vh, 620px);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.hero__inner { max-width: 34rem; }

.hero__media {
  display: none; /* diffuser photo removed from hero at all breakpoints */
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-style: italic;
  color: var(--olive-light);
  margin-top: 2rem;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { display: none; } /* hide diffuser photo on mobile */
}

/* Page hero (interior pages) */
.page-hero {
  background: var(--sage-wash);
  padding-block: clamp(4rem, 9vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.page-hero .lede { max-width: 40rem; }

/* ---------- Offer bar ---------- */
.offers { background: var(--olive-deep); }
.offers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.offers__item {
  background: var(--olive-deep);
  padding: clamp(2rem, 4vw, 2.75rem) 1.5rem;
  text-align: center;
}
.offers__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.offers__item span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}
@media (max-width: 780px) {
  .offers__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(2rem, 3.5vw, 2.75rem);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px -20px rgba(56, 68, 47, 0.28);
}
.card h3 { margin-bottom: 0.85rem; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }

.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--olive);
}
.card__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.1; }

/* ---------- Figures ---------- */
.figure {
  position: relative;
  overflow: hidden;
  background: var(--sage-wash);
}
.figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.figure:hover img { transform: scale(1.03); }
.figure--wide img { aspect-ratio: 3 / 2; }
.figure--square img { aspect-ratio: 1 / 1; }

/* For designed graphics and product cut-outs that must not be cropped */
.figure--contain {
  background: var(--white);
}
.figure--contain img {
  aspect-ratio: auto;
  object-fit: contain;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}
/* Flush product photo: no frame, no backing panel */
.figure--flush { background: transparent; }
.figure--flush img { padding: 0; }
.figure--contain:hover img { transform: none; }
.section--olive .figure--contain { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.14); }

/* Placeholder styling for image slots awaiting final assets */
.figure--placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--sage);
  color: var(--olive-light);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 2rem;
}
.figure--placeholder.figure--wide { aspect-ratio: 3 / 2; }

/* ---------- Feature list ---------- */
.ticks { list-style: none; padding: 0; margin-top: 2rem; }
.ticks li {
  position: relative;
  padding-left: 2rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 0.8rem;
  height: 1px;
  background: var(--sage);
}
.section--olive .ticks li { border-color: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.78); }

/* ---------- Stat ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  line-height: 1;
  color: var(--olive);
}
.stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}
.section--olive .stat__num { color: var(--sage); }
.section--olive .stat__label { color: rgba(255, 255, 255, 0.6); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--olive-deep);
  text-align: center;
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.75); margin-inline: auto; max-width: 34rem; }
.cta-band .btn { margin-top: 2.25rem; }

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  font-weight: 300;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(169, 183, 154, 0.3);
}
.field textarea { resize: vertical; min-height: 9rem; }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1.5rem;
}

.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--sage-wash);
  border-left: 2px solid var(--olive);
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact details ---------- */
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.contact-list span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-light);
  margin-bottom: 0.3rem;
}
.contact-list a { text-decoration: none; color: var(--ink); transition: color 0.3s var(--ease); }
.contact-list a:hover { color: var(--olive); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.footer-grid p { color: var(--ink-soft); font-size: 0.95rem; max-width: 26rem; }
.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-light);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--olive); }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--olive); }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- A11y ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--olive-deep);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

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