:root {
  --navy: #0b2e4f;
  --navy-dark: #071f36;
  --gold: #c8952a;
  --gray-light: #f4f6f8;
  --gray-mid: #6b7684;
  --white: #ffffff;
  --max-width: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { color: var(--navy); font-weight: 700; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.15rem; margin: 1rem 0 0.4rem; }

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

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: #a97b1f; }

/* Topbar */
.topbar {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 0.85rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar-contact span { margin-right: 1rem; }
.topbar-social { display: flex; align-items: center; }
.topbar-social a {
  display: flex;
  align-items: center;
  margin-left: 0.6rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.topbar-social a:hover { opacity: 1; }

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 20px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.main-nav { display: flex; gap: 1.75rem; }
.main-nav a {
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(rgba(7,31,54,0.75), rgba(7,31,54,0.75)),
              url('../img/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 7rem 20px;
}
.hero h1 { color: var(--white); font-size: 2.6rem; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9; }

/* Sections */
.section { padding: 5rem 0; }
.section:nth-of-type(even) { background: var(--gray-light); }

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  background: var(--gray-light);
}
.slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slideshow .slide.active { opacity: 1; }
.slideshow-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.slideshow-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.slideshow-dots .dot:hover { background: rgba(255,255,255,0.8); }
.slideshow-dots .dot.active { background: var(--white); transform: scale(1.15); }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}
.service-card {
  height: 220px;
  perspective: 1000px;
  cursor: pointer;
}
.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}
.service-card:hover .service-card-inner,
.service-card.flipped .service-card-inner,
.service-card:focus-visible .service-card-inner {
  transform: rotateY(180deg);
}
.service-card-front,
.service-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 6px;
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.service-card-front {
  background: var(--white);
  border-top: 3px solid var(--gold);
}
.service-card-front h3 { margin: 0; }
.service-card-back {
  background: var(--navy);
  color: var(--white);
  transform: rotateY(180deg);
  overflow-y: auto;
}
.service-card-back p {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* HVAC */
.hvac-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.hvac-list li {
  background: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
.project-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.project-card img { width: 100%; display: block; }
.project-card h3 { padding: 1rem; margin: 0; }

/* Newsletter */
.newsletter-inner { text-align: center; }
.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.newsletter-form input {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 260px;
}
.form-consent {
  font-size: 0.8rem;
  color: var(--gray-mid);
  margin-top: 0.75rem;
}
.form-consent a { text-decoration: underline; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: var(--navy);
  gap: 0.4rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}
.contact-form .btn { align-self: flex-start; }
.contact-info p { margin-bottom: 1rem; }

/* Privacy Policy page */
.back-nav a {
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s ease;
}
.back-nav a:hover { color: var(--gold); }
.policy-content { max-width: 760px; margin: 0 auto; }
.policy-content h3 { margin-top: 2rem; }
.policy-content p { margin-bottom: 1rem; }
.policy-list { padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-list li { margin-bottom: 0.4rem; }
.policy-note { color: var(--gray-mid); font-size: 0.9rem; margin-top: 2rem; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}
.footer-legal {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}
.footer-legal p { margin-bottom: 0.3rem; }
.footer-legal a { color: var(--gold); text-decoration: underline; }

/* Responsive */
@media (max-width: 800px) {
  .about-inner, .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 20px;
    display: none;
    box-shadow: 0 6px 10px rgba(0,0,0,0.08);
  }
  .main-nav.open { display: flex; }
}
