/* Summit Roofing — dark, elegant, architectural-materials-focused theme */

:root {
  --ink: #0f0f10;
  --panel: #17171a;
  --gold: #b08d57;
  --paper: #faf8f5;
  --line-dark: rgba(255,255,255,0.14);
  --line-light: #e4ddd2;
  --muted-dark: rgba(255,255,255,0.62);
  --muted-light: #6b655c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

h1, h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }

.hairline { width: 60px; height: 1px; background: var(--gold); margin: 1.1rem 0; transition: width 0.9s ease 0.1s; }
.hairline-center { margin-left: auto; margin-right: auto; }
.reveal .hairline { width: 0; }
.reveal.is-visible .hairline { width: 60px; }

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

.btn-ghost {
  display: inline-block; padding: 0.95rem 2.25rem; border: 1px solid var(--gold); color: inherit;
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; transition: background 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover { background: var(--gold); color: #0f0f10; }

/* ---------- header ---------- */
.site-header { background: var(--ink); color: #fff; padding: 1.25rem 0; position: sticky; top: 0; z-index: 40; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.75rem; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; letter-spacing: 0.02em; }
.brand-sub { display: block; font-family: 'Inter', sans-serif; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-top: 0.2rem; }
.primary-nav { display: flex; align-items: center; gap: 2.25rem; }
.primary-nav a { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark); }
.primary-nav a:hover { color: #fff; }
.nav-phone { color: #fff !important; font-weight: 500; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0; }
.nav-toggle-bar { width: 26px; height: 1.5px; background: #fff; }

body.is-editable .site-header { top: 44px; }
body.is-editable .material-row { position: relative; padding-right: 6rem; }
body.is-editable .obt-service-toggle { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }

/* ---------- hero ---------- */
.hero { position: relative; height: 78vh; min-height: 460px; color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: obtSlowZoom 22s ease-in-out infinite alternate; }
@keyframes obtSlowZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,15,16,0.92) 5%, rgba(15,15,16,0.35) 55%, rgba(15,15,16,0.55) 100%); }
.hero-content { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 1.75rem 4rem; width: 100%; }
.hero-content h1 { font-size: 3.1rem; max-width: 640px; }
.hero-sub { color: var(--muted-dark); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 1.25rem 0 1.75rem; }

/* ---------- intro ---------- */
.intro { padding: 5rem 0; }
.intro-inner { max-width: 720px; margin: 0 auto; padding: 0 1.75rem; text-align: center; font-size: 1.15rem; color: var(--muted-light); }

/* ---------- materials (services) ---------- */
.materials { padding: 4rem 0 5rem; }
.section-heading { text-align: center; margin-bottom: 3rem; }
.section-heading h2 { font-size: 2.2rem; }
.materials-list { max-width: 900px; margin: 0 auto; padding: 0 1.75rem; list-style: none; }
.material-row {
  display: grid; grid-template-columns: 100px 1fr 1.4fr; gap: 1.5rem; align-items: baseline;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line-light);
}
.material-mark { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--gold); }
.material-name { font-size: 1.15rem; font-weight: 500; }
.material-desc { color: var(--muted-light); font-size: 0.98rem; }
.material-row { border-left: 2px solid transparent; transition: border-color 0.3s ease, padding-left 0.3s ease; }
.material-row:hover { border-left-color: var(--gold); padding-left: 0.75rem; }

/* ---------- showcase ---------- */
.showcase { padding: 1rem 1.75rem 5rem; }
.showcase-item { max-width: 900px; margin: 0 auto 2.5rem; overflow: hidden; }
.showcase-item:last-child { margin-bottom: 0; }
.showcase-item img { width: 100%; display: block; filter: grayscale(0.65) brightness(0.96); transition: filter 0.6s ease, transform 0.6s ease; }
.showcase-item:hover img { filter: grayscale(0) brightness(1); transform: scale(1.03); }
.showcase-item figcaption { padding: 0.75rem 0; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-light); text-align: center; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible { animation: obtReveal 0.7s ease forwards; animation-delay: var(--reveal-delay, 0s); }
@keyframes obtReveal { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .hairline { width: 60px !important; transition: none; }
}

/* ---------- consultation ---------- */
.consultation { background: var(--ink); color: #fff; padding: 5rem 0; }
.consultation-sub { color: var(--muted-dark); max-width: 520px; margin: 0.75rem auto 0; text-align: center; }
.consultation-form { max-width: 640px; margin: 3rem auto 0; padding: 0 1.75rem; }
.form-row { margin-bottom: 1.5rem; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
label { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; color: var(--muted-dark); }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; padding: 0.75rem 0; border: none; border-bottom: 1px solid rgba(255,255,255,0.3);
  background: transparent; color: #fff; font-size: 1rem; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--gold); }
select option { color: #000; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.5rem; }
.checkbox-item { text-transform: none; letter-spacing: normal; font-size: 0.92rem; color: #fff; display: flex; align-items: center; gap: 0.5rem; font-weight: 400; }
.btn-submit { margin-top: 1rem; width: 100%; background: transparent; cursor: pointer; }

/* ---------- location ---------- */
.location { padding: 5rem 0 0; }
.map-frame { max-width: 1000px; margin: 2rem auto 0; padding: 0 1.75rem; }
.map-frame iframe { width: 100%; border-radius: 4px; filter: grayscale(0.3); }

/* ---------- footer ---------- */
.site-footer { padding: 3rem 0 2rem; text-align: center; }
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; }
.footer-line { color: var(--muted-light); font-size: 0.9rem; margin: 0.5rem 0; }
.footer-copy { color: var(--muted-light); font-size: 0.8rem; }

/* ---------- responsive ---------- */
.nav-close { display: none; }
.nav-backdrop { display: none; }
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .primary-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px; background: var(--ink); flex-direction: column; align-items: flex-start; padding: 5rem 2rem 2rem; transition: right 0.25s ease; z-index: 70; }
  .primary-nav.open { right: 0; }
  body.is-editable .primary-nav { top: 44px; height: calc(100vh - 44px); }
  .material-row { grid-template-columns: 50px 1fr; }
  .material-desc { grid-column: 1 / -1; }
  .form-row-split, .checkbox-grid { grid-template-columns: 1fr; }

  .nav-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 1.25rem; right: 1.25rem;
    width: 2.25rem; height: 2.25rem; border-radius: 50%;
    background: transparent; border: 1px solid var(--gold); color: var(--gold);
    font-size: 1.5rem; line-height: 1; cursor: pointer;
  }
  .nav-close:hover { background: var(--gold); color: var(--ink); }

  .nav-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 65; opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
  }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
}
@media (max-width: 600px) {
  .hero-content h1 { font-size: 2.2rem; }
}
