/* AK Gas website styles */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}

:root {
  --navy: #0E2F6E;
  --navy-deep: #0A2456;
  --navy-line: #23417A;
  --blue: #1C5BC4;
  --blue-dark: #164AA3;
  --sky: #7CC4F4;
  --ink: #0F1E3D;
  --muted: #4A5A78;
  --line: #E1E8F3;
  --line-strong: #C9D9F0;
  --tint: #F3F7FC;
  --chip: #EAF2FD;
  --on-navy: #C9D7EE;
  --white: #FFFFFF;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
input, select, textarea, button { font: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

[id] { scroll-margin-top: 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 12px 16px;
  border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; stroke-width: 2; }
.icon--lg { width: 28px; height: 28px; }

.eyebrow {
  display: block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.2em; font-stretch: 125%;
  text-transform: uppercase; color: var(--blue);
}

.h2 {
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08;
  font-weight: 800; font-stretch: 112%; color: var(--navy);
}

.lead { font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border-radius: 10px;
  font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--chip); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--white); border-color: #6F8FC4; }
.btn--ghost:hover { background: rgba(255,255,255,.08); color: var(--white); border-color: var(--white); }
.btn--outline { background: var(--white); color: var(--navy); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--blue); color: var(--navy); }
.btn--soft { background: var(--chip); color: var(--navy); }
.btn--soft:hover { background: #DCE9FB; color: var(--navy); }
.btn--sm { min-height: 48px; padding: 12px 20px; font-size: 16px; }

/* Top strip */
.topbar { background: var(--navy-deep); color: #DCE6F5; font-size: 14px; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; padding-top: 10px; padding-bottom: 10px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__dot { width: 8px; height: 8px; border-radius: 50%; background: #3BA7EC; }
.topbar__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: var(--white); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand img { height: 56px; width: auto; }
.brand__tag { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; font-stretch: 125%; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-weight: 600; font-size: 16px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 0; }
.site-nav a:not(.btn):hover { color: var(--blue); }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); color: var(--navy); cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .brand__tag { display: none; }
  .brand img { height: 44px; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-top: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; }
}

/* Hero */
.hero { background: var(--navy); color: var(--white); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero .eyebrow { color: var(--sky); }
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; font-weight: 800; font-stretch: 115%; letter-spacing: -0.01em; }
.hero__lead { font-size: 19px; line-height: 1.55; color: var(--on-navy); max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 15px; color: #DCE6F5; }
.hero__checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__checks .icon { color: var(--sky); stroke-width: 2.2; }

.hero__media { flex: 1 1 380px; min-width: 0; max-width: 460px; display: flex; flex-direction: column; }
.hero__photo { width: 100%; height: 300px; object-fit: cover; border-radius: 16px; }

.cred {
  position: relative; margin: -56px 16px 0; background: var(--white); color: var(--ink);
  border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 12px 32px rgba(5, 20, 50, 0.28);
}
.cred__head { display: flex; align-items: center; gap: 12px; }
.cred__badge { width: 44px; height: 44px; border-radius: 12px; background: var(--chip); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cred__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; font-stretch: 125%; color: var(--muted); }
.cred__name { display: block; font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.25; }
.cred__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cred__grid div { display: flex; flex-direction: column; gap: 4px; }
.cred__grid dt { font-size: 13px; color: var(--muted); }
.cred__grid dd { margin: 0; font-size: 18px; font-weight: 700; }
.cred__note { font-size: 15px; line-height: 1.5; color: var(--muted); }

@media (max-width: 860px) {
  .hero__media { max-width: none; }
}

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; padding-top: 40px; padding-bottom: 40px; margin: 0; list-style: none; }
.trust__item { display: flex; gap: 14px; align-items: flex-start; }
.trust__item .icon { color: var(--blue); margin-top: 2px; }
.trust__title { display: block; font-weight: 700; font-size: 17px; }
.trust__text { display: block; font-size: 15px; color: var(--muted); line-height: 1.45; }

/* Sections */
.section { padding-top: clamp(64px, 8vw, 100px); padding-bottom: clamp(64px, 8vw, 100px); }
.section--tint { background: var(--tint); }
.section--bordered { border-top: 1px solid var(--line); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 44px; }
.section__title { display: flex; flex-direction: column; gap: 14px; max-width: 660px; }
.section__intro { max-width: 440px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.service__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--chip); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.service__icon .icon { width: 26px; height: 26px; }
.service h3 { font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.service p { font-size: 15px; color: var(--muted); }

.alert { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px 24px; }
.alert .icon { width: 26px; height: 26px; color: var(--navy); stroke-width: 1.9; }
.alert p { flex: 1 1 420px; font-size: 15px; line-height: 1.5; }
.alert a { font-weight: 700; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 20px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.gallery__media { border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { display: flex; flex-direction: column; gap: 4px; }
.gallery__title { font-size: 18px; font-weight: 700; color: var(--navy); }
.gallery__text { font-size: 15px; color: var(--muted); }

/* Agents */
.agents { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.agents__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.checklist { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.5; }
.checklist__tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--chip); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.checklist__tick .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.agents__cta { margin-top: 8px; }

.steps { flex: 1 1 400px; min-width: 0; background: var(--navy); color: var(--white); border-radius: 18px; padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 28px; }
.steps .eyebrow { color: var(--sky); }
.steps h3 { font-size: 26px; line-height: 1.2; font-weight: 800; font-stretch: 110%; margin-top: 8px; }
.steps ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 28px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps__num { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--sky); color: var(--sky); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; }
.steps__title { display: block; font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.steps__text { display: block; font-size: 15px; line-height: 1.55; color: var(--on-navy); }

/* Reviews */
.reviews { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reviews__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 56px; padding-bottom: 56px; }
.reviews__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.stars { display: flex; gap: 4px; color: var(--blue); }
.stars svg { width: 22px; height: 22px; fill: currentColor; }
.reviews h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 800; font-stretch: 110%; color: var(--navy); }
.reviews p { font-size: 16px; color: var(--muted); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.contact__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact__list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.contact__row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
a.contact__row:hover { border-color: var(--blue); color: var(--ink); }
.contact__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--chip); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.contact__icon .icon { width: 22px; height: 22px; stroke-width: 1.9; }
.contact__label { display: block; font-size: 13px; color: var(--muted); }
.contact__value { display: block; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }

.form-card { flex: 1 1 460px; min-width: 0; background: var(--tint); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.form-card h3 { font-size: 22px; font-weight: 800; color: var(--navy); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #A9BBD8; border-radius: 10px;
  background: var(--white); color: var(--ink); font-size: 16px;
}
.field textarea { padding: 12px 14px; min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--sky); outline-offset: 0; border-color: var(--blue); }
.form-note { font-size: 14px; color: var(--muted); }
.form-card .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px 56px; padding-top: 56px; padding-bottom: 40px; }
.footer__brand { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.footer__brand img { height: 64px; width: auto; align-self: flex-start; }
.footer__tagline { font-size: 13px; font-weight: 700; letter-spacing: 0.22em; font-stretch: 125%; color: var(--sky); }
.footer__col { flex: 0 1 240px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__heading { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; font-stretch: 125%; color: var(--white); text-transform: uppercase; margin: 0; }
.footer__col a { color: var(--on-navy); text-decoration: none; }
.footer__col a:hover { color: var(--white); text-decoration: underline; }
.footer__bottom { border-top: 1px solid var(--navy-line); padding-top: 24px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 14px; color: #A9BCDD; }
.footer__bottom a { color: #A9BCDD; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__bottom a:hover { color: var(--white); }

/* Mobile call bar */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 80px; }
  .mobile-cta {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(5, 20, 50, 0.12);
  }
  .mobile-cta .btn { min-height: 52px; padding: 12px; font-size: 16px; }
  .topbar__links a { display: none; }
}

/* Simple pages (privacy, thanks, 404) */
.page { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(64px, 8vw, 100px); }
.page__inner { max-width: 760px; }
.page h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; font-weight: 800; font-stretch: 112%; color: var(--navy); margin: 14px 0 20px; }
.page h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 36px 0 10px; }
.page p, .page li { color: var(--ink); line-height: 1.65; }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 22px; margin: 10px 0 0; }
.page li + li { margin-top: 6px; }
.page__meta { color: var(--muted); font-size: 15px; }
.page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page--center { text-align: left; }

/* ---------- Animations ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slide-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.05, 1.1) rotate(-3deg); }
  60% { transform: scale(.97, 1.03) rotate(2deg); }
}

/* Top section eases in on load */
.hero__text > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero__text > :nth-child(2) { animation-delay: .08s; }
.hero__text > :nth-child(3) { animation-delay: .16s; }
.hero__text > :nth-child(4) { animation-delay: .24s; }
.hero__text > :nth-child(5) { animation-delay: .32s; }
.hero__photo { animation: fade-in .9s cubic-bezier(.2, .7, .2, 1) .15s backwards; }
.cred { animation: rise .8s cubic-bezier(.2, .7, .2, 1) .35s backwards; }

/* Emergency dot pulse */
.topbar__dot { position: relative; }
.topbar__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3BA7EC; animation: pulse 2.2s ease-out infinite; }

/* Gentle flame flicker in the trust strip */
.trust__item:first-child .icon { transform-origin: 50% 85%; animation: flicker 3.2s ease-in-out infinite; }

/* Sections fade up as they scroll into view */
.js .trust__item:not(.is-visible),
.js .section__head:not(.is-visible),
.js .service:not(.is-visible),
.js .alert:not(.is-visible),
.js .gallery figure:not(.is-visible),
.js .agents__text:not(.is-visible),
.js .steps:not(.is-visible),
.js .reviews__text:not(.is-visible),
.js .reviews__inner > .btn:not(.is-visible),
.js .contact__text:not(.is-visible),
.js .form-card:not(.is-visible) { opacity: 0; }
.js .is-visible { animation: rise .65s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0s) backwards; }

/* Hover touches */
.service { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(14, 47, 110, .10); border-color: var(--line-strong); }
.service__icon { transition: background-color .25s ease, color .25s ease; }
.service:hover .service__icon { background: var(--blue); color: var(--white); }

.gallery img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gallery figure:hover img { transform: scale(1.04); }

.icon--arrow, .icon--out { transition: transform .2s ease; }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn:hover .icon--out { transform: translate(2px, -2px); }
.btn:active { transform: scale(.98); }

.contact__row { transition: border-color .2s ease, transform .2s ease; }
a.contact__row:hover { transform: translateX(3px); }

@media (max-width: 760px) {
  .mobile-cta { animation: slide-up .45s cubic-bezier(.2, .7, .2, 1) .5s backwards; }
}

/* Respect people who turn animations off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .trust__item, .js .section__head, .js .service, .js .alert, .js .gallery figure,
  .js .agents__text, .js .steps, .js .reviews__text, .js .reviews__inner > .btn,
  .js .contact__text, .js .form-card { opacity: 1 !important; }
}

@media print {
  .js * { opacity: 1 !important; animation: none !important; }
  .mobile-cta, .topbar, .menu-toggle { display: none !important; }
}
