/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* CSS Custom Properties */
:root {
  /* Colors */
  --color-primary: #975542;
  --color-primary-dark: #7a4335;
  --color-secondary: #4E514B;
  --color-accent: #975542;

  --color-bg: #ffffff;
  --color-bg-alt: #f8f8f6;
  --color-bg-dark: #4E514B;

  --color-text: #2d2d2d;
  --color-text-light: #5d5d5a;
  --color-text-white: #ffffff;

  --color-border: #d4d4d2;
  --color-border-light: #e8e8e6;

  /* Typography */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* 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;

  /* Layout */
  --container-max-width: 1200px;
  --header-height: 80px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

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

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* Dark theme */
[data-theme="dark"],
[data-theme="auto"] {
  --color-bg: #2d2d2a;
  --color-bg-alt: #3a3a37;
  --color-bg-dark: #1a1a18;

  --color-text: #f1f1ef;
  --color-text-light: #b8b8b5;
  --color-text-white: #ffffff;

  --color-border: #4E514B;
  --color-border-light: #5d605a;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
}

/* Auto theme - respects system preference */
@media (prefers-color-scheme: light) {
  [data-theme="auto"] {
    --color-bg: #ffffff;
    --color-bg-alt: #f8f8f6;
    --color-bg-dark: #4E514B;

    --color-text: #2d2d2d;
    --color-text-light: #5d5d5a;
    --color-text-white: #ffffff;

    --color-border: #d4d4d2;
    --color-border-light: #e8e8e6;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  }
}

/* Utilities */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-4);
  }
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-12);
  text-align: center;
  position: relative;
  padding-bottom: var(--space-5);
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}

@media (max-width: 768px) {
  .section-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-8);
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 1000;
  height: var(--header-height);
}

[data-theme="dark"] .header,
[data-theme="auto"] .header {
  background: rgba(45, 45, 42, 0.95);
}

@media (prefers-color-scheme: light) {
  [data-theme="auto"] .header {
    background: rgba(255, 255, 255, 0.95);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 100%;
}

.nav__brand {
  flex-shrink: 0;
  margin-right: auto; /* push the menu + actions to the right */
}

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

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

.nav__logo-img {
  width: 32px;
  height: 32px;
  margin-right: var(--space-3);
}

.nav__logo-text {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

.nav__menu-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

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

.nav-menu__item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  transition: color var(--transition-base);
  position: relative;
}

.nav-link:hover,
.nav-link--active {
  color: var(--color-primary);
}

.nav-link--active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
}

.nav-cta {
  background: var(--color-primary);
  color: var(--color-text-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-1);
}

.lang-switcher__btn {
  background: none;
  border: none;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition-base);
}

.lang-switcher--active {
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg-alt);
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  background: var(--color-border-light);
  transform: translateY(-1px);
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
  transition: opacity var(--transition-base);
}

.theme-toggle__icon--dark,
.theme-toggle__icon--auto {
  position: absolute;
  opacity: 0;
}

/* Light theme: show sun icon */
[data-theme="light"] .theme-toggle__icon--light {
  opacity: 1;
}

[data-theme="light"] .theme-toggle__icon--dark,
[data-theme="light"] .theme-toggle__icon--auto {
  opacity: 0;
}

/* Dark theme: show moon icon */
[data-theme="dark"] .theme-toggle__icon--light,
[data-theme="dark"] .theme-toggle__icon--auto {
  opacity: 0;
}

[data-theme="dark"] .theme-toggle__icon--dark {
  opacity: 1;
}

/* Auto theme: show monitor icon */
[data-theme="auto"] .theme-toggle__icon--light,
[data-theme="auto"] .theme-toggle__icon--dark {
  opacity: 0;
}

[data-theme="auto"] .theme-toggle__icon--auto {
  opacity: 1;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  margin: 2px 0;
  transition: all var(--transition-base);
}

.menu-toggle--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle--open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle--open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav__menu-wrapper {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-light);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-6);
    transform: translateY(-100vh);
    transition: transform var(--transition-slow);
  }

  [data-theme="dark"] .nav__menu-wrapper,
  [data-theme="auto"] .nav__menu-wrapper {
    background: rgba(45, 45, 42, 0.98);
  }

  @media (prefers-color-scheme: light) {
    [data-theme="auto"] .nav__menu-wrapper {
      background: rgba(255, 255, 255, 0.98);
    }
  }

  .nav__menu-wrapper.nav-menu--open {
    transform: translateY(0);
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: var(--space-4);
  }

  .nav-cta {
    align-self: center;
  }

  .menu-toggle {
    display: flex;
  }
}

/* Hero Section */
.hero {
  padding: calc(var(--header-height) + var(--space-10)) 0 var(--space-12);
  background: linear-gradient(155deg, #24251f 0%, #3b3d37 45%, #56534c 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% 15%, rgba(151, 85, 66, 0.18), transparent 65%),
    radial-gradient(ellipse 80% 60% at 15% 95%, rgba(0, 0, 0, 0.35), transparent 70%);
  pointer-events: none;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 32vh;
  padding: var(--space-6) 0;
}

.hero__text {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 800px;
  z-index: 1;
}

.hero__title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  color: var(--color-text-white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  text-align: center;
  order: -1;
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-white);
  margin-bottom: var(--space-8);
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

@media (max-width: 768px) {
  .hero {
    padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-10);
  }

  .hero__content {
    min-height: 38vh;
    padding: var(--space-4) 0;
  }

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

  .hero__title {
    font-size: var(--font-size-3xl);
  }

  .hero__subtitle {
    font-size: var(--font-size-lg);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-text-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--secondary:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: var(--color-text-white);
  color: var(--color-text-white);
  transform: translateY(-2px);
}

.btn--youtube {
  background: #FF0000;
  color: var(--color-text-white);
}

.btn--youtube:hover {
  background: #CC0000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--full {
  width: 100%;
}

.btn__icon {
  width: 20px;
  height: 20px;
}


/* Story Section */
.story {
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 50%, var(--color-bg) 100%);
  position: relative;
}

.story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
  pointer-events: none;
}

.story .container {
  position: relative;
  z-index: 1;
}

.story__content {
  max-width: 800px;
  margin: 0 auto;
}

.story__intro {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-8);
  text-align: center;
}

.story__toggle {
  display: block;
  margin: var(--space-6) auto var(--space-8);
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.story__toggle:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.story__expandable {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.story__expandable.story__expandable--open {
  max-height: 2000px;
}

.story__text {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.story__text:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .story {
    padding: var(--space-16) 0;
  }

  .story__intro {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-6);
  }

  .story__text {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-5);
  }
}

/* Gallery Section */
.gallery {
  padding: var(--space-24) 0;
  background: var(--color-bg);
}

.gallery .section-title {
  margin-bottom: var(--space-12);
}

.gallery__youtube {
  text-align: center;
  padding: var(--space-8);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-12);
}

.gallery__youtube-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

/* Horizontal film-strip scroller */
.gallery__filmstrip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.gallery__track {
  --sprocket: 22px;
  --hole-gap: 24px;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--sprocket) var(--space-5);
  background-color: #141210;
  background-image:
    repeating-linear-gradient(90deg, #ddd7c9 0, #ddd7c9 12px, transparent 12px, transparent var(--hole-gap)),
    repeating-linear-gradient(90deg, #ddd7c9 0, #ddd7c9 12px, transparent 12px, transparent var(--hole-gap));
  background-size: var(--hole-gap) 8px, var(--hole-gap) 8px;
  background-position: 12px 7px, 12px calc(100% - 7px);
  background-repeat: repeat-x, repeat-x;
  background-attachment: local, local;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
  scrollbar-width: none;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__frame {
  flex: 0 0 auto;
  width: min(78vw, 440px);
  margin: 0;
  position: relative;
  background: #000;
  border-radius: 3px;
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
}

.gallery__image {
  display: block;
  width: 100%;
  height: 248px;
  object-fit: cover;
  object-position: center;
}

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--color-text-white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  padding: var(--space-8) var(--space-4) var(--space-3);
}

.gallery__nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.gallery__nav:hover {
  background: var(--color-primary);
  color: var(--color-text-white);
}

.gallery__nav svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .gallery {
    padding: var(--space-16) 0;
  }

  .gallery__nav {
    display: none;
  }

  .gallery__track {
    padding: var(--sprocket) var(--space-4);
    gap: var(--space-4);
  }

  .gallery__frame {
    width: 82vw;
  }

  .gallery__image {
    height: 208px;
  }
}


/* Enlarged image lightbox */
.strip-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.strip-modal.strip-modal--open {
  display: flex;
}

.strip-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(2px);
}

.strip-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  max-width: 90vw;
  max-height: 90vh;
  padding: var(--space-8);
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.strip-modal__figure {
  display: flex;
  align-items: center;
  justify-content: center;
}

.strip-modal__figure svg {
  display: block;
  height: min(70vh, 620px);
  width: auto;
}

.strip-modal__figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(88vw, 1100px);
  max-height: min(78vh, 720px);
  object-fit: contain;
  border-radius: var(--radius-md);
}

.strip-modal__caption {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.strip-modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-bg-alt);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
}

.strip-modal__close:hover {
  background: var(--color-primary);
  color: var(--color-text-white);
}

.strip-modal__close svg {
  width: 22px;
  height: 22px;
}

/* Contact Section */
.contact {
  padding: var(--space-24) 0;
  background: var(--color-bg);
}

.contact__content {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-12);
  max-width: 1000px;
  margin: 0 auto;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact__detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact__detail strong {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  font-size: var(--font-size-lg);
}

.contact__detail span {
  color: var(--color-text-light);
  font-size: var(--font-size-base);
}

.contact__detail a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
}

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

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

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

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

.form-input {
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-base);
  background: var(--color-bg);
  color: var(--color-text);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.5;
}

.form-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-checkbox__mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  flex-shrink: 0;
  margin-top: 2px;
}

.form-checkbox input:checked + .form-checkbox__mark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.form-checkbox input:checked + .form-checkbox__mark::after {
  content: '\2713';
  color: var(--color-text-white);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
}

.contact-form__status {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  text-align: center;
}

.contact-form__status--error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

[data-theme="dark"] .contact-form__status--error,
[data-theme="auto"] .contact-form__status--error {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
}

@media (prefers-color-scheme: light) {
  [data-theme="auto"] .contact-form__status--error {
    background: #fef2f2;
    border-color: #fecaca;
  }
}

.contact-form__success {
  background: #10b981;
  color: var(--color-text-white);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: var(--font-weight-medium);
}

.btn__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-left: var(--space-2);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

@media (max-width: 768px) {
  .contact {
    padding: var(--space-16) 0;
  }

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

  .contact__info {
    order: 2;
  }

  .contact-form {
    order: 1;
  }
}

/* Footer */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-white);
  padding: var(--space-16) 0 var(--space-8);
}

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

.footer__logo {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 400px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
  text-align: center;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .footer__links {
    align-items: center;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__text {
  animation: fadeInUp 0.8s ease forwards;
}

.hero__visual {
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus styles */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header,
  .footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    padding-top: var(--space-8);
  }
}
