/* Art direction: Industrial B2B keg manufacturer for craft breweries → Professional, trustworthy, sustainable
   Palette: Cool charcoal surfaces, deep forest green accent (sustainability), warm amber secondary (craft beer warmth)
   Typography: Space Grotesk (display, technical/industrial) + Plus Jakarta Sans (body, clean/professional)
   Density: Balanced — generous hero areas, efficient product spec sections */

/* ============================================
   GPROKEG DESIGN SYSTEM — Custom Palette
   Cool charcoal surfaces, forest green primary, warm amber secondary
   ============================================ */

:root {
  /* Type Scale (fluid) */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --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(3rem,     0.5rem  + 7vw,    8rem);

  /* 4px Spacing System */
  --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;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Font families */
  --font-display: 'Space Grotesk', 'Arial', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
}

/* ============================================
   LIGHT MODE
   ============================================ */
:root, [data-theme="light"] {
  /* Surfaces — Cool light grays */
  --color-bg:               #f5f6f8;
  --color-surface:          #ffffff;
  --color-surface-2:        #f0f1f4;
  --color-surface-offset:   #e8eaee;
  --color-surface-offset-2: #dde0e5;
  --color-surface-dynamic:  #d3d6dc;
  --color-divider:          #c8ccd3;
  --color-border:           #bfc3cb;

  /* Text */
  --color-text:             #1a1d23;
  --color-text-muted:       #5c6272;
  --color-text-faint:       #9199a8;
  --color-text-inverse:     #f5f6f8;

  /* Primary Accent — Deep Forest Green (sustainability) */
  --color-primary:          #1a6b4a;
  --color-primary-hover:    #145a3e;
  --color-primary-active:   #0f4832;
  --color-primary-highlight: #d0e8dc;

  /* Secondary Accent — Warm Amber/Gold (craft beer warmth) */
  --color-secondary:        #c4850c;
  --color-secondary-hover:  #a87009;
  --color-secondary-active: #8a5c07;
  --color-secondary-highlight: #f0e2c4;

  /* Semantic */
  --color-success:          #2d7a3e;
  --color-success-highlight: #d4e8d7;
  --color-error:            #c0392b;
  --color-error-highlight:  #f0d2ce;
  --color-warning:          #d4850c;
  --color-warning-highlight: #f0e2c4;

  /* Shadows (cool-tinted) */
  --shadow-sm: 0 1px 2px rgba(20, 25, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 25, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 25, 40, 0.12);
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
  /* Surfaces — Deep charcoal */
  --color-bg:               #111318;
  --color-surface:          #181a21;
  --color-surface-2:        #1e2028;
  --color-surface-offset:   #232630;
  --color-surface-offset-2: #2a2d38;
  --color-surface-dynamic:  #333743;
  --color-divider:          #2e3240;
  --color-border:           #3b4050;

  /* Text */
  --color-text:             #d8dbe3;
  --color-text-muted:       #8b91a2;
  --color-text-faint:       #5a6074;
  --color-text-inverse:     #1a1d23;

  /* Primary — Forest Green (lighter for dark bg) */
  --color-primary:          #3da87a;
  --color-primary-hover:    #2d9068;
  --color-primary-active:   #1f7856;
  --color-primary-highlight: #1e3a2e;

  /* Secondary — Warm Amber (lighter for dark bg) */
  --color-secondary:        #e0a030;
  --color-secondary-hover:  #c88c20;
  --color-secondary-active: #b07a15;
  --color-secondary-highlight: #3a3020;

  /* Semantic */
  --color-success:          #4aad5f;
  --color-success-highlight: #1e3a25;
  --color-error:            #e05a50;
  --color-error-highlight:  #3a2020;
  --color-warning:          #e0a030;
  --color-warning-highlight: #3a3020;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #111318;
    --color-surface:          #181a21;
    --color-surface-2:        #1e2028;
    --color-surface-offset:   #232630;
    --color-surface-offset-2: #2a2d38;
    --color-surface-dynamic:  #333743;
    --color-divider:          #2e3240;
    --color-border:           #3b4050;
    --color-text:             #d8dbe3;
    --color-text-muted:       #8b91a2;
    --color-text-faint:       #5a6074;
    --color-text-inverse:     #1a1d23;
    --color-primary:          #3da87a;
    --color-primary-hover:    #2d9068;
    --color-primary-active:   #1f7856;
    --color-primary-highlight: #1e3a2e;
    --color-secondary:        #e0a030;
    --color-secondary-hover:  #c88c20;
    --color-secondary-active: #b07a15;
    --color-secondary-highlight: #3a3020;
    --color-success:          #4aad5f;
    --color-success-highlight: #1e3a25;
    --color-error:            #e05a50;
    --color-error-highlight:  #3a2020;
    --color-warning:          #e0a030;
    --color-warning-highlight: #3a3020;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

h1, h2, h3 {
  font-family: var(--font-display);
}

h1 { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: var(--text-lg); font-weight: 600; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive),
              text-decoration-color var(--transition-interactive);
}
a:hover {
  color: var(--color-primary-hover);
}

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

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .header__inner { padding-inline: var(--space-8); }
}

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

.header__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header__nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .header__nav { display: flex; }
}

.header__nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.header__nav a:hover {
  color: var(--color-text);
}

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

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
}

.mobile-menu-btn:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--color-bg);
  flex-direction: column;
  padding: var(--space-4);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}

.mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-6);
  list-style: none;
}

.mobile-nav__links a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background var(--transition-interactive);
}

.mobile-nav__links a:hover {
  background: var(--color-surface-offset);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

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

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

.hero__overlay {
  background: linear-gradient(
    135deg,
    rgba(18, 22, 30, 0.88) 0%,
    rgba(22, 28, 38, 0.75) 50%,
    rgba(26, 32, 42, 0.65) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
  padding-block: clamp(var(--space-16), 12vw, var(--space-32));
}

@media (min-width: 768px) {
  .hero__content { padding-inline: var(--space-8); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #e0e4ec;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-6);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-4);
  max-width: 14ch;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(210, 215, 225, 1);
  max-width: 42ch;
  margin-bottom: var(--space-8);
  line-height: 1.5;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn--primary {
  background: var(--color-primary);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  color: #ffffff;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
}

.btn--ghost:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

/* ============================================
   BENEFITS SECTION
   ============================================ */

.benefits {
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-16));
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 55ch;
  margin-inline: auto;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-6);
}

.benefit-card {
  padding: var(--space-6);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-text) 6%, transparent);
}

.benefit-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.benefit-card__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.benefit-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.products {
  background: var(--color-bg);
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .products__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.product-card__image img {
  max-height: 100%;
  object-fit: contain;
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card__badge--eco {
  background: var(--color-secondary);
}

.product-card__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.product-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.product-card__specs {
  flex: 1;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--color-divider);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table td {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  vertical-align: top;
}

.spec-table td:first-child {
  color: var(--color-text-muted);
  font-weight: 500;
  padding-right: var(--space-4);
  white-space: nowrap;
}

.spec-table td:last-child {
  color: var(--color-text);
  font-weight: 600;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
  background: var(--color-surface);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.step__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 30ch;
  margin-inline: auto;
}

.how-it-works__image {
  margin-top: clamp(var(--space-8), 5vw, var(--space-16));
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}

.how-it-works__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Arrow between steps (desktop) */
@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: calc(-1 * var(--space-3));
    width: var(--space-6);
    height: 2px;
    background: var(--color-divider);
  }
}

/* ============================================
   Q&A / FAQ
   ============================================ */

.faq {
  background: var(--color-bg);
}

.faq__list {
  max-width: var(--content-default);
  margin-inline: auto;
}

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

.faq-item:first-child {
  border-top: 1px solid var(--color-divider);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  gap: var(--space-4);
  transition: color var(--transition-interactive);
}

.faq-item__question:hover {
  color: var(--color-primary);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-text-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              color var(--transition-interactive);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}

.faq-item.is-open .faq-item__answer {
  opacity: 1;
}

.faq-item__answer-inner {
  padding-bottom: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 65ch;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
  background: var(--color-surface);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.contact__info h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  margin-top: var(--space-6);
}

.contact__info h3:first-child {
  margin-top: 0;
}

.contact__info p,
.contact__info address {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: normal;
  line-height: 1.7;
}

.contact__info a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact__info a:hover {
  text-decoration: underline;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.contact-list strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
}

.footer__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-12) var(--space-4);
}

@media (min-width: 768px) {
  .footer__inner { padding-inline: var(--space-8); }
}

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

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  max-width: 36ch;
  line-height: 1.6;
}

.footer__links h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer__links a:hover {
  color: var(--color-text);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__bottom a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--color-text);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

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

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.font-display { font-family: var(--font-display); }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
