/* ============================================
   JONAS MIKOLAYUNAS - GLOBAL STYLES
   Design System, Base Styles, and Shared Components
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Sans+3:wght@300;400;600&display=swap');

/* ============================================
   COLOR TOKENS
   ============================================ */
:root {
  /* Primary Palette */
  --color-gallery-white: #F7F6F3;
  --color-graphite: #2E2E2E;
  --color-charcoal: #121212;
  --color-black: #000000;
  --color-brass: #C7A86A;

  /* Functional Colors */
  --color-bg-primary: var(--color-gallery-white);
  --color-bg-dark: var(--color-charcoal);
  --color-text-primary: var(--color-graphite);
  --color-text-secondary: #6B6B6B;
  --color-text-inverse: var(--color-gallery-white);
  --color-accent: var(--color-brass);
  --color-link: var(--color-graphite);
  --color-link-hover: var(--color-brass);

  /* Overlays & Borders */
  --color-overlay: rgba(18, 18, 18, 0.6);
  --color-border: rgba(46, 46, 46, 0.15);
}

/* ============================================
   TYPOGRAPHY SCALE
   ============================================ */
:root {
  /* Font Families */
  --font-primary: 'Libre Baskerville', serif;
  --font-secondary: 'Source Sans 3', sans-serif;

  /* Type Scale (fluid, min at 320px, max at 1440px) */
  --text-xs: 0.875rem;                                          /* 14px */
  --text-sm: 1rem;                                              /* 16px */
  --text-base: 1.125rem;                                        /* 18px */
  --text-lg: clamp(1.25rem, 1.21rem + 0.18vw, 1.375rem);       /* 20-22px */
  --text-xl: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);           /* 24-36px */
  --text-2xl: clamp(2rem, 1.6rem + 2vw, 3.5rem);             /* 32-56px */
  --text-3xl: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);           /* 40-72px */

  /* Line Heights */
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* Font Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;
}

/* ============================================
   SPACING RHYTHM
   ============================================ */
:root {
  /* Base unit: 8px scale */
  --space-1: 0.5rem;    /* 8px */
  --space-2: 1rem;      /* 16px */
  --space-3: 1.5rem;    /* 24px */
  --space-4: 2rem;      /* 32px */
  --space-5: 3rem;      /* 48px */
  --space-6: 4rem;      /* 64px */
  --space-7: 6rem;      /* 96px */
  --space-8: 8rem;      /* 128px */
  --space-9: 12rem;     /* 192px */
  --space-10: 16rem;    /* 256px */
  --space-12: 24rem;    /* 384px */

  /* Semantic Spacing */
  --section-padding-y: clamp(4rem, 8vw, 8rem);
  --section-padding-x: clamp(1.5rem, 5vw, 3rem);
  --container-max-width: 1440px;
  --container-narrow: 800px;
  --grid-gap: var(--space-4);
}

/* ============================================
   TRANSITIONS & EFFECTS
   ============================================ */
:root {
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease;
  --transition-slow: 0.6s ease;
  --transition-luxury: 0.8s ease-out;

  /* Shadows */
  --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 60px rgba(0, 0, 0, 0.15);

  /* Layout Constants */
  --header-height: 60px;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============================================
   TYPOGRAPHY CLASSES
   ============================================ */
.text-display {
  font-family: var(--font-primary);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  font-weight: var(--weight-regular);
}

.text-h1 {
  font-family: var(--font-primary);
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  font-weight: var(--weight-regular);
}

.text-h2 {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  font-weight: var(--weight-regular);
}

.text-lead {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  font-weight: var(--weight-regular);
}

.text-body {
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: var(--weight-regular);
}

.text-meta {
  font-family: var(--font-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-center {
  text-align: center;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.section-padded {
  padding-block: var(--section-padding-y);
  padding-inline: var(--section-padding-x);
}

.section-container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--section-padding-x);
}

.section-container--narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--section-padding-x);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(247, 246, 243, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.12),
    0 14px 38px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  padding-top: env(safe-area-inset-top);
}

.site-header.scrolled {
  background: rgba(247, 246, 243, 0.95);
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: calc(var(--space-3) - 13.875px) var(--section-padding-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  color: var(--color-graphite);
  letter-spacing: 0.02em;
}

.site-nav {
  display: none;
}

.nav-list {
  display: flex;
  gap: var(--space-5);
  align-items: center;
}

.nav-link {
  font-family: var(--font-secondary);
  font-size: calc(var(--text-sm) - 2px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-link);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-brass);
}

.nav-link[aria-current="page"] {
  color: var(--color-brass);
  pointer-events: none;
}


/* Mobile Nav Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  width: 24px;
  height: 2px;
  background: var(--color-graphite);
  transition: all 0.3s ease;
}

.nav-toggle-icon {
  position: relative;
  display: block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -8px;
}

.nav-toggle-icon::after {
  bottom: -8px;
}

/* Mobile nav open state */
.site-nav.is-active {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-charcoal);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.site-nav.is-active .nav-list {
  flex-direction: column;
  gap: var(--space-4);
  text-align: center;
  padding: 0;
}

.site-nav.is-active .nav-link {
  font-size: var(--text-lg);
  color: var(--color-gallery-white);
  letter-spacing: 0.06em;
}

.site-nav.is-active .nav-link[aria-current="page"] {
  color: var(--color-brass);
}

.site-nav.is-active::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-brass);
  opacity: 0.5;
  margin: 0 auto var(--space-3);
}

.nav-toggle.is-active .nav-toggle-icon {
  background: transparent;
}

.nav-toggle.is-active .nav-toggle-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.is-active .nav-toggle-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* INTENTIONAL: horizontal nav activates at 1024px not 768px.
   Portrait tablet (768-1023px) uses hamburger overlay.
   Do not revert to 768px. */
@media (min-width: 1024px) {
  .site-nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }
}

/* ============================================
   WORK GRID - AUTO-SIZING IMAGES
   ============================================ */

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 0;
}

.work-item {
  overflow: hidden;
  background: transparent;
}

.work-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.work-link:hover {
  transform: translateY(-4px);
}

/* Container that auto-sizes to image */
.work-media {
  position: relative;
  display: block;
  width: 100%;
  /* aspect-ratio will be set by JavaScript */
  overflow: hidden;
  background-color: transparent; /* Preserves transparent PNG/WebP backgrounds */
  padding: 0;
  margin: 0;
  line-height: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fallback aspect ratio if JS doesn't run */
.work-media:not([data-aspect-ratio]) {
  aspect-ratio: 4 / 5; /* Default fallback */
}

.work-image {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Detail image (shows on hover) */
.work-image--detail {
  opacity: 0;
  transform: scale(1.05);
}

.work-item:hover .work-image--detail {
  opacity: 1;
  transform: scale(1);
}

/* Optional: Zoom main image on hover */
.work-item:hover .work-image:not(.work-image--detail) {
  transform: scale(1.02);
}

.work-info {
  padding: 1.5rem 0.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s,
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
}

.work-item.fade-in-scroll.is-visible .work-info {
  opacity: 1;
  transform: translateY(0);
}

.work-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: #2E2E2E;
}

.work-meta {
  font-size: 0.875rem;
  color: #6B6B6B;
  font-style: italic;
}

/* Responsive adjustments - mobile-first */
@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(4rem, 8vw, 8rem);
  }
}

/* ============================================
   LUXURY DROP SHADOWS - DUAL-ANGLE SYSTEM
   Light from upper-left: key shadow falls lower-right (+X, +Y),
   fill shadow uses slight counter-direction (-X, +Y).
   Mobile-first: lighter base, four tiers on desktop by image category.
   ============================================ */

/* Mobile base - shared lighter values across all four image types */
.piece-hero-image,
.gallery-image-wrapper img,
.work-image,
.gallery-item-image {
  filter:
    drop-shadow( 4px  5px 10px rgba(42, 42, 42, 0.14))  /* Key (upper-left) */
    drop-shadow(-3px 10px 20px rgba(26, 26, 26, 0.09));  /* Fill (upper-right) */
}

/* Desktop - four tiers scaled by image category */
@media (min-width: 768px) {
  /* Tier 1 — Piece hero images (largest format) */
  .piece-hero-image {
    filter:
      drop-shadow( 8px 10px 20px rgba(42, 42, 42, 0.20))  /* Key (upper-left) */
      drop-shadow(-6px 20px 44px rgba(26, 26, 26, 0.13)); /* Fill (upper-right) */
  }

  /* Tier 2 — Piece page gallery section images */
  .gallery-image-wrapper img {
    filter:
      drop-shadow( 7px  8px 16px rgba(42, 42, 42, 0.20))  /* Key (upper-left) */
      drop-shadow(-5px 16px 36px rgba(26, 26, 26, 0.13)); /* Fill (upper-right) */
  }

  /* Tier 3 — Home page featured work images */
  .work-image {
    filter:
      drop-shadow( 6px  8px 14px rgba(42, 42, 42, 0.18))  /* Key (upper-left) */
      drop-shadow(-4px 14px 30px rgba(26, 26, 26, 0.11)); /* Fill (upper-right) */
  }

  /* Tier 4 — Gallery page grid items (most numerous, smallest) */
  .gallery-item-image {
    filter:
      drop-shadow( 5px  6px 11px rgba(42, 42, 42, 0.18))  /* Key (upper-left) */
      drop-shadow(-3px 12px 24px rgba(26, 26, 26, 0.12)); /* Fill (upper-right) */
  }
}

/* High-DPI Display Enhancement (Retina/4K) — shared refinement */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .piece-hero-image,
  .gallery-image-wrapper img,
  .work-image,
  .gallery-item-image {
    filter:
      drop-shadow( 4px  6px 12px rgba(42, 42, 42, 0.17))  /* Key (upper-left) */
      drop-shadow(-3px 12px 24px rgba(26, 26, 26, 0.12)); /* Fill (upper-right) */
  }
}

/* ============================================
   SPLIT LAYOUT
   ============================================ */
.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

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

.split-content {
  padding: var(--space-4) 0;
}

.split-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.split-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 2px solid;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
}

.btn--primary {
  color: var(--color-text-inverse);
  border-color: var(--color-text-inverse);
}

.btn--primary:hover {
  color: var(--color-charcoal);
  background: var(--color-text-inverse);
}

.btn--accent {
  color: var(--color-brass);
  border-color: var(--color-brass);
}

.btn--accent:hover {
  color: var(--color-charcoal);
  background: var(--color-brass);
}

.btn-arrow {
  display: inline-block;
  line-height: 1;
  transform: translateY(-1px); /* Fine-tune vertical position */
}

/* Large button variant */
.btn--large {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  background: var(--color-bg-primary);
}

.cta-title {
  font-family: var(--font-primary);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  margin: 0 0 var(--space-3);
}

.cta-text {
  font-family: var(--font-secondary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-5);
}

.philosophy.section-padded {
  padding-top: clamp(8rem, 14vw, 14rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

/* INTENTIONAL: reduce top padding on mobile so the
   transition from the 100vh hero into the philosophy
   text does not feel like a dead zone.
   Desktop spacing is preserved at min-width: 768px.
   Do not remove this block or increase the mobile value. */
@media (max-width: 767px) {
  .philosophy.section-padded {
    padding-top: clamp(5rem, 10vw, 8rem);
  }

  .cta-title {
    font-size: var(--text-xl);
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-text-inverse);
  position: relative;
  padding: var(--space-8) var(--section-padding-x) var(--space-6);
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  position: relative;
  /* INTENTIONAL: centers all footer content on mobile.
     Do not remove text-align: center from this rule. */
  text-align: center;
}

/* INTENTIONAL: footer three-column activates at 1024px.
   At tablet footer stays single-column centered.
   Do not revert to 768px. */
@media (min-width: 1024px) {
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-6);
    text-align: left;
  }

  .footer-nav-list {
    align-items: flex-start;
  }

  .footer-social {
    justify-content: flex-start;
  }
}

.footer-logo {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  margin: 0 0 var(--space-1);
}

.footer-logo-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-logo-link:hover {
  color: var(--color-brass);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  /* INTENTIONAL: centers nav links on mobile.
     Do not remove align-items: center. */
  align-items: center;
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-inverse);
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer-link:hover {
  color: var(--color-brass);
}


.footer-social {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  /* INTENTIONAL: centers social links on mobile.
     Do not remove justify-content: center. */
  justify-content: center;
  font-family: var(--font-secondary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.social-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--color-brass);
}

.social-divider {
  color: var(--color-text-secondary);
  opacity: 0.3;
  user-select: none;
  pointer-events: none;
}

.footer-legal {
  grid-column: 1 / -1;
  margin-top: var(--space-6);
  padding-top: 0;
  border-top: none;
  text-align: center;
}


.footer-copyright {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  opacity: 0.5;
  margin: 0;
}

.footer-legal-divider {
  opacity: 0.5;
}

.footer-privacy-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-privacy-link:hover {
  color: var(--color-brass);
  opacity: 1;
}

.footer-attribution {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-6);
  margin-top: var(--space-2);
  border-top: none;
  border-bottom: none;
  opacity: 0.6;
  justify-content: flex-start;
  text-align: left;
}

.footer-attribution--lower-left {
  position: static;
  padding-top: var(--space-4);
  margin-top: 0;
  justify-content: flex-start;
  opacity: 0.75;
  text-align: left;
}

/* INTENTIONAL: absolute positioning only at desktop.
   At tablet stays in normal document flow. */
@media (min-width: 1024px) {
  .footer-attribution--lower-left {
    position: absolute;
    left: 0;
    bottom: 0;
    padding-top: 0;
  }
}

.attribution-text {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  text-transform: none;
  letter-spacing: 0.02em;
  font-style: italic;
}

.attribution-logo {
  height: 20px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.attribution-link:hover .attribution-logo {
  opacity: 1;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PAGE TITLE STYLES (Shared)
   ============================================ */
.page-title {
  font-family: var(--font-primary);
  font-size: var(--text-3xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-3);
}

.page-subtitle {
  font-family: var(--font-secondary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   SECTION TITLE STYLES (Shared)
   ============================================ */
.section-title {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-7);
  text-align: center;
}

/* Section subtitle style */
.section-subtitle {
  font-family: var(--font-secondary);
  font-size: var(--text-xs);
  text-align: center;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: var(--weight-regular);
  margin: -3rem auto 5rem;
  max-width: 600px;
  opacity: 0.85;
}

.section-divider {
  width: 60px;
  height: 2px;
  margin: var(--space-4) auto;
  background: var(--color-brass);
  opacity: 0.6;
}

/* ============================================
   BACKGROUND UTILITIES
   ============================================ */
.bg-dark {
  background: var(--color-bg-dark);
}

.bg-dark .section-title,
.bg-dark .text-body {
  color: var(--color-text-inverse);
}

.bg-light {
  background: rgba(199, 168, 106, 0.03);
}

/* ============================================
   FORM STYLES (Shared)
   ============================================ */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  font-family: var(--font-secondary);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
  color: var(--color-text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-brass);
  background: rgba(199, 168, 106, 0.02);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
  line-height: var(--leading-relaxed);
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--space-2);
}

.form-message {
  padding: var(--space-3);
  border-radius: 4px;
  display: none;
  margin-top: var(--space-2);
}

.form-message.show {
  display: block;
}

.form-message--success {
  background: rgba(199, 168, 106, 0.1);
  border: 1px solid var(--color-brass);
  color: var(--color-text-inverse);
}

.form-message--error {
  background: rgba(200, 50, 50, 0.1);
  border: 1px solid rgba(200, 80, 80, 0.8);
  color: var(--color-text-inverse);
}

.form-message p {
  margin: 0;
  font-size: var(--text-sm);
}

.form-message a {
  color: var(--color-brass);
  text-decoration: underline;
}

.form-helper {
  display: block;
  font-family: var(--font-secondary);
  font-size: var(--text-xs);
  color: var(--color-brass);
  margin-top: var(--space-1);
  font-style: italic;
  opacity: 0.8;
}

/* ============================================
   LANDSCAPE PHONE PROTECTION
   Fires when viewport is short (≤ 500px tall)
   and in landscape orientation.
   Prevents section padding, nav overlay, and
   shared layout from clipping on a rotated phone.
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .section-padded {
    padding-block: clamp(3rem, 6vw, 5rem);
  }

  .site-nav.is-active {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-top: 4.5rem;
    padding-bottom: 2rem;
  }

  .site-nav.is-active .nav-link {
    font-size: var(--text-base);
  }

  .site-nav.is-active .nav-list {
    gap: var(--space-2);
  }
}
