/* =========================================================
   Peak General Contractors — Warm Luxury Design System
   Palette: warm white + sand + taupe + clay, with espresso
   Type: Fraunces (serif display) + Inter (sans body)
   ========================================================= */

:root {
  --paper:     #f7f1e9;   /* page background — warm cream */
  --cream:     #fffdf9;   /* raised cards */
  --sand:      #ece0d1;   /* soft bands */
  --sand-2:    #e3d4c1;
  --taupe:     #c9b9a6;
  --clay:      #b96a4c;   /* accent — terracotta */
  --clay-dk:   #a0573c;
  --espresso:  #2f2620;   /* dark sections */
  --espresso-2:#3a302a;
  --text:      #3a322b;   /* warm brown ink */
  --muted:     #8a7d6e;   /* warm taupe-gray */
  --line:      #e4d8c7;
  --line-dk:   #4b3f37;

  --maxw: 1180px;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 22px 50px -28px rgba(74, 55, 40, .40);
  --shadow-lg: 0 38px 80px -34px rgba(74, 55, 40, .55);

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--espresso);
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--espresso); color: #fff; padding: 12px 18px;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 8px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: 16px 32px; border-radius: 100px;
  cursor: pointer; border: 0;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 16px 30px -14px rgba(185,106,76,.85); }
.btn-primary:hover { background: var(--clay-dk); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s, padding .4s;
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(247,241,233,.9);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 10px 40px -24px rgba(74,55,40,.5);
  padding: 14px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 13px; color: #fff; }
.brand-mark { width: 36px; height: 36px; color: var(--clay); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--font-head); font-weight: 600; font-size: 1.42rem;
  letter-spacing: .02em; color: #fff;
}
.brand-text small {
  font-family: var(--font-body); font-size: .64rem; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.78); margin-top: 4px;
}
.site-header.scrolled .brand-text strong { color: var(--espresso); }
.site-header.scrolled .brand-text small { color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  font-family: var(--font-body); font-weight: 500; font-size: .96rem;
  color: rgba(255,255,255,.9); padding: 10px 16px; border-radius: 100px;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.site-header.scrolled .main-nav a { color: var(--text); }
.site-header.scrolled .main-nav a:hover { color: var(--espresso); background: rgba(58,50,43,.07); }
.nav-cta { background: var(--clay); color: #fff !important; margin-left: 10px; }
.nav-cta:hover { background: var(--clay-dk) !important; }
.site-header.scrolled .nav-cta { color: #fff !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s, background .3s; }
.site-header.scrolled .nav-toggle span { background: var(--espresso); }
.nav-toggle[aria-expanded="true"] span { background: #fff; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(47,38,32,.55) 0%, rgba(47,38,32,.18) 42%, rgba(47,38,32,.78) 100%),
    linear-gradient(90deg, rgba(47,38,32,.6) 0%, rgba(47,38,32,.05) 65%);
}
.hero-content { padding: 150px 28px 90px; max-width: 880px; }
.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.4rem); font-weight: 400; color: #fff;
  letter-spacing: -.02em; margin-bottom: 26px;
}
.hero .eyebrow { color: #e8c3a8; }
.hero-sub { font-size: clamp(1.08rem, 2vw, 1.3rem); color: rgba(255,255,255,.92); max-width: 600px; margin-bottom: 38px; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-trust span { font-size: .95rem; color: #f0d9c7; letter-spacing: .03em; }
.hero-trust em { color: rgba(255,255,255,.82); font-style: normal; margin-left: 8px; }

/* ---------- Stats ---------- */
.stats { background: var(--sand); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 52px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong {
  display: block; font-family: var(--font-head); font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 2.9rem); color: var(--espresso); letter-spacing: -.02em;
  margin-bottom: 4px;
}
.stat span { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(84px, 11vw, 150px) 0; }
.section-dark { background: var(--espresso); color: rgba(255,255,255,.82); }
.section-dark h2 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 400; margin-bottom: 20px; }
.section-lead { font-size: 1.15rem; color: var(--muted); }
.section-dark .section-lead { color: rgba(255,255,255,.7); }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 34px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: var(--sand-2); }
.card-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.6rem;
  background: var(--sand); margin-bottom: 22px;
}
.card h3 { font-size: 1.42rem; font-weight: 500; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 1rem; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; list-style: none; }
.step { position: relative; padding: 34px 28px; background: var(--espresso-2); border: 1px solid var(--line-dk); border-radius: var(--radius); }
.step-num { font-family: var(--font-head); font-weight: 400; font-size: 2.8rem; color: var(--clay); display: block; margin-bottom: 14px; letter-spacing: -.02em; font-style: italic; }
.step h3 { color: #fff; font-size: 1.35rem; font-weight: 500; margin-bottom: 11px; }
.step p { color: rgba(255,255,255,.68); font-size: .97rem; }

/* ---------- Projects gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 20px; }
.shot { position: relative; overflow: hidden; border-radius: var(--radius); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.shot:hover img { transform: scale(1.06); }
.shot-lg { grid-column: span 2; grid-row: span 2; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 24px 22px; color: #fff;
  background: linear-gradient(transparent, rgba(47,38,32,.9));
  display: flex; flex-direction: column;
}
.shot figcaption strong { font-family: var(--font-head); font-weight: 500; font-size: 1.18rem; }
.shot figcaption span { font-size: .82rem; color: rgba(255,255,255,.82); margin-top: 2px; }

/* ---------- Feature quote ---------- */
.section-feature { background: var(--sand); }
.quote-wrap { max-width: 920px; text-align: center; }
.quote-wrap blockquote p {
  font-family: var(--font-head); font-weight: 400; font-style: italic;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.32; color: var(--espresso);
  letter-spacing: -.01em; margin-bottom: 30px;
}
.quote-wrap footer { font-size: 1rem; color: var(--muted); font-weight: 500; }
.quote-wrap footer strong { color: var(--clay-dk); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; }
.about-copy h2 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 400; margin-bottom: 22px; }
.about-copy p { color: var(--muted); margin-bottom: 18px; }
.checklist { list-style: none; margin: 28px 0 34px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; font-weight: 500; color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 21px; height: 21px; border-radius: 50%; background: var(--clay);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.contact-intro h2 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 400; margin-bottom: 18px; }
.contact-list { list-style: none; margin-top: 34px; display: grid; gap: 20px; }
.contact-list li { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--line-dk); padding-top: 16px; }
.contact-list span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
.contact-list a, .contact-list li { color: rgba(255,255,255,.92); font-size: 1.12rem; }
.contact-list a:hover { color: var(--clay); }

.contact-form { background: var(--cream); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lg); }
.field { display: flex; flex-direction: column; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-family: var(--font-body); font-weight: 600; font-size: .82rem; color: var(--espresso); margin-bottom: 8px; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #b6a894; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--clay); box-shadow: 0 0 0 4px rgba(185,106,76,.15); }
.field input.invalid, .field textarea.invalid { border-color: #c0492f; box-shadow: 0 0 0 4px rgba(192,73,47,.13); }
.form-note { margin-top: 15px; font-size: .95rem; min-height: 1.2em; }
.form-note.ok { color: #6b8f5a; }
.form-note.err { color: #c0492f; }

/* ---------- Footer ---------- */
.site-footer { background: #261e19; color: rgba(255,255,255,.72); padding-top: 76px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding-bottom: 52px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand p { font-size: .96rem; max-width: 330px; }
.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a, .footer-contact a { transition: color .2s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--clay); }
.footer-contact p { font-size: .96rem; margin-bottom: 7px; }
.footer-contact strong { color: #fff; }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line-dk); padding-top: 26px; padding-bottom: 32px;
  font-size: .85rem; color: rgba(255,255,255,.5);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-media { order: 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: stretch; justify-content: center; gap: 6px;
    background: rgba(38,30,25,.98); backdrop-filter: blur(8px);
    padding: 84px 28px; transform: translateX(100%); transition: transform .4s var(--ease);
    box-shadow: -24px 0 70px -34px rgba(0,0,0,.8);
  }
  .main-nav.open { transform: none; }
  .main-nav a, .site-header.scrolled .main-nav a { font-size: 1.18rem; padding: 14px 18px; color: rgba(255,255,255,.92); }
  .nav-cta, .site-header.scrolled .nav-cta { margin-left: 0; text-align: center; margin-top: 12px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 38px 16px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: 0; }

  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .shot-lg { grid-column: span 2; grid-row: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

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