/* =========================================================
   Classic Air & Mechanical Services — Adelaide
   cool precision: deep navy + sky blue + cool paper, Sora + Inter
   brand mark: CMS roundel (navy / sky / white)
   ========================================================= */

:root {
  --navy:      #0E2C4F;
  --navy-2:    #122f55;
  --navy-3:    #1a3f6b;
  --ink:       #122336;
  --sky:       #2EA8E6;
  --sky-2:     #1d8fd1;
  --sky-soft:  #cfe8f8;
  --paper:     #f3f7fb;
  --paper-2:   #e9f0f7;
  --steel:     #708399;
  --steel-d:   #46586d;
  --line-lt:   #d8e2ec;
  --line-dk:   rgba(255,255,255,0.13);
  --white:     #ffffff;

  --display: "Sora", system-ui, -apple-system, sans-serif;
  --body:    "Inter", system-ui, -apple-system, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(64px, 9vw, 124px);
  --max: 1280px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--sky); color: #fff; }

.sky { color: var(--sky); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--sky); color: var(--navy); padding: 12px 16px; z-index: 200; font-weight: 700; }
.skip:focus { left: 14px; top: 14px; }

/* ---------- brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__logo { height: 42px; width: 42px; display: block; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__word strong { font-family: var(--display); font-weight: 700; font-size: 17px; color: #fff; letter-spacing: -0.01em; }
.brand__word em { font-style: normal; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); margin-top: 4px; font-weight: 600; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 13px var(--gutter);
  background: color-mix(in oklab, var(--navy) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dk);
}
.nav__links { display: flex; gap: 30px; justify-content: center; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; }
.nav__links a { color: color-mix(in oklab, #fff 76%, transparent); text-decoration: none; padding: 6px 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__call {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  color: var(--navy); background: var(--sky); padding: 10px 18px; border-radius: 8px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease); white-space: nowrap;
}
.nav__call svg { width: 17px; height: 17px; fill: none; stroke: var(--navy); stroke-width: 1.9; }
.nav__call:hover { background: #fff; transform: translateY(-1px); }
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 0 10px; background: transparent;
  border: 1px solid var(--line-dk); border-radius: 8px; cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; gap: 12px; }
  .nav__links, .nav__call { display: none; }
  .nav__toggle { display: flex; }
}

/* ---------- mobile menu drawer ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 80; visibility: hidden; display: none; }
.mobile-menu.is-open { visibility: visible; display: block; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(7,18,32,.66); opacity: 0; transition: opacity .35s var(--ease); }
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(340px, 87vw);
  background: var(--navy-2); border-left: 1px solid var(--line-dk);
  padding: 80px 28px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 26px;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__close { position: absolute; top: 16px; right: 18px; width: 42px; height: 42px; background: transparent; border: none; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__links a {
  font-family: var(--display); font-weight: 700; font-size: 24px;
  color: #fff; text-decoration: none; padding: 12px 0;
  border-bottom: 1px solid var(--line-dk);
}
.mobile-menu__links a:hover { color: var(--sky); }
.mobile-menu__cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.mobile-menu__cta .btn { justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu__backdrop, .mobile-menu__panel, .nav__toggle span { transition: none !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: 0.005em;
  text-decoration: none; padding: 14px 24px; border-radius: 10px; border: 2px solid transparent;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn--sky { background: var(--sky); color: var(--navy); box-shadow: 0 10px 26px -12px color-mix(in oklab, var(--sky) 80%, transparent); }
.btn--sky:hover { background: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: color-mix(in oklab, #fff 36%, transparent); }
.btn--ghost:hover { border-color: #fff; background: color-mix(in oklab, #fff 8%, transparent); }
.btn--big { font-size: 16px; padding: 17px 30px; }

/* ---------- section heads ---------- */
.sec-head { max-width: var(--max); margin: 0 auto clamp(36px, 5vw, 56px); }
.sec-eyebrow {
  font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sky-2); margin: 0 0 16px; display: inline-flex; align-items: center; gap: 12px;
}
.sec-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--sky); }
.sec-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.02em;
  margin: 0; max-width: 18ch; color: var(--ink);
}
.sec-title--light { color: #fff; }
.sec-sub { margin: 18px 0 0; max-width: 56ch; font-size: clamp(15px, 1.4vw, 17px); color: var(--steel-d); line-height: 1.6; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; min-height: min(92vh, 780px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, var(--navy) 3%, color-mix(in oklab, var(--navy) 42%, transparent) 48%, color-mix(in oklab, var(--navy) 8%, transparent) 86%),
    linear-gradient(to right, color-mix(in oklab, var(--navy) 82%, transparent), transparent 64%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(44px, 6vw, 76px); }
.hero__eyebrow { font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in oklab, #fff 80%, transparent); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 12px; }
.hero__eyebrow::before { content: ""; width: 30px; height: 3px; border-radius: 3px; background: var(--sky); }
.hero__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(38px, 6.6vw, 82px); line-height: 1.0; letter-spacing: -0.025em;
  margin: 0 0 22px; max-width: 16ch; text-shadow: 0 2px 36px color-mix(in oklab, var(--navy) 70%, transparent);
}
.hero__lede { max-width: 56ch; font-size: clamp(15.5px, 1.4vw, 18px); color: color-mix(in oklab, #fff 88%, transparent); margin: 0 0 30px; line-height: 1.62; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- trust bar ---------- */
.trust {
  background: var(--navy-2); color: #fff;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-dk);
}
.trust__item { padding: clamp(22px, 3vw, 34px) var(--gutter); border-left: 1px solid var(--line-dk); display: flex; flex-direction: column; gap: 5px; }
.trust__item:first-child { border-left: none; }
.trust__big { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.9vw, 23px); letter-spacing: -0.01em; }
.trust__sm { font-size: 13.5px; color: color-mix(in oklab, #fff 64%, transparent); font-weight: 500; }
@media (max-width: 760px) {
  .trust { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(odd) { border-left: none; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line-dk); }
}

/* ---------- services ---------- */
.services { padding: var(--section-y) var(--gutter); background: var(--paper); }
.svc-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-lt); border: 1px solid var(--line-lt); border-radius: 16px; overflow: hidden; }
.svc { background: var(--white); padding: clamp(26px, 3.4vw, 46px); display: flex; flex-direction: column; gap: 10px; transition: background 0.3s var(--ease); position: relative; }
.svc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sky); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.svc:hover { background: var(--paper-2); }
.svc:hover::before { transform: scaleY(1); }
.svc__no { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--sky-2); line-height: 1; }
.svc__name { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 1.9vw, 25px); margin: 6px 0 0; letter-spacing: -0.015em; color: var(--ink); }
.svc__desc { margin: 0; font-size: 15.5px; color: var(--steel-d); line-height: 1.62; max-width: 46ch; }
.svc-note { max-width: var(--max); margin: clamp(28px, 4vw, 40px) auto 0; text-align: center; font-size: 15.5px; color: var(--steel-d); }
.svc-note a { color: var(--sky-2); font-weight: 700; text-decoration: none; white-space: nowrap; }
.svc-note a:hover { text-decoration: underline; }
@media (max-width: 680px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- why (dark, image + text) ---------- */
.why { background: var(--navy); color: #fff; padding: var(--section-y) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 76px); align-items: center; max-width: none; }
.why > * { }
.why__media { margin: 0; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 4.2; border: 1px solid var(--line-dk); max-width: var(--max); }
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why__text { max-width: 620px; }
.why__para { color: color-mix(in oklab, #fff 86%, transparent); font-size: 16px; line-height: 1.72; margin: 22px 0 24px; max-width: 54ch; }
.why__list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 13px; }
.why__list li { position: relative; padding-left: 30px; color: color-mix(in oklab, #fff 90%, transparent); font-weight: 500; }
.why__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 15px; border-radius: 50%; background: var(--sky); box-shadow: inset 0 0 0 3px var(--navy); }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } .why__media { aspect-ratio: 16 / 11; } }

/* ---------- recent jobs ---------- */
.jobs { padding: var(--section-y) var(--gutter); background: var(--paper); }
.jobs-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 26px); }
.job { background: var(--white); border: 1px solid var(--line-lt); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.job:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px color-mix(in oklab, var(--navy) 50%, transparent); }
.job__media { margin: 0; aspect-ratio: 16 / 11; overflow: hidden; background: var(--paper-2); }
.job__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.job:hover .job__media img { transform: scale(1.05); }
.job__body { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 8px; }
.job__title { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.7vw, 21px); margin: 0; color: var(--ink); letter-spacing: -0.01em; }
.job__desc { margin: 0; font-size: 15px; color: var(--steel-d); line-height: 1.6; }
@media (max-width: 880px) { .jobs-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- gallery (dark) ---------- */
.work { padding: var(--section-y) var(--gutter); background: var(--navy-2); }
.work .sec-head { color: #fff; }
.work-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(168px, 19vw, 250px); gap: 14px; }
.work__item { margin: 0; overflow: hidden; border-radius: 14px; background: var(--navy-3); border: 1px solid var(--line-dk); }
.work__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.work__item:hover img { transform: scale(1.05); }
.work__item--tall { grid-row: span 2; }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .work__item { aspect-ratio: 4 / 3; }
  .work__item--tall { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}

/* ---------- contact (dark) ---------- */
.contact { background: var(--navy); color: #fff; padding: var(--section-y) var(--gutter); }
.contact__text { max-width: var(--max); margin: 0 auto; }
.contact__lede { max-width: 52ch; color: color-mix(in oklab, #fff 84%, transparent); font-size: 16.5px; margin: 18px 0 0; }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); margin: clamp(34px, 4vw, 50px) 0 clamp(34px, 4vw, 48px); }
.contact__block { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--sky); }
.contact__label { font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in oklab, #fff 60%, transparent); }
.contact__phone { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 36px); color: #fff; text-decoration: none; letter-spacing: -0.01em; }
.contact__phone:hover { color: var(--sky); }
.contact__mail { font-size: 16px; color: #fff; text-decoration: none; word-break: break-word; font-weight: 600; }
.contact__mail:hover { color: var(--sky); }
.contact__area { margin: 0; color: color-mix(in oklab, #fff 82%, transparent); font-size: 16px; line-height: 1.6; }
.link-arrow { font-weight: 700; font-size: 14px; color: var(--sky); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.contact__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; }
@media (max-width: 760px) { .contact__grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- footer ---------- */
.foot { background: #0a2138; color: #fff; padding: clamp(48px, 6vw, 78px) var(--gutter) calc(78px + env(safe-area-inset-bottom)); text-align: center; }
.foot__brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot__logo { height: 50px; width: 50px; display: block; }
.foot__name { font-family: var(--display); font-weight: 700; font-size: 18px; color: #fff; letter-spacing: -0.01em; }
.foot__line { margin: 0; font-size: 14px; color: color-mix(in oklab, #fff 78%, transparent); line-height: 1.7; }
.foot__line a { color: var(--sky); font-weight: 600; text-decoration: none; white-space: nowrap; }
.foot__line a:hover { text-decoration: underline; }
.foot__fine { margin: 18px 0 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in oklab, #fff 42%, transparent); }
.jtn-credit { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line-dk); font-size: 12.5px; color: color-mix(in oklab, #fff 48%, transparent); }
.jtn-credit a { color: color-mix(in oklab, #fff 66%, transparent); text-decoration: none; font-weight: 600; transition: color .2s var(--ease); }
.jtn-credit a:hover { color: var(--sky); }

/* ---------- mobile sticky call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; justify-content: center; gap: 10px;
  background: var(--sky); color: var(--navy); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.01em;
  padding: 15px 16px calc(15px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px color-mix(in oklab, var(--navy) 38%, transparent);
}
.callbar svg { width: 19px; height: 19px; fill: none; stroke: var(--navy); stroke-width: 2; }
@media (max-width: 860px) { .callbar { display: flex; } body { padding-bottom: 0; } }

/* ---------- reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal-img] { opacity: 0; transform: translateY(12px) scale(0.99); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-delay="1"] { transition-delay: 80ms; } [data-delay="2"] { transition-delay: 160ms; }
[data-delay="3"] { transition-delay: 240ms; } [data-delay="4"] { transition-delay: 320ms; }
.is-in[data-reveal], .is-in[data-reveal-img] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal], [data-reveal-img] { opacity: 1 !important; transform: none !important; transition: none !important; } }
