/* ===== Star Roofs — mobile-first landing page ===== */
/* System fonts only — zero font download weight */

:root {
  /* Color system — Star Roofs teal brand (#00c4be primary) */
  --green-900: #008f8a;
  --green-800: #00b0aa;
  --green-700: #00c4be;
  --green-600: #00d8d1;
  --green-100: #d6f7f5;
  --gold-500: #e8b339;
  --gold-400: #f0c259;
  --gold-100: #fbf3df;
  --neutral-900: #1a1a1a;
  --neutral-700: #4a4a4a;
  --neutral-500: #767676;
  --neutral-300: #d4d4d0;
  --neutral-100: #f5f4f0;
  --neutral-50: #fafaf7;
  --white: #ffffff;
  --error: #c0392b;
  --success: #00b5ad;

  /* Spacing — 8px base */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  --transition: 0.25s ease;
}

/* ===== Base ===== */
body {
  font-size: 1rem;
  background: var(--neutral-50);
  color: var(--neutral-900);
}

h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 4.5vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--neutral-300);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--green-800);
}
.brand-mark { flex-shrink: 0; }
.brand-text { font-weight: 700; font-size: 1.15rem; }
.header-phone { display: none; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-weight: 700;
  color: var(--green-800);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  border: 1.5px solid var(--green-800);
  min-height: 44px;
  transition: background var(--transition), color var(--transition);
}
.phone-link:hover { background: var(--green-800); color: var(--white); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, var(--green-800) 0%, var(--green-900) 100%);
  color: var(--white);
  padding: var(--space-6) 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400), var(--gold-500));
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.hero-content { flex: 1 1 auto; }
.hero-form-panel {
  flex: 0 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-form-header {
  background: var(--green-700);
  padding: var(--space-4) var(--space-5);
  text-align: center;
}
.hero-form-header h2 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: var(--space-1);
}
.hero-form-header p {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  margin: 0;
}
.hero-form-body {
  background: var(--neutral-50);
}
.hero-form-body iframe { display: block; width: 100%; min-height: 480px; }
.hero-form-reassure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-size: 0.82rem;
  color: var(--neutral-500);
  background: var(--white);
  border-top: 1px solid var(--neutral-300);
}
.hero-form-reassure svg { color: var(--green-700); flex-shrink: 0; }
.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-400);
  margin-bottom: var(--space-3);
}
.hero h1 { margin-bottom: var(--space-4); }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  max-width: 580px;
  margin-bottom: var(--space-5);
}

.trust-badges {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(232,179,57,0.3);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.badge svg { color: var(--gold-400); flex-shrink: 0; }

.cta-scroll {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gold-500);
  color: var(--green-900);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius);
  min-height: 52px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: var(--shadow-md);
}
.cta-scroll:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.cta-scroll svg { transition: transform var(--transition); }
.cta-scroll:hover svg { transform: translateY(2px); }

/* ===== Quote Form Section (below-fold fallback / anchor target) ===== */
.hero-form-panel { scroll-margin-top: 60px; }

/* ===== Why Upgrade ===== */
.why-section {
  padding: var(--space-7) 0;
  background: var(--neutral-100);
}
.why-section h2 {
  text-align: center;
  color: var(--green-800);
  margin-bottom: var(--space-6);
}
.why-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-300);
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.why-card h3 { color: var(--green-800); margin-bottom: var(--space-2); }
.why-card p { color: var(--neutral-700); margin: 0; }

/* ===== Trust / About ===== */
.trust-section {
  padding: var(--space-7) 0;
  background: var(--white);
}
.trust-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.trust-text h2 { color: var(--green-800); margin-bottom: var(--space-4); }
.trust-text > p { color: var(--neutral-700); font-size: 1.05rem; }
.trust-list {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-weight: 700;
  color: var(--neutral-900);
}
.trust-list svg { color: var(--green-600); flex-shrink: 0; margin-top: 2px; }

.trust-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.trust-image img { width: 100%; height: auto; }

/* ===== Coverage ===== */
.coverage-section {
  padding: var(--space-6) 0;
  background: var(--green-100);
  text-align: center;
}
.coverage-section h2 { color: var(--green-800); margin-bottom: var(--space-2); }
.coverage-section > .container > p { color: var(--neutral-700); margin-bottom: var(--space-5); }
.coverage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}
.coverage-list li {
  background: var(--white);
  color: var(--green-800);
  font-weight: 700;
  font-size: 0.9rem;
  padding: var(--space-2) var(--space-4);
  border-radius: 100px;
  border: 1px solid var(--green-600);
}

/* ===== Gallery ===== */
.gallery-section {
  padding: var(--space-7) 0;
  background: var(--neutral-100);
}
.gallery-section h2 {
  text-align: center;
  color: var(--green-800);
  margin-bottom: var(--space-5);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.gallery-grid img:hover { transform: scale(1.02); }

/* ===== Final CTA ===== */
.final-cta {
  padding: var(--space-7) 0;
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  color: var(--white);
  text-align: center;
}
.final-cta h2 { margin-bottom: var(--space-3); }
.final-cta p { color: rgba(255,255,255,0.88); max-width: 480px; margin: 0 auto var(--space-5); }
.cta-button {
  display: inline-block;
  background: var(--gold-500);
  color: var(--green-900);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius);
  min-height: 52px;
  line-height: 1.4;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: var(--shadow-md);
}
.cta-button:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ===== Footer ===== */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.8);
  padding: var(--space-6) 0 var(--space-4);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: var(--space-3); }
.footer-brand strong { color: var(--white); font-size: 1.1rem; }
.footer-brand p { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.footer-contact p {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: 0.95rem;
}
.footer-contact svg { color: var(--gold-400); flex-shrink: 0; }
.footer-contact a { color: var(--white); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-bottom { padding-top: var(--space-4); }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.5); text-align: center; }

/* ===== Responsive — Tablet ===== */
@media (min-width: 600px) {
  .trust-badges { flex-direction: row; flex-wrap: wrap; }
  .badge { flex: 1 1 260px; }
  .why-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-contact { text-align: left; }
}

/* ===== Responsive — Desktop ===== */
@media (min-width: 768px) {
  .header-phone { display: block; }
  .hero { padding: var(--space-7) 0; }
  .hero-inner { flex-direction: row; align-items: flex-start; gap: var(--space-7); }
  .hero-content { flex: 1 1 50%; }
  .hero h1 { max-width: 100%; }
  .hero-form-panel { flex: 0 0 420px; }
  .quote-section { padding: var(--space-7) 0; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-section { padding: var(--space-8) 0; }
  .trust-section { padding: var(--space-8) 0; }
  .trust-inner { flex-direction: row; align-items: center; }
  .trust-text { flex: 1 1 55%; }
  .trust-image { flex: 1 1 40%; }
  .gallery-section { padding: var(--space-8) 0; }
  .final-cta { padding: var(--space-8) 0; }
  .coverage-section { padding: var(--space-7) 0; }
}

@media (min-width: 900px) {
  .hero-sub { font-size: 1.15rem; }
}

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