/* ============================================
   TIMELESSSTONE CO. - MAIN STYLESHEET
   Modern, accessible, responsive design
   Dark/Light mode with CSS variables
   ============================================ */

/* === ROOT VARIABLES & DESIGN SYSTEM === */
:root {
  /* Light Mode Colors */
  --bg-primary: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-gray: #F3F4F6;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --primary: #0F766E;
  --primary-hover: #0D5B54;
  --accent: #D97706;
  --accent-hover: #B45309;
  --border: #E5E7EB;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);
  --overlay: rgba(0, 0, 0, 0.5);
  
  /* Spacing (4px scale) */
  --space-xs: 0.25rem;  /* 4px */
  --space-sm: 0.5rem;   /* 8px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 1.5rem;   /* 24px */
  --space-xl: 2rem;     /* 32px */
  --space-2xl: 3rem;    /* 48px */
  --space-3xl: 4rem;    /* 64px */
  --space-4xl: 6rem;    /* 96px */
  
  /* Typography */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
  
  /* Radius & Shadows */
  --radius: 16px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 3px var(--shadow);
  --shadow-hover: 0 4px 12px var(--shadow-lg);
  
  /* Transitions */
  --transition: 200ms ease;
  
  /* Layout */
  --max-width: 1200px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-primary: #0B0F14;
  --bg-surface: #121821;
  --bg-gray: #1A202C;
  --text-primary: #E5E7EB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --primary: #2DD4BF;
  --primary-hover: #5EEAD4;
  --accent: #F59E0B;
  --accent-hover: #FBBF24;
  --border: #374151;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.5);
  --overlay: rgba(0, 0, 0, 0.7);
}

/* === RESET & BASE STYLES === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition), color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* === CONTAINER & LAYOUT === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: 800px;
}

.section {
  padding: var(--space-4xl) 0;
}

.section--gray {
  background-color: var(--bg-gray);
  transition: background-color var(--transition);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* === HEADER & NAVIGATION === */
.header {
  position: sticky;
  top: 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  z-index: 100;
  transition: background-color var(--transition), border-color var(--transition);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.header__logo-text {
  display: none;
}

@media (min-width: 640px) {
  .header__logo-text {
    display: inline;
  }
}

/* Navigation */
.nav {
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  max-height: calc(100vh - 73px);
  overflow-y: auto;
}

.nav.nav--open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav__list {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
}

.nav__item {
  border-bottom: 1px solid var(--border);
}

.nav__link {
  display: block;
  padding: var(--space-md);
  color: var(--text-primary);
  font-weight: 500;
  transition: color var(--transition), background-color var(--transition);
}

.nav__link:hover,
.nav__link:focus {
  color: var(--primary);
  background-color: var(--bg-gray);
  outline: none;
}

.nav__link--active {
  color: var(--primary);
  font-weight: 600;
}

@media (min-width: 768px) {
  .nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: none;
    max-height: none;
  }
  
  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-sm);
    padding: 0;
  }
  
  .nav__item {
    border: none;
  }
  
  .nav__link {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
  }
}

/* Header Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background-color: var(--bg-gray);
  transition: background-color var(--transition), color var(--transition);
}

.theme-toggle:hover,
.theme-toggle:focus {
  background-color: var(--primary);
  color: white;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.theme-toggle__icon .sun {
  display: block;
}

.theme-toggle__icon .moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon .sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon .moon {
  display: block;
}

/* Nav Toggle (Mobile) */
.nav-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle__bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  background-image: url('/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--overlay);
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: var(--space-3xl) 0;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.5;
  margin-bottom: var(--space-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.hero__links {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.hero__link:hover {
  color: white;
}

.hero__link-separator {
  color: rgba(255, 255, 255, 0.5);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn--secondary {
  background-color: white;
  color: var(--primary);
  border-color: white;
}

.btn--secondary:hover,
.btn--secondary:focus {
  background-color: var(--bg-gray);
  color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn--outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover,
.btn--outline:focus {
  background-color: var(--primary);
  color: white;
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn--full {
  width: 100%;
}

.btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/* === STATS SECTION === */
.stats {
  background-color: var(--bg-surface);
  padding: var(--space-3xl) 0;
  box-shadow: var(--shadow-card);
  transition: background-color var(--transition);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}

.stat__number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === PRODUCTS GRID === */
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card__icon {
  width: 64px;
  height: 64px;
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.product-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.product-card__description {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.product-card__link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.product-card__link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* === PARTNERS SECTION === */
.partners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-xl);
  align-items: center;
  justify-items: center;
}

.partner-logo {
  opacity: 0.6;
  transition: opacity var(--transition);
  filter: grayscale(100%);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.partner-logo img {
  max-height: 60px;
}

/* === TESTIMONIALS === */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.testimonial {
  background-color: var(--bg-surface);
  border-radius: var(--radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.testimonial:hover {
  box-shadow: var(--shadow-hover);
}

.testimonial__stars {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.testimonial__quote {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.testimonial__author strong {
  color: var(--text-primary);
  font-weight: 600;
}

.testimonial__author span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* === FAQ ACCORDION === */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  background-color: var(--bg-surface);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-card);
  transition: background-color var(--transition);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition);
}

.faq__question:hover,
.faq__question:focus {
  color: var(--primary);
  outline: none;
}

.faq__icon {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform var(--transition);
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__question[aria-expanded="true"] + .faq__answer {
  max-height: 500px;
  padding: 0 var(--space-lg) var(--space-lg);
}

.faq__answer p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === CTA SECTION === */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  text-align: center;
  padding: var(--space-4xl) 0;
}

.cta__content {
  max-width: 700px;
  margin: 0 auto;
}

.cta__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cta__text {
  font-size: 1.125rem;
  margin-bottom: var(--space-2xl);
  opacity: 0.95;
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* === PAGE HERO (Internal Pages) === */
.page-hero {
  background-color: var(--bg-surface);
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition), border-color var(--transition);
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.page-hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* === ABOUT PAGE === */
.story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .story__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.story__image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}

.story__content h2 {
  margin-bottom: var(--space-md);
}

.story__content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.cert__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.cert-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: background-color var(--transition), transform var(--transition);
}

.cert-card:hover {
  transform: translateY(-4px);
}

.cert-card__badge {
  margin-bottom: var(--space-md);
}

.cert-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.cert-card__description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.sustainability__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.sustainability-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  transition: background-color var(--transition);
}

.sustainability-card__icon {
  width: 64px;
  height: 64px;
  background-color: #10B981;
  color: white;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.sustainability-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.sustainability-card__description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.team-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: background-color var(--transition), transform var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-card__image {
  width: 100%;
  height: 250px;
  background-color: var(--bg-gray);
  overflow: hidden;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-md) var(--space-md) var(--space-xs);
}

.team-card__role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  margin: 0 var(--space-md) var(--space-sm);
}

.team-card__bio {
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 0 var(--space-md) var(--space-md);
}

/* Timeline */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border);
}

.timeline__item {
  position: relative;
  padding-left: 80px;
  padding-bottom: var(--space-2xl);
}

.timeline__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  z-index: 10;
}

.timeline__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.timeline__description {
  color: var(--text-secondary);
  line-height: 1.7;
}

.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  text-align: center;
  padding: var(--space-4xl) 0;
}

.cta-banner__content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cta-banner__text {
  font-size: 1.125rem;
  margin-bottom: var(--space-2xl);
  opacity: 0.95;
}

/* === CONTACT PAGE === */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: 2fr 1fr;
  }
}

.contact__form-wrapper {
  background-color: var(--bg-surface);
  border-radius: var(--radius);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-card);
  transition: background-color var(--transition);
}

.contact__heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.contact__intro {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.required {
  color: #EF4444;
}

.optional {
  color: var(--text-muted);
  font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  transition: border-color var(--transition), background-color var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-input:invalid:not(:placeholder-shown),
.form-select:invalid,
.form-textarea:invalid:not(:placeholder-shown) {
  border-color: #EF4444;
}

.form-error {
  color: #EF4444;
  font-size: 0.875rem;
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: #EF4444;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  color: var(--text-primary);
}

.checkbox-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox-label--consent {
  align-items: flex-start;
  margin-top: var(--space-md);
}

.file-upload {
  position: relative;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.file-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: border-color var(--transition), background-color var(--transition);
}

.file-label:hover {
  border-color: var(--primary);
  background-color: var(--bg-gray);
}

.form-help {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.char-count {
  text-align: right;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.form-message {
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  display: none;
}

.form-message--success {
  display: block;
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #10B981;
}

.form-message--error {
  display: block;
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #EF4444;
}

/* Contact Sidebar */
.contact__sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.contact-info {
  background-color: var(--bg-surface);
  border-radius: var(--radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  transition: background-color var(--transition);
}

.contact-info__heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.contact-info__item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.contact-info__item:last-of-type {
  border-bottom: none;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info__content h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.contact-info__link {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-xs);
}

.contact-info__note {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: var(--space-xs);
}

.contact-info__map {
  margin: var(--space-lg) 0;
}

.contact-info__map img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.contact-info__map-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.contact-cta {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.contact-cta__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.contact-cta .btn {
  margin-bottom: var(--space-sm);
}

/* === LEGAL PAGES === */
.legal-page {
  background-color: var(--bg-surface);
}

.legal-content {
  padding: var(--space-2xl) 0;
}

.legal-header {
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-xl);
  border-bottom: 2px solid var(--border);
}

.legal-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
}

.legal-intro {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
}

.legal-section {
  margin-bottom: var(--space-3xl);
}

.legal-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.legal-subheading {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--space-lg) 0 var(--space-md);
}

.legal-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.legal-list {
  list-style: disc;
  padding-left: var(--space-xl);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.legal-list li {
  margin-bottom: var(--space-sm);
}

.legal-contact {
  background-color: var(--bg-gray);
  padding: var(--space-lg);
  border-radius: var(--radius);
  margin: var(--space-lg) 0;
}

.legal-contact p {
  margin-bottom: var(--space-xs);
}

.legal-footer {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--border);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* === FOOTER === */
.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-xl);
  transition: background-color var(--transition), border-color var(--transition);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.footer__description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  background-color: var(--bg-gray);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), color var(--transition);
}

.footer__social-link:hover {
  background-color: var(--primary);
  color: white;
}

.footer__heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__address {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer__address a {
  color: var(--text-secondary);
}

.footer__address a:hover {
  color: var(--primary);
}

.footer__hours {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* === ACCESSIBILITY === */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 640px) {
  .hero__cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

/* === PRINT STYLES === */
@media print {
  .header,
  .nav,
  .hero,
  .cta,
  .cta-banner,
  .footer {
    display: none;
  }
}