/* ============================================
   COOL FLOW HVAC TORONTO — Brand Stylesheet
   Palette: #0B1D28 (navy), #F7F5F0 (warm white), #E8751A (burnt orange)
   Type: Barlow Condensed (display), Inter (body)
   ============================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1e1e1e;
  background: #F7F5F0;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid #E8751A;
  outline-offset: 3px;
}

/* ---- SPACING SCALE ---- */
:root {
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 96px;
}

/* ---- SECTION SHARED ---- */
.section {
  padding: var(--space-2xl) var(--space-lg);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0B1D28;
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.1;
}

.section-desc {
  font-size: 1.05rem;
  color: #555;
  max-width: 600px;
  margin: 0 0 var(--space-xl) 0;
  line-height: 1.5;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: #0B1D28;
  color: #F7F5F0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(232, 117, 26, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(232, 117, 26, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E8751A;
  margin: 0 0 var(--space-lg) 0;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #F7F5F0;
  margin: 0 0 var(--space-md) 0;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.35s forwards;
}

.hero-tagline {
  font-family: "Inter", sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: rgba(247, 245, 240, 0.8);
  margin: 0 0 var(--space-lg) 0;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.cta-hero {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #F7F5F0;
  background: #E8751A;
  padding: 0.9em 2.2em;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.65s forwards;
}

.cta-hero:hover {
  background: #d46612;
  transform: translateY(-2px);
}

.cta-hero:active {
  transform: translateY(0);
}

.hero-sub {
  font-size: 0.85rem;
  color: rgba(247, 245, 240, 0.55);
  margin: var(--space-lg) 0 0 0;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

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

/* ============================================
   REVIEWS
   ============================================ */
.reviews {
  background: #F7F5F0;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

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

.review-card {
  background: #fff;
  border-left: 4px solid #E8751A;
  padding: var(--space-lg) var(--space-xl);
  margin: 0;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 12px rgba(11, 29, 40, 0.06);
}

.stars {
  color: #E8751A;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.review-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin: 0 0 var(--space-sm) 0;
  font-style: italic;
}

.review-author {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0B1D28;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: #fff;
}

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

.service-card {
  padding: var(--space-lg);
  border: 1px solid #e5e0d8;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  border-color: #E8751A;
  box-shadow: 0 4px 20px rgba(232, 117, 26, 0.08);
}

.service-icon {
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.service-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: #0B1D28;
  margin: 0 0 var(--space-xs) 0;
  line-height: 1.2;
}

.service-desc {
  font-size: 0.92rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  background: #F7F5F0;
}

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

.gallery-fig {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-fig img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-fig:hover img {
  transform: scale(1.03);
}

/* ============================================
   HOURS
   ============================================ */
.hours {
  background: #0B1D28;
  color: #F7F5F0;
}

.hours .section-label {
  color: #F7F5F0;
}

.hours-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.hours-247 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #E8751A;
  margin: 0 0 var(--space-lg) 0;
  line-height: 1.1;
}

.hours-table {
  width: 100%;
  max-width: 400px;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.hours-table tr {
  border-bottom: 1px solid rgba(247, 245, 240, 0.1);
}

.hours-table td {
  padding: 0.5em 0;
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 500;
  color: rgba(247, 245, 240, 0.85);
}

.hours-address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(247, 245, 240, 0.7);
  margin-bottom: var(--space-lg);
}

.cta-secondary {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #E8751A;
  border: 2px solid #E8751A;
  padding: 0.6em 1.6em;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-secondary:hover {
  background: #E8751A;
  color: #F7F5F0;
}

.hours-cta-card {
  background: rgba(247, 245, 240, 0.06);
  border: 1px solid rgba(247, 245, 240, 0.12);
  border-radius: 8px;
  padding: var(--space-xl);
  text-align: center;
}

.hours-cta-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #F7F5F0;
  margin: 0 0 var(--space-sm) 0;
}

.hours-cta-card p {
  font-size: 0.95rem;
  color: rgba(247, 245, 240, 0.7);
  margin: 0 0 var(--space-lg) 0;
  line-height: 1.5;
}

.hours-cta-card .cta-hero {
  animation: none;
  opacity: 1;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact {
  background: #fff;
}

.contact-form {
  max-width: 600px;
}

.form-row {
  margin-bottom: var(--space-md);
}

.form-row label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0B1D28;
  margin-bottom: var(--space-xs);
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border: 1px solid #d5d0c8;
  border-radius: 4px;
  background: #F7F5F0;
  color: #1e1e1e;
  transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #E8751A;
  box-shadow: 0 0 0 3px rgba(232, 117, 26, 0.15);
}

.contact-form .cta-hero {
  animation: none;
  opacity: 1;
  font-size: 1.1rem;
}

.form-status {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: #0B1D28;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #0B1D28;
  color: rgba(247, 245, 240, 0.6);
  padding: var(--space-xl) var(--space-lg);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.footer-info strong {
  color: #F7F5F0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.attribution {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.6;
}

.attribution a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.attribution a:hover {
  color: #E8751A;
}

/* ============================================
   RESPONSIVE — TABLET (≥640px)
   ============================================ */
@media (min-width: 640px) {
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }

  .review-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 600px;
    justify-self: center;
  }

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

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

  .hours-split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ============================================
   RESPONSIVE — DESKTOP (≥960px)
   ============================================ */
@media (min-width: 960px) {
  .review-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .review-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    justify-self: auto;
  }

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

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

  .gallery-fig:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-fig:first-child img {
    height: 100%;
    min-height: 400px;
  }

  .gallery-fig img {
    height: 220px;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .hero-badge,
  .hero-title,
  .hero-tagline,
  .cta-hero,
  .hero-sub {
    opacity: 1;
    animation: none;
  }
}
