/* ============================================
   Edgewood Cabinetry - Site Concept
   Design Language: Heritage Craft #12
     (type, spacing, motion ONLY)
   Colors: Prospect's real brand palette
     navy slate #3b4253 (their header/nav CSS)
     sage teal #86b5b0 (their buttons + logo)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Karla:wght@300;400;500&display=swap');

:root {
  /* Backgrounds - from prospect brand */
  --bg-dark:       #2a3140;
  --bg-dark-2:     #3b4253;
  --bg-light:      #f4f2ee;
  --bg-white:      #faf9f6;

  /* Accent - prospect's sage teal */
  --accent:        #86b5b0;
  --accent-hover:  #6a9e98;
  --accent-muted:  rgba(134,181,176,0.15);
  --accent-strong: #5a9a93;
  /* Same sage hue, darkened for small text on light bands (WCAG AA) */
  --accent-text:   #45736e;

  /* Text */
  --text-dark:     #2a3140;
  --text-body:     #5a5f6a;
  --text-muted:    #8a8f9a;
  --text-light:    #f4f2ee;
  --text-light-muted: rgba(244,242,238,0.6);

  /* Typography - Heritage Craft */
  --font-display:  'EB Garamond', Georgia, serif;
  --font-body:     'Karla', 'Helvetica Neue', sans-serif;

  /* Layout */
  --max-width:     1100px;
  --gutter:        clamp(1.5rem, 4vw, 3rem);
  --nav-height:    80px;

  /* Motion - Heritage Craft */
  --ease-out:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth:   cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  width: min(85%, var(--max-width));
  margin: 0 auto;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.nav--scrolled {
  background: rgba(42,49,64,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
}

.nav__logo img {
  height: 40px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-light);
  transition: color 0.3s;
}

.nav__links a:hover { color: var(--accent); }
.nav__links a.btn-pill--accent,
.nav__links a.btn-pill--accent:hover { color: var(--bg-dark); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Pill Buttons ── */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: none;
}

.btn-pill--accent {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-pill--accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(134,181,176,0.3);
}

.btn-pill--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.btn-pill--dark:hover {
  background: var(--bg-dark-2);
  transform: translateY(-2px);
}

.btn-pill--outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-pill--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-pill__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease-out);
}

.btn-pill:hover .btn-pill__icon { transform: rotate(45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(42,49,64,0.85) 0%,
    rgba(59,66,83,0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: calc(var(--nav-height) + 4rem) var(--gutter) 4rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-muted);
  border: 1px solid rgba(134,181,176,0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-light-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 550px;
}

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

/* ── Section spacing ── */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--text-light);
}

.section--dark p { color: var(--text-light-muted); }
/* Eyebrows keep the lighter sage on dark bands (the darkened text sage is for light bands) */
.section--dark .eyebrow { color: var(--accent); }

.section--alt { background: var(--bg-light); }

/* ── Intro ── */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro__text p {
  font-size: 1.05rem;
  line-height: 1.9;
}

.intro__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.stat {
  padding: 1.5rem;
  background: rgba(134,181,176,0.08);
  border-radius: 12px;
  border: 1px solid rgba(134,181,176,0.15);
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat__label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Services ── */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}

.service-block:nth-child(even) .service-block__image { order: -1; }

.service-block__image {
  position: relative;
  overflow: hidden;
}

.service-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.service-block:hover .service-block__image img {
  transform: scale(1.03);
}

.service-block__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem clamp(2rem, 4vw, 4rem);
}

.service-block__content h3 { margin-bottom: 1rem; }

.service-block__content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ── Hidden door signature moment ── */
.door-stage {
  position: relative;
  overflow: hidden;
}

.hidden-door {
  position: absolute;
  inset: 0;
  display: flex;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.25), rgba(255,255,255,0.06) 12%, rgba(0,0,0,0.12) 88%, rgba(0,0,0,0.35)),
    var(--bg-dark-2);
  box-shadow: 8px 0 30px rgba(0,0,0,0.45);
  will-change: transform;
  /* Default open so the photo is never hidden if JS fails; JS closes it and scrubs */
  transform: translateX(-103%);
}

.hidden-door__panel {
  flex: 1;
  margin: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 2.5vw, 2rem);
  border: 1px solid rgba(134,181,176,0.35);
  box-shadow: inset 0 0 0 8px var(--bg-dark-2), inset 0 0 0 9px rgba(244,242,238,0.12);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.15));
}

.hidden-door__handle {
  position: absolute;
  right: clamp(0.9rem, 2vw, 1.4rem);
  top: 50%;
  width: 10px;
  height: 46px;
  border-radius: 6px;
  background: var(--accent);
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.door-hint {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(42,49,64,0.8);
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

/* ── Services strip ── */
.services-strip {
  background: var(--bg-light);
  padding: clamp(2rem, 4vw, 3rem) var(--gutter);
  text-align: center;
  border-top: 1px solid rgba(59,66,83,0.08);
}

.services-strip__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

.services-strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.services-strip li {
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(59,66,83,0.18);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-body);
  background: var(--bg-white);
}

/* ── Award ── */
.award__grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.award__image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(42,49,64,0.18);
  border: 1px solid rgba(59,66,83,0.1);
}

/* ── Levels ── */
.levels__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.level-card {
  padding: 2rem;
  background: rgba(134,181,176,0.07);
  border: 1px solid rgba(134,181,176,0.18);
  border-radius: 12px;
}

.level-card h4 {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.level-card p {
  font-size: 0.95rem;
  line-height: 1.75;
}

.levels__guarantee {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 1.02rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.levels__footnote {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.55;
}

/* ── Process ── */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.process__step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.process__number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.process__step h4 { margin-bottom: 0.75rem; }

.process__step p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Testimonials ── */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  padding: 2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(134,181,176,0.3);
}

.testimonial-card__stars {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.testimonial-card__quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.testimonial-card__author {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── CTA ── */
.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #3b4253 100%);
}

.cta h2 { margin-bottom: 1rem; }
.cta p { margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; color: var(--text-light-muted); }

.cta__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  background: #1e2430;
  padding: 3rem 0 2rem;
  color: var(--text-light-muted);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer__logo img {
  height: 34px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer__about { font-size: 0.9rem; line-height: 1.8; }

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer__links { list-style: none; }

.footer__links li { margin-bottom: 0.5rem; }

.footer__links a {
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer__links a:hover { color: var(--accent); }

.footer__bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* ── Mobile Menu ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 200;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: all 0.3s var(--ease-out);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(42,49,64,0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-light);
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--accent); }
.mobile-menu a.btn-pill--accent,
.mobile-menu a.btn-pill--accent:hover { color: var(--bg-dark); }

.mobile-menu__divider {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

/* ── Reveal Classes (GSAP) ── */
.reveal { opacity: 0; transform: translateY(30px); }

/* ── Dot pattern accent ── */
.dot-pattern {
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(var(--accent) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.15;
  pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .intro__grid { grid-template-columns: 1fr; gap: 2rem; }
  .award__grid { grid-template-columns: 1fr; }
  .award__image { max-width: 320px; }
  .levels__grid { grid-template-columns: 1fr; }
  .door-stage { min-height: 300px; }
  .service-block { grid-template-columns: 1fr; min-height: auto; }
  .service-block:nth-child(even) .service-block__image { order: 0; }
  .service-block__image { height: 300px; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .hamburger { display: flex; }
  .footer__links li { margin-bottom: 0; }
  .footer__links a { display: inline-block; padding: 0.85rem 0; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .hero__content { padding-top: calc(var(--nav-height) + 2.5rem); }
  .process__grid { grid-template-columns: 1fr; }
  .intro__stats { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .footer__bar { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ---------- Mobile drawer close control ---------- */
/* The burger doubles as the close (X), but the nav's own z-index traps it in a
   stacking context below the drawer, so it is painted over and cannot be tapped.
   This control lives inside the drawer, so it is always visible and always hits. */
#mobileMenu .mnav-close {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top, 0px));
  right: 0.85rem;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: rgb(244, 242, 238);
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
#mobileMenu .mnav-close::before,
#mobileMenu .mnav-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21px;
  height: 1.5px;
  margin: -0.75px 0 0 -10.5px;
  background: currentColor;
  border-radius: 2px;
}
#mobileMenu .mnav-close::before { transform: rotate(45deg); }
#mobileMenu .mnav-close::after { transform: rotate(-45deg); }
#mobileMenu .mnav-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
