/* =====================================================
   D'Alembert Construction Miami — Roofing page styles
   Additive on top of styles.css. All selectors are
   .roof-* prefixed except .visually-hidden (utility).
   Reuses :root design tokens defined in styles.css.
   ===================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================
   ROOFING HERO
   ===================================================== */
.roof-hero {
  position: relative;
  min-height: clamp(520px, 78vh, 780px);
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border-gold);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.roof-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.roof-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.38) 30%,
    rgba(0, 0, 0, 0.16) 60%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.roof-hero-content {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 130px) clamp(20px, 5vw, 64px);
}

.roof-hero-content .section-eyebrow {
  color: var(--gold);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.roof-hero-title {
  margin-top: 22px;
  max-width: 720px;
  font-weight: 800;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  text-shadow: var(--shadow-headline);
}

.roof-hero-title-soft {
  display: block;
  font-weight: 400;
  color: var(--champagne);
}
.roof-hero-title-strong {
  display: block;
  font-weight: 800;
  color: #FFFFFF;
}

.roof-hero-lead {
  margin-top: 24px;
  max-width: 560px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  color: rgba(237, 231, 218, 0.9);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}

.roof-hero-cta {
  margin-top: 32px;
}

.roof-hero-meta {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237, 231, 218, 0.78);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* =====================================================
   ROOFING RULE (small gold accent line)
   ===================================================== */
.roof-rule {
  width: 46px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 28px;
}

/* =====================================================
   SERVICES SECTIONS (Residential + Commercial)
   ===================================================== */
.roof-services {
  padding: clamp(64px, 10vw, 140px) clamp(20px, 5vw, 64px);
}
.roof-services-residential { background: var(--bg); }
.roof-services-commercial {
  background: var(--bg-warm);
  border-top: 1px solid var(--border-gold);
}

.roof-services-inner {
  max-width: 920px;
  margin: 0 auto;
}

.roof-services-title {
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

.roof-services-lead {
  margin-top: 22px;
  max-width: 640px;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.7;
  color: var(--text-dimmer);
}

.roof-service-list {
  list-style: none;
  padding: 0;
  margin: clamp(36px, 5vw, 56px) 0 0;
  border-top: 1px solid var(--border-gold);
}

.roof-service-item {
  display: flex;
  align-items: baseline;
  gap: clamp(18px, 4vw, 40px);
  padding: clamp(18px, 2.5vw, 26px) 0;
  border-bottom: 1px solid var(--border-gold);
}

.roof-service-num {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--bronze);
}

.roof-service-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roof-service-name {
  font-size: clamp(17px, 2.1vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-bright);
}

.roof-service-detail {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(237, 231, 218, 0.55);
}

/* =====================================================
   OUR WORK (photo grid)
   ===================================================== */
.roof-work {
  background: var(--bg);
  padding: clamp(64px, 10vw, 140px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--border-gold);
}

.roof-work-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.roof-work-title {
  margin-top: 12px;
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

.roof-work-lead {
  margin-top: 12px;
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(237, 231, 218, 0.55);
}

.roof-work-grid {
  margin-top: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}

.roof-work-item {
  margin: 0;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(200, 169, 107, 0.2);
  border-radius: 3px;
  overflow: hidden;
  background: #16100d;
}

.roof-work-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.roof-work-item:hover img {
  transform: scale(1.03);
}

/* =====================================================
   WHY D'ALEMBERT (champagne background)
   ===================================================== */
.roof-why {
  background: var(--champagne);
  color: var(--ink);
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px);
}

.roof-why-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(28px, 5vw, 56px);
}

.roof-why-card {
  border-top: 1px solid var(--champagne-rule);
  padding-top: 26px;
}

.roof-why-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.roof-why-heading {
  margin-top: 14px;
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.roof-why-text {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-dim);
}

/* =====================================================
   INSPECTION FORM SECTION
   ===================================================== */
.roof-inspection {
  scroll-margin-top: var(--header-h);
  background: var(--bg-warm);
  padding: clamp(64px, 10vw, 140px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--border-gold);
}

.roof-inspection-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

@media (min-width: 900px) {
  .roof-inspection-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.roof-inspection-info {
  padding-top: 4px;
}

.roof-inspection-title {
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

.roof-inspection-lead {
  margin-top: 22px;
  max-width: 460px;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.7;
  color: var(--text-dimmer);
}

.roof-inspection-info .contact-block {
  margin-top: 32px;
}

/* Native <select> styling matched to the field-input aesthetic */
.roof-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 55%,
    calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.roof-select:focus {
  outline: none;
  border-color: var(--gold) !important;
}
.roof-select option {
  background: var(--bg-warm);
  color: var(--text-light);
}
