/* ============================================
   Digital Specimen Case - Design System
   ============================================ */

:root {
  /* Color Palette */
  --color-dusted-charcoal: #1A1A1D;
  --color-ethereal-sand: #D7C4B1;
  --color-static-copper: #A67C52;
  --color-soft-sage: #7B8271;
  --color-glass-bg: rgba(215, 196, 177, 0.05);
  --color-glass-border: rgba(166, 124, 82, 0.3);
  --color-text-primary: #D7C4B1;
  --color-text-secondary: #A67C52;
  --color-text-muted: #7B8271;
  
  /* Typography */
  --font-serif: 'Cormorant', serif;
  --font-sans: 'Tenor Sans', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --border-thin: 1px solid var(--color-glass-border);
  
  /* Shadows */
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(166, 124, 82, 0.2);
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base Styles
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-dusted-charcoal);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-static-copper);
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-ethereal-sand);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
  margin-bottom: var(--space-sm);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

/* ============================================
   Header
   ============================================ */

.site-header {
  position: relative;
  padding: var(--space-md) var(--space-md);
  background: var(--color-glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-thin);
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  position: relative;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--color-ethereal-sand);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  gap: 15px;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background: var(--color-glass-bg);
  color: var(--color-static-copper);
}

/* Burger Menu - Always in Header */
.burger-toggle {
  background: transparent;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  padding: var(--space-xs);
  cursor: pointer;
  color: var(--color-ethereal-sand);
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 100100;
  position: relative;
}

.burger-toggle:hover {
  background: var(--color-glass-bg);
  border-color: var(--color-static-copper);
}

.burger-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: all var(--transition-fast);
}

.burger-icon::before,
.burger-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: all var(--transition-fast);
}

.burger-icon::before {
  top: -8px;
}

.burger-icon::after {
  bottom: -8px;
}

.burger-toggle.active .burger-icon {
  background: transparent;
}

.burger-toggle.active .burger-icon::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-toggle.active .burger-icon::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation - Separate from Header */
@media (max-width: 1023px) {
  /* Show burger button on mobile */
  .burger-toggle {
    display: flex;
  }

  /* Hide regular navigation menu */
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-dusted-charcoal);
    border-left: var(--border-thin);
    flex-direction: column;
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-md);
    transition: right var(--transition-smooth);
    z-index: 10000;
    overflow-y: auto;
    box-shadow: var(--shadow-glass);
  }

  .nav-menu.active {
    display: flex;
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: var(--space-sm);
    text-align: left;
    border-bottom: var(--border-thin);
  }
}

/* Desktop Navigation - Show regular menu above 1023px */
@media (min-width: 1024px) {
  .burger-toggle {
    display: none !important;
  }
  
  .nav-menu {
    display: flex !important;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
  }
  
  .nav-link {
    width: auto;
    padding: var(--space-xs) var(--space-sm);
    text-align: center;
    border-bottom: none;
  }
}

/* ============================================
   Main Content
   ============================================ */

main {
  min-height: calc(100vh - 200px);
}

/* ============================================
   Hero Banner (Full-Width)
   ============================================ */

.hero-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 29, 0.7) 0%,
    rgba(26, 26, 29, 0.5) 50%,
    rgba(26, 26, 29, 0.8) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: var(--space-md);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--color-ethereal-sand);
  margin-bottom: var(--space-lg);
  opacity: 0.95;
}

/* Time-Freeze Slider */
.time-freeze-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: var(--space-xl) auto;
  height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-thin);
  box-shadow: var(--shadow-glass);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-image {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-image-fresh {
  clip-path: inset(0 50% 0 0);
  transition: clip-path var(--transition-smooth);
}

.slider-image-preserved {
  clip-path: inset(0 0 0 50%);
}

.slider-control {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--color-static-copper);
  cursor: ew-resize;
  z-index: 10;
  box-shadow: var(--shadow-glow);
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--color-glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--color-static-copper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: var(--shadow-glass);
}

.slider-handle:active {
  cursor: grabbing;
}

.slider-handle::before,
.slider-handle::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 2px;
  background: var(--color-static-copper);
}

.slider-handle::before {
  left: 12px;
}

.slider-handle::after {
  right: 12px;
}

/* ============================================
   Sections
   ============================================ */

.content-section {
  padding: var(--space-xl) var(--space-md);
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.content-section > * {
  text-align: left;
}

.content-section > h2,
.content-section > p.text-center {
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-static-copper), transparent);
}

/* Grid Layouts */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-md);
}

.grid-item {
  background: var(--color-glass-bg);
  backdrop-filter: blur(10px);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all var(--transition-fast);
  overflow: hidden;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glass);
  border-color: var(--color-static-copper);
}

.grid-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.grid-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: var(--space-xs);
  color: var(--color-ethereal-sand);
}

.grid-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Botanical Grid (Herbarium Style) */
.herbarium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-md);
}

.specimen-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(10px);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  position: relative;
  transition: all var(--transition-fast);
}

.specimen-card:hover {
  transform: scale(1.02);
  border-color: var(--color-static-copper);
  box-shadow: var(--shadow-glow);
}

.specimen-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.specimen-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-ethereal-sand);
  margin-bottom: var(--space-xs);
  font-style: italic;
}

.specimen-technique {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.specimen-lifespan {
  font-size: 0.8rem;
  color: var(--color-static-copper);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-glass-border);
}

/* Timeline Slider */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: var(--space-xl) auto;
  padding: var(--space-lg);
}

.timeline-track {
  position: relative;
  height: 600px;
  overflow-y: auto;
  padding: var(--space-md);
}

.timeline-step {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  position: relative;
  padding-left: var(--space-lg);
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-static-copper), var(--color-soft-sage));
  border-radius: 2px;
}

.timeline-marker {
  position: absolute;
  left: -8px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--color-static-copper);
  border: 3px solid var(--color-dusted-charcoal);
  border-radius: 50%;
  box-shadow: var(--shadow-glow);
}

.timeline-content {
  flex: 1;
  background: var(--color-glass-bg);
  backdrop-filter: blur(10px);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.timeline-image {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.timeline-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-ethereal-sand);
}

/* ============================================
   Contact Form
   ============================================ */

.contact-section {
  padding: var(--space-xl) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.contact-info {
  background: var(--color-glass-bg);
  backdrop-filter: blur(10px);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.info-item {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: var(--border-thin);
}

.info-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.info-value {
  font-size: 1.125rem;
  color: var(--color-ethereal-sand);
}

.contact-form {
  background: var(--color-glass-bg);
  backdrop-filter: blur(10px);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-ethereal-sand);
  font-size: 0.95rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  background: rgba(26, 26, 29, 0.5);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-static-copper);
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.1);
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.checkbox-input {
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.btn-submit {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: 2px solid var(--color-static-copper);
  border-radius: var(--radius-sm);
  color: var(--color-static-copper);
  font-family: var(--font-sans);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 10px;
}

.btn-submit:hover {
  background: var(--color-static-copper);
  color: var(--color-dusted-charcoal);
  box-shadow: var(--shadow-glow);
}

.map-container {
  margin-top: var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border-thin);
  height: 400px;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--color-glass-bg);
  backdrop-filter: blur(10px);
  border-top: var(--border-thin);
  padding: var(--space-lg) var(--space-md);
  margin-top: var(--space-xl);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.footer-section {
  margin-bottom: var(--space-md);
}

.footer-title {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--color-ethereal-sand);
}

.footer-menu {
  list-style: none;
}

.footer-link {
  display: block;
  padding: var(--space-xs) 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

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

.footer-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
  text-align: center;
}

/* ============================================
   Thank You & 404 Pages
   ============================================ */

.message-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.message-content {
  max-width: 600px;
  background: var(--color-glass-bg);
  backdrop-filter: blur(10px);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.message-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
  color: var(--color-ethereal-sand);
}

.message-text {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

/* ============================================
   Privacy Policy Popup
   ============================================ */

.privacy-popup {
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  max-width: 500px;
  background: var(--color-glass-bg);
  backdrop-filter: blur(10px);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  z-index: 10000;
  box-shadow: var(--shadow-glass);
  display: none;
}

.privacy-popup.active {
  display: block;
}

.privacy-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.privacy-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.btn-privacy {
  padding: var(--space-xs) var(--space-sm);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-privacy:hover {
  background: var(--color-static-copper);
  border-color: var(--color-static-copper);
  color: var(--color-dusted-charcoal);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }
  
  .hero-banner {
    height: 60vh;
    min-height: 400px;
  }
  
  .time-freeze-container {
    height: 400px;
  }
  
  .grid-container,
  .herbarium-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-step {
    flex-direction: column;
  }
}

@media (max-width: 480px) {

  .hero-content {
    padding: var(--space-md);
  }
  
  .content-section {
    padding: var(--space-md) var(--space-sm);
  }
  
  .privacy-popup {
    left: var(--space-sm);
    right: var(--space-sm);
    bottom: var(--space-sm);
  }
}

/* ============================================
   Utility Classes
   ============================================ */

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

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.date {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

