/* Fields Heating Improved Stylesheet */

:root {
  --navy: #15355B;
  --green: #A8C076;
  --green-dark: #8DA85E;
  --gray-bg: #f4f4f4;
  --text: #222;
  --text-light: #555;
  --white: #fff;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background-color: var(--gray-bg);
  line-height: 1.5;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Top Banner */
.top-banner {
  background-color: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.top-banner a {
  color: var(--green);
  font-weight: bold;
}

/* Header */
.site-header {
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4%;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-link {
  display: block;
  max-width: 260px;
}

.logo-img {
  display: block;
  width: 100%;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
}

.main-nav a {
  display: block;
  padding: 10px 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background-color: var(--green);
  color: var(--navy);
  text-decoration: none;
}

.header-phone {
  background-color: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: bold;
  font-size: 1.1rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.header-phone:hover {
  background-color: var(--green-dark);
  text-decoration: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

body.menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  background-color: var(--navy);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  padding-top: 90px;
  overflow-y: auto;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a {
  display: block;
  color: var(--white);
  padding: 18px 6%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav a:hover {
  background-color: var(--green);
  color: var(--navy);
  text-decoration: none;
}

body.menu-open .mobile-nav {
  display: block;
}

body.menu-open {
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  background: linear-gradient(rgba(21, 53, 91, 0.75), rgba(21, 53, 91, 0.7)), url('Fields_Heating_Cooling_Barn_Sign.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 60px 4%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 0 0 16px;
  line-height: 1.1;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin: 0 0 28px;
  opacity: 0.95;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: bold;
  font-size: 1.05rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--green);
  color: var(--navy);
}

.btn-primary:hover {
  background-color: var(--green-dark);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--navy);
}

.btn-secondary:hover {
  background-color: #f0f0f0;
}

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

.btn-outline:hover {
  background-color: var(--navy);
  color: var(--white);
}

.trust-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  color: var(--white);
}

a.badge:hover {
  background: rgba(255,255,255,0.25);
  text-decoration: none;
}

/* Section Headings */
section h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--navy);
  text-align: center;
  margin: 0 0 36px;
}

/* Services */
.services {
  padding: 60px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  color: var(--text);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  text-decoration: none;
}

.service-icon {
  width: 64px;
  height: 64px;
  background-color: var(--navy);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: var(--navy);
}

.service-card p {
  margin: 0;
  color: var(--text-light);
  font-weight: 300;
}

/* Why Us */
.why-us {
  background-color: var(--white);
  padding: 60px 0;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-us-text h2 {
  text-align: left;
  margin-bottom: 20px;
}

.why-us-text p {
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 16px;
}

.why-us-text ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
}

.why-us-text li {
  padding: 6px 0 6px 28px;
  position: relative;
  font-weight: 400;
}

.why-us-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-dark);
  font-weight: bold;
}

.why-us-media {
  display: grid;
  gap: 16px;
}

.why-us-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  object-position: top center;
  max-height: 320px;
}

.family-photo {
  object-position: center 7%;
}

/* Financing CTA */
.financing-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4a7d 100%);
  color: var(--white);
  padding: 60px 0;
}

.financing-cta h2 {
  color: var(--white);
  text-align: left;
  margin-bottom: 16px;
}

.financing-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.financing-text p {
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: 24px;
}

.financing-logo-link {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.financing-logo {
  max-width: 260px;
}

/* Reviews */
.reviews {
  padding: 60px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.review-card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin: 0;
}

.review-card .stars {
  margin-bottom: 14px;
}

.review-card p {
  font-style: italic;
  color: var(--text-light);
  margin: 0 0 16px;
  font-weight: 300;
}

.review-card footer {
  font-weight: bold;
  color: var(--navy);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.reviews-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Hero (used on inner pages) */
.page-hero {
  background: linear-gradient(rgba(21, 53, 91, 0.82), rgba(21, 53, 91, 0.78)), url('../Fields_Heating_Cooling_Barn_Sign.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 80px 4%;
}

.page-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 12px;
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  margin: 0;
  font-weight: 300;
}

.all-reviews {
  padding-top: 50px;
}

.all-reviews .review-card {
  text-align: left;
}

/* Service Area */
.service-area {
  background-color: var(--green);
  color: var(--navy);
  padding: 40px 0;
  text-align: center;
}

.service-area h2 {
  color: var(--navy);
  margin-bottom: 12px;
}

.service-area p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 48px 0 0;
}

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

.footer-brand {
  background-color: var(--white);
  padding: 20px;
  border-radius: var(--radius);
}

.footer-logo {
  max-width: 240px;
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--text);
  font-weight: 300;
  margin-bottom: 14px;
}

.footer-social img {
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-social img:hover {
  opacity: 1;
}

.footer-links h4,
.footer-contact h4 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.1rem;
  margin: 0 0 16px;
  color: var(--green);
}

.footer-links ul,
.footer-contact p {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-links a,
.footer-contact a {
  color: var(--white);
  opacity: 0.9;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--green);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding: 18px 4%;
  font-size: 0.9rem;
}

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

/* Sticky Mobile Action Bar */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  display: none;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.12);
  z-index: 98;
}

.mobile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-weight: bold;
  color: var(--white);
}

.mobile-action-btn:hover {
  text-decoration: none;
}

.mobile-call {
  background-color: var(--green);
  color: var(--navy);
}

.mobile-call:hover {
  background-color: var(--green-dark);
}

.mobile-text {
  background-color: var(--navy);
}

.mobile-text:hover {
  background-color: #0f2440;
}

/* Responsive */
@media (max-width: 900px) {
  .main-nav,
  .header-phone {
    display: none;
  }

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

  .site-header {
    position: relative;
  }

  .hero {
    min-height: 420px;
  }

  .why-us-grid,
  .financing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .financing-logo-link {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  body {
    padding-bottom: 60px;
  }

  .top-banner {
    font-size: 0.85rem;
  }

  .logo-link {
    max-width: 200px;
  }

  .hero {
    min-height: 360px;
    padding: 40px 4%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

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

  .mobile-action-bar {
    display: grid;
  }

  .reviews-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 901px) {
  .mobile-nav {
    display: none !important;
  }
}

/* Helper classes migrated from old stylesheet */
.bold {
  font-weight: bold;
}

.red {
  color: #FF0000;
}

.underline {
  text-decoration-line: underline;
}

/* Inner page helpers */
.services-content,
.financing-content,
.contact-content,
.privacy-content {
  padding: 50px 0;
}

.services-content p,
.financing-content p,
.contact-content p {
  color: var(--text-light);
  font-weight: 300;
}

.famcaptions {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  text-align: center;
  font-weight: bold;
  margin-top: 8px;
}

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

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
  text-align: left;
  margin-bottom: 16px;
}

.privacy-content h2,
.privacy-content h3 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--navy);
  margin-top: 28px;
  margin-bottom: 12px;
}

.privacy-content h2 {
  font-size: 1.5rem;
}

.privacy-content h3 {
  font-size: 1.2rem;
}

.contact-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 40px;
}

/* Floats on services page */
.services-content img[style*="float:left"],
.services-content img[style*="float:right"] {
  max-width: 320px;
}

@media (max-width: 900px) {
  .contact-grid,
  .contact-extras {
    grid-template-columns: 1fr;
  }

  .services-content img[style*="float:left"],
  .services-content img[style*="float:right"] {
    float: none !important;
    display: block;
    margin: 0 auto 20px !important;
  }
}
