/* ==========
   Base / reset
   ========== */
* { box-sizing: border-box; }
html, body { height: 100%; }

:root {
  /* --------
     Fluid typography tokens (mobile → desktop)
     These are clamped so text scales smoothly.
     -------- */
  --fs-body: clamp(16px, 0.55vw + 14px, 18px);
  --fs-small: clamp(14px, 0.45vw + 12px, 16px);

  --fs-h1: clamp(32px, 2.2vw + 22px, 46px);
  --fs-h2: clamp(24px, 1.4vw + 18px, 34px);
  --fs-h3: clamp(18px, 0.9vw + 16px, 24px);

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;

  /* Container */
  --container: 1100px;
  --gutter: 2rem;

  /* Colors */
  --text: #141414;
  --muted: #5c5c66;
  --border: #e6e6ea;
  --bg-alt: #f6f6f8;
  --cta: #0f172a;
  --footer: #0b1220;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: #ffffff;
  font-size: var(--fs-body);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { padding-left: 1.2rem; }

:focus-visible { outline: 3px solid #000; outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px 10px;
  border-radius: 10px;
  z-index: 999;
}
.skip-link:focus { left: 8px; }

/* ==========
   Layout helpers
   ========== */
.container {
  width: min(var(--container), calc(100% - var(--gutter)));
  margin-inline: auto;
}

.section { padding: var(--space-2) 0; }
.section-alt { background: var(--bg-alt); }
.section-cta { background: var(--cta); color: #fff; }

.section-head { margin-bottom: var(--space-4); }
.section-head p { margin-top: 0.25rem; max-width: 60ch; color: var(--muted); }
.section-cta .section-head p,
.section-cta p { color: rgba(255,255,255,0.9); }

/* ==========
   Typography
   ========== */
h1, h2, h3 { line-height: 1.1; margin: 0 0 0.6rem; }
p { margin: 0 0 1rem; }

h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); }

.h3 { font-size: var(--fs-h3); }
.h4 { font-size: clamp(16px, 0.7vw + 14px, 20px); margin-bottom: 0.6rem; }

.small { font-size: var(--fs-small); opacity: 0.92; }
code { font-size: 0.95em; }

/* ==========
   Header + nav
   ========== */

/* ==========
   ThermoPro logos + header phone
   Breakpoint: <= 640px (phone) vs > 640px (desktop/tablet)
   ========== */
:root{
  --fs-phone: clamp(18px, 1.1vw + 14px, 28px);
}

/* Make header container align left with ~5% padding on wider screens */
.site-header .container{
  width: 100%;
  margin-inline: 0;
  padding-inline: 5%;
}

/* Branding block */
.header-branding{
  display: flex;
  flex-direction: column; /* <= 640px */
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.brand-link{ display: inline-block; text-decoration: none; }

/* Default: show phone logo, hide horizontal */
.logo-horizontal{ display: none; }
.logo-phone{ display: block; }

/* Responsive logo sizing */
.logo-phone{
  width: min(420px, 88vw);
  height: auto;
}
.logo-horizontal{
  width: min(560px, 52vw);
  height: auto;
}

.header-phone{
  font-weight: 900;
  font-size: var(--fs-phone);
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
}

/* Keep nav toggle to the right on small screens while branding is centered */
.site-nav{
  align-self: stretch;
  display: flex;
  justify-content: flex-end;
}

/* <= 640px: center header content */
.header-inner{
  flex-direction: column;
  align-items: center;
}

/* > 640px: horizontal logo + phone on the same line, left aligned */
@media (min-width: 641px){
  .header-inner{
    flex-direction: row;
    align-items: center;
  }

  .header-branding{
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: clamp(0.75rem, 1.2vw, 1.5rem);
  }

  .logo-phone{ display: none; }
  .logo-horizontal{ display: block; }

  /* phone to the right of logo */
  .header-phone{ margin-left: clamp(0.5rem, 1.1vw, 1.5rem); }

  /* nav can be normal width */
  .site-nav{ align-self: auto; }
  
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 0.9rem 0;
}

.brand .logo {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.2px;
  font-size: clamp(18px, 0.8vw + 16px, 22px);
}
.tagline { margin: 0.15rem 0 0; font-size: var(--fs-small); color: var(--muted); }

.site-nav { display: flex; align-items: center; }
.nav-toggle {
  border: 1px solid #d8d8de;
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  font-size: var(--fs-small);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;        /* mobile default */
  flex-direction: column;
  gap: 0.35rem;
  position: absolute;
  right: 1rem;
  top: 64px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.75rem;
  min-width: 190px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.nav-list.is-open { display: flex; }

.nav-list a {
  text-decoration: none;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  display: block;
}
.nav-list a:hover { background: #f2f2f6; }
.address { text-align:center;
color: blue;
font-size: 1.2em;
text-decoration: none;
}
.address a:hover { color:#C00;
text-decoration: none;
}

/* ==========
   Buttons / links
   ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  font-size: var(--fs-small);
	font-size: 1.3em;
	color: #666;
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.text-link { text-decoration: underline; }

/* ==========
   Hero
   ========== */
.hero { padding: 3% 1rem; }
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero-copy p { max-width: 62ch; color: var(--muted); }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.hero-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: var(--space-3);
  background: #ffffff;
}

.checklist { margin: 0.5rem 0 0; }

/* ==========
   Panels / cards
   ========== */
.panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: var(--space-3);
  background: #fff;
}
.panel-muted { background: #f8f8fb; }

.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: var(--space-3);
  background: #fff;
}

/* ==========
   Two-column & three-column (flexbox)
   ========== */
.two-col,
.three-col,
.footer-inner,
.cta-inner {
  display: flex;
  flex-direction: column; /* mobile first */
  gap: var(--space-5);
}

.two-col > * { flex: 1; }
.three-col > * { flex: 1; }

/* ==========
   CTA
   ========== */
.cta-inner { align-items: flex-start; }
.cta-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ==========
   Footer
   ========== */
.site-footer { padding: 2rem 0 1.25rem; background: var(--footer); color: #fff; }
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li { margin: 0.35rem 0; }
.footer-list a { color: #fff; text-decoration: none; opacity: 0.9; }
.footer-list a:hover { text-decoration: underline; opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 1.25rem;
  padding-top: 1rem;
  opacity: 0.9;
}

/* ==========
   Breakpoints (min-width)
   Phone: default
   Tablet: >= 800px
   Desktop: >= 1000px
   ========== */
@media (min-width: 800px) {
  .nav-list { right: 2rem; }

  .hero-inner {
    flex-direction: row;
    align-items: stretch;
  }
  .hero-copy { flex: 1.25; }
  .hero-card { flex: 0.9; }

  .two-col { flex-direction: row; }
  .three-col { flex-direction: row; flex-wrap: wrap; }
  .three-col > * { flex: 1 1 220px; } /* 3 across when space allows */

  .cta-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-inner { flex-direction: row; }
  .footer-col { flex: 1; }
}

@media (min-width: 1000px) {
  /* Slightly roomier gutters on desktop */
  :root {
    --container: 1180px;
    --gutter: 3rem;
  }

  /* Desktop nav: show links inline, hide toggle */
  .nav-toggle { display: none; }
  .site-nav { position: static; }
  .nav-list {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border: 0;
    padding: 0;
    min-width: auto;
    box-shadow: none;
  }
  .nav-list a { padding: 0.55rem 0.75rem; }
}
