/* =========================================================
   Galaxy Heat & Air — Global Stylesheet
   Source Of Truth For Shared Sitewide Styles
   Locked Initial Version: Header / Nav / Mobile Menu / Footer / Base UI
   ========================================================= */

/* ── RESET / BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --space:   #050a14;
  --deep:    #08101e;
  --card:    #0c1828;
  --border:  rgba(31,155,242,0.15);
  --section-dark: rgba(8,16,30,0.88);
  --section-light: #0F2040;
  --orange:  #f2761f;
  --orange-light: #ff9a4d;
  --orange-glow:  rgba(242,118,31,0.25);
  --blue:    #1f9bf2;
  --blue-light: #4db8ff;
  --blue-glow:  rgba(31,155,242,0.22);
  --red:     #d91414;
  --white:   #f0f5ff;
  --muted:   #7a9cc0;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

[id] {
  scroll-margin-top: 90px;
}

body {
  background: var(--space);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  background-image: url('/images/background.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,10,20,0.93) 0%, rgba(8,16,30,0.89) 100%);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.35;
}

nav,
section,
footer,
.ticker-wrap,
.emergency-band {
  position: relative;
  z-index: 1;
}

/* ── SHARED CONTENT UI ── */


.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

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

.section-title .blue {
  color: var(--blue-light);
}

.section-title .italic {
  font-style: italic;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.line-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--space);
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 32px var(--orange-glow);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 52px rgba(242,118,31,0.5);
}

.btn-secondary {
  border: 1px solid rgba(31,155,242,0.35);
  color: var(--blue-light);
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  background: rgba(31,155,242,0.06);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

.btn-secondary:hover {
  border-color: var(--blue-light);
  background: rgba(31,155,242,0.12);
  box-shadow: 0 0 32px var(--blue-glow);
}

/* ── TOP INFO BAR ── */
.top-info-bar {
  position: relative;
  z-index: 101;
  background: rgba(5,10,20,0.97);
  border-bottom: 1px solid rgba(31,155,242,0.1);
}

.top-info-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.42rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.top-info-contact {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.top-info-contact a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.top-info-contact a:hover {
  color: var(--orange);
}

.top-info-separator {
  color: rgba(255,255,255,0.15);
}

.top-info-badge {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(31,155,242,0.55);
}

/* ── NAV ── */
#navbar {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(5,10,20,0.88);
  backdrop-filter: blur(18px);
  transition: padding 0.3s;
}

#navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

#navbar.scrolled {
  padding: 0.7rem 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(242,118,31,0.5));
  transition: filter 0.3s;
}

.nav-logo:hover img {
  filter: drop-shadow(0 0 18px rgba(242,118,31,0.7));
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.nav-logo-text span {
  color: var(--orange);
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--space) !important;
  padding: 0.55rem 1.35rem !important;
  border-radius: 6px;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  box-shadow: 0 0 28px var(--orange-glow);
  font-family: var(--font-display) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 0 48px rgba(242,118,31,0.5) !important;
}

/* ── HAMBURGER / MOBILE MENU ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,10,20,0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  z-index: 99;
  padding-top: 115px;
  overflow-y: auto;
}

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

.mobile-menu a {
  padding: 1.1rem 2rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(31,155,242,0.12);
  transition: color 0.2s, background 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-menu a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.02);
}

.mobile-menu-cta {
  margin: 1.5rem 2rem 1rem;
  padding: 1rem 1.4rem !important;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--space) !important;
  border-radius: 8px;
  font-weight: 700 !important;
  text-align: center;
  border-bottom: none !important;
  font-size: 1rem !important;
  justify-content: center !important;
}

/* ── FOOTER ── */
footer {
  background: rgba(5,10,20,0.96);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2.5rem;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.footer-logo-wrap img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(242,118,31,0.42));
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.footer-logo-text span {
  display: block;
  color: var(--orange);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 300px;
  margin-top: 1rem;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-col a,
.footer-col span {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.65rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-credit {
  justify-self: center;
}

.footer-credit a {
  color: var(--orange);
  text-decoration: none;
}

.footer-credit a:hover {
  color: var(--orange-light);
}

/* ── SCROLL TOP ── */
#scroll-top {
  transition: opacity 0.3s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

#scroll-top:hover {
  background: var(--orange-light) !important;
  box-shadow: 0 0 28px rgba(242,118,31,0.6) !important;
  transform: translateY(-3px) scale(1.06);
}

/* ── GLOBAL RESPONSIVE RULES ── */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  #navbar {
    padding: 0.75rem 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .nav-logo img {
    width: 54px;
    height: 54px;
  }

  .hamburger {
    display: flex;
  }

  footer {
    padding: 3rem 1.25rem 2rem;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col-services,
  .footer-col-links {
    grid-column: 1;
  }

  .footer-col-contact {
    grid-column: 2;
    grid-row: 2 / span 2;
  }

  .footer-bottom {
    border-top: none;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
  }

  .footer-credit {
    justify-self: auto;
  }

  .top-info-inner {
    padding: 0.35rem 0.75rem;
    justify-content: center;
  }

  .top-info-contact {
    width: 100%;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .top-info-contact > .top-info-separator:nth-of-type(2),
  .top-info-contact > span:nth-of-type(3) {
    display: none;
  }

  .top-info-badge {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
