/* ========================================
   RoofKAP — Premium Dark Theme
   Designed to project a $40M/year company
   ======================================== */

/* ── CSS Variables ─────────────────────── */
:root {
  /* Core palette */
  --bg-deepest:    #050816;
  --bg-dark:       #0a0e27;
  --bg-card:       #111633;
  --bg-card-hover: #161d42;
  --border-subtle: #1c2452;

  /* Accent */
  --gold:          #c8952e;
  --gold-light:    #e2b04a;
  --gold-dark:     #a67a1f;
  --blue:          #2563eb;
  --blue-light:    #60a5fa;

  /* Text */
  --white:         #ffffff;
  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;

  /* Typography */
  --font-display:  'Montserrat', sans-serif;
  --font-body:     'Inter', sans-serif;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Misc */
  --radius:    0.5rem;
  --radius-lg: 0.75rem;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --transition: all 0.3s ease;
}

/* ── Reset ─────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-deepest);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
ul  { list-style: none; }

/* ── Typography ────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: 0.08em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--text-secondary); margin-bottom: var(--sp-4); }
.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}
.section-heading {
  margin-bottom: var(--sp-4);
}
.section-subtext {
  max-width: 680px;
  margin: 0 auto var(--sp-12);
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ── Layout ────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.section {
  padding: var(--sp-20) 0;
}
.section-alt {
  background: var(--bg-dark);
}
.text-center { text-align: center; }

/* ── Top Bar ───────────────────────────── */
.top-bar {
  background: var(--bg-dark);
  padding: var(--sp-2) 0;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border-subtle);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.top-bar-left {
  color: var(--text-muted);
  font-weight: 500;
}
.top-bar-right {
  display: flex;
  gap: var(--sp-6);
  align-items: center;
}
.phone-link {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.phone-link:hover { color: var(--gold); }
.phone-icon {
  color: var(--gold);
  margin-right: var(--sp-1);
}

/* ── Header / Nav ──────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,8,22,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-bar {
  padding: var(--sp-3) 0;
}
.nav-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.logo-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.04em;
}
.nav-menu {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}
.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 1.25rem;
  padding: var(--sp-2);
  cursor: pointer;
  transition: var(--transition);
}
.mobile-menu-toggle:hover { border-color: var(--gold); }

/* ── Hero ──────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(37,99,235,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(200,149,46,0.06) 0%, transparent 40%),
              var(--bg-deepest);
}
.hero-background,
.hero-background-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-background {
  object-fit: cover;
  object-position: center bottom;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(5,8,22,0.4) 0%,
    rgba(5,8,22,0.15) 35%,
    rgba(5,8,22,0.05) 60%,
    rgba(5,8,22,0.35) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: var(--sp-8) var(--sp-6);
  max-width: 900px;
}
.hero-logo {
  width: 480px;
  height: 480px;
  border-radius: 50%;
  margin: 0 auto var(--sp-8);
  border: 3px solid rgba(200,149,46,0.4);
  box-shadow: 0 0 80px rgba(200,149,46,0.2), 0 0 160px rgba(37,99,235,0.12);
}
.hero-title {
  font-size: clamp(1.125rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-6);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  line-height: 1.1;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.95rem 2.25rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(200,149,46,0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,149,46,0.5);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
  color: var(--white);
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-blue:hover {
  background: #3b82f6;
  transform: translateY(-2px);
  color: var(--white);
}
.btn-sm {
  padding: 0.65rem 1.5rem;
  font-size: 0.8rem;
}
.btn-block { width: 100%; }

/* ── Trust Bar ─────────────────────────── */
.trust-bar {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--sp-8) 0;
}
.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}
.trust-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(200,149,46,0.1);
  border: 1px solid rgba(200,149,46,0.25);
  color: var(--gold);
  font-size: 1.25rem;
}
.trust-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.trust-sublabel {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Stats Row ─────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  text-align: center;
  padding: var(--sp-12) 0;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0;
}

/* ── Cards ─────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(200,149,46,0.12);
  background: var(--bg-card-hover);
}
.card-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(200,149,46,0.1);
  border: 1px solid rgba(200,149,46,0.2);
  margin-bottom: var(--sp-6);
}
.card-icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--sp-3);
}
.card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
}
.card p:last-child { margin-bottom: 0; }

/* ── Service Cards (services page) ─────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--sp-8);
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(200,149,46,0.12);
}
.service-card h2 {
  font-size: 1.4rem;
  margin-bottom: var(--sp-4);
}
.service-card ul {
  list-style: none;
  margin: var(--sp-4) 0 var(--sp-6);
}
.service-card li {
  color: var(--text-secondary);
  padding: var(--sp-2) 0;
  padding-left: var(--sp-6);
  position: relative;
  font-size: 0.95rem;
}
.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ── CTA Banner ────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-deepest) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
}
.cta-banner h2 { margin-bottom: var(--sp-4); }
.cta-banner p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto var(--sp-8);
}
.cta-actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Full-width CTA Section ────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(37,99,235,0.15) 0%, rgba(200,149,46,0.08) 100%),
              var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--sp-20) 0;
  text-align: center;
}
.cta-section h2 { margin-bottom: var(--sp-4); }
.cta-section p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto var(--sp-8);
  color: var(--text-secondary);
}

/* ── Highlight Strip (3-col CTA) ───────── */
.highlight-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--sp-8);
}
.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-8) var(--sp-6);
  background: var(--bg-card);
  text-align: center;
  transition: var(--transition);
  border-right: 1px solid var(--border-subtle);
}
.highlight-item:last-child { border-right: none; }
.highlight-item:hover { background: var(--bg-card-hover); }
.highlight-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.4rem;
}
.highlight-icon.gold  { background: rgba(200,149,46,0.12); color: var(--gold); }
.highlight-icon.blue  { background: rgba(37,99,235,0.12);  color: var(--blue-light); }
.highlight-icon.green { background: rgba(16,185,129,0.12); color: #34d399; }
.highlight-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.highlight-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Contact Form ──────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-8);
}
.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.contact-item:last-child { margin-bottom: 0; }
.contact-icon-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(200,149,46,0.1);
  border: 1px solid rgba(200,149,46,0.2);
  color: var(--gold);
  font-size: 1.1rem;
}
.contact-details h4 { margin-bottom: var(--sp-1); }
.contact-details p { margin: 0; font-size: 0.95rem; }
.contact-details a { color: var(--gold); }
.contact-details a:hover { color: var(--gold-light); }

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}
.form-group { margin-bottom: var(--sp-4); }
.form-label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-deepest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,149,46,0.12);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

/* ── Page Headers (inner pages) ────────── */
.page-header {
  position: relative;
  padding: var(--sp-20) 0 var(--sp-16);
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(37,99,235,0.1) 0%, transparent 60%),
              var(--bg-deepest);
  border-bottom: 1px solid var(--border-subtle);
}
.page-header h1 {
  margin-bottom: var(--sp-4);
}
.page-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Footer ────────────────────────────── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-16) 0 var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
}
.footer h3 {
  font-size: 1rem;
  margin-bottom: var(--sp-4);
  color: var(--white);
}
.footer p, .footer li {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer li { margin-bottom: var(--sp-2); }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--gold); }
.footer-brand p {
  max-width: 300px;
  line-height: 1.7;
}
.footer-bottom {
  text-align: center;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom p { margin: 0; color: var(--text-muted); }

/* ── Utility ───────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important;
}
