@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #000000;
  --field: #000000;
  --plaster: #FDFAF3;
  --copper: #C77448;
  --copper-dim: #8a5233;
  --line: rgba(253, 250, 243, 0.12);
  --display: 'Montserrat', sans-serif;
  --body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--field);
  color: var(--plaster);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

/* Loader */
#loader {
  position: fixed; inset: 0; background: #000; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s ease;
}
#loader-line {
  width: 0; height: 2px; background: var(--copper);
  animation: loadline 0.9s ease forwards;
}
@keyframes loadline { to { width: 180px; } }
#loader.done { opacity: 0; pointer-events: none; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
  backdrop-filter: blur(4px);
}
.nav-logo img { height: 56px; display: block; filter: drop-shadow(0 2px 10px rgba(199,116,72,0.25)); transition: transform 0.3s ease; }
.nav-logo:hover img { transform: scale(1.04); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; letter-spacing: 0.04em; }
.nav-links a { opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { color: var(--copper); font-weight: 600; }
.nav-phone {
  border: 1px solid var(--copper); color: var(--copper);
  padding: 8px 16px; border-radius: 2px; font-size: 13px; font-weight: 600;
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* Gradient shiny headline */
.gradient-text {
  background-image: linear-gradient(
    to right,
    var(--copper) 0%, #e8b48a 15%, var(--plaster) 32%,
    var(--copper) 50%, var(--plaster) 68%, #e8b48a 85%, var(--copper) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: shiny 7s linear infinite;
}
@keyframes shiny {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@media (prefers-reduced-motion: reduce) {
  .gradient-text { animation: none; background-position: 0% center; }
}

/* Liquid-glass card treatment */
.liquid-glass {
  background: rgba(253, 250, 243, 0.03);
  backdrop-filter: blur(6px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(253, 250, 243, 0.08);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(199, 116, 72, 0.55) 0%, rgba(253, 250, 243, 0.15) 22%,
    rgba(253, 250, 243, 0) 45%, rgba(253, 250, 243, 0) 60%,
    rgba(253, 250, 243, 0.15) 80%, rgba(199, 116, 72, 0.55) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* Scroll-reveal text (character opacity ramp, applied via JS spans) */
.reveal-text span { opacity: 0.2; transition: opacity 0.05s linear; }
@media (prefers-reduced-motion: reduce) {
  .reveal-text span { opacity: 1 !important; }
}

/* Eyebrow / titles */
.eyebrow {
  font-family: var(--body); text-transform: uppercase; letter-spacing: 0.25em;
  font-size: 12px; color: var(--copper); margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }
.section-title {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0 0 20px;
  text-align: center;
}

/* Hero */
.hero {
  position: relative;
  height: 220vh; /* extra scroll room so the wall-build animation has space to play out */
}
.hero-inner {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; padding: 120px 6vw 60px; gap: 40px;
}
.hero-copy h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(38px, 5.5vw, 72px); line-height: 1.02; margin: 0 0 22px;
}
.hero-sub { max-width: 40ch; opacity: 0.85; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; font-family: var(--body); font-weight: 600; font-size: 15px;
  border-radius: 2px; border: 1px solid var(--copper); cursor: pointer;
}
.btn-copper { background: var(--copper); color: #0a0a0a; border-color: var(--copper); }
.btn-ghost { background: transparent; color: var(--plaster); border-color: var(--line); }
.btn-copper .btn-label, .btn-copper span { position: relative; z-index: 1; }

.hero-stage { position: relative; aspect-ratio: 1 / 1; }
.hero-stage::before {
  content: ''; position: absolute; inset: -10%; z-index: -1;
  background: radial-gradient(circle at 50% 55%, rgba(199,116,72,0.16), transparent 65%);
  filter: blur(10px);
}
#wall-canvas { width: 100%; height: 100%; display: block; }
.hero-stage-label {
  position: absolute; bottom: -28px; left: 0; right: 0; text-align: center;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.5;
}
@media (max-width: 860px) {
  .hero { height: auto; }
  .hero-inner { position: relative; grid-template-columns: 1fr; padding-top: 110px; }
  .hero-stage { aspect-ratio: 4 / 3; order: -1; }
}

/* Phases — sticky stack, each card scales down as the next one arrives */
.phases { padding: 100px 6vw 40px; border-top: 1px solid var(--line); }
.phase-stack { margin-top: 48px; }
.phase-sticky {
  position: sticky;
  top: calc(90px + var(--stack-i) * 22px);
  padding-bottom: 40px;
}
.phase-card {
  border-radius: 20px; padding: 40px 32px; min-height: 220px;
  transform-origin: top center;
  will-change: transform;
  transition: transform 0.2s ease-out;
}
.phase-num {
  display: block; font-family: var(--display); font-weight: 900; color: rgba(253,250,243,0.12);
  font-size: clamp(48px, 7vw, 88px); line-height: 1; margin-bottom: -10px;
}
.phase-mark {
  display: inline-block; font-family: var(--display); font-weight: 800; text-transform: uppercase;
  color: var(--copper); font-size: 13px; letter-spacing: 0.18em; margin-bottom: 14px;
}
.phase-card h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; margin: 0 0 10px; font-size: 22px; }
.phase-card p { opacity: 0.8; margin: 0; font-size: 15px; max-width: 46ch; }
@media (max-width: 720px) {
  .phase-sticky { top: 76px; padding-bottom: 24px; }
}

/* Grain overlay — makes pure black read as cinematic, not flat/empty */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .grain { opacity: 0.03; } }

/* Trust strip */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
  padding: 22px 6vw; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(253,250,243,0.65);
}
.trust-strip .dot { color: var(--copper); }

/* Services */
.services { padding: 100px 6vw; border-top: 1px solid var(--line); }
.services-list { max-width: 760px; margin: 48px auto 0; }
.service-item {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.service-item:first-child { border-top: 1px solid var(--line); }
.service-num {
  font-family: var(--display); font-weight: 900; color: var(--copper);
  font-size: 15px; letter-spacing: 0.05em; flex-shrink: 0; min-width: 28px; padding-top: 3px;
}
.service-item h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; margin: 0 0 6px; font-size: 17px; }
.service-item p { margin: 0; opacity: 0.75; font-size: 15px; max-width: 52ch; }

/* FAQ */
.faq { padding: 100px 6vw; border-top: 1px solid var(--line); }
.faq-list { max-width: 720px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 10px; }
.faq-list details {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px;
  background: rgba(253,250,243,0.02);
}
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 15px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--copper); font-size: 20px; font-weight: 400; transition: transform 0.2s ease; }
.faq-list details[open] .faq-icon { transform: rotate(45deg); }
.faq-list details p { margin: 14px 0 0; opacity: 0.75; font-size: 14px; line-height: 1.6; }

/* Reviews */
.reviews { padding: 100px 6vw; border-top: 1px solid var(--line); }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; max-width: 900px; margin-left: auto; margin-right: auto; }
.review-card { border-radius: 20px; padding: 32px 28px; margin: 0; }
.review-stars { color: var(--copper); font-size: 15px; letter-spacing: 2px; margin-bottom: 16px; }
.review-card blockquote { margin: 0 0 20px; font-size: 16px; line-height: 1.6; opacity: 0.9; font-style: normal; }
.review-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.review-name { font-weight: 600; font-size: 14px; }
.review-source { font-size: 12px; opacity: 0.55; letter-spacing: 0.04em; }
@media (max-width: 720px) { .reviews-grid { grid-template-columns: 1fr; } }
.work { padding: 100px 6vw; border-top: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.work-placeholder {
  aspect-ratio: 4/3; border: 1px dashed var(--line); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(253,250,243,0.4); font-size: 13px; letter-spacing: 0.05em;
}
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; } }

/* Local */
.local {
  padding: 100px 6vw; border-top: 1px solid var(--line);
  display: flex; justify-content: center;
}
.local-copy { max-width: 640px; text-align: center; }
.local-copy p:last-child { opacity: 0.8; }

/* Estimate */
.estimate {
  padding: 100px 6vw 140px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.estimate-copy p { opacity: 0.8; }
.estimate-form { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 20px; }
.estimate-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; }
.estimate-form input, .estimate-form select {
  background: rgba(253,250,243,0.04); border: 1px solid var(--line); color: var(--plaster);
  padding: 13px 14px; border-radius: 2px; font-family: var(--body); font-size: 15px;
}
.estimate-form input:focus, .estimate-form select:focus { border-color: var(--copper); }

.btn-submit { margin-top: 6px; }
.btn-fill {
  position: absolute; inset: 0; background: var(--copper-dim);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease;
  z-index: 0;
}
.btn-submit:hover .btn-fill,
.btn-submit:focus-visible .btn-fill { transform: scaleX(1); }

.form-status { min-height: 20px; font-size: 14px; margin: 0; }
.form-status.ok { color: #7fbf7f; }
.form-status.err { color: #e0837a; }

@media (max-width: 860px) { .estimate { grid-template-columns: 1fr; } }

/* Footer */
.site-footer {
  padding: 40px 6vw; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo { height: 44px; opacity: 0.9; }
.footer-meta { display: flex; gap: 16px; font-size: 13px; opacity: 0.7; }

/* Sticky call (mobile) */
.sticky-call {
  display: none;
}
@media (max-width: 720px) {
  .sticky-call {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--copper); color: #0a0a0a; justify-content: center;
    padding: 14px; font-weight: 700; letter-spacing: 0.04em; font-size: 14px;
  }
}
