/* ============================================================
   HVAC & Air Conditioning Services — stylesheet
   Palette: dark blue #102E50 · golden yellow #F5C45E · white
   Typography: DM Sans
   ============================================================ */

/* ---------- CSS variables ---------- */
:root {
  --navy: #102E50;
  --navy-deep: #0A2340;
  --navy-tint: #EAF1F9;
  --gold: #F5C45E;
  --gold-dark: #E1AC40;
  --white: #FFFFFF;
  --ink: #22314A;
  --muted: #5B677A;
  --line: #E2E8F1;
  --bg-soft: #F5F7FA;

  --container: 1180px;
  --radius: 14px;
  --shadow-sm: 0 4px 14px rgba(16, 46, 80, 0.08);
  --shadow-md: 0 16px 32px rgba(16, 46, 80, 0.14);

  --font: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.6, 0.3, 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: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

body.lock {
  overflow: hidden;
}

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

ul,
ol {
  list-style: none;
}

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

button {
  font-family: inherit;
}

h1, h2, h3 {
  line-height: 1.15;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  color: var(--muted);
}

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

.skip-link {
  position: absolute;
  top: -70px;
  left: 16px;
  z-index: 2000;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 40px;
  border: 2px solid transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(245, 196, 94, 0.4);
}

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

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ---------- Section headings ---------- */
.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.8rem;
}

.eyebrow-gold {
  color: var(--gold);
}

.center-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.center-intro {
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* ---------- Marquee announcement bar ---------- */
.announce {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 196, 94, 0.35);
}

.announce-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.announce:hover .announce-track {
  animation-play-state: paused;
}

.announce-group {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding: 0.55rem 1.1rem 0.55rem 0;
  white-space: nowrap;
}

.a-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.a-item i {
  color: var(--gold);
  font-size: 0.8rem;
}

.a-sep {
  color: var(--gold);
  font-size: 0.7rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Header / navigation ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 2px 12px rgba(16, 46, 80, 0.08);
}

.nav {
  background: var(--white);
  position: relative;
}

.nav-inner {
  display: flex;
  align-items: center;
  min-height: 78px;
  gap: 2rem;
  position: relative;
  z-index: 310;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  z-index: 320;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold);
  border-radius: 10px;
  font-size: 1.05rem;
  transition: background-color 0.25s var(--ease);
}

.brand:hover .brand-icon,
.brand:focus-visible .brand-icon {
  background: var(--gold);
  color: var(--navy);
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}

.brand-text em {
  font-style: normal;
  color: var(--gold-dark);
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  margin-left: auto;
}

.menu a {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 0.4rem 0;
  transition: color 0.2s var(--ease);
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.menu a:hover,
.menu a:focus-visible,
.menu a.active {
  color: var(--gold-dark);
}

.menu a:hover::after,
.menu a:focus-visible::after,
.menu a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 320;
  transition: background-color 0.25s var(--ease);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--navy-tint);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Fixed phone button ---------- */
.call-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.85rem 1.3rem;
  border-radius: 40px;
  box-shadow: 0 10px 24px rgba(16, 46, 80, 0.28);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), opacity 0.3s var(--ease);
}

.call-fab i {
  font-size: 1rem;
}

.call-fab:hover,
.call-fab:focus-visible {
  background: var(--gold-dark);
  transform: translateY(-3px);
}

body.menu-open .call-fab {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Hero (full-width background) ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(to right, rgba(16, 46, 80, 0.88) 0%, rgba(16, 46, 80, 0.62) 55%, rgba(16, 46, 80, 0.35) 100%),
    url("img/hero-bg.jpg")
      center / cover no-repeat var(--navy);
  color: var(--white);
}

.hero-inner {
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
}

.hero-content {
  max-width: 640px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(245, 196, 94, 0.4);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.4rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.2rem;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.hero-note i {
  color: var(--gold);
  font-size: 1rem;
}

/* ---------- Why Choose Us ---------- */
.choose {
  padding: 5.5rem 0;
  background: var(--white);
}

.choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.choose-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.choose-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.choose-card h3 {
  margin-bottom: 0.55rem;
}

.choose-card p {
  font-size: 0.97rem;
}

.choose-card:hover,
.choose-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.choose-card:hover .choose-icon,
.choose-card:focus-within .choose-icon {
  background: var(--gold);
  color: var(--navy);
}

/* ---------- About Us ---------- */
.about {
  padding: 5.5rem 0;
  background: var(--bg-soft);
}

.about-boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  max-width: 980px;
  margin: 0 auto;
}

.about-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2.1rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.about-box-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--navy-tint);
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.about-box h3 {
  margin-bottom: 0.5rem;
}

.about-box p {
  font-size: 0.97rem;
}

.about-box:hover,
.about-box:focus-within {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.about-box:hover .about-box-icon,
.about-box:focus-within .about-box-icon {
  background: var(--navy);
  color: var(--gold);
}

.about-biz {
  max-width: 760px;
  margin: 2.4rem auto 0;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
}

.about-biz h3 {
  margin-bottom: 0.6rem;
}

.about-biz-loc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.97rem;
  margin-bottom: 1.3rem;
}

.about-biz-loc i {
  color: var(--gold-dark);
}

/* ---------- Services ---------- */
.services {
  padding: 5.5rem 0;
  background: var(--white);
}

.services-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.4rem;
  align-items: start;
}

.services-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.services-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 4.6;
  transition: transform 0.6s var(--ease);
}

.services-media:hover img {
  transform: scale(1.03);
}

.services-list {
  border-top: 1px solid var(--line);
}

.service-item {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  padding: 1.15rem 0.8rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.s-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy-tint);
  color: var(--navy);
  font-size: 1.05rem;
  margin-top: 0.1rem;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.service-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.service-item p {
  font-size: 0.94rem;
}

.service-item:hover,
.service-item:focus-within {
  background: var(--bg-soft);
  padding-left: 1.1rem;
}

.service-item:hover .s-icon,
.service-item:focus-within .s-icon {
  background: var(--navy);
  color: var(--gold);
}

/* ---------- FAQs ---------- */
.faq {
  padding: 5.5rem 0;
  background: var(--bg-soft);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 10px);
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq-item.open {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  background: none;
  border: none;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.faq-q i {
  flex: 0 0 auto;
  color: var(--gold-dark);
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-q i {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-a-inner {
  padding: 0 1.4rem 1.2rem;
}

.faq-a-inner p {
  font-size: 0.96rem;
}

/* ---------- Contact Us ---------- */
.contact {
  padding: 5.5rem 0;
  background: var(--white);
}

.contact-panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 3.4rem 2.6rem;
  border: 1px solid rgba(245, 196, 94, 0.4);
}

.contact-panel h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-panel > p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.contact-icons i {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(245, 196, 94, 0.55);
  color: var(--gold);
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.6rem;
  padding-bottom: 2.6rem;
}

.brand-footer {
  margin: 0 0 1.2rem;
  align-items: flex-start;
}

.brand-footer .brand-text {
  color: var(--white);
}

.brand-footer .brand-text em {
  color: var(--gold);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.93rem;
  max-width: 22rem;
}

.footer-col h3 {
  color: var(--white);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s var(--ease);
}

.footer-col ul a:hover,
.footer-col ul a:focus-visible {
  color: var(--gold);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.footer-contact li i {
  color: var(--gold);
  font-size: 0.9rem;
  padding-top: 0.2rem;
  width: 16px;
}

.footer-contact li a,
.footer-contact li span {
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact li a:hover,
.footer-contact li a:focus-visible {
  color: var(--gold);
}

.footer-map {
  margin: 0.4rem 0 2.6rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 196, 94, 0.35);
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.5rem 0;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
}

/* ---------- Scroll reveal ---------- */
.js .reveal,
.js .reveal-left,
.js .reveal-scale {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal {
  transform: translateY(26px);
}

.js .reveal-left {
  transform: translateX(-30px);
}

.js .reveal-scale {
  transform: scale(0.96);
}

.js .reveal.is-visible,
.js .reveal-left.is-visible,
.js .reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}

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

/* Tablet / mobile navigation */
@media (max-width: 992px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .menu {
    position: fixed;
    inset: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 0;
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }

  .nav.open .menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .menu a {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 0.4rem 0.5rem;
  }
}

@media (max-width: 860px) {
  .choose-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .services-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-media {
    max-width: 620px;
  }

  .services-media img {
    aspect-ratio: 16 / 10;
  }

  .about-boxes {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

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

  .announce-group {
    gap: 1.6rem;
    padding-right: 0.8rem;
  }

  .hero-inner {
    min-height: 72vh;
    padding: 4rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .choose,
  .about,
  .services,
  .faq,
  .contact {
    padding: 4rem 0;
  }

  .contact-panel {
    padding: 2.6rem 1.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-map iframe {
    height: 280px;
  }

  .call-fab span {
    display: none;
  }

  .call-fab {
    padding: 0;
    width: 56px;
    height: 56px;
    justify-content: center;
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .announce-group {
    gap: 1.2rem;
  }

  .a-item {
    font-size: 0.8rem;
  }

  .hero-label {
    font-size: 0.74rem;
  }

  .service-item {
    flex-direction: row;
    padding: 1rem 0.6rem;
  }

  .faq-q {
    padding: 1rem 1.1rem;
    font-size: 0.97rem;
  }

  .faq-a-inner {
    padding: 0 1.1rem 1.1rem;
  }
}

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

  .announce-track {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal,
  .js .reveal-left,
  .js .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}