/* ═══════════════════════════════════════════════
   RoofingPro — Site Stylesheet
   Dark slate + copper/terracotta from app theme
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Playfair+Display:wght@700;800&display=swap');

:root {
  --bg:           #0B0D0F;
  --bg-light:     #151A1E;
  --bg-card:      #1A2028;
  --copper:       #C67B5C;
  --copper-light: #D99B7E;
  --copper-dark:  #A66349;
  --text:         #F0F2F5;
  --text-sec:     rgba(240,242,245,0.7);
  --text-muted:   rgba(240,242,245,0.45);
  --border:       rgba(198,123,92,0.15);
  --border-active:rgba(198,123,92,0.35);
  --orange:       #F58320;
  --navy:         #1E2D4A;
  --success:      #4CAF50;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── Grain overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

a { color: var(--copper); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--copper-light); }

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

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(11,13,15,0.82);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-sec);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--copper); }

/* ─── Page wrappers ─── */
.page-body {
  padding-top: 64px;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(198,123,92,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 100%, rgba(30,45,74,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 720px;
  padding: 0 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: 99px;
  padding: 6px 18px 6px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--copper);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
}
.hero-badge span {
  background: var(--copper);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero h1 em {
  font-style: normal;
  color: var(--copper);
}
.hero p {
  font-size: 18px;
  color: var(--text-sec);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.45s ease both;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--copper), var(--copper-dark));
  color: var(--bg);
  box-shadow: 0 4px 24px rgba(198,123,92,0.3);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(198,123,92,0.45);
  color: var(--bg);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-active);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--copper);
  color: var(--copper);
}
.btn svg {
  width: 20px;
  height: 20px;
}

/* ─── Features grid ─── */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
}
.features-title {
  text-align: center;
  margin-bottom: 64px;
}
.features-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.features-title p {
  color: var(--text-sec);
  font-size: 16px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  background: rgba(198,123,92,0.12);
  border: 1px solid var(--border);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-sec);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ─── CTA section ─── */
.cta-section {
  text-align: center;
  padding: 80px 24px 120px;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(198,123,92,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  position: relative;
}
.cta-section p {
  color: var(--text-sec);
  margin-bottom: 32px;
  font-size: 16px;
  position: relative;
}

/* ─── Legal pages ─── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}
.legal h1 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.legal .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--copper);
}
.legal h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.legal p,
.legal li {
  color: var(--text-sec);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal ul, .legal ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ─── Support page ─── */
.support-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  transition: border-color 0.3s;
}
.support-card:hover { border-color: var(--border-active); }
.support-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.support-card p {
  color: var(--text-sec);
  font-size: 15px;
  line-height: 1.7;
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-brand img {
  width: 28px; height: 28px;
  border-radius: 6px;
  opacity: 0.6;
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}
.footer-links a:hover { color: var(--copper); }

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .hero h1 { letter-spacing: -1px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .legal h1 { font-size: 30px; }
}
