/* 24 HR Window Repair - Matches original design */

:root {
  --brown: #996633;
  --brown-dark: #7a5229;
  --brown-banner: #a67c52;
  --dark: #1a1a1a;
  --darker: #111111;
  --gray: #4a4a4a;
  --muted: #6b6b6b;
  --light: #f7f7f7;
  --white: #ffffff;
  --border: #e8e8e8;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1140px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--dark);
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--dark);
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 4px;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--brown);
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.5rem;
  color: var(--brown) !important;
  font-weight: 600 !important;
  white-space: nowrap;
}

.nav-phone svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dark);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 120px 0 70px;
  background: var(--dark) url("images/background-window-repair-scaled.jpg") center/cover no-repeat;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(20,20,20,0.88) 0%, rgba(20,20,20,0.72) 45%, rgba(20,20,20,0.45) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.5vw, 2.85rem);
  margin-bottom: 0.6rem;
  font-weight: 800;
}

.hero-content .phone {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1.5rem;
}

.hero-content .phone a { color: inherit; }

.hero-list { margin: 0 0 0.5rem; }

.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.45;
}

.hero-list li .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  font-size: 0.7rem;
  color: #fff;
}

.hero-form-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  color: var(--gray);
}

.hero-form-card h3 {
  text-align: center;
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
  color: var(--dark);
}

.hero-form-card .form-underline {
  width: 40px;
  height: 2px;
  background: var(--brown);
  margin: 0 auto 1.25rem;
}

.deftform { min-height: 280px; }
.deftform iframe {
  width: 100% !important;
  border: none;
  background: transparent;
}

/* ========== ABOUT ========== */
.about {
  background: var(--white);
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.4rem;
}

.about-content h4 {
  color: var(--dark);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  font-weight: 600;
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-link {
  display: inline-flex;
  flex-direction: column;
  margin-top: 0.75rem;
  color: var(--brown);
  font-weight: 600;
  font-size: 0.95rem;
}

.about-link span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brown);
}

.about-image {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.about-image img {
  width: 100%;
  object-fit: cover;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: var(--brown-banner);
  padding: 2.5rem 0;
}

.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 0.35rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-size: 0.95rem;
}

.cta-banner .btn {
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 0.9rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background 0.2s;
  display: inline-block;
}

.cta-banner .btn:hover {
  background: #000;
  color: var(--white);
}

/* ========== SERVICES ========== */
.services {
  background: var(--white);
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.section-header .underline {
  width: 40px;
  height: 2px;
  background: var(--brown);
  margin: 0.6rem auto 0.85rem;
}

.section-header p {
  color: var(--muted);
  font-size: 0.95rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.service-card .check-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 0.85rem;
  color: var(--brown);
  font-size: 1.1rem;
  font-weight: 700;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
  color: var(--dark);
}

.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.55;
}

/* ========== REVIEWS ========== */
.reviews {
  background: var(--dark);
  padding: 5rem 0;
  color: var(--white);
}

.reviews .section-header h2 {
  color: var(--white);
}

.reviews .section-header p {
  color: rgba(255,255,255,0.65);
}

.reviews .section-header .underline {
  background: var(--brown);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.review-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.35rem 1.25rem;
  color: var(--gray);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.review-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e5e5e5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1.3rem;
}

.review-card .review-body p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-style: italic;
  line-height: 1.5;
}

.review-card .review-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
}

.review-card .stars {
  color: #f5a623;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--darker);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand .logo-top {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  font-weight: 600;
}

.footer-brand .logo-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.footer-col p {
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
}

.footer-col a {
  color: rgba(255,255,255,0.6);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.15rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero .container,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 110px 0 50px;
  }

  .hero-form-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-banner .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 0.75rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border);
  }

  .nav.open { display: flex; }

  .nav a {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }

  .nav-phone { margin-left: 0; margin-top: 0.25rem; }

  .mobile-toggle { display: block; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about, .services, .reviews {
    padding: 3.5rem 0;
  }
}
