/* ============================================================
   KINGSWAY PLUMBING & DRAINAGE — styles.css
   ============================================================ */

/* --- Variables --- */
:root {
  --navy:      #ffffff;
  --navy-dark: #f8f9fa;
  --navy-card: #f1f3f5;
  --red:       #e74c3c;
  --text:      #1a1a1a;
  --muted:     #6b7280;
  --border:    rgba(0, 0, 0, 0.1);
  --radius:    6px;
  --max-width: 1100px;
  --charcoal:  #111827;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section--alt { background: var(--navy-dark); }

/* --- Typography --- */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 700; }
.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.muted { color: var(--muted); }
.page-header {
  background: var(--red);
  color: #fff;
  padding: 48px 0 40px;
  border-bottom: 3px solid rgba(0,0,0,0.15);
}
.page-header .label { color: rgba(255,255,255,0.8); }
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-header .label { margin-bottom: 8px; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: opacity 0.15s;
  cursor: pointer;
}
.btn:hover { opacity: 0.88; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 4px 20px rgba(231,76,60,0.45); }
.btn--outline { border: 2px solid var(--red); color: var(--red); }

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  color: #1a1a1a;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1rem;
  white-space: nowrap;
  color: #1a1a1a;
}
.nav-hamburger { display: none; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav__links a { color: #444; }
.nav__links a:hover { color: var(--red); opacity: 1; }
.nav__links a.active { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.nav__phone {
  background: var(--red);
  color: #fff;
  padding: 9px 18px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 0.875rem;
  white-space: nowrap;
}
.nav__phone:hover { opacity: 0.88; }

/* --- Hero (full-bleed photo) --- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background: url('images/van-street.jpeg') center 40% / cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.80) 38%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0.08) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 80px 32px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.hero__content .label { color: var(--red); margin-bottom: 12px; }
.hero__content h1     { color: #fff; margin-bottom: 16px; max-width: 560px; }
.hero__content > p    { color: rgba(255,255,255,0.82); font-size: 1.1rem; margin-bottom: 32px; max-width: 480px; }

/* --- Service Strip --- */
.service-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--charcoal);
}
.service-strip__item {
  background: var(--charcoal);
  padding: 24px 20px;
  border-left: none;
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.service-strip__item:last-child { border-right: none; }
.service-strip__item .icon { font-size: 1.6rem; }
.service-strip__item h3 { font-size: 0.95rem; color: #fff; }
.service-strip__item p  { font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* --- Why Us --- */
.why-us { text-align: left; }
.why-us h2 { margin-bottom: 16px; }
.why-us p  { max-width: 640px; margin-bottom: 32px; color: var(--muted); font-size: 1.05rem; }

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
  background: var(--red);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: #c0392b; padding: 28px 24px; text-align: center; color: #fff; }
.stat:nth-child(2) { background: var(--red); }
.stat__num   { font-size: 2.4rem; font-weight: 900; line-height: 1; margin-bottom: 6px; }
.stat__label { font-size: 0.78rem; font-weight: 700; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.08em; }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--red);
  color: #fff;
  padding: 56px 24px;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 8px; }
.cta-banner .phone {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  display: block;
  margin: 12px 0 8px;
}
.cta-banner .email { color: rgba(255,255,255,0.8); font-size: 1rem; }

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.service-card {
  background: #fff;
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p  { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

.service-card--cta {
  background: var(--red);
  border-top-color: #c0392b;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.service-card--cta h3 { color: #fff; margin-bottom: 10px; }
.service-card--cta p  { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.service-card--cta a  { color: #fff; font-weight: 800; font-size: 0.9rem; margin-top: 16px; text-decoration: underline; text-underline-offset: 3px; }

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 40px;
}
.gallery-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}
.gallery-grid--home {
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 260px 200px;
}
.gallery-grid--home .gallery-grid__item { aspect-ratio: unset; }
.ghp-1 { grid-column: span 5; }
.ghp-2 { grid-column: span 4; }
.ghp-3, .ghp-4, .ghp-5, .ghp-6, .ghp-7 { grid-column: span 3; }

.gallery-grid__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-card);
}
.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-grid__item:hover img { transform: scale(1.04); }

/* --- About --- */
.about-van {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 40px;
}
.about-content { max-width: 720px; }
.about-content p { color: var(--muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 20px; }
.about-callout {
  display: inline-block;
  background: var(--navy-card);
  border-left: 4px solid var(--red);
  padding: 16px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 700;
  margin-top: 8px;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 24px; }
.contact-info__item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-info__item .icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.contact-info__item a:hover { color: var(--red); }
.contact-form { background: var(--navy-card); border-radius: var(--radius); padding: 32px; }
.contact-form h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.form-group input,
.form-group textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-group textarea { height: 120px; resize: vertical; }

/* --- Footer --- */
.footer {
  background: var(--charcoal);
  color: #fff;
  border-top: none;
  padding: 40px 24px;
  text-align: center;
}
.footer__name { font-size: 1.1rem; font-weight: 900; margin-bottom: 6px; }
.footer__tagline { color: rgba(255,255,255,0.8); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer__links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; font-size: 0.9rem; }
.footer__links a:hover { opacity: 0.75; }
.footer__area { color: rgba(255,255,255,0.85); font-size: 0.85rem; margin-bottom: 8px; }
.footer__copy { color: rgba(255,255,255,0.6); font-size: 0.8rem; }
.footer__email { color: rgba(255,255,255,0.7); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero { min-height: 60vh; }
  .hero__content { padding: 64px 24px; }
  .service-strip { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid--home {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: unset;
  }
  .gallery-grid--home .gallery-grid__item { aspect-ratio: 4/3; }
  .ghp-1,.ghp-2,.ghp-3,.ghp-4,.ghp-5,.ghp-6,.ghp-7 { grid-column: span 1; }
}

@media (max-width: 640px) {
  /* Nav layout — wrap so links drop below brand row */
  .nav__inner { flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 0; }
  .nav__brand { flex: 1; font-size: 0.9rem; }

  /* Hamburger button — right side of brand row */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
  }
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
  }

  /* Links — hidden by default, full width, drops below brand row */
  .nav__links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    gap: 0;
    margin-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.08);
  }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 13px 4px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    color: #1a1a1a;
  }
  .nav__phone { display: none; order: 4; width: 100%; }

  /* Open state */
  .nav--open .nav__links { display: flex; }
  .nav--open .nav__phone {
    display: block;
    background: transparent;
    color: var(--red);
    text-align: center;
    padding: 13px 4px;
    font-size: 1.05rem;
    font-weight: 800;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 4px;
  }

  .hero { min-height: 100svh; }
  .hero__content { padding: 48px 24px; }
  .service-strip { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid--4col { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 40px 0; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
