/* ============================================
   Gene Pletcher Heating & Cooling — Styles
   Classic & Elegant | Terracotta + Sand Palette
   ============================================ */

/* --- Custom Properties --- */
:root {
  --terracotta: #B85C38;
  --terracotta-dark: #9A4B2C;
  --terracotta-light: #D4845E;
  --sand: #E8D5C4;
  --sand-light: #F5EDE5;
  --sand-lighter: #FAF6F2;
  --sand-dark: #C4A882;
  --charcoal: #2C2420;
  --charcoal-light: #4A3F38;
  --cream: #FDF9F5;
  --white: #FFFFFF;
  --text-dark: #1A1410;
  --text-body: #3D3229;
  --text-muted: #7A6B60;
  --text-light: #F5EDE5;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(44, 36, 32, 0.06), 0 1px 2px rgba(44, 36, 32, 0.04);
  --shadow-md: 0 4px 16px rgba(44, 36, 32, 0.08), 0 2px 4px rgba(44, 36, 32, 0.04);
  --shadow-lg: 0 12px 40px rgba(44, 36, 32, 0.12), 0 4px 12px rgba(44, 36, 32, 0.06);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--terracotta-dark);
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 500;
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-terracotta {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.btn-terracotta:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.btn-outline-dark:hover {
  background: var(--terracotta);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-light {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--sand-light);
  border-color: var(--sand-light);
  color: var(--charcoal);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 249, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 92, 56, 0.08);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--charcoal);
}

.logo-mark {
  color: var(--terracotta);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--charcoal);
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.logo-light .logo-text {
  color: var(--white);
}

.logo-light .logo-sub {
  color: var(--sand);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal-light);
  position: relative;
}

.nav-desktop a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: width var(--transition);
}

.nav-desktop a:not(.btn):hover::after {
  width: 100%;
}

.nav-desktop a:not(.btn):hover {
  color: var(--terracotta);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
  padding: 8px;
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream);
  z-index: 999;
  padding: 40px 24px;
}

.mobile-menu.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu-inner a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--charcoal);
  text-decoration: none;
}

/* --- Hero --- */
.hero {
  padding-top: 76px;
  min-height: 100vh;
  background: var(--sand-light);
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100vh - 76px);
  align-items: stretch;
}

.hero-content {
  padding: 80px 60px 80px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 580px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 24px;
  line-height: 1.15;
}

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

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--sand);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--terracotta);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--sand-dark);
  opacity: 0.5;
}

/* Hero Image Area */
.hero-image {
  position: relative;
  height: 100%;
  min-height: 600px;
}

.hero-img-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  height: 100%;
}

.hero-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hero-img-accent {
  position: absolute;
  bottom: 60px;
  left: -40px;
  width: 55%;
  box-shadow: var(--shadow-lg);
  background: var(--white);
  padding: 8px;
}

.hero-img-accent img {
  width: 100%;
  height: 264px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 20px;
  right: 40px;
  background: var(--white);
  color: var(--charcoal);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
}

.hero-badge svg {
  color: var(--terracotta);
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.03;
  background-image: radial-gradient(circle at 2px 2px, var(--terracotta) 1px, transparent 0);
  background-size: 32px 32px;
}

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

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

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

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid rgba(184, 92, 56, 0.08);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--sand-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  margin-bottom: 24px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--terracotta);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- About --- */
.about {
  padding: 120px 0;
  background: var(--sand-light);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-img-main {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 700px;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--sand-light);
}

.about-img-secondary img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.about-content {
  padding: 20px 0;
}

.about-body {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 32px 0 40px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-body);
}

.about-feature svg {
  color: var(--terracotta);
  flex-shrink: 0;
}

/* --- Areas --- */
.areas {
  padding: 120px 0;
  background: var(--cream);
}

.areas-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 64px;
}

.areas-body {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 20px;
}

.areas-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.area-group h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--terracotta);
  display: inline-block;
}

.area-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.area-group li {
  font-size: 0.95rem;
  color: var(--text-body);
  padding-left: 20px;
  position: relative;
}

.area-group li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--terracotta);
  border-radius: 50%;
}

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

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(184, 92, 56, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
}

.cta-text {
  flex: 1;
  max-width: 600px;
}

.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta-body {
  font-size: 1.05rem;
  color: var(--sand);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* --- Contact --- */
.contact {
  padding: 120px 0;
  background: var(--sand-light);
}

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

.contact-body {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-detail svg {
  color: var(--terracotta);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.contact-detail span,
.contact-detail a {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-detail a:hover {
  color: var(--terracotta);
}

/* --- Contact Form --- */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(184, 92, 56, 0.08);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--sand-lighter);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: all var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terracotta);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.form-success svg {
  color: var(--terracotta);
}

.form-success h3 {
  font-size: 1.5rem;
  color: var(--charcoal);
}

.form-success p {
  color: var(--text-muted);
  line-height: 1.7;
}

.form-success a {
  color: var(--terracotta);
  font-weight: 500;
}

/* --- Footer --- */
.footer {
  background: var(--charcoal);
  color: var(--sand);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(232, 213, 196, 0.1);
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--sand-dark);
  line-height: 1.7;
  margin-top: 20px;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--sand-dark);
  transition: color var(--transition);
}

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

.footer-contact p {
  font-size: 0.9rem;
  color: var(--sand-dark);
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-contact a {
  color: var(--sand);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--sand-dark);
}

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

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 60px 0 60px 24px;
    max-width: none;
  }

  .hero-image {
    display: none;
  }

  .about-container,
  .areas-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-img-secondary {
    right: 0;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding-top: 76px;
    min-height: auto;
  }

  .hero-content {
    padding: 48px 0;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .services {
    padding: 80px 0;
  }

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

  .about {
    padding: 80px 0;
  }

  .about-img-main img {
    height: 400px;
  }

  .about-img-secondary {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    margin-top: 16px;
  }

  .about-img-secondary img {
    height: 220px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .areas {
    padding: 80px 0;
  }

  .areas-list {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta {
    padding: 80px 0;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    justify-content: center;
  }

  .contact {
    padding: 80px 0;
  }

  .contact-form-wrap {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-headline {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}
