/* ==========================================================================
   Gulfline Air & Heat, portfolio demo (Storefront Digital)
   Flat Design 2.0 (Semi-Flat): warm paper, one flat cool-teal accent for
   cooling work, one flat warm-terracotta accent used sparingly for heating
   tags, rounded cards, crisp vector iconography, no gradients or blur.
   Outfit for display, Karla for body. Photo-forward: full-bleed branded
   service van in the hero (H2 + scrim), with the service grid and gallery
   carrying additional visual weight below. Different from Redland Air (data/
   readout-led, no photos at all, industrial mono type).
   ========================================================================== */

:root {
  --paper:      #F7F5F1;
  --paper-2:    #EFEBE3;
  --card:       #FFFFFF;
  --line:       rgba(22, 38, 44, 0.12);
  --line-strong:rgba(22, 38, 44, 0.24);

  --ink:        #16262C;
  --ink-dim:    rgba(22, 38, 44, 0.68);
  --ink-faint:  rgba(22, 38, 44, 0.48);

  --accent:     #1F6F78;
  --accent-dark:#154F56;
  --accent-tint:#DCEEEE;
  --warm:       #D9752E;
  --warm-tint:  #FBE7D6;

  --dark:       #16262C;
  --on-dark:    #F7F5F1;
  --on-dark-dim:rgba(247, 245, 241, 0.7);

  --radius-lg: 16px;
  --radius-md: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.display {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---------- demo notice ---------- */
.demo-notice {
  background: var(--dark);
  color: var(--on-dark-dim);
  border-bottom: 1px solid var(--line-strong);
  padding: 9px 0;
  font-size: 12.5px;
  text-align: center;
}
.demo-notice a { color: #7FD1C8; font-weight: 600; }
.demo-notice a:hover { text-decoration: underline; }
.demo-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-right: 8px;
  border: 1px solid currentColor;
  border-radius: 20px;
  white-space: nowrap;
  vertical-align: 1px;
  color: var(--on-dark);
}

/* ---------- Nav (N1: split-center logo; hamburger + drawer below 880px) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
}
.nav-side {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex: 1;
  min-width: 0;
}
.nav-start { justify-content: flex-start; }
.nav-end { justify-content: flex-end; }
.nav-side a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-dim);
  white-space: nowrap;
}
.nav-side a:hover { color: var(--accent-dark); }
.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.nav-logo .dot { color: var(--accent); }
.nav-end-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.nav-phone-slim {
  font-weight: 700;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  background: var(--card);
  white-space: nowrap;
}
.nav-toggle { color: var(--ink); }

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(22, 38, 44, 0.08);
}
.nav:has(details.nav-menu[open]) .nav-drawer { display: flex; }
.nav-drawer a {
  padding: 11px 4px;
  font-weight: 600;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}
.nav-drawer-phone { color: var(--accent-dark) !important; }
.nav-drawer-cta {
  margin-top: 10px;
  align-self: flex-start;
  border-bottom: none;
}

@media (max-width: 880px) {
  .nav-side.nav-start { display: none; }
  .nav-side.nav-end { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 881px) {
  .nav-toggle { display: none; }
  .nav-drawer { display: none !important; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 0.15s var(--ease-out), background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--accent); color: var(--on-dark); }
.btn-solid:hover { background: var(--accent-dark); }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border: 2px solid var(--on-dark-dim); color: var(--on-dark); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- hero (H2: full-bleed photo + scrim, wordmark over van) ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 40rem);
  padding: 88px 0 72px;
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--dark);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  z-index: 0;
  filter: blur(3.5px);
  transform: scale(1.06);
  transform-origin: center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(22, 38, 44, 0.62) 0%, rgba(22, 38, 44, 0.78) 55%, rgba(22, 38, 44, 0.9) 100%);
}
.hero-wrap { position: relative; z-index: 2; max-width: 720px; color: var(--on-dark); }
.hero-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9fd0d5;
  margin: 0 0 18px;
}
.wordmark {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.wordmark-sub {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: #9fd0d5;
}
.hero .lead {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  margin: 22px auto 12px;
  max-width: 560px;
  color: rgba(247, 245, 241, 0.95);
}
.hero .sub {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--on-dark-dim);
  max-width: 520px;
  margin: 0 auto 30px;
}
.hero .btn-outline {
  border-color: rgba(247, 245, 241, 0.85);
  color: #fff;
}
.hero .btn-outline:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- trust strip ---------- */
.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  padding: 14px 0;
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  justify-content: center;
}
.trust-strip span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
}
.trust-strip span:not(:last-child)::after {
  content: '\2022';
  color: var(--accent);
  margin: 0 16px;
}

/* ---------- section head ---------- */
.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 10px;
}
.section-head h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
}
.section-head p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.6; }

/* ---------- services (C1: static image-top cards) ---------- */
.services { padding: 80px 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}
.card-photo::before { content: ''; display: block; padding-top: 75%; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.card-body p { font-size: 14px; line-height: 1.6; color: var(--ink-dim); margin: 0; }

/* ---------- instant estimate (Complete-tier custom feature) ---------- */
.estimate { padding: 0 0 80px; }
.estimate-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background: var(--accent-tint);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.estimate-copy .eyebrow { color: var(--accent-dark); }
.estimate-copy h2 { font-family: 'Outfit', sans-serif; font-size: 28px; font-weight: 700; margin: 0 0 14px; }
.estimate-copy p { font-size: 15px; line-height: 1.65; color: var(--ink-dim); margin: 0; }
.estimate-tool {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--line);
}
.estimate-tool label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  margin: 0 0 6px;
}
.estimate-tool select {
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--paper);
}
.estimate-tool .btn { width: 100%; margin-top: 4px; }
.estimate-result {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--paper-2);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-dim);
}
.estimate-result.has-result { background: var(--warm-tint); color: var(--ink); }
.estimate-fine { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-faint); }

/* ---------- gallery ---------- */
.gallery { padding: 0 0 80px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-2);
}
.gallery-item::before { content: ''; display: block; padding-top: 100%; }
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- process ---------- */
.process { padding: 0 0 80px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.process-step { text-align: center; padding: 0 8px; }
.step-num {
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 17px;
  font-variant-numeric: lining-nums;
}
.process-step h3 { font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.process-step p { font-size: 14px; line-height: 1.6; color: var(--ink-dim); margin: 0; }

/* ---------- pull quote ---------- */
.quote-block { padding: 0 0 80px; }
.quote-block .wrap { max-width: 760px; text-align: center; }
.quote-block blockquote { margin: 0; }
.quote-block blockquote p {
  font-family: 'Outfit', sans-serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 16px;
}
.quote-cite { font-size: 13.5px; color: var(--ink-faint); }
.quote-cite b { color: var(--ink); font-weight: 700; }

/* ---------- CTA band (dark, inverted) ---------- */
.cta-band { background: var(--dark); color: var(--on-dark); padding: 64px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-family: 'Outfit', sans-serif; font-size: 28px; font-weight: 700; margin: 0 0 6px; max-width: 420px; line-height: 1.15; }
.cta-band p { color: var(--on-dark-dim); font-size: 14.5px; margin: 0; }
.cta-band .btn-row { flex-shrink: 0; justify-content: flex-start; }

/* ---------- footer ---------- */
footer { padding: 50px 0 30px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.foot-brand { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 19px; }
.foot-brand + p { font-size: 13px; color: var(--ink-faint); margin-top: 10px; line-height: 1.6; max-width: 220px; }
.foot-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0 0 12px;
}
.foot-col div, .foot-col a { display: block; font-size: 13.5px; color: var(--ink-dim); margin-bottom: 7px; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.foot-bottom a { color: var(--accent-dark); font-weight: 700; }

/* ---------- responsive (checked at ~375 / ~800 / ~1440) ---------- */
@media (max-width: 900px) {
  .estimate-wrap { grid-template-columns: 1fr; padding: 32px; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wordmark { font-size: 44px; }
  .wordmark-sub { font-size: 13px; letter-spacing: 0.24em; }
  .hero .lead { font-size: 17px; }
  .hero { padding: 72px 0 56px; min-height: min(72vh, 34rem); }
  .hero-photo { object-position: 70% 50%; }
  .section-head h2 { font-size: 25px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .cta-band .btn-row { width: 100%; }
  .cta-band .btn-row .btn { flex: 1; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}


/* --- Accessibility baseline (Web Interface Guidelines) --- */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  transform: translateY(-200%);
}
.skip-link:focus { outline: none; }
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
[id] {
  scroll-margin-top: calc(5.5rem + env(safe-area-inset-top, 0px));
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Safe-area gutters on sticky chrome; contain scroll chaining in drawers/overlays */
.nav, .nav-min, .masthead, .bar {
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
}
.nav-drawer {
  overscroll-behavior: contain;
}

/* --- Web Interface Guidelines extras --- */
a, button, summary, input, select, textarea, label, [role="button"], [role="tab"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}
h1, h2, h3 { text-wrap: pretty; }
