/* ========================================
   AG ENERGY CO — CINEMATIC DESIGN SYSTEM
   Inspired by @marcelodesignxh
   Dark luxury. Cinematic scroll. Editorial type.
   ======================================== */

:root {
  --font-display: 'Switzer', 'Helvetica Neue', sans-serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;

  /* --- TYPE SCALE (cinematic — larger display sizes) --- */
  --text-xs:    clamp(0.7rem,   0.65rem + 0.25vw, 0.8125rem);
  --text-sm:    clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  --text-base:  clamp(0.9375rem, 0.9rem  + 0.2vw, 1.0625rem);
  --text-lg:    clamp(1.125rem,  1rem    + 0.6vw,  1.375rem);
  --text-xl:    clamp(1.5rem,    1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:   clamp(2rem,      1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:   clamp(2.5rem,    1rem    + 4vw,    5rem);
  --text-hero:  clamp(3.5rem,    1rem    + 8vw,    9rem);
  --text-mega:  clamp(4rem,      1rem    + 10vw,   12rem);

  /* --- SPACING --- */
  --space-1:  0.25rem;  --space-2:  0.5rem;
  --space-3:  0.75rem;  --space-4:  1rem;
  --space-5:  1.25rem;  --space-6:  1.5rem;
  --space-8:  2rem;     --space-10: 2.5rem;
  --space-12: 3rem;     --space-16: 4rem;
  --space-20: 5rem;     --space-24: 6rem;
  --space-32: 8rem;     --space-40: 10rem;

  /* --- APEX BRAND COLORS --- */
  --midnight-navy:         #0B1A2E;
  --midnight-navy-light:   #0F2038;
  --midnight-navy-lighter: #142845;
  --midnight-deep:         #060E1A;
  --harvest-white:         #F5F0E8;
  --harvest-white-muted:   #C8C2B6;
  --harvest-white-faint:   #8A857B;
  --oxide-gold:            #C8952E;
  --oxide-gold-hover:      #DAA63F;
  --oxide-gold-active:     #B08025;
  --oxide-gold-glow:       rgba(200, 149, 46, 0.15);
  --carbon-black:          #080808;

  /* --- SEMANTIC ROLES --- */
  --color-bg:            var(--midnight-deep);
  --color-surface:       var(--midnight-navy);
  --color-surface-2:     var(--midnight-navy-light);
  --color-surface-3:     var(--midnight-navy-lighter);
  --color-border:        rgba(245, 240, 232, 0.08);
  --color-border-hover:  rgba(200, 149, 46, 0.25);
  --color-divider:       rgba(245, 240, 232, 0.04);
  --color-text:          var(--harvest-white);
  --color-text-muted:    var(--harvest-white-muted);
  --color-text-faint:    var(--harvest-white-faint);
  --color-accent:        var(--oxide-gold);
  --color-accent-hover:  var(--oxide-gold-hover);
  --color-accent-active: var(--oxide-gold-active);

  /* --- EASING --- */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:      cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- SHADOWS --- */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md:  0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg:  0 12px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 60px rgba(200, 149, 46, 0.12);

  /* --- CONTENT WIDTHS --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-max: 1440px;

  /* --- RADIUS --- */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--wide  { max-width: var(--content-max); }
.container--narrow { max-width: var(--content-default); }

section {
  padding-block: clamp(var(--space-20), 10vw, var(--space-40));
  position: relative;
}

/* ========================================
   TYPOGRAPHY — CINEMATIC APEX
   ======================================== */

.heading-display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 0.95;
  color: var(--color-text);
}

.heading-section {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.label-upper {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: var(--text-xs);
  color: var(--color-accent);
}

.body-text {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Accent line before label */
.label-line {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
}
.label-line::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--color-accent);
}

/* ========================================
   NAVIGATION — CINEMATIC
   ======================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-6) 0;
  transition: background 0.6s var(--ease-cinematic),
              padding 0.4s var(--ease-cinematic),
              border-color 0.6s var(--ease-cinematic);
  border-bottom: 1px solid transparent;
}

/* The blur lives on a pseudo-element: backdrop-filter on .nav itself would make
   the nav the containing block for its fixed-position children (.nav__mobile-menu,
   .nav__overlay), confining them to the nav bar instead of the viewport. */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  opacity: 0;
  transition: opacity 0.6s var(--ease-cinematic);
}

.nav.scrolled {
  background: rgba(6, 14, 26, 0.92);
  padding: var(--space-3) 0;
  border-bottom-color: var(--color-border);
}
.nav.scrolled::before { opacity: 1; }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.nav__logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s var(--ease-out);
  flex-shrink: 0;
}
.nav.scrolled .nav__logo-img { height: 36px; }

.nav__wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
  transition: opacity 0.3s var(--ease-out);
}

.nav__wordmark-name {
  font-family: var(--font-display, 'Helvetica Now', 'Helvetica Neue', Helvetica, Arial, sans-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--color-text, var(--harvest-white));
  text-transform: uppercase;
}

.nav__wordmark-tagline {
  font-family: var(--font-display, 'Helvetica Now', 'Helvetica Neue', Helvetica, Arial, sans-serif);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--color-gold, #C8952E);
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .nav__wordmark-tagline { display: none; }
  .nav__wordmark-name { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .nav__wordmark { display: none; }
}

.footer__brand-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__logo-icon {
  height: 56px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.footer__wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.footer__wordmark-name {
  font-family: var(--font-display, 'Helvetica Now', 'Helvetica Neue', Helvetica, Arial, sans-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-transform: uppercase;
}

.footer__wordmark-tagline {
  font-family: var(--font-display, 'Helvetica Now', 'Helvetica Neue', Helvetica, Arial, sans-serif);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--color-text-muted, var(--harvest-white));
  opacity: 0.7;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-faint);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease-out);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--color-accent);
  transition: width 0.4s var(--ease-cinematic);
}
.nav__links a:hover { color: var(--color-text); }
.nav__links a:hover::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--color-accent); }

.nav__actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent);
  color: var(--midnight-deep);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}
.nav__cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(200, 149, 46, 0.3);
}
.nav__cta:active {
  background: var(--color-accent-active);
  transform: translateY(0);
}

/* Mobile Nav */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  transition: all 0.3s var(--ease-out);
}

.nav__mobile-menu { display: none; }

@media (max-width: 1024px) {
  .nav__links, .nav__actions { display: none !important; }
  .nav__burger { display: flex; }

  .nav__mobile-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(85vw, 400px);
    background: var(--midnight-navy);
    padding: var(--space-20) var(--space-8);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-cinematic);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    border-left: 1px solid var(--color-border);
  }
  .nav__mobile-menu.open { transform: translateX(0); }

  .nav__mobile-menu a {
    display: block;
    font-size: var(--text-lg);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-faint);
    text-decoration: none;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-divider);
    transition: color 0.3s var(--ease-out);
  }
  .nav__mobile-menu a:hover { color: var(--color-accent); }

  .nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
  }
  .nav__overlay.open { opacity: 1; pointer-events: auto; }

  .nav__mobile-close {
    position: absolute;
    top: var(--space-6); right: var(--space-6);
    color: var(--color-text-faint);
    cursor: pointer;
    transition: color var(--transition-interactive);
  }
  .nav__mobile-close:hover { color: var(--color-text); }
}

/* ========================================
   HERO — CINEMATIC FULL-BLEED
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(var(--space-16), 8vw, var(--space-24));
  padding-top: 8rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* Dramatic gradient overlay — cinematic vignette */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(6, 14, 26, 0.3) 0%,
      rgba(6, 14, 26, 0.2) 30%,
      rgba(6, 14, 26, 0.6) 60%,
      var(--midnight-deep) 100%
    ),
    linear-gradient(90deg,
      rgba(6, 14, 26, 0.5) 0%,
      transparent 40%
    );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.hero__tag::before {
  content: '';
  display: block;
  width: 48px; height: 1px;
  background: var(--color-accent);
}

.hero__title {
  font-size: var(--text-hero);
  margin-bottom: var(--space-8);
  color: var(--color-text);
  line-height: 0.92;
  letter-spacing: 0.04em;
}
.hero__title .accent { color: var(--color-accent); }

/* Split text animation for hero title */
.hero__title .word {
  display: inline-block;
  overflow: hidden;
}
.hero__title .char {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.8s var(--ease-cinematic);
}
.hero__title.revealed .char {
  transform: translateY(0);
}

.hero__description {
  font-size: var(--text-lg);
  max-width: 560px;
  margin-bottom: var(--space-10);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* Hero scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================
   BUTTONS — CINEMATIC
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-10);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--midnight-deep);
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-cinematic);
}
.btn--primary:hover::before { transform: translateX(100%); }
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200, 149, 46, 0.35);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}
.btn--outline:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: var(--space-3) 0;
}
.btn--ghost:hover { color: var(--color-accent); }
.btn--ghost .btn__arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}
.btn--ghost:hover .btn__arrow { transform: translateX(4px); }

.btn svg { width: 16px; height: 16px; }

/* ========================================
   STATS — CINEMATIC COUNTERS
   ======================================== */

.stats {
  position: relative;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
  overflow: hidden;
}

/* Horizontal gold accent line */
.stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--oxide-gold-glow), transparent);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat { padding: var(--space-6); }

.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums lining-nums;
}

.stat__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-faint);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}

/* ========================================
   SERVICES SECTION — CINEMATIC CARDS
   ======================================== */

.services { position: relative; }

.services__header {
  margin-bottom: var(--space-16);
}
.services__header h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-4);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-10);
  overflow: hidden;
  transition: border-color 0.5s var(--ease-cinematic),
              transform 0.5s var(--ease-cinematic),
              box-shadow 0.5s var(--ease-cinematic);
}

/* Gold glow on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--oxide-gold-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-cinematic);
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }

.service-card__icon {
  width: 48px; height: 48px;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Bottom accent line */
.service-card__line {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  transition: width 0.6s var(--ease-cinematic);
}
.service-card:hover .service-card__line { width: 100%; }

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ========================================
   SHOWCASE — FLOATING PRODUCT SECTION
   ======================================== */

.showcase {
  position: relative;
  overflow: hidden;
}

.showcase__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.showcase__inner--reverse { direction: rtl; }
.showcase__inner--reverse > * { direction: ltr; }

.showcase__content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

.showcase__content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.showcase__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.showcase__feature {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.showcase__feature-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.showcase__feature h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.showcase__feature p {
  color: var(--color-text-faint);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

.showcase__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-surface);
}

/* Gold border glow effect */
.showcase__visual::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  z-index: 2;
  pointer-events: none;
  transition: border-color 0.6s var(--ease-cinematic);
}

.showcase__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-cinematic);
}

.showcase:hover .showcase__visual img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .showcase__inner,
  .showcase__inner--reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* ========================================
   CTA SECTION — CINEMATIC
   ======================================== */

.cta {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta__content {
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

.cta p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

/* Multiple layered glows */
.cta__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.cta__glow--primary {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200, 149, 46, 0.06), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.cta__glow--secondary {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200, 149, 46, 0.04), transparent 60%);
  top: 30%; right: 10%;
}

/* ========================================
   FOOTER — CINEMATIC
   ======================================== */

.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16);
  background: var(--midnight-deep);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand p {
  color: var(--color-text-faint);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  max-width: 300px;
  line-height: 1.7;
}

.footer__column h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.footer__column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__column a {
  color: var(--color-text-faint);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer__column a:hover { color: var(--color-accent); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.footer__bottom p {
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}

.footer__social {
  display: flex;
  gap: var(--space-4);
}
.footer__social a {
  color: var(--color-text-faint);
  transition: color var(--transition-interactive);
}
.footer__social a:hover { color: var(--color-accent); }
.footer__social svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: var(--space-4); text-align: center; }
}

/* ========================================
   SCROLL REVEAL — GSAP-POWERED
   ======================================== */

/* Pre-hidden by CSS; GSAP animates to visible via fromTo(). */
[data-reveal] {
  will-change: transform, opacity;
  opacity: 0;
}

/* Parallax elements */
[data-parallax] {
  will-change: transform;
}

/* ========================================
   DECORATIVE ELEMENTS
   ======================================== */

/* Cinematic grain overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

/* Horizontal rule with gold center */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), rgba(200, 149, 46, 0.2), var(--color-border), transparent);
  border: none;
}

/* Grid background pattern */
.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 240, 232, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 232, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

/* Gold accent line (horizontal) */
.gold-line {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
}

/* ========================================
   PAGE HEADER — INNER PAGES
   ======================================== */

.page-header {
  position: relative;
  padding: calc(6rem + var(--space-20)) 0 var(--space-16);
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
}

.page-header__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-header__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-header__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(6, 14, 26, 0.65) 0%,
      rgba(6, 14, 26, 0.5) 40%,
      var(--midnight-deep) 100%
    );
}

.page-header__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.page-header__content h1 {
  font-size: var(--text-3xl);
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}
.page-header__content p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
}

/* ========================================
   CARDS — GENERIC CINEMATIC
   ======================================== */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.4s var(--ease-cinematic),
              transform 0.4s var(--ease-cinematic),
              box-shadow 0.4s var(--ease-cinematic);
}
.card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.6s var(--ease-cinematic);
}
.card:hover .card__img { transform: scale(1.04); }

.card__body {
  padding: var(--space-6);
}
.card__body h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-2);
}
.card__body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ========================================
   FORM — CINEMATIC
   ======================================== */

.form-group {
  margin-bottom: var(--space-6);
}
.form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-4);
  background: var(--midnight-deep);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--oxide-gold-glow);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { cursor: pointer; }

/* ========================================
   ACCORDION / FAQ
   ======================================== */

.accordion-item {
  border-bottom: 1px solid var(--color-divider);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) 0;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  transition: color var(--transition-interactive);
}
.accordion-trigger:hover { color: var(--color-accent); }

.accordion-trigger svg {
  width: 20px; height: 20px;
  color: var(--color-text-faint);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}
.accordion-item.open .accordion-trigger svg {
  transform: rotate(180deg);
}

.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease-cinematic);
}
.accordion-item.open .accordion-content {
  max-height: 300px;
}

.accordion-content p {
  padding-bottom: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}
