/* ============================================
   HERNTRO ROOFING CO. LLC — style.css
   Colors: #1C1C1E (charcoal) · #C0392B (crimson)
   Fonts: Sora (headings) · Inter (body)
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────── */
:root {
  --primary: #C0392B;
  --primary-dark: #a93226;
  --charcoal: #1C1C1E;
  --charcoal-light: #2D2D30;
  --white: #ffffff;
  --gray-50: #F5F5F7;
  --gray-100: #EBEBED;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --border: #E5E7EB;
  --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.14);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ── Reset & Base ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Typography ────────────────────────────── */
.font-display { font-family: 'Sora', sans-serif; }
h1,h2,h3,h4 { font-family: 'Sora', sans-serif; line-height: 1.15; }

/* ── Layout Helpers ────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px; font-weight: 700; font-size: 16px;
  transition: all 0.2s ease; cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(192,57,43,0.35); }
.btn--outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.35); backdrop-filter: blur(8px); }
.btn--outline:hover { background: rgba(255,255,255,0.15); }
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: var(--charcoal-light); }
.btn--lg { padding: 18px 40px; font-size: 18px; }

/* ── Navbar ────────────────────────────────── */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(28,28,30,0.88); backdrop-filter: blur(12px);
  transition: all 0.3s ease; padding: 12px 0;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  padding: 8px 0;
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
}
.navbar__logo { height: 60px; width: auto; object-fit: contain; }
.navbar__links {
  display: flex; align-items: center; gap: 32px;
}
.navbar__links a {
  font-weight: 600; font-size: 15px; color: rgba(255,255,255,0.9);
  transition: color 0.2s;
}
.navbar__links a:hover { color: var(--primary); }
.navbar.scrolled .navbar__links a { color: var(--charcoal); }
.navbar.scrolled .navbar__links a:hover { color: var(--primary); }
.navbar__right { display: flex; align-items: center; gap: 16px; }
.navbar__phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--white);
}
.navbar.scrolled .navbar__phone { color: var(--charcoal); }
.navbar__phone svg { color: var(--primary); }
.hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--white); border-radius: 2px;
  transition: all 0.3s;
}
.navbar.scrolled .hamburger span { background: var(--charcoal); }

/* Mobile Menu */
.mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; width: 100%;
  background: var(--white); box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--border); padding: 16px;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-weight: 600; color: var(--charcoal); padding: 12px 16px;
  border-radius: 8px; transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--gray-50); color: var(--primary); }
.mobile-menu .btn { margin-top: 8px; width: 100%; }

/* ── Hero ──────────────────────────────────── */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding-top: 80px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/hero-kc.png');
  background-size: cover; background-position: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: rgba(28,28,30,0.78);
}
.hero__content {
  position: relative; z-index: 2; text-align: center;
  max-width: 860px; margin: 0 auto; padding: 0 24px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px; border-radius: 100px;
  color: var(--white); font-weight: 600; font-size: 14px;
  margin-bottom: 24px;
}
.hero__badge .star { color: #FBBF24; font-size: 18px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  color: var(--white); font-weight: 800; margin-bottom: 24px;
}
.hero p {
  font-size: clamp(18px, 2.5vw, 22px);
  color: rgba(255,255,255,0.85); max-width: 600px;
  margin: 0 auto 40px;
}
.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Trust Bar ─────────────────────────────── */
.trust-bar {
  background: var(--primary); color: var(--white);
  padding: 40px 0; border-bottom: 4px solid var(--charcoal);
}
.trust-bar__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.trust-item {
  text-align: center; padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.trust-item:last-child { border-right: none; }
.trust-item__number { font-family: 'Sora',sans-serif; font-size: 42px; font-weight: 800; }
.trust-item__label { font-size: 14px; opacity: 0.9; font-weight: 500; margin-top: 4px; }

/* ── Services ──────────────────────────────── */
.services { background: var(--gray-50); }
.section-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; }
.section-sub { font-size: 18px; color: var(--gray-600); max-width: 600px; margin: 0 auto; }

.service-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card__img { aspect-ratio: 16/9; overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-card__img img { transform: scale(1.05); }
.service-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card__icon {
  width: 40px; height: 40px; background: rgba(192,57,43,0.1);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.service-card__icon svg { color: var(--primary); }
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.service-card p { color: var(--gray-600); font-size: 14px; flex: 1; line-height: 1.7; margin-bottom: 16px; }
.service-card__link {
  color: var(--primary); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; gap: 6px; transition: gap 0.2s;
}
.service-card__link:hover { gap: 12px; }
.services__cta { text-align: center; margin-top: 48px; }

/* ── Why Choose Us ─────────────────────────── */
.why { background: var(--white); }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.why__img img { width: 100%; height: 100%; object-fit: cover; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.checklist-item {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
}
.checklist-item .check { color: var(--primary); font-size: 20px; flex-shrink: 0; }

/* ── Process ───────────────────────────────── */
.process { background: var(--gray-50); }
.process__steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; margin-top: 64px; }
.step {
  text-align: center; padding: 40px 24px;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  position: relative;
}
.step__number {
  width: 56px; height: 56px; background: var(--primary); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Sora',sans-serif; font-size: 22px; font-weight: 800;
  margin: 0 auto 20px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--gray-600); font-size: 14px; line-height: 1.7; }

/* ── Testimonials ──────────────────────────── */
.testimonials { background: var(--charcoal); color: var(--white); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-sub { color: var(--gray-400); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 56px; }
.testimonial-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 32px;
}
.testimonial-card__stars { color: #FBBF24; font-size: 20px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-card p { color: rgba(255,255,255,0.85); font-style: italic; line-height: 1.7; margin-bottom: 24px; }
.testimonial-card__author { font-weight: 700; color: var(--white); }
.testimonial-card__location { font-size: 13px; color: var(--gray-400); margin-top: 2px; }

/* ── CTA Banner ────────────────────────────── */
.cta-banner { background: var(--primary); color: var(--white); text-align: center; padding: 80px 0; }
.cta-banner h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.cta-banner p { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto 40px; }
.cta-banner__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────── */
.footer { background: var(--charcoal); color: var(--white); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__logo { height: 72px; width: auto; object-fit: contain; margin-bottom: 16px; }
.footer__desc { color: var(--gray-400); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer__contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--gray-400); font-size: 14px; margin-bottom: 10px;
}
.footer__contact-item a { color: var(--gray-400); transition: color 0.2s; }
.footer__contact-item a:hover { color: var(--white); }
.footer__contact-item svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.footer__col h4 { font-family: 'Sora',sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.footer__col ul li { margin-bottom: 8px; }
.footer__col ul li a { color: var(--gray-400); font-size: 14px; transition: color 0.2s; }
.footer__col ul li a:hover { color: var(--white); }
.footer__hours-item { color: var(--gray-400); font-size: 14px; margin-bottom: 6px; }
.footer__hours-item span { color: var(--white); font-weight: 600; }
.footer__emergency { color: var(--primary); font-weight: 700; font-size: 14px; margin-top: 8px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px; text-align: center;
  color: var(--gray-400); font-size: 13px;
}

/* ── Contact Page ──────────────────────────── */
.page-hero {
  background: var(--charcoal); color: var(--white);
  padding: 140px 0 80px; text-align: center;
}
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,0.8); }
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.contact-info h2 { font-size: 28px; font-weight: 800; margin-bottom: 32px; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px;
}
.contact-info-item__icon {
  width: 48px; height: 48px; background: rgba(192,57,43,0.1);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-item__icon svg { color: var(--primary); }
.contact-info-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: var(--gray-600); font-size: 15px; }

/* Contact Form */
.contact-form {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md);
}
.contact-form h2 { font-size: 26px; font-weight: 800; margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; font-size: 14px;
  margin-bottom: 6px; color: var(--charcoal);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  border: 1.5px solid var(--border); font-family: 'Inter', sans-serif;
  font-size: 15px; color: var(--charcoal);
  transition: border-color 0.2s; background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; padding: 16px; font-size: 16px; }
.form-success {
  display: none; background: #D1FAE5; border: 1px solid #6EE7B7;
  border-radius: 8px; padding: 16px; text-align: center;
  color: #065F46; font-weight: 600; margin-top: 16px;
}

/* ── Scroll Animations ─────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4, .trust-bar__grid, .process__steps { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .navbar__links, .navbar__phone { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .why__grid, .contact-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .trust-bar__grid { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 24px; }
  .trust-item:nth-child(even) { border-bottom: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner__btns, .hero__ctas { flex-direction: column; align-items: center; }
  .process__steps { grid-template-columns: 1fr; }
  .why__img { order: -1; }
}

/* ── Utility ───────────────────────────────── */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--gray-600); }
