/* ==========================================================================
   PAC Air conditioning Specialists – landing page
   Palette from brochure: navy on white, lilac-grey chevrons / icon circles.
   Headings: Times New Roman Bold · Body: Aptos
   ========================================================================== */

@font-face { font-family: "Aptos"; src: url("../fonts/aptos-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Aptos"; src: url("../fonts/aptos-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Times New Roman"; src: url("../fonts/times-new-roman-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Times New Roman"; src: url("../fonts/times-new-roman-bold-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --navy: #31296d;
  --navy-deep: #262057;
  --lilac: #676883;          /* chevron grey-lilac */
  --lilac-circle: #c2c2d5;   /* contact icon circles */
  --lilac-pale: #eeeef5;
  --lilac-line: #d9d9e6;
  --white: #fff;

  --font-body: "Aptos", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Times New Roman", Times, "Liberation Serif", serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 84px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--navy);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
p { margin: 0 0 1rem; }
strong, dt { font-weight: 700; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; color: var(--navy); }
h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; margin: 0 0 .5rem; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }

.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.lead-italic { font-weight: 700; font-style: italic; font-size: 1.125rem; margin-bottom: 1.25rem; }
.emphasis { font-weight: 700; font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .8rem 1.4rem; border: 2px solid transparent; border-radius: var(--radius);
  font: 400 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--solid:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--lilac-pale); border-color: var(--lilac-pale); }
.btn--outline-light { color: #fff; border-color: rgba(255,255,255,.75); }
.btn--outline-light:hover { background: #fff; color: var(--navy); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 2px 18px rgba(49,41,109,.14); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: calc(var(--header-h) - 20px); width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav ul a { position: relative; text-decoration: none; font-weight: 700; font-size: .95rem; padding: 6px 0; }
.main-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lilac); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); }
.nav-cta { padding: .6rem 1rem; font-size: .92rem; white-space: nowrap; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius); }
.nav-toggle span { display: block; width: 24px; height: 2.5px; margin: 5px auto; background: var(--navy); transition: transform .25s, opacity .2s; }
.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; min-height: clamp(520px, 82vh, 760px); display: flex; align-items: stretch; overflow: hidden; background: var(--navy); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__inner { position: relative; display: flex; }
.hero__panel {
  align-self: stretch; display: flex; flex-direction: column; justify-content: center;
  width: min(640px, 100%); padding: clamp(32px, 6vw, 72px) clamp(24px, 4vw, 56px);
  background: rgba(49, 41, 109, .84); color: #fff;
  margin-left: calc(-1 * var(--gutter)); padding-left: calc(var(--gutter) + 8px);
}
@media (min-width: 1260px) { .hero__panel { margin-left: 0; padding-left: 56px; } }
.hero h1 {
  color: #fff; font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: .09em; line-height: 1.22; margin-bottom: 1.25rem;
}
.hero__sub { font-weight: 700; font-style: italic; font-size: 1.125rem; margin-bottom: 1.75rem; color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__block { position: absolute; left: 0; bottom: 0; width: clamp(60px, 12vw, 160px); height: 28px; background: var(--navy); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--lilac-pale); }
.section-head { max-width: 760px; margin-bottom: 2rem; }
.section-head p:last-child { margin-bottom: 0; }

/* chevron bullets (brochure artwork) */
.chevrons li, .chevron-p {
  position: relative; padding-left: 36px; margin-bottom: .7rem;
}
.chevrons li::before, .chevron-p::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 22px; height: 25px;
  background: url("../img/chevron.png") center / contain no-repeat;
}

/* ---------- About ---------- */
.about__intro { display: grid; gap: 40px; align-items: center; margin-bottom: 56px; }
.about__text p { max-width: 62ch; }
.overlap-photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.overlap-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.overlap-photo__tint { position: absolute; left: 6%; top: 0; bottom: 0; width: 38%; background: rgba(49, 41, 109, .55); }
.about__grid { display: grid; gap: 40px 48px; }
.about__col h3 { margin-bottom: .8em; }
.about__col--insurance { background: var(--lilac-pale); padding: 28px; border-radius: var(--radius); align-self: start; }
.about__col--insurance p { font-weight: 700; }
.brands { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--lilac-line); }
.brands > p { max-width: 62ch; }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 24px; }
.logo-strip img { height: 44px; width: auto; max-width: 150px; object-fit: contain; mix-blend-mode: multiply; }
.logo-strip li:nth-child(7) img { height: 56px; }

/* ---------- Services ---------- */
.services h3 { margin-top: .5rem; }
.cards { display: grid; gap: 20px; margin-top: 24px; }
.card { background: #fff; border-radius: var(--radius); padding: 28px 28px 20px; border-top: 4px solid var(--navy); box-shadow: 0 1px 0 var(--lilac-line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(49,41,109,.14); }
.card h4 { font-size: 1.15rem; margin-bottom: .8rem; }
.card .chevron-p { margin-bottom: .5rem; }
.card--feature { background: var(--navy); color: #fff; border-top-color: var(--lilac); }
.card--feature .chevron-p::before { filter: brightness(0) invert(1); opacity: .85; }

/* ---------- Values + Clients ---------- */
.values-clients__grid { display: grid; gap: 56px; }
.values-clients h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.values { display: grid; gap: 18px; }
.values dt { font-size: 1.05rem; }
.values dd { margin-top: 2px; }
.values > div { padding-left: 18px; border-left: 3px solid var(--lilac-circle); }
.client-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.client-logos li { display: flex; align-items: center; justify-content: center; height: 110px; padding: 14px 18px; background: #fff; border: 1px solid var(--lilac-line); border-radius: var(--radius); transition: box-shadow .25s, transform .25s; }
.client-logos li:hover { box-shadow: 0 8px 22px rgba(49,41,109,.12); transform: translateY(-2px); }
.client-logos img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- Vision & Mission ---------- */
.vision { position: relative; background: var(--navy); color: #fff; display: grid; }
.vision__inner { display: flex; align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.vision h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: .4em; }
.vision p { max-width: 46ch; margin-bottom: 2rem; font-size: 1.125rem; }
.vision p:last-child { margin-bottom: 0; }
.vision__photo { min-height: 320px; }
.vision__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- Why Choose Us ---------- */
.advantages { display: grid; gap: 32px 48px; margin-top: 24px; }
.advantage h4 { position: relative; padding-left: 36px; font-size: 1.1rem; }
.advantage h4::before { content: ""; position: absolute; left: 0; top: -.05em; width: 22px; height: 25px; background: url("../img/chevron.png") center / contain no-repeat; }
.advantage p { margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--lilac-pale); }
.contact__grid { display: grid; gap: 48px; align-items: start; }
.contact h2 { margin-bottom: .7em; }
.contact-list { display: grid; gap: 20px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--lilac-circle); color: #fff; }
.ico .icon { width: 22px; height: 22px; }
.contact-list a { text-decoration: none; overflow-wrap: anywhere; }
.contact-list a[href^="tel:"] { white-space: nowrap; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-list address { font-style: normal; }
.sep { margin-inline: .5em; color: var(--lilac); }

.contact-form { background: #fff; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); border-top: 4px solid var(--navy); box-shadow: 0 14px 40px rgba(49,41,109,.12); }
.contact-form h3 { font-family: var(--font-body); font-size: 1.25rem; margin-bottom: .2rem; }
.form-note { color: var(--lilac); margin-bottom: 1.4rem; }
.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 0 16px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; font: inherit; color: var(--navy);
  background: #fff; border: 1.5px solid var(--lilac-circle); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(49,41,109,.18); }
.field.has-error input, .field.has-error textarea { border-color: #a1232b; }
.field-error { display: block; margin-top: 4px; font-size: .875rem; color: #a1232b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; min-height: 1.5em; font-weight: 700; }
.form-status.is-ok { color: var(--navy); }
.form-status.is-error { color: #a1232b; }

/* ---------- Banner + Footer ---------- */
.banner { position: relative; height: clamp(200px, 28vw, 340px); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.banner__tint { position: absolute; top: 0; bottom: 0; left: 50%; width: 40%; background: rgba(49, 41, 109, .55); }

.site-footer { background: var(--navy); color: #fff; padding-block: 36px 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.footer-logo img { height: 110px; width: auto; }
.reg { text-align: right; font-size: .85rem; line-height: 1.7; }
.reg > div { display: block; }
.reg dt { display: inline; font-weight: 700; }
.reg dd { display: inline; margin-left: .3em; }

/* ---------- Mobile quick-call bar ---------- */
.call-bar { display: none; }

/* ---------- Reveal-on-scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(3n+2), .js .advantages .reveal:nth-child(2n) { transition-delay: .08s; }
.js .cards .reveal:nth-child(3n), .js .advantages .reveal:nth-child(3n) { transition-delay: .16s; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .advantages { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .client-logos { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .about__intro { grid-template-columns: 1.1fr .9fr; }
  .about__grid { grid-template-columns: 1fr 1fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .advantages { grid-template-columns: repeat(3, 1fr); }
  .values-clients__grid { grid-template-columns: 1fr 1.1fr; gap: 72px; }
  .contact__grid { grid-template-columns: 1fr 1.05fr; gap: 72px; }
  .vision { grid-template-columns: 1fr 1fr; min-height: clamp(420px, 40vw, 780px); }
  .vision__photo { position: relative; min-height: 0; }
  .vision__photo img { position: absolute; inset: 0; object-position: 50% 40%; }
  .vision__inner { justify-self: end; width: 100%; max-width: calc(var(--container) / 2 + var(--gutter)); padding-right: 48px; }
}
@media (max-width: 1000px) {
  .main-nav ul { gap: 18px; }
  .main-nav { gap: 18px; }
}
@media (max-width: 899px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px var(--gutter) 24px; box-shadow: 0 16px 28px rgba(49,41,109,.14);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--lilac-line); font-size: 1.05rem; }
  .main-nav ul a::after { display: none; }
  .nav-cta { margin-top: 18px; justify-content: center; }
  .hero { min-height: 640px; align-items: flex-end; }
  .hero h1 { font-size: 1.75rem; letter-spacing: .07em; margin-bottom: 1rem; }
  .hero__sub { font-size: 1rem; margin-bottom: 1.4rem; }
  .hero__panel { padding-block: 28px 32px; }
  .hero__panel { width: 100%; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); width: calc(100% + var(--gutter) * 2); padding-left: var(--gutter); padding-right: var(--gutter); background: rgba(49,41,109,.88); }
  .hero__inner { padding-inline: var(--gutter); }
  .hero__block { display: none; }
  .vision__photo { height: 300px; }
  .reg { text-align: left; }
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    box-shadow: 0 -4px 18px rgba(49,41,109,.22); padding-bottom: env(safe-area-inset-bottom);
    background: var(--navy);
  }
  .call-bar a { display: flex; align-items: center; justify-content: center; gap: .5em; padding: 15px 10px; color: #fff; text-decoration: none; font-weight: 700; }
  .call-bar__em { background: #fff; color: var(--navy) !important; }
  body { padding-bottom: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .call-bar, .contact-form, .banner { display: none; } }
