/* ═══════════════════════════════════════════════════════════════════════════
   GASBANQ — Professional flat design (BMW-inspired)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --white: #ffffff;
  --off-white: #f5f5f5;
  --gray-100: #ededed;
  --gray-200: #d4d4d4;
  --gray-400: #8a8a8a;
  --gray-600: #555555;
  --gray-800: #262626;
  --black: #111111;
  --green: #1a6b2f;
  --green-light: #218838;
  --green-pale: #e9f5ed;
  --green-dark: #0f4a1e;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── HEADER ────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--gray-100);
  box-shadow: 0 1px 0 var(--gray-100);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-wrap {
  width: 160px;
  height: 50px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo {
  width: 160px;
  height: 50px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--black); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--black); font-weight: 600; }
.nav-links a.active::after { width: 100%; }

/* ── MOBILE NAV ────────────────────────────────────────────────────────── */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: transform 0.25s, opacity 0.2s;
}

.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); }

/* ── TYPOGRAPHY ────────────────────────────────────────────────────────── */

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--black);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}

.eyebrow,
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 16px;
}

.hero-copy,
.section-heading p,
.strip p,
.contact-grid p,
.spec-layout p,
.cta-panel p,
.photo-story-copy p {
  color: var(--gray-600);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-top: 12px;
}

/* ── BUTTONS ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
}

/* ── HERO ──────────────────────────────────────────────────────────────── */

.hero {
  padding-top: 72px; /* header offset */
  background: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0 64px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 40px 0 36px;
}

.hero-points {
  margin: 0;
  padding-left: 20px;
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 2.2;
}

.hero-points strong { color: var(--black); }

/* ── HERO CARD ─────────────────────────────────────────────────────────── */

.hero-card,
.hero-photo-card {
  display: grid;
  gap: 20px;
}

.hero-card { background: none; border: none; box-shadow: none; padding: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--gray-100);
}

.stat-grid article {
  background: var(--off-white);
  padding: 24px;
}

.stat-grid strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-grid span {
  color: var(--gray-600);
  font-size: 0.8125rem;
}

/* ── MEDIA FRAMES ──────────────────────────────────────────────────────── */

.media-frame {
  overflow: hidden;
  background: var(--gray-100);
  border: none;
  box-shadow: none;
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.media-frame:hover img {
  transform: scale(1.03);
}

.media-frame-hero { aspect-ratio: 4 / 3; }
.media-card { aspect-ratio: 4 / 3; margin-bottom: 20px; }
.media-inline { aspect-ratio: 1 / 1; margin-top: 28px; }
.media-tall { aspect-ratio: 3 / 4; }

/* ── SECTIONS ──────────────────────────────────────────────────────────── */

.section { padding: 96px 0; }

.section-heading {
  max-width: 680px;
  margin-bottom: 52px;
}

.section-heading h2 {
  margin-bottom: 12px;
}

.section-heading p {
  margin-top: 16px;
}

.muted-section { background: var(--off-white); }

.dark-section {
  background: var(--black);
  color: var(--white);
}

.dark-section .section-label { color: var(--green-light); }
.dark-section .section-heading p,
.dark-section .card p { color: var(--gray-400); }

.accent-section {
  background: var(--green);
  color: var(--white);
}

.accent-section .section-label { color: rgba(255,255,255,0.7); }
.accent-section h2 { color: var(--white); }
.accent-section p { color: rgba(255,255,255,0.8); }
.accent-section .btn-primary {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}
.accent-section .btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ── BRAND BAND ────────────────────────────────────────────────────────── */

.brand-band { padding: 32px 0; background: var(--off-white); }

.trust-band {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.trust-band span {
  padding: 10px 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.02em;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

/* ── GRIDS ─────────────────────────────────────────────────────────────── */

.hero-grid,
.contact-grid,
.spec-layout,
.strip,
.cta-panel,
.footer-row {
  display: grid;
  gap: 48px;
}

.strip,
.spec-layout,
.contact-grid,
.cta-panel,
.footer-row {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.strip p,
.photo-story-copy p {
  line-height: 1.75;
}

.cards { display: grid; gap: 24px; }
.three-up { grid-template-columns: repeat(3, 1fr); }
.two-up { grid-template-columns: repeat(2, 1fr); }

/* ── CARDS ─────────────────────────────────────────────────────────────── */

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 36px 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card p {
  line-height: 1.7;
}

.card:hover {
  border-color: var(--gray-200);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.image-card { padding-top: 0; overflow: hidden; }
.image-card .media-frame { margin: 0 0 24px; }

.soft-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.soft-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.image-card-side {
  display: grid;
  gap: 0;
}

.image-card h3,
.image-card p,
.image-card .check-list {
  padding-left: 32px;
  padding-right: 32px;
}

.image-card h3 { padding-top: 4px; }
.image-card p:last-child,
.image-card .check-list { padding-bottom: 32px; }

/* ── PHOTO STORY ───────────────────────────────────────────────────────── */

.photo-story { padding-top: 0; }

.photo-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ── PILL GRID ─────────────────────────────────────────────────────────── */

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-grid span {
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all 0.2s;
}

.pill-grid span:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ── SPEC TABLE ────────────────────────────────────────────────────────── */

.spec-table {
  background: var(--white);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.spec-table div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9375rem;
}

.spec-table div:last-child { border-bottom: 0; }
.spec-table span { color: var(--gray-600); }
.spec-table strong { font-weight: 600; }

/* ── CHECK LIST ────────────────────────────────────────────────────────── */

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--green);
}

/* ── CONTACT ───────────────────────────────────────────────────────────── */

.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 32px;
  display: grid;
  gap: 16px;
}

.contact-card a {
  font-weight: 600;
  color: var(--green);
  transition: color 0.2s;
}

.contact-card a:hover { color: var(--green-dark); }
.contact-note { margin-top: 8px; color: var(--gray-600); font-size: 0.875rem; }

.text-link { color: var(--green); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* ── CTA PANEL ─────────────────────────────────────────────────────────── */

.cta-panel {
  align-items: center;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.cta-panel .btn { flex-shrink: 0; }

/* ── FOOTER ────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--black);
  color: var(--gray-400);
  padding: 48px 0;
}

.footer-row {
  border-top: none;
  padding-top: 0;
  font-size: 0.875rem;
}

/* ── HERO SMALL (sub-pages) ────────────────────────────────────────────── */

.hero-small {
  padding: 72px 0 0;
}

.hero-small .section-heading {
  padding: 80px 0 48px;
  max-width: 720px;
}

.hero-small .section-heading h1 {
  margin-bottom: 20px;
}

.hero-small .section-heading p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--gray-600);
  max-width: 620px;
  margin-top: 16px;
}

/* ── SPA ROUTING ───────────────────────────────────────────────────────── */

.page { display: none; }

.page.page--active {
  display: block;
  animation: pageFadeIn 0.3s ease;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── SCROLL ANIMATIONS ─────────────────────────────────────────────────── */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate-stagger].is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
[data-animate-stagger].is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.08s; }
[data-animate-stagger].is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.16s; }
[data-animate-stagger].is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.24s; }
[data-animate-stagger].is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.32s; }
[data-animate-stagger].is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.40s; }
[data-animate-stagger].is-visible > *:nth-child(n+7) { opacity: 1; transform: none; transition-delay: 0.48s; }

/* ── BACK TO TOP ───────────────────────────────────────────────────────── */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--green);
  color: var(--white);
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover { background: var(--green-dark); }

/* ── CARD TILT OVERRIDE (flat — no 3D tilt) ────────────────────────────── */

.card {
  transform-style: flat;
  will-change: auto;
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .hero-grid { gap: 48px; }
  .photo-story-grid { gap: 40px; }
}

@media (max-width: 900px) {
  /* ── NAV ── */
  .nav {
    flex-wrap: wrap;
    height: 60px;
    padding: 0;
    gap: 0;
  }

  .brand { height: 60px; }

  .brand-logo-wrap,
  .brand-logo { width: 120px; height: 40px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-top: 1px solid var(--gray-100);
    background: var(--white);
  }

  .nav-links.nav--open { display: flex; }

  .nav-links a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }

  /* ── HERO ── */
  .hero { padding-top: 60px; }
  .hero-small { padding-top: 60px; }
  .hero-small .section-heading { padding: 48px 0 36px; }
  .hero-small .section-heading h1 { margin-bottom: 16px; }
  .hero-small .section-heading p { line-height: 1.8; margin-top: 14px; }

  /* ── GRIDS TO SINGLE COLUMN ── */
  .hero-grid,
  .three-up,
  .two-up,
  .strip,
  .spec-layout,
  .contact-grid,
  .cta-panel,
  .footer-row,
  .photo-story-grid { grid-template-columns: 1fr; }

  /* ── SECTIONS ── */
  .section { padding: 56px 0; }
  .hero-grid { padding: 40px 0 36px; gap: 32px; }

  /* ── GRID GAPS (stacked) ── */
  .strip,
  .spec-layout,
  .contact-grid,
  .cta-panel { gap: 24px; }
  .footer-row { gap: 8px; }

  /* ── PHOTO STORY ── */
  .photo-story-grid { gap: 32px; }
  .media-tall { aspect-ratio: 1 / 1; }

  /* ── CTA PANEL ── */
  .cta-panel { text-align: center; }
  .cta-panel .btn { width: auto; }

  /* ── FOOTER ── */
  .footer-row { text-align: center; gap: 8px; }

  /* ── IMAGE CARD TEXT PADDING ── */
  .image-card h3,
  .image-card p,
  .image-card .check-list { padding-left: 24px; padding-right: 24px; }

  .image-card p:last-child,
  .image-card .check-list { padding-bottom: 24px; }
}

@media (max-width: 640px) {
  /* ── CONTAINER ── */
  .container { padding: 0 20px; }

  /* ── TYPOGRAPHY ── */
  h1 { font-size: 1.75rem; max-width: none; margin-bottom: 18px; line-height: 1.15; }
  h2 { font-size: 1.375rem; margin-bottom: 14px; line-height: 1.2; }
  h3 { font-size: 1rem; margin-bottom: 10px; }

  .hero-copy,
  .section-heading p,
  .strip p,
  .contact-grid p,
  .spec-layout p,
  .cta-panel p,
  .photo-story-copy p { font-size: 0.9375rem; line-height: 1.8; margin-top: 10px; }

  .eyebrow,
  .section-label { font-size: 0.6875rem; margin-bottom: 10px; }

  /* ── HEADER / LOGO ── */
  .brand-logo-wrap,
  .brand-logo { width: 100px; height: 34px; }

  /* ── HERO ── */
  .hero-grid { padding: 32px 0 28px; gap: 28px; }
  .hero-actions { flex-direction: column; gap: 10px; margin: 28px 0 24px; }
  .hero-points { font-size: 0.8125rem; line-height: 2; padding-left: 16px; }
  .hero-copy { margin-bottom: 4px; }

  /* ── HERO SMALL (sub-pages) ── */
  .hero-small .section-heading {
    padding: 36px 0 28px;
  }
  .hero-small .section-heading h1 {
    margin-bottom: 12px;
    line-height: 1.2;
  }
  .hero-small .section-heading p {
    font-size: 0.9375rem;
    line-height: 1.8;
    max-width: none;
    margin-top: 12px;
  }

  /* ── BUTTONS ── */
  .btn { width: 100%; justify-content: center; height: 46px; }
  .cta-panel .btn { width: 100%; }

  /* ── SECTIONS ── */
  .section { padding: 44px 0; }
  .section-heading { margin-bottom: 28px; }

  /* ── CARDS ── */
  .card { padding: 24px 20px; }
  .card p { line-height: 1.65; }
  .cards { gap: 16px; }

  .image-card h3,
  .image-card p,
  .image-card .check-list { padding-left: 20px; padding-right: 20px; }

  .image-card p:last-child,
  .image-card .check-list { padding-bottom: 20px; }

  .image-card h3 { padding-top: 2px; }

  /* ── STAT GRID ── */
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 1px; }
  .stat-grid article { padding: 16px; }
  .stat-grid strong { font-size: 1rem; }
  .stat-grid span { font-size: 0.75rem; }

  /* ── SPEC TABLE ── */
  .spec-table div { padding: 14px 16px; font-size: 0.875rem; }

  /* ── TRUST BAND ── */
  .brand-band { padding: 20px 0; }
  .trust-band { gap: 8px; }
  .trust-band span { padding: 8px 14px; font-size: 0.75rem; }

  /* ── PILL GRID ── */
  .pill-grid { gap: 8px; }
  .pill-grid span { padding: 10px 16px; font-size: 0.8125rem; }

  /* ── CONTACT ── */
  .contact-card { padding: 20px; }

  /* ── MEDIA FRAMES ── */
  .media-frame-hero { aspect-ratio: 4 / 3; }
  .media-card { aspect-ratio: 1 / 1; margin-bottom: 16px; }
  .media-inline { aspect-ratio: 3 / 4; margin-top: 20px; }
  .media-tall { aspect-ratio: 3 / 4; }

  .image-card .media-frame { margin-bottom: 12px; }

  /* ── PHOTO STORY ── */
  .photo-story { padding-top: 40px; }
  .photo-story-grid { gap: 24px; }

  /* ── CHECK LIST ── */
  .check-list li { font-size: 0.875rem; padding-left: 20px; }
  .check-list li::before { top: 10px; width: 6px; height: 6px; }

  /* ── BACK TO TOP ── */
  .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; font-size: 0.95rem; }

  /* ── FOOTER ── */
  .site-footer { padding: 32px 0; }
  .footer-row { font-size: 0.8125rem; }
}

@media (max-width: 400px) {
  /* ── CONTAINER — safe edge distance ── */
  .container { padding: 0 16px; }

  /* ── TYPOGRAPHY ── */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.1875rem; }

  /* ── LOGO ── */
  .brand-logo-wrap,
  .brand-logo { width: 90px; height: 30px; }

  /* ── STAT GRID ── */
  .stat-grid { grid-template-columns: 1fr; }

  /* ── BUTTONS ── */
  .btn { font-size: 0.8125rem; height: 44px; }

  /* ── CARDS ── */
  .card { padding: 16px; }

  .image-card h3,
  .image-card p,
  .image-card .check-list { padding-left: 16px; padding-right: 16px; }

  .image-card p:last-child,
  .image-card .check-list { padding-bottom: 16px; }

  /* ── SPEC TABLE ── */
  .spec-table div { padding: 12px 14px; font-size: 0.8125rem; }
}
