/* ============================================================
   Real Cool Heating & Cooling LLC — styles
   Palette: cool blue & clean
   ============================================================ */
:root {
  /* Palette matched to the Real Kool logo: royal blue, navy outline, red accent */
  --blue-900: #0f2c5c;   /* navy (logo outlines) */
  --blue-800: #17489e;
  --blue-700: #1f5fd0;   /* primary royal blue */
  --blue-600: #2e6be6;   /* logo bright blue */
  --blue-500: #4a86f0;
  --blue-100: #e4eefc;
  --blue-050: #f2f7ff;
  --teal:     #2e6be6;   /* alias kept for existing accents */
  --red:      #e23b2e;   /* logo red (hat / gauge) */
  --red-dark: #c22d22;
  --ink:      #12233f;
  --slate:    #4a5a6a;
  --line:     #dde6ee;
  --white:    #ffffff;
  --bg:       #ffffff;
  --shadow-sm: 0 1px 3px rgba(9, 45, 82, .08), 0 1px 2px rgba(9, 45, 82, .06);
  --shadow-md: 0 8px 24px rgba(9, 45, 82, .10);
  --shadow-lg: 0 20px 50px rgba(9, 45, 82, .18);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .98rem; font-family: inherit;
  padding: .72rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-800); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--blue-800); border-color: var(--blue-700); }
.btn--outline:hover { background: var(--blue-100); }
.btn--ghost { background: var(--blue-050); color: var(--blue-800); }
.btn--ghost:hover { background: var(--blue-100); }
.btn--phone { background: var(--blue-050); color: var(--blue-800); border-color: var(--line); }
.btn--phone:hover { background: var(--blue-100); border-color: var(--blue-500); }
.btn--light { background: #fff; color: var(--blue-800); }
.btn--light:hover { background: var(--blue-050); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: rgba(255,255,255,.14); }

.eyebrow, .hero__eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700;
  color: var(--blue-600); margin: 0 0 .6rem;
}

/* ---------- Top bar ---------- */
.topbar { background: var(--blue-900); color: #cfe4f7; font-size: .85rem; }
.topbar__inner { display: flex; gap: 1.5rem; align-items: center; justify-content: center; padding: .45rem 20px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .35rem; }
.topbar__phone { color: #fff; font-weight: 700; }
.topbar__phone:hover { color: var(--teal); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 1rem; padding: .7rem 20px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--blue-800); }
.brand__logo { height: 56px; width: auto; display: block; }
.brand__badge { height: 96px; width: auto; display: block; }
@media (max-width: 720px) { .brand__logo { height: 46px; } }

/* Text fallback shown only if a logo image file is missing */
.brand__text-fallback { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text-fallback strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--blue-700); }
.brand__text-fallback small { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--red); font-weight: 700; }
.brand--footer .brand__text-fallback strong { color: #fff; }
.brand--footer .brand__text-fallback small { color: var(--teal); }
.brand__mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--teal)); color: #fff; box-shadow: var(--shadow-sm);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.brand__text small { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--blue-600); font-weight: 600; }

.nav { margin-left: auto; display: flex; gap: 1.4rem; align-items: center; }
.nav a { font-weight: 600; color: var(--slate); font-size: .96rem; padding: .3rem 0; position: relative; }
.nav a:hover { color: var(--blue-800); }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--blue-600); transition: width .2s ease; }
.nav a:hover::after { width: 100%; }

.header__cta { margin-left: .4rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(20,184,196,.18), transparent 60%),
    linear-gradient(180deg, var(--blue-050), #fff 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 20px; }
.hero__lead { font-size: 1.15rem; color: var(--slate); max-width: 34ch; }
.hero h1 { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.hero__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; color: var(--blue-800); font-weight: 600; font-size: .95rem; }

.hero__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.6rem; }
.hero__card h3 { color: var(--ink); }
.hero__card > p { color: var(--slate); font-size: .95rem; margin-bottom: 1rem; }
.quickform { display: flex; flex-direction: column; gap: .7rem; }
.quickform input, .quickform select { padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.quickform input:focus, .quickform select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.quickform__note { color: var(--slate); font-size: .8rem; text-align: center; }

/* ---------- Trust strip ---------- */
.strip { background: var(--blue-800); color: #fff; }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.4rem 20px; text-align: center; }
.strip__item { display: flex; flex-direction: column; }
.strip__item strong { font-size: 1.5rem; font-weight: 800; }
.strip__item span { font-size: .85rem; color: #bcdcf7; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--tint { background: var(--blue-050); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.section__sub { color: var(--slate); font-size: 1.08rem; }
.section__cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-500); }
.card__icon { font-size: 2rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; background: var(--blue-100); margin-bottom: 1rem; }
.card h3 { color: var(--ink); }
.card > p { color: var(--slate); font-size: .95rem; }
.card__list { list-style: none; margin: .8rem 0 0; padding: .8rem 0 0; border-top: 1px solid var(--line); }
.card__list li { position: relative; padding-left: 1.5rem; font-size: .9rem; color: var(--slate); margin-bottom: .35rem; }
.card__list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

/* ---------- Why us ---------- */
.why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.why__intro p { color: var(--slate); font-size: 1.05rem; margin-bottom: 1.5rem; }
.why__features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.feature { display: flex; gap: .9rem; }
.feature__ic { font-size: 1.4rem; width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.feature h4 { margin: 0 0 .25rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--slate); font-size: .92rem; }

/* ---------- Service area ---------- */
.area-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.area-list li {
  background: var(--blue-050); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .8rem 1rem; text-align: center; font-weight: 600; color: var(--blue-800); font-size: .95rem;
}

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.review__stars { color: var(--blue-600); font-size: 1.5rem; font-weight: 800; line-height: 1; margin-bottom: .7rem; }
.review blockquote { margin: 0 0 .8rem; font-size: 1rem; color: var(--ink); }
.review figcaption { color: var(--slate); font-weight: 600; font-size: .9rem; }

/* ---------- Banner ---------- */
.banner { background: linear-gradient(120deg, var(--blue-800), var(--blue-600)); color: #fff; }
.banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.6rem 20px; flex-wrap: wrap; }
.banner h2 { color: #fff; margin-bottom: .3rem; }
.banner p { color: #dbeeff; margin: 0; }
.banner__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact__info p { color: var(--slate); }
.contact__list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.contact__list li { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.contact__ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--blue-100); border-radius: 10px; }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 1.8rem; }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--ink); }
.field input, .field select, .field textarea {
  padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink); resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.form-status { margin: .9rem 0 0; text-align: center; font-weight: 600; min-height: 1.2em; }
.form-status.is-ok { color: #10864b; }
.form-status.is-err { color: #c02626; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-900); color: #b9d4ec; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding: 3rem 20px 2rem; }
.brand--footer .brand__text strong, .brand--footer .brand__text small { color: #fff; }
.brand--footer .brand__text small { color: var(--teal); }
.footer__tag { margin: 1rem 0 .6rem; font-size: .92rem; }
.footer__lic { font-size: .82rem; color: #7ea9ce; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: .5rem; font-size: .92rem; }
.footer__col a:hover { color: #fff; }
.footer__contact a:hover { color: var(--teal); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 20px; font-size: .82rem; color: #7ea9ce; flex-wrap: wrap; }

/* ---------- Sticky mobile call ---------- */
.mobile-call {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  display: none; align-items: center; justify-content: center; gap: .5rem;
  background: var(--blue-700); color: #fff; font-weight: 700; padding: .95rem;
  border-radius: 999px; box-shadow: var(--shadow-lg);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: 1fr; gap: 2rem; }
  .reviews { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .area-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 84px 24px 24px;
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .28s ease; margin: 0;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-toggle { display: block; z-index: 70; }
  .strip__inner { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .why__features { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .banner__inner { flex-direction: column; align-items: flex-start; }
  .mobile-call { display: flex; }
  body { padding-bottom: 76px; }
  .topbar__inner { gap: .3rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
