/* ============================================
   Happy Cooler, Shared Stylesheet
   Commercial Refrigeration Coil Cleaning
   ============================================ */

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --ice: #e6f2f7;
  --steel: #8ecae6;
  --teal: #1d7874;
  --accent: #ff8c42;
  --accent-dark: #e5722a;
  --text: #1a1a1a;
  --muted: #556070;
  --bg: #ffffff;
  --bg-soft: #f6f9fb;
  --border: #dbe3ea;
  --success: #2a9d8f;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 1px 3px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 6px 20px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 20px 40px rgba(11, 37, 69, 0.12);
  --maxw: 1160px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  font-size: 1.15rem;
  text-decoration: none;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--steel));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800;
}
/* Logo image, replaces the HC mark + wordmark when assets/logo.png is present.
   The <img> tag has no alt fallback styling: if the file is missing the broken-image
   icon will appear; otherwise the logo renders cleanly. */
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  /* Drop a soft white halo around it so it works on any background */
}
@media (max-width: 480px) {
  .brand-logo { height: 38px; }
}
.site-footer .brand-logo {
  height: 64px;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a { color: var(--navy); font-weight: 500; }
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.nav-cta { margin-left: 8px; }

.menu-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  margin: 4px 0; border-radius: 2px; transition: 0.2s;
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-cta { margin: 10px 0 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  font-size: 1rem;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--navy); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(142, 202, 230, 0.35), transparent 60%),
    radial-gradient(900px 400px at -10% 0%, rgba(29, 120, 116, 0.18), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 { color: var(--navy); }
.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
}
.hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 28px; margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stats .stat b {
  display: block; color: var(--navy);
  font-family: var(--font-display); font-size: 1.6rem;
}
.hero-stats .stat span { color: var(--muted); font-size: 0.9rem; }

.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}
.hero-card h3 { margin-top: 0; }
.hero-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.hero-card li { margin-bottom: 6px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #e9eef5; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--steel); }
.section-dark .section-head p { color: #c8d2de; }

/* ---------- Services Grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--steel));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 14px rgba(29, 120, 116, 0.25);
}
.card .icon svg { width: 26px; height: 26px; display: block; }
.card .price-chip {
  display: inline-block;
  margin-top: 12px;
  background: var(--ice);
  color: var(--navy-2);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process .step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; position: relative; box-shadow: var(--shadow-sm);
}
.process .step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: -14px; left: 20px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; box-shadow: var(--shadow-sm);
}
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .process { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px;
  height: 100%;
}
.testimonial .quote { font-size: 1.05rem; color: var(--text); }
.testimonial .quote::before { content: "\201C"; color: var(--steel); font-size: 2rem; line-height: 0; vertical-align: -0.25em; margin-right: 4px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  flex-shrink: 0;                       /* don't let the flex parent squish it */
  background: linear-gradient(135deg, var(--teal), var(--steel));
  color: #fff;
  display: inline-grid;                 /* grid centers content boxes more predictably than flex for single-line text */
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 44px;                    /* match container height: baseline sits at proper vertical center for single-line text */
  letter-spacing: 0.02em;
  text-align: center;
  text-indent: 0.02em;                  /* tiny right-nudge to compensate for letter-spacing adding space only on the right of the last letter */
}
.who b { color: var(--navy); }
.who span { color: var(--muted); font-size: 0.9rem; display: block; }
.stars { color: #f5a623; letter-spacing: 2px; }

/* ---------- Case studies ---------- */
.case {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.case .case-body { padding: 28px; }
.case .case-meta {
  background: var(--bg-soft);
  padding: 16px 28px;
  display: flex; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--border);
}
.case .metric b { display: block; color: var(--navy); font-size: 1.4rem; font-family: var(--font-display); }
.case .metric span { color: var(--muted); font-size: 0.85rem; }
.tag {
  display: inline-block;
  background: var(--ice);
  color: var(--navy-2);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-right: 6px;
}

/* ---------- Forms ---------- */
.form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(29, 120, 116, 0.15);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 4px; }
.cta-band p { color: #c8d2de; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a1f3a;
  color: #c8d2de;
  padding: 48px 0 24px;
  font-size: 0.95rem;
}
.site-footer a { color: #e6f2f7; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #1f3252;
  margin-top: 32px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: #8b9bb5; font-size: 0.85rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.blog-hero {
  background: linear-gradient(180deg, var(--bg-soft), #fff);
  padding: 56px 0 24px;
  text-align: center;
}
.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .blog-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .blog-list { grid-template-columns: 1fr; } }

.post-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--teal), var(--steel));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  padding: 24px; text-align: center;
}
.post-card .post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .post-meta { color: var(--muted); font-size: 0.82rem; }
.post-card h3 { margin: 4px 0; font-size: 1.1rem; line-height: 1.35; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--teal); text-decoration: none; }
.post-card p { color: var(--muted); font-size: 0.95rem; margin: 0; flex: 1; }
.post-card .read-more { margin-top: 12px; color: var(--teal); font-weight: 600; }

/* Article */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.article .post-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.article h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.article h2 { margin-top: 2em; }
.article h3 { margin-top: 1.6em; }
.article p, .article li { font-size: 1.05rem; color: #273248; }
.article blockquote {
  border-left: 4px solid var(--teal);
  margin: 1.2em 0;
  padding: 8px 16px;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.toc {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin: 20px 0 24px;
}
.toc b { color: var(--navy); }
.toc ul { margin: 6px 0 0; padding-left: 18px; }
.post-tags { margin-top: 20px; }

/* ---------- Pricing grid (book page) ---------- */
@media (max-width: 820px) {
  .price-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---------- Booking page ---------- */
.booking-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) { .booking-wrap { grid-template-columns: 1fr; } }
.calendly-inline-widget {
  /* Calendly recommends ~700px on desktop side-by-side, more when stacked vertically.
     We give it plenty of room so its internal scrollbar never kicks in. */
  height: 1100px;
  min-height: 1100px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
}
@media (max-width: 900px) {
  /* On narrower viewports Calendly stacks into a single column and needs more height. */
  .calendly-inline-widget { height: 1200px; min-height: 1200px; }
}
.booking-side ul { padding-left: 18px; color: var(--muted); }
.booking-side li { margin-bottom: 8px; }
.phone-chip {
  display: inline-flex; gap: 8px; align-items: center;
  background: var(--ice); color: var(--navy);
  padding: 10px 14px; border-radius: 999px; font-weight: 600;
}

/* Utility */
.center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-4 { margin-bottom: 32px; }
