/* Save this file in UTF-8 encoding without BOM */
/* main.css — Rite-Temp | Shared styles: vars, reset, topbar, nav, footer, responsive */

/* ─── CSS Custom Properties ─── */
:root {
  --navy:       #0e2344;
  --blue:       #1a4a8a;
  --blue-mid:   #1e5ca8;
  --blue-light: #2b78d0;
  --steel:      #e8eef7;
  --gold:       #d4891a;
  --gold-lt:    #f0a830;
  --gold-light: #f0a830;
  --white:      #ffffff;
  --off-white:  #f4f7fb;
  --off:        #f4f7fb;
  --text:       #1a1e2e;
  --text-muted: #4a5568;
  --muted:      #4a5568;
  --border:     #d0daea;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { transition: color .2s; }

/* ─── Layout ─── */
.wrap, .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ─── Global Link Color ─── */
a { color: var(--blue-mid); transition: color .2s; }
a:visited { color: var(--blue-mid); }
a:hover { color: var(--gold); }

/* Nav & header links must override global a:visited */
.site-header a, .site-header a:visited,
nav ul li > a, nav ul li > a:visited,
nav ul li ul li a, nav ul li ul li a:visited { color: #cce0ff; }
nav ul li > a:hover, nav ul li:hover > a,
nav ul li ul li a:hover { color: #fff; }
.top-bar a, .top-bar a:visited { color: #a8c4e8; }
.top-bar a:hover { color: var(--gold-lt); }

/* ─── Section Headers (shared) ─── */
.section-header { margin-bottom: 40px; }
.section-label {
  font-size: .73rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--blue-mid);
  margin-bottom: 10px;
}
.section-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 800; color: var(--navy); line-height: 1.15;
}
.section-heading span { color: var(--blue-mid); }

/* ─── Button base — ensure white text survives visited/global overrides ─── */
[class*="btn-"], [class*="btn-"]:visited, [class*="btn-"]:hover { color: #fff !important; text-decoration: none; }

/* ─── Buttons (shared — used by chiller sub-pages) ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #fff !important; font-weight: 700;
  font-size: .9rem; letter-spacing: .05em; text-transform: uppercase;
  padding: 13px 26px; border-radius: 4px; text-decoration: none;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 14px rgba(212,137,26,.35);
}
.btn-primary:visited { color: #fff !important; }
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); color: #fff !important; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff !important; font-weight: 700;
  font-size: .9rem; letter-spacing: .05em; text-transform: uppercase;
  padding: 12px 26px; border-radius: 4px;
  border: 2px solid rgba(255,255,255,.35); text-decoration: none;
  transition: border-color .2s, background .2s;
}
.btn-ghost:visited { color: #fff !important; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff !important; }

/* ─── Shared Typography ─── */
.lbl {
  font-size: .73rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--blue-mid);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.lbl i { font-size: .8rem; }
.h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 800; color: var(--navy); line-height: 1.15;
}
.h2 span { color: var(--blue-mid); }
.sub { color: var(--muted); font-size: 1.05rem; max-width: 600px; margin-top: 14px; line-height: 1.75; }
.sec-hdr { margin-bottom: 46px; }
.sec-hdr.ctr { text-align: center; }
.sec-hdr.ctr .sub { margin: 14px auto 0; }

/* ─── Buttons ─── */
.btn-p {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #fff !important; font-weight: 700;
  font-size: .9rem; letter-spacing: .05em; text-transform: uppercase;
  padding: 13px 26px; border-radius: 4px; text-decoration: none;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 14px rgba(212,137,26,.35);
}
.btn-p:visited { color: #fff !important; }
.btn-p:hover { background: var(--gold-lt); transform: translateY(-1px); color: #fff !important; }
.btn-g {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff !important; font-weight: 700;
  font-size: .9rem; letter-spacing: .05em; text-transform: uppercase;
  padding: 12px 26px; border-radius: 4px;
  border: 2px solid rgba(255,255,255,.35); text-decoration: none;
  transition: border-color .2s, background .2s;
}
.btn-g:visited { color: #fff !important; }
.btn-g:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff !important; }

/* ─── Scroll Fade-In ─── */
.fu { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.fu.v { opacity: 1; transform: translateY(0); }

/* ─── Top Bar ─── */
.top-bar { background: var(--navy); padding: 8px 0; font-size: .82rem; }
.top-bar .wrap { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #a8c4e8; text-decoration: none; }
.top-bar a:hover { color: var(--gold-lt); }
.top-left { display: flex; align-items: center; gap: 8px; color: #a8c4e8; }
.top-right { display: flex; gap: 20px; align-items: center; }
.pill { background: var(--gold); color: #fff !important; padding: 5px 14px; border-radius: 20px; font-weight: 700; }
.pill:hover { background: var(--gold-lt) !important; }

/* ─── Site Header / Nav ─── */
.site-header { background: var(--blue); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hdr { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 68px; }
.logo {
  text-decoration: none; display: flex; align-items: center;
}
.logo img { height: 48px; width: auto; display: block; }
nav ul { list-style: none; display: flex; gap: 2px; }
nav ul li { position: relative; }
nav ul li > a {
  display: block; padding: 22px 12px; color: #cce0ff;
  text-decoration: none; font-size: .84rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  transition: color .2s, background .2s; white-space: nowrap;
}
nav ul li > a:hover, nav ul li:hover > a { color: #fff; background: rgba(255,255,255,.1); }
nav ul li ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--navy); min-width: 210px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,.3); flex-direction: column;
}
nav ul li:hover > ul { display: flex; }
nav ul li ul li a { padding: 10px 18px; font-size: .83rem; color: #b0c8e8; border-bottom: 1px solid rgba(255,255,255,.06); }
nav ul li ul li a:hover { color: var(--gold-lt); background: rgba(255,255,255,.05); }

/* Hamburger */
.ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.ham span { display: block; width: 26px; height: 2px; background: #fff; transition: .3s; }

/* ─── Trust Bar ─── */
.trust { background: var(--navy); padding: 15px 0; border-top: 3px solid var(--gold); }
.titems { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 12px; }
.titem { display: flex; align-items: center; gap: 8px; color: #a8c4e8; font-size: .79rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.titem i { color: var(--gold-lt); font-size: .95rem; }

/* ─── CTA Banner (in footer include) ─── */
.cta-b {
  background: linear-gradient(135deg, var(--blue-mid), var(--navy));
  padding: 68px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-b::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(255,255,255,.02) 30px, rgba(255,255,255,.02) 31px);
}
.cta-b .wrap { position: relative; z-index: 1; }
.cta-b h2 {
  font-family: 'Barlow Condensed', sans-serif; font-size: clamp(2rem,4vw,3rem);
  font-weight: 800; color: #fff; margin-bottom: 12px;
}
.cta-b p { color: #a8c8ea; font-size: 1rem; margin-bottom: 28px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ─── */
footer { background: var(--navy); color: #8aafce; padding: 56px 0 26px; }
.ft-g {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.ft-logo {
  text-decoration: none; display: block; margin-bottom: 14px;
}
.ft-logo img { height: 52px; width: auto; display: block; }
.ft-brand p { font-size: .85rem; line-height: 1.7; max-width: 280px; }
.usa { display: flex; align-items: center; gap: 7px; font-weight: 700; color: #a8c8ea; font-size: .79rem; margin-top: 16px; }
.ft-col h4 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700;
  color: #fff; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px;
}
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ft-col ul li a { display: flex; align-items: center; gap: 7px; color: #8aafce; text-decoration: none; font-size: .85rem; }
.ft-col ul li a:visited { color: #8aafce; }
.ft-col ul li a i { font-size: .65rem; color: #4a6a8a; }
.ft-col ul li a:hover { color: var(--gold-lt); }
.ft-phone {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.55rem; font-weight: 700;
  color: #fff; text-decoration: none; margin-bottom: 10px;
}
.ft-phone:visited { color: #fff; }
.ft-contact p { font-size: .85rem; line-height: 2; }
.ft-contact a { color: #a8c8ea; text-decoration: none; }
.ft-contact a:visited { color: #a8c8ea; }
.ft-contact a:hover { color: var(--gold-lt); }
.ft-contact i { font-size: .75rem; color: #6a90b8; margin-right: 2px; }
.ft-bot {
  padding-top: 20px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 9px; font-size: .77rem;
}
.ft-bot a { color: #6a90b8; text-decoration: none; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .ft-g { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 768px) {
  nav { display: none; }
  nav.open {
    display: block; position: fixed; inset: 68px 0 0;
    background: var(--navy); overflow-y: auto; z-index: 999;
  }
  nav.open ul { flex-direction: column; padding: 14px; }
  nav.open ul li ul { position: static; display: flex !important; box-shadow: none; border: none; padding-left: 14px; }
  .ham { display: flex; }
  .top-left { display: none; }
  .ft-g { grid-template-columns: 1fr; }
}
