/* De Ponte Construction — shared styles */
:root {
  --ink: #1a1a1a;
  --paper: #ffffff;
  --gold: #b08d57;
  --gray: #6b6b6b;
  --line: #e5e5e5;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Slim nav (no logo in the bar — logo lives in the footer) ---- */
.site-nav {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 50;
}

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px 24px;
}

.site-nav a {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--ink);
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--gold);
}

/* ---- Mobile nav toggle (hamburger) ---- */
.nav-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--ink);
  font-family: var(--sans);
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-bars span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav.open .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-nav.open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-nav.open .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 780px) {
  .nav-toggle { display: flex; }

  .site-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0 0 8px;
  }

  .site-nav.open ul { display: flex; }

  .site-nav ul li { width: 100%; }

  .site-nav ul a {
    display: block;
    padding: 14px 24px;
    border-top: 1px solid var(--line);
  }
}

/* ---- Hero (interior pages) ---- */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 100px 24px;
  position: relative;
  background-size: cover;
  background-position: center;
}

/* dark film over the banner photo so headline text stays readable —
   this is what the client meant by "the film" on the call.
   --reveal is driven by scroll-reveal.js: 0 = at rest (film + text
   visible), 1 = scrolled through the reveal distance (film gone, photo
   bright and clear, headline faded out).

   The hero is wrapped in .hero-sticky-wrap (extra height set by JS) and
   is itself position:sticky — so it PINS in place at the top of the
   viewport while the visitor scrolls "over" it, and the fade tracks
   that scroll directly, instead of the banner just scrolling away. */
.hero-sticky-wrap {
  position: relative;
}

.page-hero.has-banner {
  --reveal: 0;
  position: sticky;
  top: 62px; /* sits just below the sticky .site-nav instead of hiding behind it */
}

.page-hero.has-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.62);
  opacity: calc(1 - var(--reveal));
}

.page-hero.has-banner > * {
  position: relative;
  z-index: 1;
  opacity: calc(1 - var(--reveal));
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 20px;
}

.page-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: #d8d8d8;
  font-size: 18px;
}

/* ---- Sections ---- */
section { padding: 80px 24px; }
section.tight { padding: 48px 24px; }

.section-heading {
  font-family: var(--serif);
  font-size: 32px;
  margin-bottom: 16px;
}

.lede { color: var(--gray); font-size: 18px; max-width: 700px; }

/* ---- Landing splash (homepage only) ---- */
.landing {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.landing .wordmark {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: 0.02em;
}

.landing .wordmark small {
  display: block;
  font-family: var(--sans);
  font-size: 0.28em;
  letter-spacing: 0.35em;
  color: var(--gray);
  margin-top: 8px;
}

.landing .tagline {
  margin-top: 28px;
  max-width: 560px;
  font-size: 18px;
  color: var(--gray);
}

.landing .enter-btn {
  margin-top: 44px;
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 14px 40px;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.landing .enter-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---- Then / Now block (About page) ---- */
.then-now {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 700px;
  margin: 48px auto 0;
}

.then-now figure {
  transform: rotate(-2deg);
  border: 8px solid var(--paper);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.then-now figure:nth-child(2) { transform: rotate(2deg); }

.then-now figcaption {
  text-align: center;
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gray);
}

.placeholder-photo {
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(45deg, #eee, #eee 10px, #e2e2e2 10px, #e2e2e2 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

/* ---- Services page ---- */
.service-block {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:first-child { padding-top: 0; }
.service-block:last-child { border-bottom: none; }

.service-block .kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.service-block h2 {
  font-family: var(--serif);
  font-size: 28px;
  margin-bottom: 14px;
}

.service-block p.desc {
  color: var(--gray);
  font-size: 17px;
  max-width: 640px;
  margin-bottom: 20px;
}

.service-block ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  margin-bottom: 24px;
  max-width: 700px;
}

.service-block li {
  padding-left: 22px;
  position: relative;
  color: var(--ink);
  font-size: 15px;
}

.service-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.service-cta {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
}
.service-cta:hover { color: var(--gold); }

@media (max-width: 640px) {
  .service-block ul { grid-template-columns: 1fr; }
}

/* ---- Process steps ---- */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin-top: 40px;
}

.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.process-step .num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--gold);
}

.process-step h3 { margin-bottom: 8px; font-size: 20px; }
.process-step p { color: var(--gray); }

.editor-note {
  background: #fff8e6;
  border: 1px dashed #d9b23c;
  padding: 16px 20px;
  font-size: 14px;
  color: #6b5b1f;
  margin: 24px 0;
}

/* ---- Gallery grid ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

/* ---- Gallery carousel ---- */
.carousel {
  position: relative;
  height: 380px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
  pointer-events: none;
}

.carousel-item.is-center {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  cursor: zoom-in;
}

.carousel-item.is-prev {
  transform: translate(calc(-50% - 230px), -50%) scale(0.75);
  opacity: 0.5;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}

.carousel-item.is-next {
  transform: translate(calc(-50% + 230px), -50%) scale(0.75);
  opacity: 0.5;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.carousel-arrow:hover { background: var(--ink); color: var(--paper); }
.carousel-arrow-prev { left: 4px; }
.carousel-arrow-next { right: 4px; }

.carousel-counter {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

@media (max-width: 720px) {
  .carousel { height: 280px; }
  .carousel-item { width: 200px; height: 200px; }
  .carousel-item.is-prev { transform: translate(calc(-50% - 130px), -50%) scale(0.68); }
  .carousel-item.is-next { transform: translate(calc(-50% + 130px), -50%) scale(0.68); }
  .carousel-arrow { width: 36px; height: 36px; font-size: 15px; }
}

/* ---- Testimonials ---- */
.testimonial-card {
  border: 1px solid var(--line);
  padding: 32px;
  margin-bottom: 24px;
  border-radius: 4px;
}

.testimonial-card p { color: var(--ink); margin-bottom: 12px; }
.testimonial-card .who { font-weight: 700; color: var(--gray); font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.contact-grid form { display: flex; flex-direction: column; gap: 16px; }
.contact-grid input, .contact-grid textarea {
  border: 1px solid var(--line);
  padding: 14px;
  font-family: var(--sans);
  font-size: 15px;
}
.contact-grid button {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  cursor: pointer;
}

.contact-info h4 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  font-size: 13px;
  margin-top: 24px;
  margin-bottom: 4px;
}
.contact-info h4:first-child { margin-top: 0; }

@media (max-width: 720px) {
  .then-now, .contact-grid { grid-template-columns: 1fr; }
}

/* ---- Footer (logo lives here, per client request) ---- */
.site-footer {
  background: var(--ink);
  color: #cfcfcf;
  text-align: center;
  padding: 64px 24px 40px;
}

.site-footer .footer-wordmark {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--paper);
  letter-spacing: 0.02em;
}

.site-footer .footer-wordmark small {
  display: block;
  font-family: var(--sans);
  font-size: 0.34em;
  letter-spacing: 0.3em;
  color: #9a9a9a;
  margin-top: 6px;
}

.site-footer .footer-links {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer .footer-links a:hover { color: var(--gold); }

.site-footer .footer-meta {
  margin-top: 32px;
  font-size: 13px;
  color: #8a8a8a;
}

/* ---- Homepage dark-mode comparison toggle (client asked to see both, not a commitment) ---- */
body.dark-preview {
  background: #1e1e1e;
}
body.dark-preview .landing {
  background: #1e1e1e;
  color: #ffffff;
}
body.dark-preview .landing .tagline {
  color: #d8d8d8;
}
body.dark-preview .landing .enter-btn {
  border-color: #ffffff;
  color: #ffffff;
}
body.dark-preview .landing .enter-btn:hover {
  background: #ffffff;
  color: #1e1e1e;
}
