/* Topanga Construction — site styles
   Palette: charcoal #1C1F26 / amber #F59E0B / warm paper #FAF7F2 */

:root {
  --ink: #1c1f26;
  --ink-soft: #3d434f;
  --ink-mute: #6b7280;
  --paper: #faf7f2;
  --white: #ffffff;
  --amber: #f59e0b;
  --amber-deep: #d97706;
  --amber-soft: #fef3c7;
  --line: #e8e2d8;
  --dark: #16181d;
  --dark-2: #1c1f26;
  --dark-line: #2e333d;
  --radius: 14px;
  --shadow: 0 20px 50px -24px rgba(22, 24, 29, 0.35);
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: min(1160px, 92%); margin: 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--amber); color: var(--ink); padding: 10px 18px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------ header -- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -20px rgba(22,24,29,.3); }
.header-inner { display: flex; align-items: center; gap: 28px; padding: 14px 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text {
  font-family: var(--font-display); font-weight: 800; font-size: 1.12rem;
  letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap;
}
.brand-text span { color: var(--amber-deep); }

.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
  text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink-soft);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.phone-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration: none; font-size: 0.95rem; color: var(--ink);
  transition: color 0.15s ease;
}
.phone-link:hover { color: var(--amber-deep); }
.phone-link svg { width: 17px; height: 17px; color: var(--amber-deep); }
.phone-link.big { font-size: 1.05rem; }
.phone-link.big svg { width: 20px; height: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-deep); color: var(--white); transform: translateY(-1px); }
.btn-ghost { border-color: var(--dark-line); color: var(--white); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; border-radius: 8px; }
.btn-full { width: 100%; }

.nav-toggle { display: none; }

/* -------------------------------------------------------------- hero -- */
.hero { background: var(--dark); color: var(--white); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px;
  align-items: center; padding: 84px 0 96px;
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber);
}
.eyebrow-dash { width: 34px; height: 2px; background: var(--amber); flex: none; }

.hero h1 {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.05; letter-spacing: -0.01em; margin: 18px 0 20px;
}
.hero h1 em, .section-head h2 em, .contact h2 em, .about-copy h2 em, .area h2 em { font-style: normal; color: var(--amber); }
.hero .lead { font-size: 1.15rem; color: #b7bcc7; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 30px; }

.hero-trust {
  display: flex; gap: 36px; list-style: none; margin-top: 44px;
  padding-top: 28px; border-top: 1px solid var(--dark-line); flex-wrap: wrap;
}
.hero-trust li { display: grid; gap: 2px; }
.hero-trust strong {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-trust .star { width: 18px; height: 18px; fill: var(--amber); }
.hero-trust span { font-size: 0.85rem; color: #8f95a3; }

.hero-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.hm { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hm img { width: 100%; height: 100%; object-fit: cover; }
.hm-a { grid-column: 1 / -1; aspect-ratio: 16 / 9.5; }
.hm-b { aspect-ratio: 4 / 4.6; }
.hm-c { aspect-ratio: 4 / 4.6; }
.hm-badge {
  position: absolute; left: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 12px;
  background: var(--white); color: var(--ink);
  border-radius: 12px; padding: 12px 18px; box-shadow: var(--shadow);
}
.hm-badge svg { width: 26px; height: 26px; color: var(--amber-deep); background: var(--amber-soft); border-radius: 50%; padding: 5px; flex: none; }
.hm-badge strong { font-family: var(--font-display); font-size: 0.95rem; display: block; line-height: 1.2; }
.hm-badge span { font-size: 0.8rem; color: var(--ink-mute); }

/* ---------------------------------------------------------- trustbar -- */
.trustbar { background: var(--amber); }
.trustbar-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px 32px; padding: 20px 0;
}
.tb-item { display: grid; gap: 0; }
.tb-item strong { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.tb-item span { font-size: 0.82rem; color: rgba(28, 31, 38, 0.72); font-weight: 500; }

/* ----------------------------------------------------------- section -- */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2, .about-copy h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; letter-spacing: -0.01em;
  margin: 14px 0 14px;
}
.section-sub { color: var(--ink-mute); font-size: 1.06rem; }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark .section-sub { color: #9aa0ad; }
.section-cream { background: #f3ede3; }

/* ---------------------------------------------------------- services -- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--amber); }
.svc-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--amber-soft);
  display: grid; place-items: center; margin-bottom: 18px;
}
.svc-icon svg { width: 26px; height: 26px; color: var(--amber-deep); }
.svc h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin-bottom: 8px; }
.svc p { color: var(--ink-mute); font-size: 0.95rem; }

/* ----------------------------------------------------------- gallery -- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.g-item {
  position: relative; border-radius: 12px; overflow: hidden; margin: 0;
  aspect-ratio: 4 / 3; background: var(--dark-2);
}
.g-item.tall { grid-row: span 2; aspect-ratio: auto; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px; font-size: 0.85rem; font-weight: 600; color: var(--white);
  background: linear-gradient(transparent, rgba(13, 14, 17, 0.85));
}

/* ------------------------------------------------------------- about -- */
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-chip {
  position: absolute; right: -14px; bottom: 26px;
  background: var(--dark); color: var(--white); border-radius: 12px; padding: 14px 20px;
  box-shadow: var(--shadow); display: grid; gap: 0;
}
.about-chip strong { font-family: var(--font-display); font-size: 0.98rem; }
.about-chip span { font-size: 0.8rem; color: #9aa0ad; }
.about-copy > p { color: var(--ink-soft); max-width: 56ch; }
.checks { list-style: none; margin: 26px 0 32px; display: grid; gap: 13px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.checks svg { width: 20px; height: 20px; color: var(--amber-deep); flex: none; margin-top: 3px; }

/* ----------------------------------------------------------- reviews -- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.review .stars { color: var(--amber); letter-spacing: 3px; font-size: 1rem; }
.review p { color: var(--ink-soft); font-size: 0.97rem; flex: 1; }
.review footer { font-weight: 700; font-family: var(--font-display); }
.review footer span { font-family: var(--font-body); font-weight: 500; color: var(--ink-mute); font-size: 0.88rem; }
.reviews-link { margin-top: 34px; color: var(--ink-mute); }
.reviews-link a { color: var(--amber-deep); font-weight: 700; text-decoration: none; }
.reviews-link a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- area -- */
.area { padding-top: 0; }
.area .section-head { margin-bottom: 30px; }
.area-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.area-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 20px; font-weight: 600; font-size: 0.92rem;
}

/* ----------------------------------------------------------- contact -- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.contact-info { list-style: none; margin-top: 34px; display: grid; gap: 22px; }
.contact-info li { display: flex; gap: 16px; align-items: flex-start; }
.contact-info svg { width: 24px; height: 24px; color: var(--amber); flex: none; margin-top: 3px; }
.contact-info strong { font-family: var(--font-display); font-size: 1.05rem; display: block; }
.contact-info strong a { text-decoration: none; }
.contact-info strong a:hover { color: var(--amber); }
.contact-info span { color: #9aa0ad; font-size: 0.9rem; }

.contact-form {
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow); display: grid; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: 0.88rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 9px; padding: 12px 14px;
  background: var(--paper); transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}
.field textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }

/* ------------------------------------------------------------ footer -- */
.site-footer { background: var(--dark); color: #b7bcc7; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding: 56px 0 40px; border-bottom: 1px solid var(--dark-line);
}
.footer-brand .brand-text { color: var(--white); }
.footer-brand .brand-text span { color: var(--amber); }
.footer-brand p { margin-top: 16px; font-size: 0.92rem; max-width: 34ch; }
.footer-nav, .footer-social { display: grid; gap: 10px; align-content: start; }
.footer-nav a, .footer-social a { color: #b7bcc7; text-decoration: none; font-size: 0.95rem; transition: color 0.15s ease; }
.footer-nav a:hover, .footer-social a:hover { color: var(--amber); }
.footer-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 22px 0; font-size: 0.85rem; color: #8f95a3;
}
.footer-legal a { color: #b7bcc7; text-decoration: none; font-weight: 700; }
.footer-legal a:hover { color: var(--amber); }

/* ------------------------------------------------------ reveal anim -- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .g-item img, .svc, .btn { transition: none; }
}

/* -------------------------------------------------------- responsive -- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; padding: 60px 0 70px; }
  .hero-media { max-width: 640px; }
  .services-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-chip { right: 12px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .header-inner { gap: 10px; justify-content: space-between; padding: 12px 0; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-text { font-size: 0.92rem; }
  .header-cta { gap: 8px; margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 4%;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav a:last-child { border-bottom: none; }
  .header-cta .phone-link span { display: none; }
  .header-cta .btn { display: none; }
  .nav-toggle {
    display: grid; gap: 4.5px; background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .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); }
  .services-grid, .reviews-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-item.tall { grid-row: auto; aspect-ratio: 4 / 3; }
  .g-item:last-child { grid-column: 1 / -1; }
  .hero-trust { gap: 22px; }
  .trustbar-inner { justify-content: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
