/* HotFix Pro design system — Part 4
   White-first visual system with restrained logo-derived orange and navy accents. */
:root {
  color-scheme: light;
  --color-white: #fff;
  --color-canvas: #fff;
  --color-surface: #f6f8fb;
  --color-surface-strong: #eef2f6;
  --color-ink: #10233f;
  --color-ink-soft: #31445d;
  --color-muted: #64748b;
  --color-navy: #082b50;
  --color-navy-deep: #061c35;
  --color-orange: #ff6500;
  --color-orange-dark: #e85600;
  --color-red: #e52d18;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-success: #16794b;
  --shadow-sm: 0 4px 14px rgba(8, 43, 80, .07);
  --shadow-md: 0 16px 38px rgba(8, 43, 80, .12);
  --shadow-lg: 0 26px 70px rgba(3, 18, 38, .24);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container: 1180px;
  --header-height: 82px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-standard: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--color-ink);
  background: var(--color-canvas);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid rgba(255, 101, 0, .75); outline-offset: 3px; }
::selection { color: var(--color-white); background: var(--color-navy); }

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  background: var(--color-navy);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--color-orange-dark);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow::before { width: 24px; height: 2px; background: currentColor; content: ""; }
.section { padding-block: clamp(64px, 8vw, 104px); }
.section--soft { background: var(--color-surface); }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading h2 { margin: 0 0 14px; color: var(--color-ink); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.04em; }
.section-heading p { margin: 0; color: var(--color-muted); font-size: 1.05rem; }

/* Utility bar */
.utility-bar {
  color: rgba(255,255,255,.88);
  background: var(--color-navy-deep);
  font-size: .78rem;
  letter-spacing: .015em;
}
.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 18px; }
.utility-bar__message { display: inline-flex; align-items: center; gap: 9px; }
.utility-bar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-orange); box-shadow: 0 0 0 4px rgba(255,101,0,.14); }
.utility-bar__phone { color: var(--color-white); font-weight: 800; white-space: nowrap; }
.utility-bar__phone:hover { color: #ffb27d; }

/* Main header and desktop navigation */
.site-header { position: relative; z-index: 1000; background: var(--color-white); border-bottom: 1px solid var(--color-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); gap: 30px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; width: 190px; }
.brand__logo { width: 100%; max-height: 72px; object-fit: contain; object-position: left center; }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); margin-left: auto; }
.primary-nav__link,
.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--color-ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: .91rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color .18s ease;
}
.primary-nav__link:hover,
.nav-dropdown__trigger:hover,
.primary-nav__link[aria-current="page"] { color: var(--color-orange-dark); }
.nav-dropdown { position: relative; }
.nav-dropdown__trigger { gap: 8px; }
.nav-dropdown__chevron { width: 15px; height: 15px; transition: transform .22s var(--ease-standard); }
.nav-dropdown__trigger[aria-expanded="true"] .nav-dropdown__chevron { transform: rotate(180deg); }
.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  width: min(340px, calc(100vw - 40px));
  padding: 18px;
  transform: translate(-50%, 8px);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s var(--ease-standard), visibility .18s;
}
.nav-dropdown__panel[data-open="true"] { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.nav-dropdown__heading { margin: 0 0 12px; color: var(--color-muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nav-dropdown__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.nav-dropdown__link { display: block; padding: 8px 9px; border-radius: 8px; color: var(--color-ink-soft); font-size: .88rem; font-weight: 600; transition: background .16s ease, color .16s ease; }
.nav-dropdown__link:hover { color: var(--color-orange-dark); background: #fff4ec; }
.nav-dropdown__all { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 10px 2px; border-top: 1px solid var(--color-border); color: var(--color-navy); font-size: .87rem; font-weight: 800; }
.nav-dropdown__all:hover { color: var(--color-orange-dark); }
.header-call { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 46px; padding: 0 21px; border-radius: var(--radius-pill); color: var(--color-white); background: var(--color-orange); box-shadow: 0 7px 18px rgba(255,101,0,.2); font-size: .9rem; font-weight: 800; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.header-call:hover { transform: translateY(-2px); background: var(--color-orange-dark); box-shadow: 0 10px 22px rgba(255,101,0,.26); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: 12px; color: var(--color-navy); background: var(--color-white); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-call { display: none; }

/* Premium hero treatment */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 62vw, 690px);
  overflow: hidden;
  isolation: isolate;
  color: var(--color-white);
  background-color: var(--color-navy-deep);
  background-position: center 42%;
  background-size: cover;
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 22, 43, .91) 0%, rgba(5, 27, 51, .78) 48%, rgba(5, 27, 51, .35) 100%), linear-gradient(0deg, rgba(3, 17, 34, .42), transparent 42%);
  content: "";
}
.hero__content { width: min(760px, 72%); padding-block: 88px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; color: #ffb37e; font-size: .79rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero__eyebrow::before { width: 30px; height: 2px; background: var(--color-orange); content: ""; }
.hero h1 { max-width: 760px; margin: 0 0 22px; color: var(--color-white); font-size: clamp(2.8rem, 6.4vw, 5.3rem); font-weight: 850; line-height: .99; letter-spacing: -.055em; text-wrap: balance; }
.hero h1 span { color: #ff8a3d; }
.hero__copy { max-width: 630px; margin: 0; color: rgba(255,255,255,.87); font-size: clamp(1.02rem, 1.65vw, 1.18rem); line-height: 1.75; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius-pill); font-size: .94rem; font-weight: 800; line-height: 1.2; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: var(--color-white); background: var(--color-orange); box-shadow: 0 10px 24px rgba(255,101,0,.24); }
.button--primary:hover { background: var(--color-orange-dark); }
.button--secondary { border-color: rgba(255,255,255,.58); color: var(--color-white); background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.button--secondary:hover { border-color: var(--color-white); background: rgba(255,255,255,.16); }
.hero__proof { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 34px; color: rgba(255,255,255,.83); font-size: .85rem; font-weight: 650; }
.hero__proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero__check { display: inline-grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: var(--color-navy); background: #ffb37e; font-size: .72rem; font-weight: 900; }

/* Reusable surfaces and content cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.content-card { overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); box-shadow: var(--shadow-sm); }
.content-card__body { padding: 24px; }
.content-card h3 { margin: 0 0 9px; color: var(--color-ink); font-size: 1.15rem; line-height: 1.3; }
.content-card p { margin: 0; color: var(--color-muted); font-size: .94rem; }
.content-card__image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 17px; color: var(--color-orange-dark); font-size: .9rem; font-weight: 800; }
.text-link:hover { color: var(--color-navy); }

/* Footer */
.site-footer { padding: 56px 0 24px; color: rgba(255,255,255,.78); background: var(--color-navy-deep); }
.site-footer__grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr; gap: 50px; padding-bottom: 42px; }
.site-footer__brand { width: 185px; padding: 8px 10px; border-radius: 12px; background: var(--color-white); }
.site-footer__intro { max-width: 360px; margin: 18px 0 0; color: rgba(255,255,255,.7); font-size: .92rem; }
.site-footer h2 { margin: 0 0 15px; color: var(--color-white); font-size: .95rem; }
.site-footer__links { display: grid; gap: 10px; }
.site-footer__links a { color: rgba(255,255,255,.72); font-size: .9rem; }
.site-footer__links a:hover { color: #ff9b5b; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.55); font-size: .78rem; }

/* Design preview-only elements */
.preview-banner { padding: 18px 0; border-bottom: 1px solid var(--color-border); background: #fffaf6; }
.preview-banner p { margin: 0; color: var(--color-ink-soft); font-size: .88rem; }
.preview-banner strong { color: var(--color-orange-dark); }
.design-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.design-note { padding: 22px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); }
.design-note h3 { margin: 0 0 8px; font-size: 1rem; }
.design-note p { margin: 0; color: var(--color-muted); font-size: .9rem; }
.swatches { display: flex; gap: 9px; margin-top: 16px; }
.swatch { width: 34px; height: 34px; border: 1px solid rgba(16,35,63,.12); border-radius: 50%; }

@media (max-width: 1080px) {
  :root { --header-height: 76px; }
  .container { width: min(calc(100% - 40px), var(--container)); }
  .brand { width: 168px; }
  .primary-nav { gap: 17px; }
  .primary-nav__link, .nav-dropdown__trigger { font-size: .86rem; }
  .header-call { min-height: 43px; padding-inline: 17px; }
}

@media (max-width: 900px) {
  body.menu-open { overflow: hidden; }
  .utility-bar__inner { min-height: 34px; }
  .site-header__inner { min-height: 72px; }
  .brand { width: 174px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-call--desktop { display: none; }
  .primary-nav {
    position: fixed;
    z-index: 1200;
    top: calc(34px + 72px);
    right: 0;
    bottom: 0;
    display: flex;
    width: min(420px, 100%);
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 24px 24px calc(30px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-left: 1px solid var(--color-border);
    background: var(--color-white);
    box-shadow: -18px 0 48px rgba(8,43,80,.12);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .28s var(--ease-standard), visibility .28s;
  }
  .primary-nav[data-open="true"] { transform: translateX(0); visibility: visible; }
  .primary-nav__link, .nav-dropdown__trigger { width: 100%; min-height: 52px; justify-content: space-between; padding: 0 10px; border-bottom: 1px solid var(--color-border); font-size: 1rem; text-align: left; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown__trigger { cursor: pointer; }
  .nav-dropdown__panel {
    position: static;
    width: 100%;
    max-height: 0;
    margin: 0;
    padding: 0 10px;
    overflow: hidden;
    transform: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transition: max-height .28s ease, padding .28s ease;
  }
  .nav-dropdown__panel[data-open="true"] { max-height: 470px; padding-block: 14px; transform: none; }
  .nav-dropdown__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-dropdown__all { margin-top: 10px; padding-top: 13px; }
  .mobile-call { display: inline-flex; width: 100%; margin-top: 18px; }
  .header-call { min-height: 50px; }
  .hero { min-height: 590px; background-position: 58% center; }
  .hero__content { width: min(690px, 84%); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__intro-wrap { grid-column: 1 / -1; }
  .design-notes { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .utility-bar { font-size: .69rem; }
  .utility-bar__inner { min-height: 34px; gap: 10px; }
  .utility-bar__message { gap: 7px; }
  .utility-bar__phone { font-size: .72rem; }
  .utility-bar__message span:last-child { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-header__inner { min-height: 68px; gap: 12px; }
  .brand { width: 148px; }
  .brand__logo { max-height: 62px; }
  .menu-toggle { width: 43px; height: 43px; }
  .primary-nav { top: 102px; width: 100%; padding-inline: 20px; }
  .hero { min-height: 620px; align-items: flex-end; background-position: 61% center; }
  .hero::before { background: linear-gradient(90deg, rgba(4,22,43,.88), rgba(5,27,51,.58)), linear-gradient(0deg, rgba(3,17,34,.72), rgba(3,17,34,.08) 80%); }
  .hero__content { width: 100%; padding-block: 72px 64px; }
  .hero__eyebrow { margin-bottom: 17px; font-size: .7rem; }
  .hero h1 { margin-bottom: 17px; font-size: clamp(2.45rem, 12vw, 3.65rem); line-height: 1.02; }
  .hero__copy { font-size: .98rem; line-height: 1.65; }
  .hero__actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 25px; }
  .button { width: 100%; min-height: 51px; }
  .hero__proof { gap: 12px 17px; margin-top: 25px; font-size: .78rem; }
  .section { padding-block: 58px; }
  .section-heading { margin-bottom: 25px; }
  .section-heading h2 { font-size: clamp(1.85rem, 9vw, 2.5rem); }
  .section-heading p { font-size: .96rem; }
  .card-grid, .design-notes { grid-template-columns: 1fr; }
  .content-card__body { padding: 21px; }
  .site-footer { padding-top: 44px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .site-footer__intro-wrap { grid-column: 1 / -1; }
  .site-footer__brand { width: 166px; }
  .site-footer__bottom { flex-direction: column; gap: 7px; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 26px); }
  .brand { width: 134px; }
  .utility-bar__message span:last-child { max-width: 140px; }
  .hero { min-height: 600px; }
  .hero h1 { font-size: 2.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* The dropdown stays in the accessibility tree only while expanded. */
.nav-dropdown__panel[aria-hidden="true"] { pointer-events: none; }
