/* ============================================
   FLOWMASTER PLUMBING & HEATING
   Design system — deep navy + ice-white + amber
   ============================================ */

:root {
  /* Palette — 3 tones */
  --navy:       #0b1a2e;
  --navy-light: #132a47;
  --ice:        #f4f7fa;
  --ice-warm:   #e8edf2;
  --amber:      #f59e0b;
  --amber-glow: #d97706;
  --white:      #ffffff;

  /* Semantic tokens */
  --bg:         var(--ice);
  --surface:    var(--white);
  --ink:        var(--navy);
  --ink-muted:  #4a5568;
  --accent:     var(--amber);
  --accent-hover: var(--amber-glow);
  --border:     #d1d9e6;

  /* Spacing scale */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   48px;
  --space-2xl:  96px;

  /* Type */
  --display:    'Bebas Neue', sans-serif;
  --body:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radii */
  --radius:     12px;
  --radius-sm:  6px;
}

/* ============================================
   RESET + BASE
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ============================================
   HERO — full viewport, business name as statement
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11,26,46,0.85) 0%, rgba(11,26,46,0.4) 50%, rgba(11,26,46,0.85) 100%),
    url('https://lh3.googleusercontent.com/place-photos/AJRVUZMxBLgK6IYeb_-kmmCttEpV9mEZEnW8RxCJPUqmW_lVqchR4PDTwoBNSchbeOrPRb2cAyD_re6iG_w9YiZnKIYHH4e1U7JektDMNAgZV1tm3_2te_e4rs2Hfbqif6Z4Ej0ruPOgPq3w6HRPnkpkZJoBMA=s4800-w1600') center center / cover no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(245,158,11,0.08) 0%, transparent 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-lg);
  max-width: 900px;
  animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(3.5rem, 12vw, 10rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0 0 var(--space-md) 0;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero-tagline {
  font-family: var(--body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(244,247,250,0.85);
  max-width: 580px;
  margin: 0 auto var(--space-xl) auto;
  line-height: 1.5;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(244,247,250,0.4);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(244,247,250,0.08);
  transform: translateY(-2px);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 16px 40px;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 10px 20px;
}

.pulse-hover {
  position: relative;
}
.pulse-hover:hover {
  animation: pulseGlow 1s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(245,158,11,0); }
}

/* ============================================
   SECTION COMMON
   ============================================ */

.section-label {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 var(--space-xl) 0;
  max-width: 700px;
}

/* ============================================
   REVIEWS STRIP — horizontal scroll, social proof
   ============================================ */

.reviews-strip {
  background: var(--navy);
  padding: var(--space-xl) 0;
  overflow: hidden;
}

.strip-inner {
  display: flex;
  gap: var(--space-lg);
  padding: 0 var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.strip-inner::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: rgba(244,247,250,0.06);
  border: 1px solid rgba(244,247,250,0.1);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: background 0.2s ease;
}
.review-card:hover {
  background: rgba(244,247,250,0.1);
}

.review-stars {
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.review-card blockquote {
  margin: 0 0 var(--space-sm) 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(244,247,250,0.9);
  quotes: none;
}

.review-card cite {
  font-style: normal;
  font-size: 0.8rem;
  color: rgba(244,247,250,0.6);
  font-weight: 500;
}

/* ============================================
   SERVICES
   ============================================ */

.services {
  padding: var(--space-2xl) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11,26,46,0.08);
}

.service-icon {
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.service-card h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-sm) 0;
  color: var(--ink);
  text-transform: uppercase;
}

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

/* ============================================
   GALLERY
   ============================================ */

.gallery {
  padding: var(--space-2xl) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.gallery-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(11,26,46,0.12);
}

.gallery-img:first-child {
  grid-column: 1 / -1;
  height: 400px;
}

/* ============================================
   INFO / HOURS
   ============================================ */

.info {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--navy);
  color: var(--ice);
}

.info-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.info-card h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-md) 0;
  color: var(--white);
  text-transform: uppercase;
}

.info-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(244,247,250,0.8);
  margin: 0 0 var(--space-sm) 0;
}

.info-note {
  font-size: 0.85rem !important;
  color: rgba(244,247,250,0.5) !important;
  margin-top: var(--space-sm) !important;
}

.info-phone {
  font-size: 1.4rem !important;
  font-weight: 700;
}
.info-phone a {
  color: var(--accent);
}
.info-phone a:hover {
  color: var(--accent-hover);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.hours-table td {
  padding: 4px 0;
  border-bottom: 1px solid rgba(244,247,250,0.08);
}
.hours-table td:first-child {
  font-weight: 600;
  color: rgba(244,247,250,0.7);
  width: 50%;
}
.hours-table td:last-child {
  text-align: right;
  color: var(--accent);
  font-weight: 500;
}
.hours-table tr:last-child td {
  border-bottom: none;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact {
  padding: var(--space-2xl) var(--space-lg);
  max-width: 720px;
  margin: 0 auto;
}

.contact-sub {
  font-size: 1rem;
  color: var(--ink-muted);
  margin: calc(-1 * var(--space-lg)) 0 var(--space-xl) 0;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-status {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--navy);
  padding: var(--space-lg) var(--space-lg);
  border-top: 1px solid rgba(244,247,250,0.08);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-brand strong {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}
.footer-brand span {
  font-size: 0.8rem;
  color: rgba(244,247,250,0.5);
}

.attribution {
  font-size: 0.75rem;
  margin: 0;
}
.attribution a {
  color: rgba(244,247,250,0.4);
  transition: color 0.2s ease;
}
.attribution a:hover {
  color: rgba(244,247,250,0.7);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }
  .hero-tagline {
    font-size: 0.95rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 320px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-img:first-child {
    height: 240px;
  }
  .gallery-img {
    height: 200px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .review-card {
    flex: 0 0 280px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-content {
    animation: none;
  }
  .service-card:hover {
    transform: none;
  }
  .gallery-img:hover {
    transform: none;
  }
}
