/* ============================================
   Central Heating & Air Conditioning Service
   Sauk Centre, MN — Custom Stylesheet
   ============================================ */

/* ── Custom Properties ── */
:root {
  --plum-50:  #f9f0f6;
  --plum-100: #f3dced;
  --plum-200: #e8bcd9;
  --plum-300: #d694be;
  --plum-400: #c06ea0;
  --plum-500: #a34f7e;
  --plum-600: #8b3f68;
  --plum-700: #7b4379;
  --plum-800: #4a2245;
  --plum-900: #2d1329;

  --amber-50:  #fef9ee;
  --amber-100: #fdf0d1;
  --amber-200: #fce3a0;
  --amber-300: #f9cc5a;
  --amber-400: #f2b832;
  --amber-500: #d49a1a;
  --amber-600: #b07a0f;
  --amber-700: #8a5d0a;

  --cream: #fdf8f4;
  --cream-2: #faf5f0;
  --warm-gray: #f5f0eb;
  --text-dark: #2a1f2d;
  --text-body: #4a3d4e;
  --text-muted: #7a6b7d;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(123,67,121,.06), 0 1px 2px rgba(123,67,121,.04);
  --shadow-md: 0 4px 16px rgba(123,67,121,.08), 0 2px 6px rgba(123,67,121,.05);
  --shadow-lg: 0 12px 40px rgba(123,67,121,.10), 0 4px 12px rgba(123,67,121,.06);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Frauncie', Georgia, serif; color: var(--text-dark); line-height: 1.2; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum-600);
  background: var(--plum-100);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-sub { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--plum-700);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(123,67,121,.3);
}
.btn-primary:hover {
  background: var(--plum-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123,67,121,.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--plum-700);
  border: 1.5px solid var(--plum-200);
}
.btn-secondary:hover {
  background: var(--plum-50);
  border-color: var(--plum-400);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--plum-700);
  border: 1.5px solid var(--plum-300);
}
.btn-outline-light:hover {
  background: var(--plum-50);
  transform: translateY(-2px);
}

.btn-lg { padding: 17px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253,248,244,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(123,67,121,.08);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Frauncie', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--plum-700);
}
.logo-icon { color: var(--plum-600); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-list a:hover { color: var(--plum-700); background: var(--plum-50); }

.nav-cta {
  background: var(--plum-700) !important;
  color: var(--white) !important;
  border-radius: 100px !important;
  padding: 10px 20px !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--plum-600) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--plum-700);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 120px 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, var(--plum-50) 50%, var(--amber-50) 100%);
}

.hero-bg-accent {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(123,67,121,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum-600);
  background: var(--plum-100);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-body);
}
.trust-item svg { color: var(--plum-600); flex-shrink: 0; }

/* Hero visuals */
.hero-visual {
  position: relative;
  z-index: 2;
}
.hero-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 520/640;
}
.hero-img-main img { width: 100%; height: 100%; object-fit: cover; }

.hero-img-float {
  position: absolute;
  bottom: -20px;
  left: -40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  aspect-ratio: 280/200;
}
.hero-img-float img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute;
  top: 30px;
  right: -20px;
  background: var(--white);
  color: var(--text-dark);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-badge svg { color: var(--amber-500); }

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  color: var(--cream);
  pointer-events: none;
}

/* ── Services ── */
.services {
  padding: 100px 0;
  background: var(--cream);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid rgba(123,67,121,.07);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--plum-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--plum-700);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--plum-700);
  color: var(--white);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── About ── */
.about {
  padding: 100px 0;
  background: var(--cream-2);
}

.about-inner {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 64px;
  align-items: center;
}

.about-img-stack { position: relative; }
.about-img-stack img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.about-stat-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--plum-700);
  color: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-stat-card .stat-number {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 4px;
}
.about-stat-card .stat-value {
  font-family: 'Frauncie', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
}

.about-content .section-title { margin-top: 8px; }

.about-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(123,67,121,.1);
}

.about-stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum-600);
  margin-bottom: 4px;
}

.about-stat-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ── Why Us ── */
.why-us {
  padding: 100px 0;
  background: var(--cream);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1px solid rgba(123,67,121,.07);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--plum-500), var(--amber-400));
  opacity: 0;
  transition: var(--transition);
}
.why-card:hover::before { opacity: 1; }
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.why-num {
  font-family: 'Frauncie', Georgia, serif;
  font-size: 3rem;
  font-weight: 500;
  color: var(--plum-100);
  line-height: 1;
  margin-bottom: 12px;
}

.why-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.why-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Testimonials ── */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--plum-700) 0%, var(--plum-800) 100%);
  color: var(--white);
}

.testimonials .section-eyebrow {
  background: rgba(255,255,255,.15);
  color: var(--amber-200);
}

.testimonials .section-title { color: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-4px);
}

.testimonial-quote {
  color: var(--amber-400);
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,.9);
  margin-bottom: 24px;
}

.testimonial-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--amber-200);
}

/* ── CTA ── */
.cta {
  padding: 100px 0;
  background: var(--amber-50);
  position: relative;
  overflow: hidden;
}

.cta-bg-accent {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(242,184,50,.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-eyebrow { background: var(--amber-200); color: var(--amber-700); }
.cta-title { margin-bottom: 20px; }
.cta-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ── Contact ── */
.contact {
  padding: 100px 0;
  background: var(--cream-2);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-details { margin-bottom: 32px; }

.contact-detail {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 1px solid rgba(123,67,121,.08);
}
.contact-detail:first-child { padding-top: 0; }

.contact-detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum-600);
  margin-bottom: 4px;
}

.contact-detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}
.contact-detail a.contact-detail-value {
  color: var(--plum-700);
  transition: var(--transition);
}
.contact-detail a.contact-detail-value:hover { color: var(--plum-500); }

.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }

/* Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(123,67,121,.07);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 28px;
  color: var(--text-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--plum-200);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--plum-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(123,67,121,.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: .6; }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success svg { color: #22c55e; margin: 0 auto 16px; }
.form-success h3 { font-size: 1.4rem; margin-bottom: 12px; color: var(--text-dark); }
.form-success p { color: var(--text-muted); line-height: 1.7; }
.form-success a { color: var(--plum-700); font-weight: 600; }

/* ── Footer ── */
.site-footer {
  background: var(--plum-900);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo { color: var(--white); margin-bottom: 16px; }
.footer-logo .logo-icon { color: var(--amber-400); }
.footer-logo .logo-text { color: var(--white); }

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  max-width: 280px;
}

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-300);
  margin-bottom: 20px;
}

.footer-links ul li,
.footer-contact ul li { margin-bottom: 10px; }

.footer-links a,
.footer-contact a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--white); }

.footer-contact li { font-size: 0.9rem; line-height: 1.6; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 380px;
    gap: 40px;
  }
  .about-inner {
    grid-template-columns: 400px 1fr;
    gap: 40px;
  }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid .testimonial-card:last-child { grid-column: span 2; max-width: 50%; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(253,248,244,.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 32px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }
  .nav-list.open { transform: translateX(0); }
  .nav-list a { padding: 14px 16px; font-size: 1rem; }
  .nav-cta { margin-left: 0 !important; text-align: center; margin-top: 12px; }

  .hero { padding: 100px 0 80px; min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual { order: -1; max-width: 400px; margin: 0 auto; }
  .hero-img-main { aspect-ratio: 4/5; }
  .hero-img-float { left: -10px; bottom: -10px; }
  .hero-badge { right: 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .hero-trust { gap: 16px; }

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

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-img-stack img { height: 400px; }
  .about-stat-card { right: 16px; bottom: -16px; }
  .about-stats { grid-template-columns: 1fr; gap: 16px; }

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

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial-card:last-child { grid-column: span 1; max-width: 100%; }

  .cta-actions { flex-direction: column; align-items: center; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrapper { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .hero-headline { font-size: 1.75rem; }
  .section-title { font-size: 1.5rem; }
  .service-card { padding: 28px 22px; }
  .why-card { padding: 28px 24px; }
}
