
/* ==========================================================================
   ROOF4FREE.COM - ULTRA-MODERN AMERICAN RESTORATION & ROOFING MASTER CSS
   ========================================================================== */

:root {
  --navy-deep: #060D1A;
  --navy-primary: #0A192F;
  --navy-surface: #112240;
  --navy-card: #1E293B;
  
  --gold-accent: #F59E0B;
  --gold-glow: #FBBF24;
  --gold-deep: #D97706;
  
  --emerald-accent: #10B981;
  --emerald-glow: #34D399;
  
  --slate-text: #94A3B8;
  --slate-light: #E2E8F0;
  --slate-border: rgba(255, 255, 255, 0.12);
  
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: #070E1B;
  background-image: 
    radial-gradient(at 0% 0%, rgba(245, 158, 11, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
  color: #E2E8F0;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. PRELOADER & TOP DISPATCH BAR
   ========================================================================== */
#roof-loader {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at center, #0A192F 0%, #060D1A 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#roof-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-roof-icon {
  font-size: 54px;
  color: var(--gold-accent);
  margin-bottom: 18px;
  animation: pulseRoof 2s infinite ease-in-out;
  filter: drop-shadow(0 0 25px rgba(245, 158, 11, 0.8));
}
.loader-brand {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.loader-brand span { color: var(--gold-accent); }
.loader-bar {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 14px;
}
.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-accent), var(--gold-glow), var(--emerald-accent));
  animation: fillBar 1s forwards ease-in-out;
}
@keyframes pulseRoof { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes fillBar { 0% { width: 0%; } 100% { width: 100%; } }

.top-dispatch-bar {
  background: #040912;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 13px;
  padding: 10px 20px;
  color: #CBD5E1;
}
.top-dispatch-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.dispatch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-glow);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pulse-amber {
  width: 8px;
  height: 8px;
  background: var(--gold-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-accent);
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.top-dispatch-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
}
.top-dispatch-links a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s;
}
.top-dispatch-links a:hover { color: var(--gold-accent); }
.lang-btn {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

/* ==========================================================================
   2. NAVBAR
   ========================================================================== */
.site-header {
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo-icon {
  font-size: 28px;
  color: var(--gold-accent);
}
.brand-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}
.brand-title span { color: var(--gold-accent); }
.brand-sub {
  display: block;
  font-size: 11px;
  color: #94A3B8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-menu a {
  color: #E2E8F0;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--gold-accent); }

/* ==========================================================================
   3. BUTTONS (PIXEL-PERFECT ALIGNMENT & CONTRAST)
   ========================================================================== */
.btn-phone {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF !important;
  padding: 11px 22px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-phone:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--gold-accent);
  color: #FFFFFF !important;
}

.btn-claim, a.btn-claim {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #060D1A !important;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-claim:hover, a.btn-claim:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 35px rgba(245, 158, 11, 0.5);
  color: #060D1A !important;
}

.btn-submit-claim, button.btn-submit-claim {
  width: 100%;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #060D1A !important;
  padding: 15px 24px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 15px;
  font-family: inherit;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
  transition: all 0.25s ease;
  margin-top: 14px;
  margin-bottom: 12px;
}
.btn-submit-claim:hover, button.btn-submit-claim:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(245, 158, 11, 0.6);
  color: #060D1A !important;
}

/* ==========================================================================
   4. FORMS & INPUTS (ELEGANT DARK LUXURY STYLING)
   ========================================================================== */
.claim-card {
  background: rgba(17, 34, 64, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 28px;
  padding: 34px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  position: relative;
}
.claim-card-header {
  margin-bottom: 22px;
  text-align: center;
}
.claim-card-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 6px;
  line-height: 1.3;
}
.claim-card-header p {
  font-size: 13px;
  color: #94A3B8;
}

.claim-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.form-group label {
  font-size: 12px;
  font-weight: 800;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-control, input.form-control, select.form-control {
  width: 100%;
  background: #0A192F;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 13px 16px;
  color: #FFFFFF;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}
.form-control:focus, input.form-control:focus, select.form-control:focus {
  border-color: var(--gold-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
  background: #0D203D;
}
.form-control::placeholder {
  color: #64748B;
}
select.form-control option {
  background: #0A192F;
  color: #FFFFFF;
  padding: 10px;
}
.claim-guarantee {
  font-size: 12px;
  color: #94A3B8;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.4;
}

/* ==========================================================================
   5. HERO & BADGES
   ========================================================================== */
.hero-section {
  padding: 70px 20px 80px;
  position: relative;
  overflow: hidden;
}
.hero-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--gold-accent);
  color: var(--gold-glow);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.18;
  color: #FFFFFF;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-title span.gold, .hero-title span.gold-text {
  color: var(--gold-accent);
  background: linear-gradient(135deg, var(--gold-glow) 0%, var(--gold-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 17px;
  color: #94A3B8;
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.hero-badge-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
}
.hero-badge-card strong {
  display: block;
  color: var(--gold-accent);
  font-size: 18px;
  font-weight: 800;
}
.hero-badge-card span {
  font-size: 12px;
  color: #94A3B8;
}

/* ==========================================================================
   6. SECTIONS, GRIDS & PROCESS
   ========================================================================== */
.section {
  padding: 70px 20px;
}
.section-dark {
  background: rgba(6, 13, 26, 0.7);
}
.section-light {
  background: rgba(10, 25, 47, 0.5);
}
.section-slate {
  background: rgba(10, 25, 47, 0.3);
}
.container {
  max-width: 1320px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
}
.section-pill {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-glow);
  padding: 5px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 16px;
  color: #94A3B8;
  line-height: 1.7;
}

/* PROCESS GRID */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-card {
  background: rgba(17, 34, 64, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.25s ease;
}
.process-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-accent);
}
.process-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-accent), var(--gold-deep));
  color: #060D1A;
  font-weight: 900;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.process-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 10px;
}
.process-card p {
  font-size: 13.5px;
  color: #94A3B8;
  line-height: 1.6;
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: rgba(17, 34, 64, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-accent);
  box-shadow: 0 25px 50px rgba(245, 158, 11, 0.15);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.service-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.service-card p {
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.65;
  margin-bottom: 20px;
}
.service-link {
  color: var(--gold-accent);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.service-link:hover {
  gap: 10px;
  color: var(--gold-glow);
}

/* HUBS GRID */
.hubs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hub-link-card {
  background: rgba(17, 34, 64, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #E2E8F0;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
}
.hub-link-card:hover {
  border-color: var(--gold-accent);
  transform: translateX(4px);
  color: #FFFFFF;
  background: rgba(17, 34, 64, 0.9);
}

/* FAQ GRID */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.faq-item {
  background: rgba(17, 34, 64, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 26px;
}
.faq-item h4 {
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.4;
}
.faq-item p {
  color: #94A3B8;
  font-size: 14px;
  line-height: 1.6;
}

/* CITIES & STATES GRID */
.cities-grid, .states-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.city-card, .state-card {
  background: rgba(17, 34, 64, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px;
  text-decoration: none;
  color: #E2E8F0;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.city-card:hover, .state-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-accent);
  background: rgba(17, 34, 64, 0.9);
}
.city-card strong, .state-card strong {
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.city-card span, .state-card span {
  font-size: 12px;
  color: #94A3B8;
}

/* ==========================================================================
   7. TRUST BAR & BADGES
   ========================================================================== */
.trust-bar {
  background: #040912;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
}
.trust-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
  color: #CBD5E1;
}
.trust-item i {
  color: var(--gold-accent);
  margin-right: 8px;
  font-size: 16px;
}

/* ==========================================================================
   8. FOOTER & MOBILE STICKY BAR
   ========================================================================== */
.site-footer {
  background: #040912;
  border-top: 3px solid var(--gold-accent);
  padding: 70px 20px 30px;
  color: #94A3B8;
}
.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h5 {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-accent); }

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(16px);
  padding: 12px 16px;
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  z-index: 9999;
  justify-content: space-between;
  gap: 12px;
}
.mobile-sticky-btn {
  flex: 1;
  padding: 12px;
  border-radius: 24px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mobile-sticky-call {
  background: #1E293B;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.mobile-sticky-wa {
  background: linear-gradient(135deg, var(--gold-accent), var(--gold-deep));
  color: #060D1A !important;
}

@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hubs-grid { grid-template-columns: repeat(3, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .cities-grid, .states-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .process-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hubs-grid { grid-template-columns: repeat(2, 1fr); }
  .cities-grid, .states-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr; }
  .mobile-sticky-bar { display: flex; }
  body { padding-bottom: 70px; }
}
