/* ============================================
   Hostetler Custom Cabinetry - Site Concept
   Design Language: Warm Editorial #1
     (type, spacing, motion ONLY)
   Colors: Prospect's ACTUAL brand palette
     - Clean monochrome (black/white/warm grey)
     - Futura PT + Clarkson serif
     - No strong accent - elegant, minimal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  /* Backgrounds - matching their clean white/warm aesthetic */
  --bg-dark:       #2c2c2c;
  --bg-dark-2:     #3a3a3a;
  --bg-warm:       #f7f5f2;
  --bg-cream:      #ffffff;
  --bg-white:      #ffffff;

  /* Accent - warm charcoal/black (their actual brand is monochrome) */
  --accent:        #4a4a4a;
  --accent-hover:  #333333;
  --accent-muted:  rgba(74,74,74,0.10);
  --accent-light:  #999999;

  /* Text */
  --text-dark:     #222222;
  --text-body:     #555555;
  --text-muted:    #767676;
  --text-light:    #f7f5f2;
  --text-light-muted: rgba(247,245,242,0.6);

  /* Typography - close to their Clarkson + Futura PT */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Source Sans 3', 'Helvetica Neue', sans-serif;

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

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

*, *::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-cream);
  -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; }

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.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

/* -- Nav -- */
.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(44,44,44,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
  backdrop-filter: blur(10px);
}

.nav__logo {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav__logo span { font-weight: 300; }

.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__links a { font-size: 0.8rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); transition: color 0.3s; }
.nav__links a:hover { color: rgba(255,255,255,0.6); }
.nav__links a.btn-pill--accent, .mobile-menu a.btn-pill--accent { color: var(--bg-dark); }
.nav__links a.btn-pill--accent:hover { color: var(--bg-dark); }

.btn-pill {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.6rem; border-radius: 0;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: all 0.3s var(--ease-out);
  cursor: pointer; border: none;
}

.btn-pill--accent { background: var(--text-light); color: var(--bg-dark); }
.btn-pill--accent:hover { background: #ffffff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.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.4); }
.btn-pill--outline:hover { border-color: #ffffff; color: #ffffff; }
.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.4; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(44,44,44,0.82) 0%, rgba(58,58,58,0.5) 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: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.7); 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: #ffffff; }
.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; }

/* -- Sections -- */
.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); }
.section--dark .eyebrow { color: var(--accent-light); }
.section--warm { background: var(--bg-warm); }

/* -- Split layout -- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split--reverse .split__image { order: -1; }

.split__image { position: relative; overflow: hidden; }
.split__image img { width: 100%; height: 400px; object-fit: cover; transition: transform 0.6s var(--ease-smooth); }
.split:hover .split__image img { transform: scale(1.03); }

.split__text p { font-size: 1.05rem; line-height: 1.9; margin-bottom: 1.5rem; }

/* -- Section head -- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto; }

/* -- Services -- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 3rem; }
.service-card__image { overflow: hidden; aspect-ratio: 1/1; margin-bottom: 1.5rem; }
.service-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-smooth); }
.service-card:hover .service-card__image img { transform: scale(1.05); }
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { font-size: 0.98rem; line-height: 1.8; }

/* -- Featured projects -- */
.project { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.project--reverse .project__image { order: 2; }
.project__image { overflow: hidden; }
.project__image-inner { aspect-ratio: 4/3; overflow: hidden; }
.project__image-inner img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.project__number { font-family: var(--font-display); font-size: 2.6rem; color: rgba(255,255,255,0.36); line-height: 1; display: block; margin-bottom: 1rem; }
.project__location { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0.75rem; }
.project__text h3 { margin-bottom: 0.4rem; }
.project__tag { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: rgba(255,255,255,0.75); margin-bottom: 1rem; }
.project__text > p:last-child { font-size: 0.98rem; line-height: 1.85; }

/* -- Team -- */
.team__partners { display: flex; gap: 3rem; margin: 2rem 0 1.5rem; }
.team__partner { border-top: 1px solid var(--accent-muted); border-top: 2px solid rgba(74,74,74,0.25); padding-top: 1rem; }
.team__name { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--text-dark); }
.team__role { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.35rem; }
.team__note { font-size: 0.98rem; }
#team .split__image img { height: auto; max-height: 520px; }

/* -- 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: rgba(255,255,255,0.36); line-height: 1; margin-bottom: 1rem; }
.process__step h4 { margin-bottom: 0.75rem; }
.process__step p { font-size: 0.9rem; line-height: 1.7; }

/* -- CTA -- */
.cta { text-align: center; background: var(--bg-dark); }
.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: #1a1a1a; 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__brand { font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.75rem; }
.footer__brand span { font-weight: 300; }
.footer__about { font-size: 0.9rem; line-height: 1.8; }
.footer h4 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.5); 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: #ffffff; }
.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 -- */
.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: 90; background: rgba(44,44,44,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: rgba(255,255,255,0.6); }

.reveal { opacity: 0; transform: translateY(30px); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse .split__image { order: 0; }
  .services__grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .project { grid-template-columns: 1fr; gap: 1.5rem; }
  .project--reverse .project__image { order: 0; }
  .process__grid { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  .hero { height: auto; min-height: 100svh; }
  .hero__content { padding-top: calc(var(--nav-height) + 3rem); }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .process__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .team__partners { gap: 2rem; }
  .footer__bar { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer__links a { display: inline-block; padding-block: 0.65rem; }
}
/* Samoya QA: keep the homepage hero to exactly one browser viewport. */
.hero{height:100vh;height:100svh;min-height:0;max-height:100svh;overflow:hidden}
.split h2{font-size:clamp(2.25rem,3.2vw,2.85rem)}
