/* Apex Roofing LA — Sample Business Site ($997) Styles */
/* Built by CMMM Studios | cmmmstudios.com */

@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --roof-primary: #1B4332;
  --roof-primary-dark: #143528;
  --roof-primary-light: #E8F5E9;
  --roof-accent: #D4421E;
  --roof-accent-dark: #B33A1A;
  --roof-accent-light: #FDE8E4;
  --roof-warm: #8B5E34;
  --roof-text: #1A1A1A;
  --roof-text-secondary: #4A5568;
  --roof-text-muted: #718096;
  --roof-bg: #FFFFFF;
  --roof-bg-alt: #F5F7F3;
  --roof-border: #E2E8F0;
  --font: 'Inter Tight', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--roof-text);
  line-height: 1.6;
  background: var(--roof-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv01';
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* Demo Banner */
.demo-banner {
  background: linear-gradient(135deg, #1A1A1A 0%, #2D3748 100%);
  color: #fff;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.demo-banner a {
  background: #E8850C;
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: background 0.2s;
}
.demo-banner a:hover { background: #D97706; }

/* Storm Banner */
.storm-bar {
  background: var(--roof-accent);
  color: #fff;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.storm-bar a { color: #fff; text-decoration: underline; }

/* Nav */
.r-nav {
  background: #fff;
  border-bottom: 1px solid var(--roof-border);
  padding: 0.75rem 0;
  position: sticky;
  top: 44px;
  z-index: 100;
}
.r-container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.r-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.r-nav__logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--roof-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}
.r-nav__links { display: flex; gap: 1.75rem; align-items: center; }
.r-nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--roof-text-secondary);
  transition: color 0.2s;
}
.r-nav__links a:hover { color: var(--roof-primary); }
.r-nav__links a.active {
  color: var(--roof-primary);
  font-weight: 600;
}
.r-nav__cta {
  background: var(--roof-accent);
  color: #fff !important;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.85rem;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.r-nav__cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212,66,30,0.3); color: #fff !important; }

/* Hero — homepage (image-backed) */
.r-hero {
  position: relative;
  color: #fff;
  padding: 6rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
}
.r-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.r-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.r-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,53,40,0.88) 0%, rgba(27,67,50,0.78) 50%, rgba(10,25,18,0.72) 100%);
  z-index: -1;
}
.r-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
}
.r-hero__title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  max-width: 680px;
}
.r-hero__title span { color: var(--roof-accent); }
.r-hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.r-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.r-hero__meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.r-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.r-hero__meta-num {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.r-hero__meta-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.r-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  min-height: 44px;
  letter-spacing: -0.005em;
}
.r-btn:hover { transform: translateY(-1px); }
.r-btn--accent { background: var(--roof-accent); color: #fff; }
.r-btn--accent:hover { box-shadow: 0 6px 20px rgba(212,66,30,0.45); background: var(--roof-accent-dark); }
.r-btn--outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.r-btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.r-btn--dark { background: var(--roof-primary); color: #fff; }
.r-btn--dark:hover { background: var(--roof-primary-dark); box-shadow: 0 6px 20px rgba(27,67,50,0.3); }

/* Page hero (subpages) */
.r-page-hero {
  position: relative;
  color: #fff;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
  isolation: isolate;
}
.r-page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.r-page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.r-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,53,40,0.92) 0%, rgba(27,67,50,0.82) 100%);
  z-index: -1;
}
.r-page-hero__crumbs {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.r-page-hero__crumbs a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.r-page-hero__crumbs span { color: rgba(255,255,255,0.5); }
.r-page-hero__title {
  font-size: clamp(1.85rem, 4.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}
.r-page-hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.9);
  max-width: 620px;
  line-height: 1.65;
}

/* Certifications strip */
.r-certs {
  background: var(--roof-bg-alt);
  border-bottom: 1px solid var(--roof-border);
  padding: 1.75rem 0;
}
.r-certs__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.r-cert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--roof-text-secondary);
}
.r-cert__icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--roof-primary-light);
  border-radius: 6px;
  color: var(--roof-primary);
}

/* Section */
.r-section { padding: 5rem 0; }
.r-section--alt { background: var(--roof-bg-alt); }
.r-section__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--roof-primary);
  margin-bottom: 0.85rem;
}
.r-section__title {
  font-size: clamp(1.85rem, 3.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.r-section__subtitle {
  font-size: 1.05rem;
  color: var(--roof-text-secondary);
  max-width: 640px;
  line-height: 1.7;
}
.r-section--center { text-align: center; }
.r-section--center .r-section__subtitle { margin: 0 auto; }

/* Service preview (home) — icon cards */
.r-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.r-service-card {
  background: #fff;
  border: 1px solid var(--roof-border);
  border-radius: 14px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.r-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.07);
  border-color: rgba(27,67,50,0.2);
}
.r-service-card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--roof-primary-light);
  border-radius: 10px;
  color: var(--roof-primary);
  margin-bottom: 1.25rem;
}
.r-service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.r-service-card__text {
  font-size: 0.9rem;
  color: var(--roof-text-secondary);
  line-height: 1.65;
}
.r-service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--roof-primary);
  transition: gap 0.2s;
}
.r-service-card__link:hover { gap: 0.55rem; }

/* Services page — image cards with bullets */
.r-service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}
.r-service-detail {
  background: #fff;
  border: 1px solid var(--roof-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.r-service-detail:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.r-service-detail__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--roof-bg-alt);
}
.r-service-detail__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.r-service-detail:hover .r-service-detail__img img { transform: scale(1.04); }
.r-service-detail__body { padding: 1.75rem 1.75rem 2rem; display: flex; flex-direction: column; flex: 1; }
.r-service-detail__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.015em;
}
.r-service-detail__text {
  font-size: 0.95rem;
  color: var(--roof-text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.r-service-detail__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.r-service-detail__bullets li {
  font-size: 0.88rem;
  color: var(--roof-text);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}
.r-service-detail__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--roof-primary-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B4332' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.7rem;
}

/* View all link */
.r-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--roof-primary);
  transition: gap 0.2s;
}
.r-view-all:hover { gap: 0.6rem; }

/* Process */
.r-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.r-process-step {
  text-align: center;
  position: relative;
}
.r-process-step__num {
  width: 2.85rem;
  height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--roof-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 6px 14px rgba(27,67,50,0.25);
}
.r-process-step__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.r-process-step__text {
  font-size: 0.88rem;
  color: var(--roof-text-secondary);
  line-height: 1.55;
}

/* Reviews */
.r-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.r-review {
  background: #fff;
  border: 1px solid var(--roof-border);
  border-radius: 14px;
  padding: 1.85rem;
}
.r-review__stars { color: #F59E0B; font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.r-review__text {
  font-size: 0.95rem;
  color: var(--roof-text);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.r-review__author { font-size: 0.88rem; font-weight: 700; }
.r-review__source { font-size: 0.78rem; color: var(--roof-text-muted); margin-top: 0.1rem; }

/* Financing callout */
.r-financing {
  background: var(--roof-primary-light);
  border: 1px solid rgba(27,67,50,0.15);
  border-radius: 14px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}
.r-financing__icon {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--roof-primary);
  color: #fff;
  border-radius: 12px;
}
.r-financing__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.r-financing__text {
  font-size: 0.92rem;
  color: var(--roof-text-secondary);
  line-height: 1.65;
}

/* Storm damage CTA block (home page) */
.r-storm-block {
  background: linear-gradient(135deg, var(--roof-accent) 0%, var(--roof-accent-dark) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 3rem;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.r-storm-block__title {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.r-storm-block__text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  max-width: 540px;
}

/* CTA */
.r-cta {
  background: linear-gradient(135deg, var(--roof-primary) 0%, var(--roof-primary-dark) 100%);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}
.r-cta__title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}
.r-cta__text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.r-cta__phone {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.5rem;
  letter-spacing: -0.01em;
}
.r-cta__phone a { color: #fff; }

/* Footer */
.r-footer {
  background: #0D1117;
  color: #A0AEC0;
  padding: 3.5rem 0 1.5rem;
}
.r-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.r-footer__brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.r-footer__text { font-size: 0.88rem; line-height: 1.65; }
.r-footer__heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 1rem;
}
.r-footer__links { display: flex; flex-direction: column; gap: 0.55rem; }
.r-footer__links a,
.r-footer__links span {
  font-size: 0.88rem;
  color: #A0AEC0;
  transition: color 0.2s;
}
.r-footer__links a:hover { color: #fff; }
.r-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  gap: 1rem;
}
.r-footer__credit a { color: #fff; text-decoration: underline; font-weight: 600; }

/* About — Company Story */
.r-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}
.r-about-grid__image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.25);
}
.r-about-grid__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.r-about-grid__text p {
  font-size: 1rem;
  color: var(--roof-text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.r-about-grid__text p:last-child { margin-bottom: 0; }

/* About stats */
.r-about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.r-stat {
  background: #fff;
  border: 1px solid var(--roof-border);
  border-radius: 14px;
  padding: 1.75rem;
  text-align: center;
}
.r-stat__number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--roof-primary);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
}
.r-stat__label {
  font-size: 0.88rem;
  color: var(--roof-text-secondary);
  font-weight: 500;
}

/* Team/Owner block */
.r-team-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-top: 3rem;
}
.r-team-card {
  background: #fff;
  border: 1px solid var(--roof-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.r-team-card__img {
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.r-team-card__img img { width: 100%; height: 100%; object-fit: cover; }
.r-team-card__body { padding: 1.75rem; }
.r-team-card__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--roof-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.r-team-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.r-team-card__text {
  font-size: 0.92rem;
  color: var(--roof-text-secondary);
  line-height: 1.65;
}

/* Certification detail cards */
.r-cert-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.r-cert-card {
  background: #fff;
  border: 1px solid var(--roof-border);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
}
.r-cert-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--roof-primary-light);
  border-radius: 12px;
  color: var(--roof-primary);
  margin-bottom: 1.25rem;
}
.r-cert-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.r-cert-card__text {
  font-size: 0.9rem;
  color: var(--roof-text-secondary);
  line-height: 1.6;
}

/* Service area tags */
.r-area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
  justify-content: center;
}
.r-area-tag {
  background: var(--roof-primary-light);
  color: var(--roof-primary);
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(27,67,50,0.15);
}

/* Gallery */
.r-gallery-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.r-gallery-filter__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--roof-text-muted);
  padding: 0.5rem 0.25rem;
  align-self: center;
}
.r-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}
.r-gallery-card {
  background: #fff;
  border: 1px solid var(--roof-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.r-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}
.r-gallery-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--roof-bg-alt);
}
.r-gallery-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.r-gallery-card:hover .r-gallery-card__img img { transform: scale(1.05); }
.r-gallery-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.r-gallery-card__tag {
  display: inline-block;
  background: var(--roof-primary-light);
  color: var(--roof-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}
.r-gallery-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.r-gallery-card__text {
  font-size: 0.88rem;
  color: var(--roof-text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.r-gallery-card__meta {
  font-size: 0.78rem;
  color: var(--roof-text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

/* Contact form */
.r-contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}
.r-form-card {
  background: #fff;
  border: 1px solid var(--roof-border);
  border-radius: 16px;
  padding: 2.25rem;
}
.r-form-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
}
.r-form-card__text {
  font-size: 0.92rem;
  color: var(--roof-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.r-form { display: flex; flex-direction: column; gap: 1.15rem; }
.r-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}
.r-form__group { display: flex; flex-direction: column; gap: 0.4rem; }
.r-form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--roof-text);
}
.r-form__input,
.r-form__select,
.r-form__textarea {
  padding: 0.8rem 1rem;
  border: 1px solid var(--roof-border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--roof-text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  min-height: 44px;
}
.r-form__input:focus,
.r-form__select:focus,
.r-form__textarea:focus {
  outline: none;
  border-color: var(--roof-primary);
  box-shadow: 0 0 0 3px rgba(27,67,50,0.1);
}
.r-form__textarea { min-height: 130px; resize: vertical; }
.r-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  background: var(--roof-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  align-self: flex-start;
  min-height: 48px;
}
.r-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212,66,30,0.45);
  background: var(--roof-accent-dark);
}

/* Contact sidebar */
.r-contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.r-contact-card {
  background: var(--roof-bg-alt);
  border: 1px solid var(--roof-border);
  border-radius: 14px;
  padding: 1.75rem;
}
.r-contact-card--dark {
  background: var(--roof-primary);
  color: #fff;
  border-color: var(--roof-primary-dark);
}
.r-contact-card--dark .r-contact-card__title { color: #fff; }
.r-contact-card--dark .r-contact-item { color: rgba(255,255,255,0.85); }
.r-contact-card--dark .r-contact-item a { color: #fff; }
.r-contact-card--dark .r-contact-item svg { color: #fff; }
.r-contact-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}
.r-contact-card__title svg { color: var(--roof-primary); }
.r-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--roof-text-secondary);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.r-contact-item:last-child { margin-bottom: 0; }
.r-contact-item svg {
  flex-shrink: 0;
  color: var(--roof-primary);
  margin-top: 0.15rem;
}
.r-contact-item a {
  color: var(--roof-primary);
  font-weight: 600;
}
.r-contact-item strong { color: var(--roof-text); font-weight: 700; }

/* What to expect steps */
.r-expect {
  background: var(--roof-bg-alt);
  padding: 5rem 0;
}
.r-expect-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.r-expect-step { text-align: center; }
.r-expect-step__num {
  width: 2.85rem;
  height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--roof-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 6px 14px rgba(27,67,50,0.25);
}
.r-expect-step__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.r-expect-step__text {
  font-size: 0.9rem;
  color: var(--roof-text-secondary);
  line-height: 1.55;
}

/* Service-area list (contact page) */
.r-area-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 1.5rem;
  margin-top: 0.75rem;
}
.r-area-list li {
  list-style: none;
  font-size: 0.88rem;
  color: var(--roof-text-secondary);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.8;
}
.r-area-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--roof-primary);
  border-radius: 50%;
}

/* Mobile hamburger */
.r-nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--roof-text);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
  .r-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .r-about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .r-nav__links { display: none; }
  .r-nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--roof-border);
    padding: 1rem 1.25rem;
    gap: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .r-nav__toggle { display: inline-flex; }
  .r-nav__inner { position: relative; }
  .r-services { grid-template-columns: 1fr; }
  .r-service-detail-grid { grid-template-columns: 1fr; }
  .r-process { grid-template-columns: repeat(2, 1fr); }
  .r-reviews { grid-template-columns: 1fr; }
  .r-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .r-hero { padding: 3.5rem 0 3rem; }
  .r-hero__meta { gap: 1.25rem; }
  .r-financing { flex-direction: column; text-align: center; }
  .r-about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .r-about-grid__image { aspect-ratio: 4 / 3; max-height: 360px; }
  .r-team-grid { grid-template-columns: 1fr; }
  .r-cert-cards { grid-template-columns: 1fr; }
  .r-gallery-grid { grid-template-columns: 1fr; }
  .r-contact-grid { grid-template-columns: 1fr; }
  .r-form__row { grid-template-columns: 1fr; }
  .r-expect-steps { grid-template-columns: 1fr; }
  .r-page-hero { padding: 3rem 0 2.5rem; }
  .r-footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .r-section { padding: 3.5rem 0; }
  .r-storm-block { grid-template-columns: 1fr; padding: 2rem; text-align: center; }
  .r-area-list { grid-template-columns: repeat(2, 1fr); }
  .r-form-card { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
