/* ============================================================
   BreezeFix Brochure — styles
   Tokens & patterns from the BreezeFix design system (web reference).
   ============================================================ */

:root {
  /* Surfaces & ink */
  --bf-canvas: #FBFBFB;
  --bf-canvas-alt: #F5F5F5;
  --bf-ink: #1C2026;
  --bf-ink-inverse: #FFFFFF;
  --bf-line: #E9E9E9;

  /* Text hierarchy */
  --bf-text-1: #1C2026;
  --bf-text-2: #434343;
  --bf-text-3: #666666;
  --bf-text-4: #7A7A7A;

  /* Accents */
  --bf-teal: #0097A7;
  --bf-teal-hover: #007987;
  --bf-cyan: #00D0D8;
  --bf-warm: #FF7912;
  --bf-warm-deep: #FF2312;

  /* Signature gradients */
  --bf-gradient-cool: linear-gradient(135deg, #0A3A7A 0%, #0097A7 55%, #00D0D8 100%);
  --bf-gradient-warm: linear-gradient(135deg, #FF2312 0%, #FF7912 100%);

  /* Type stacks */
  --bf-font-sans: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  --bf-font-ui: "Lato", "Atkinson Hyperlegible", system-ui, sans-serif;

  /* Spacing */
  --bf-space-4: 16px;
  --bf-space-5: 24px;
  --bf-space-6: 32px;
  --bf-space-7: 48px;
  --bf-space-8: 64px;
  --bf-space-9: 96px;

  /* Radii */
  --bf-radius-md: 8px;
  --bf-radius-lg: 16px;
  --bf-radius-pill: 9999px;

  /* Shadows */
  --bf-shadow-sm: 0 1px 2px rgba(28, 32, 38, 0.04), 0 1px 1px rgba(28, 32, 38, 0.02);
  --bf-shadow-md: 0 4px 12px rgba(28, 32, 38, 0.06), 0 2px 4px rgba(28, 32, 38, 0.03);
  --bf-shadow-lg: 0 16px 40px rgba(28, 32, 38, 0.08), 0 4px 12px rgba(28, 32, 38, 0.04);

  /* Motion */
  --bf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bf-duration-fast: 150ms;
  --bf-duration-base: 250ms;
}

/* ───────────────────────── Reset / base ───────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--bf-font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--bf-text-1);
  background: var(--bf-canvas);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--bf-teal); text-underline-offset: 3px; transition: color var(--bf-duration-fast) var(--bf-ease); }
a:hover { color: var(--bf-teal-hover); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--bf-space-5); }

/* ───────────────────────── Type helpers ───────────────────────── */

.display-xl { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 400; margin: 0; }
.display-l  { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.1; letter-spacing: -0.015em; font-weight: 400; margin: 0; }
.h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; margin: 0 0 8px; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bf-text-3);
  margin: 0 0 var(--bf-space-4);
}
.eyebrow--light { color: rgba(255, 255, 255, 0.7); }

/* ───────────────────────── Buttons ───────────────────────── */

.bf-btn {
  font-family: var(--bf-font-sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: var(--bf-radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--bf-duration-fast) var(--bf-ease),
              box-shadow var(--bf-duration-base) var(--bf-ease),
              background var(--bf-duration-base) var(--bf-ease);
}

.bf-btn:focus-visible,
button.hcp-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 151, 167, 0.4);
}

.bf-btn-primary { background: var(--bf-gradient-cool); color: var(--bf-ink-inverse); box-shadow: var(--bf-shadow-md); }
.bf-btn-primary:hover { transform: translateY(-1px); box-shadow: var(--bf-shadow-lg); color: #fff; }

.bf-btn-warm { background: var(--bf-gradient-warm); color: var(--bf-ink-inverse); box-shadow: var(--bf-shadow-md); }
.bf-btn-warm:hover { transform: translateY(-1px); box-shadow: var(--bf-shadow-lg); color: #fff; }

.bf-btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.bf-btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

/* ───────────────────────── Header ───────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 251, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--bf-line);
}
.site-header__inner { display: flex; align-items: center; gap: var(--bf-space-6); height: 68px; }
.site-header__logo { display: flex; align-items: center; }
.site-header__nav { display: flex; gap: var(--bf-space-6); margin-left: auto; }
.site-header__nav a {
  color: var(--bf-text-2);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.site-header__nav a:hover { color: var(--bf-teal); }
.site-header__cta { padding: 9px 18px; font-size: 0.95rem; }
.site-header__nav-call { display: none; }

/* Mobile menu toggle (hidden on desktop) */
.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  margin-right: -10px;
  background: none;
  border: 0;
  border-radius: var(--bf-radius-md);
  cursor: pointer;
}
.site-header__toggle:focus-visible { outline: 2px solid var(--bf-teal); outline-offset: 2px; }
.site-header__toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--bf-ink);
  transition: transform var(--bf-duration-fast) var(--bf-ease), opacity var(--bf-duration-fast) var(--bf-ease);
}
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) { opacity: 0; }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────────────────────── Hero ───────────────────────── */

.hero {
  background: var(--bf-gradient-cool);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  padding-top: var(--bf-space-9);
  padding-bottom: var(--bf-space-9);
  max-width: 880px;
}
.hero__eyebrow { color: rgba(255, 255, 255, 0.8); }
.hero__headline { margin-bottom: var(--bf-space-5); }
.hero__subhead {
  font-size: 1.125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 0 var(--bf-space-7);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--bf-space-4); margin-bottom: var(--bf-space-7); }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  letter-spacing: 0.01em;
}
.hero__reviews-link {
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  transition: text-decoration-color var(--bf-duration-fast) var(--bf-ease);
}
.hero__reviews-link:hover { text-decoration-color: #fff; }
.hero__reviews-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
.hero__trust-sep { color: rgba(255, 255, 255, 0.5); }

/* ───────────────────────── Reviews modal ───────────────────────── */

.reviews-modal {
  width: min(1000px, calc(100vw - 2 * var(--bf-space-5)));
  max-width: none;
  max-height: calc(100vh - 2 * var(--bf-space-5));
  max-height: calc(100dvh - 2 * var(--bf-space-5));
  padding: 0;
  border: 0;
  border-radius: var(--bf-radius-lg);
  background: var(--bf-canvas);
  color: var(--bf-text-1);
  box-shadow: var(--bf-shadow-lg);
  overflow: hidden;
}
.reviews-modal::backdrop { background: rgba(28, 32, 38, 0.6); backdrop-filter: blur(4px); }
.reviews-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bf-space-4);
  padding: var(--bf-space-4) var(--bf-space-5);
  border-bottom: 1px solid var(--bf-line);
}
.reviews-modal__head .h3 { margin: 0; }
.reviews-modal__close {
  font-size: 1.75rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--bf-radius-pill);
  background: transparent;
  color: var(--bf-text-3);
  cursor: pointer;
  transition: background var(--bf-duration-fast) var(--bf-ease), color var(--bf-duration-fast) var(--bf-ease);
}
.reviews-modal__close:hover { background: var(--bf-canvas-alt); color: var(--bf-text-1); }
.reviews-modal__close:focus-visible { outline: 2px solid var(--bf-teal); outline-offset: 2px; }
.reviews-modal__frame {
  display: block;
  width: 100%;
  height: min(1000px, calc(100vh - 2 * var(--bf-space-5) - 73px));
  height: min(1000px, calc(100dvh - 2 * var(--bf-space-5) - 73px));
  border: 0;
  background: #fff;
}

/* ───────────────────────── Sections ───────────────────────── */

.section { padding: var(--bf-space-9) 0; }
.section--alt { background: var(--bf-canvas-alt); }

.section__head { max-width: 680px; margin-bottom: var(--bf-space-8); }
.section__head .display-l { margin-bottom: var(--bf-space-5); }
.section__lead { font-size: 1.125rem; color: var(--bf-text-3); margin: 0; }

/* ───────────────────────── Grids ───────────────────────── */

.grid { display: grid; gap: var(--bf-space-5); }
.grid--services { grid-template-columns: repeat(3, 1fr); }
.grid--areas { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bf-canvas);
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius-lg);
  padding: var(--bf-space-6);
  transition: transform var(--bf-duration-base) var(--bf-ease),
              box-shadow var(--bf-duration-base) var(--bf-ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--bf-shadow-md); }
.card p { color: var(--bf-text-3); margin: 0; }
.card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  border-radius: var(--bf-radius-md);
  background: var(--bf-canvas-alt);
  margin-bottom: var(--bf-space-4);
}
.section--alt .card { background: #fff; }

/* Areas */
.area {
  background: #fff;
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius-lg);
  padding: var(--bf-space-6);
  text-align: center;
}
.area__city { display: block; font-size: 1.5rem; font-weight: 700; color: var(--bf-ink); letter-spacing: -0.01em; }
.area__state { display: block; font-size: 0.875rem; color: var(--bf-text-4); margin-top: 4px; }
.areas__note { margin-top: var(--bf-space-6); color: var(--bf-text-3); }

/* ───────────────────────── Contact ───────────────────────── */

.section--contact { background: var(--bf-ink); color: #fff; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bf-space-8); align-items: start; }
.contact__lead { font-size: 1.125rem; color: rgba(255, 255, 255, 0.82); margin: var(--bf-space-5) 0 var(--bf-space-7); }
.contact .display-l { margin-bottom: 0; }

.contact__details { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--bf-space-5); }
.contact__details li { display: grid; grid-template-columns: 72px 1fr; gap: var(--bf-space-4); align-items: baseline; }
.contact__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}
.contact__details a { color: var(--bf-cyan); text-decoration: none; font-size: 1.125rem; font-weight: 700; }
.contact__details a:hover { color: #fff; }
.contact__details li span:not(.contact__label) { color: rgba(255, 255, 255, 0.85); }

/* Booking / Housecall Pro card */
.contact__booking { min-height: 320px; }
.booking-card {
  background: #fff;
  border-radius: var(--bf-radius-lg);
  padding: var(--bf-space-8) var(--bf-space-6);
  box-shadow: var(--bf-shadow-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.booking-card__inner { max-width: 320px; }
.booking-card__inner h3 { color: var(--bf-ink); margin: 0 0 var(--bf-space-3); }
.booking-card__lead { color: var(--bf-text-3); margin: 0 0 var(--bf-space-5); }
.booking-card__alt { margin: var(--bf-space-5) 0 0; font-size: 0.875rem; color: var(--bf-text-4); }
.booking-card__alt a { color: var(--bf-teal); font-weight: 700; text-decoration: none; }
.booking-card__alt a:hover { color: var(--bf-teal-hover); text-decoration: underline; text-underline-offset: 3px; }

/* Housecall Pro injects its own button styles — override to match .bf-btn-primary */
button.hcp-button {
  font-family: var(--bf-font-sans) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 12px 24px !important;
  border-radius: var(--bf-radius-md) !important;
  border: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--bf-gradient-cool) !important;
  color: var(--bf-ink-inverse) !important;
  box-shadow: var(--bf-shadow-md);
  transition: transform var(--bf-duration-fast) var(--bf-ease),
              box-shadow var(--bf-duration-base) var(--bf-ease);
}
button.hcp-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--bf-shadow-lg);
  background: var(--bf-gradient-cool) !important;
  color: #fff !important;
}

/* ───────────────────────── Footer ───────────────────────── */

.site-footer { background: var(--bf-ink); color: #fff; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: var(--bf-space-7) 0; }
.site-footer__inner { text-align: center; display: grid; gap: var(--bf-space-4); justify-items: center; }
.site-footer__tag { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 1rem; }
.site-footer__legal { margin: 0; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.5); }

/* ───────────────────────── Responsive ───────────────────────── */

@media (max-width: 860px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: var(--bf-space-7); }
  .site-header__toggle { display: flex; }
  .site-header__cta { margin-left: auto; }

  /* Nav collapses into a dropdown panel under the header bar */
  .site-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 0;
    background: var(--bf-canvas);
    border-bottom: 1px solid var(--bf-line);
    box-shadow: var(--bf-shadow-lg);
  }
  .site-header.is-open .site-header__nav { display: flex; }
  .site-header__nav a {
    display: block;
    padding: 14px var(--bf-space-5);
    font-size: 1.0625rem;
  }
  .site-header__nav a:hover,
  .site-header__nav a:focus-visible { background: var(--bf-canvas-alt); outline: none; }
}

@media (max-width: 560px) {
  .grid--services, .grid--areas { grid-template-columns: 1fr; }
  .site-header__cta { display: none; }
  .site-header__toggle { margin-left: auto; }
  .site-header__nav-call { display: block; color: var(--bf-teal); border-top: 1px solid var(--bf-line); margin-top: 8px; padding-top: 18px; }
  .hero__actions .bf-btn { flex: 1; justify-content: center; }
}

/* ───────────────────────── Motion preferences ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ───────────────────────── Careers page ───────────────────────── */

.hero--compact .hero__inner { padding-top: var(--bf-space-8); padding-bottom: var(--bf-space-8); }
.hero--compact .hero__actions { margin-bottom: 0; }

/* Job listings */
.jobs { display: grid; gap: var(--bf-space-5); }

.job {
  background: #fff;
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius-lg);
  padding: var(--bf-space-6);
}
.job__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--bf-space-5);
  margin-bottom: var(--bf-space-4);
}
.job__title { font-size: 1.5rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
.job__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.9rem;
  color: var(--bf-text-3);
}
.job__meta li + li::before { content: "·"; margin-right: 14px; color: var(--bf-text-4); }
.job__apply { flex-shrink: 0; }
.job__summary { color: var(--bf-text-2); margin: 0 0 var(--bf-space-4); }

.job__details { border-top: 1px solid var(--bf-line); padding-top: var(--bf-space-4); }
.job__details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--bf-teal);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.job__details summary::-webkit-details-marker { display: none; }
.job__details summary::before {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--bf-duration-fast) var(--bf-ease);
}
.job__details[open] summary::before { transform: rotate(45deg); }
.job__details summary:hover { color: var(--bf-teal-hover); }
.job__details summary:focus-visible { outline: 2px solid var(--bf-teal); outline-offset: 3px; border-radius: 2px; }

.job__body { padding-top: var(--bf-space-4); color: var(--bf-text-2); max-width: 760px; }
.job__body h4 { font-size: 1.125rem; font-weight: 700; color: var(--bf-ink); margin: var(--bf-space-5) 0 8px; }
.job__body h5 {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bf-text-3);
  margin: var(--bf-space-4) 0 6px;
}
.job__body ul { margin: 0; padding-left: 1.25em; display: grid; gap: 6px; }
.job__body p { margin: 0 0 var(--bf-space-4); }
.job__terms { color: var(--bf-text-3); }
.job__terms strong { color: var(--bf-ink); }

/* Apply section — dark, mirrors the contact section on the home page */
.section--apply { background: var(--bf-ink); color: #fff; }
.apply { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--bf-space-8); align-items: start; }
.apply .display-l { margin-bottom: 0; }
.apply__lead { font-size: 1.125rem; color: rgba(255, 255, 255, 0.82); margin: var(--bf-space-5) 0 var(--bf-space-7); }

.apply-form {
  background: #fff;
  color: var(--bf-text-1);
  border-radius: var(--bf-radius-lg);
  padding: var(--bf-space-6);
  box-shadow: var(--bf-shadow-lg);
  display: grid;
  gap: var(--bf-space-4);
}
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bf-space-4); }
.field label { font-weight: 700; font-size: 0.95rem; }
.field__hint { font-weight: 400; color: var(--bf-text-4); font-size: 0.85rem; margin-left: 6px; }

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--bf-text-1);
  background: var(--bf-canvas);
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius-md);
  padding: 10px 12px;
  width: 100%;
  transition: border-color var(--bf-duration-fast) var(--bf-ease), box-shadow var(--bf-duration-fast) var(--bf-ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bf-teal);
  box-shadow: 0 0 0 3px rgba(0, 151, 167, 0.2);
}
.field input[type="file"] { padding: 8px 12px; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 700;
  color: var(--bf-teal);
  background: #fff;
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius-md);
  padding: 6px 12px;
  margin-right: 12px;
  cursor: pointer;
}

/* Honeypot: off-screen, not display:none so naive bots still see it */
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.apply-form__status {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--bf-radius-md);
  font-size: 0.95rem;
}
.apply-form__status--ok { background: rgba(0, 151, 167, 0.1); color: var(--bf-teal-hover); }
.apply-form__status--error { background: rgba(255, 35, 18, 0.08); color: #B81A0E; }

.apply-form__submit { justify-content: center; }
.apply-form__submit:disabled { opacity: 0.7; cursor: progress; transform: none; }
.apply-form__fine { margin: 0; font-size: 0.8125rem; color: var(--bf-text-4); text-align: center; }

@media (max-width: 860px) {
  .apply { grid-template-columns: 1fr; gap: var(--bf-space-7); }
}

@media (max-width: 560px) {
  .job { padding: var(--bf-space-5); }
  .job__head { flex-direction: column; }
  .job__apply { width: 100%; justify-content: center; }
  .field-row { grid-template-columns: 1fr; }
  .apply-form { padding: var(--bf-space-5); }
}
