/* ============================================================
   Wahr Home Solutions - Homepage Concept
   Type & composition: Earthy Organic (Libre Baskerville + Source Sans 3)
   Palette: Wahr's real brand colors (taupe #a5907a, amber #e0a844,
   warm near-blacks #232020/#161515, warm off-whites #f3f1ef)
   ============================================================ */

:root {
  /* Backgrounds - from Wahr's site */
  --bg-dark:        #232020;
  --bg-dark-2:      #161515;
  --bg-light:       #f3f1ef;
  --bg-light-2:     #eae6df;

  /* Accents - from Wahr's Elementor globals */
  --taupe:          #a5907a;
  --taupe-light:    #bca796;
  --amber:          #e0a844;
  --amber-hover:    #c9922f;
  --amber-muted:    rgba(224, 168, 68, 0.28);
  --taupe-muted:    rgba(165, 144, 122, 0.25);

  /* Text */
  --text-dark:      #232020;
  --text-body:      #565049;
  --text-muted:     #8a8378;
  --text-light:     rgba(255, 255, 255, 0.86);
  --text-light-mid: rgba(255, 255, 255, 0.66);
  --text-light-dim: rgba(255, 255, 255, 0.45);

  /* Typography */
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;

  /* Layout */
  --max-width: min(90%, 1180px);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-height: 84px;
  --radius: 14px;

  /* Motion */
  --ease-organic: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--amber);
}
.on-dark .eyebrow { color: var(--taupe-light); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.18; }

.h-xl { font-size: clamp(2.1rem, 5.4vw, 4rem); }
.h-lg { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
.h-md { font-size: clamp(1.3rem, 2.4vw, 1.85rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.6rem 0.55rem 1.6rem;
  border-radius: 999px;
  transition: background 0.35s var(--ease-organic), color 0.35s var(--ease-organic), border-color 0.35s var(--ease-organic), transform 0.35s var(--ease-organic);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-organic), background 0.35s var(--ease-organic);
}
.btn__icon svg { width: 15px; height: 15px; }
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--amber { background: var(--amber); color: var(--bg-dark-2); }
.btn--amber .btn__icon { background: rgba(22, 21, 21, 0.14); }
.btn--amber:hover { background: var(--amber-hover); }

.btn--ghost-light { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn--ghost-light .btn__icon { background: rgba(255,255,255,0.12); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn--dark { background: var(--bg-dark); color: #fff; }
.btn--dark .btn__icon { background: rgba(255,255,255,0.14); }
.btn--dark:hover { background: var(--bg-dark-2); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.45s var(--ease-smooth), box-shadow 0.45s var(--ease-smooth), height 0.45s var(--ease-smooth);
}
.nav.is-scrolled {
  background: rgba(22, 21, 21, 0.96);
  backdrop-filter: blur(12px);
  height: 68px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.nav__inner {
  width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__logo img { height: 34px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-light-mid);
  transition: color 0.3s;
}
.nav__links a:hover { color: #fff; }
.nav__cta { display: inline-flex; }
.nav__cta .btn { font-size: 0.85rem; padding: 0.4rem 0.45rem 0.4rem 1.3rem; }
.nav__cta .btn__icon { width: 32px; height: 32px; }

/* Hamburger */
.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 320;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.nav__burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease-organic), opacity 0.3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg-dark-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-organic), visibility 0.4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 1.4rem; }
.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  color: var(--text-light);
  transition: color 0.3s;
}
.mobile-menu__links a:hover { color: var(--amber); }
.mobile-menu__divider {
  height: 1px;
  background: rgba(255,255,255,0.14);
  margin: 2.2rem 0;
}
.mobile-menu__contact { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-menu__contact a { color: var(--text-light-mid); font-size: 1rem; }
.mobile-menu__contact a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 9s var(--ease-organic) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22,21,21,0.88) 0%, rgba(22,21,21,0.42) 45%, rgba(22,21,21,0.28) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: var(--max-width);
  margin: 0 auto;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  color: #fff;
  max-width: min(90%, 1180px);
}
.hero__content .eyebrow { color: var(--taupe-light); }
.hero__content h1 {
  color: #fff;
  max-width: 13ch;
  margin-bottom: 1.4rem;
}
.hero__sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-light-mid);
  max-width: 46ch;
  margin-bottom: 2.2rem;
  font-weight: 400;
}
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: clamp(3rem, 8vh, 6rem);
  z-index: 2;
  color: var(--text-light-dim);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: scrollPulse 2.2s var(--ease-organic) infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Hero entrance */
.hero [data-hero] { opacity: 0; transform: translateY(28px); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter); }
.section--dark { background: var(--bg-dark); color: var(--text-light); }
.section--deep { background: var(--bg-dark-2); color: var(--text-light); }
.section--light { background: var(--bg-light); }
.section--light-2 { background: var(--bg-light-2); }
.section--dark h2, .section--deep h2, .section--dark h3, .section--deep h3 { color: #fff; }

/* ---------- Intro ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.intro__body p { color: var(--text-light-mid); margin-bottom: 1.2rem; font-size: 1.05rem; }
.intro__body p strong { color: var(--text-light); font-weight: 600; }
.intro__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}
.intro__facts li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--taupe-light);
  border: 1px solid rgba(188, 167, 150, 0.35);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}

/* ---------- Image break ---------- */
.image-break {
  position: relative;
  height: clamp(320px, 55vh, 560px);
  overflow: hidden;
}
.image-break img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  position: absolute;
  top: -10%;
  left: 0;
}

/* ---------- Services showcase (signature section) ---------- */
.showcase__head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.showcase__head p { color: var(--text-body); margin-top: 1rem; font-size: 1.05rem; }

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.showcase__media {
  position: sticky;
  top: calc(50vh - min(34vh, 310px));
  height: min(68vh, 620px);
  border-radius: var(--radius);
  overflow: hidden;
}
.showcase__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s var(--ease-organic), transform 1.1s var(--ease-organic);
}
.showcase__media img.is-active { opacity: 1; transform: scale(1); }
.showcase__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(35, 32, 32, 0.08);
  border-radius: var(--radius);
  pointer-events: none;
}

.showcase__panels { display: flex; flex-direction: column; }
.panel {
  min-height: min(68vh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(35,32,32,0.1);
}
.panel:last-child { border-bottom: none; }
.panel__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--taupe);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.panel__num::after { content: ""; width: 40px; height: 1px; background: var(--amber-muted); }
.panel h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 1rem; }
.panel p { color: var(--text-body); font-size: 1.02rem; max-width: 44ch; }
.panel__img { display: none; }

/* Extra services strip */
.also {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(35,32,32,0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2.5rem;
}
.also__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.also__items { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; }
.also__items span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-dark);
}

/* ---------- Team ---------- */
.team__head { max-width: 620px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.team__head p { color: var(--text-light-mid); margin-top: 1rem; font-size: 1.05rem; }
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
}
.team-card {
  border: 1px solid rgba(188, 167, 150, 0.22);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.4s var(--ease-organic), transform 0.4s var(--ease-organic);
}
.team-card:hover { border-color: rgba(224, 168, 68, 0.45); transform: translateY(-4px); }
.team-card h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.team-card__role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
  display: block;
}
.team-card p { color: var(--text-light-mid); font-size: 0.98rem; }

/* ---------- Process ---------- */
.process__head { max-width: 620px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.process__head p { color: var(--text-body); margin-top: 1rem; font-size: 1.05rem; }
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(35,32,32,0.06);
}
.step__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--taupe);
  line-height: 1;
  margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.step p { color: var(--text-body); font-size: 0.94rem; }

/* ---------- Testimonials ---------- */
.reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.reviews__head p { color: var(--text-light-mid); margin-top: 1rem; max-width: 48ch; }
.reviews__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 min(420px, 82vw);
  scroll-snap-align: start;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(188,167,150,0.2);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.review__stars { color: var(--amber); letter-spacing: 0.25em; font-size: 0.9rem; }
.review__quote {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
}
.review__name { font-weight: 600; color: #fff; font-size: 0.95rem; }
.review__meta { color: var(--text-light-dim); font-size: 0.82rem; display: block; margin-top: 0.15rem; }

/* ---------- Areas ---------- */
.areas__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.areas__intro p { color: var(--text-body); margin-top: 1rem; font-size: 1.02rem; max-width: 40ch; }
.areas__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.areas__list li {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid rgba(35,32,32,0.08);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  transition: border-color 0.3s, transform 0.3s var(--ease-organic);
}
.areas__list li:hover { border-color: var(--amber); transform: translateY(-2px); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(224,168,68,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.cta__inner { position: relative; max-width: 680px; margin: 0 auto; }
.cta h2 { margin-bottom: 1.2rem; }
.cta p { color: var(--text-light-mid); font-size: 1.08rem; margin-bottom: 2.4rem; }
.cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark-2);
  color: var(--text-light-mid);
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2rem;
  border-top: 1px solid rgba(188,167,150,0.14);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3rem;
}
.footer__brand img { height: 40px; width: auto; margin-bottom: 1.2rem; }
.footer__brand p { font-size: 0.92rem; max-width: 30ch; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe-light);
  margin-bottom: 1.1rem;
}
.footer ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer a { font-size: 0.94rem; transition: color 0.3s; }
.footer a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-light-dim);
}

/* ---------- Reveal animation base ---------- */
.reveal { opacity: 0; transform: translateY(32px); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero [data-hero] { opacity: 1 !important; transform: none !important; }
  .hero__media img { animation: none; transform: none; }
}

/* ---------- 404 ---------- */
.error-section {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg-dark-2);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem var(--gutter) 4rem;
  position: relative;
  overflow: hidden;
}
.error-section::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 550px;
  background: radial-gradient(ellipse at center, rgba(224,168,68,0.12) 0%, transparent 65%);
}
.error__inner { position: relative; max-width: 560px; }
.error__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 11rem);
  line-height: 1;
  color: var(--amber-muted);
  margin-bottom: 1rem;
}
.error__inner h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1rem; }
.error__inner p { color: var(--text-light-mid); margin-bottom: 2.2rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .intro__grid { grid-template-columns: 1fr; }

  /* Showcase collapses to stacked panels with inline images */
  .showcase { grid-template-columns: 1fr; }
  .showcase__media { display: none; }
  .panel { min-height: 0; padding: 2.2rem 0; }
  .panel__img {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.4rem;
  }
  .panel__img img { width: 100%; height: clamp(220px, 40vw, 380px); object-fit: cover; }

  .team__grid { grid-template-columns: 1fr; }
  .areas__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero:not([style]) {
    height: auto;
    min-height: 100svh;
    padding-top: 6.5rem;
  }
  .hero__scroll { display: none; }
  .section { padding-left: var(--gutter); padding-right: var(--gutter); }
}

@media (max-width: 560px) {
  .process__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; justify-content: space-between; }
  .cta__actions .btn { width: 100%; justify-content: space-between; }
  .footer ul { gap: 0; }
  .footer a { display: inline-block; padding: 0.8rem 0; }
}

@media (max-width: 480px) {
  .hero:not([style]) { padding-top: 5.5rem; }
}
