/* style.css — Balkan Botanicals */

/* === DESIGN TOKENS === */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(2.5rem,   0.5rem  + 5.5vw,  5.5rem);

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

  /* Fonts */
  --font-display: 'Cormorant', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  /* === CUSTOM PALETTE — Earth Tones === */
  --color-bg:               #f5f0e8;
  --color-surface:          #faf7f1;
  --color-surface-2:        #ffffff;
  --color-surface-offset:   #ede8de;
  --color-surface-offset-2: #e5dfd4;
  --color-surface-dynamic:  #ddd7cb;
  --color-divider:          #d4cdc0;
  --color-border:           #c9c1b3;

  --color-text:           #1a2e1f;
  --color-text-muted:     #5e6b5a;
  --color-text-faint:     #9ca396;
  --color-text-inverse:   #f5f0e8;

  /* Primary — Deep Forest Green */
  --color-primary:          #1a3a2a;
  --color-primary-hover:    #0f2a1c;
  --color-primary-active:   #0a1e14;
  --color-primary-highlight: #d4e0d8;

  /* Accent — Rosehip Red */
  --color-rosehip:          #c4533a;
  --color-rosehip-hover:    #a8412b;
  --color-rosehip-active:   #8c3322;
  --color-rosehip-highlight: #f0ddd8;

  /* Accent — Juniper Blue */
  --color-juniper:          #4a6e7a;
  --color-juniper-hover:    #3a5a64;
  --color-juniper-active:   #2d474f;
  --color-juniper-highlight: #d8e4e8;

  /* Accent — Rich Brown */
  --color-brown:            #5c3d2e;
  --color-brown-hover:      #4a2f22;
  --color-brown-active:     #3a2318;
  --color-brown-highlight:  #e0d4cc;

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

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

  /* Shadows — warm-tinted */
  --shadow-sm: 0 1px 2px oklch(0.25 0.02 60 / 0.08);
  --shadow-md: 0 4px 12px oklch(0.25 0.02 60 / 0.1);
  --shadow-lg: 0 12px 32px oklch(0.25 0.02 60 / 0.14);

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


/* === LANGUAGE SWITCHER === */
.lang-content { display: none; }
.lang-content.active { display: block; }
/* For inline elements */
.lang-inline { display: none; }
.lang-inline.active { display: inline; }
/* For nav link text */
.nav-link-text { display: none; }
.nav-link-text.active { display: inline; }
/* For flex items */
.lang-flex { display: none; }
.lang-flex.active { display: flex; }
/* For grid items */
.lang-grid { display: none; }
.lang-grid.active { display: grid; }


/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-4);
}


/* === TOP BAR / LANGUAGE SWITCHER === */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  background: oklch(from var(--color-primary) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.top-bar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.top-bar-logo img {
  height: 32px;
  width: auto;
}
.top-bar-logo span {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-inverse);
  letter-spacing: 0.01em;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: oklch(1 0 0 / 0.1);
  border-radius: var(--radius-full);
  padding: var(--space-1);
}
.lang-btn {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: oklch(1 0 0 / 0.6);
  transition: background var(--transition-interactive), color var(--transition-interactive);
  min-height: 36px;
  display: flex;
  align-items: center;
}
.lang-btn:hover {
  color: oklch(1 0 0 / 0.85);
  background: oklch(1 0 0 / 0.08);
}
.lang-btn.active {
  background: oklch(1 0 0 / 0.18);
  color: var(--color-text-inverse);
  font-weight: 600;
}

@media (max-width: 480px) {
  .top-bar { padding: var(--space-2) var(--space-4); }
  .top-bar-logo span { display: none; }
}


/* === NAV LINKS (desktop) === */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  color: oklch(1 0 0 / 0.7);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 400;
  transition: color var(--transition-interactive);
}
.nav-links a:hover {
  color: var(--color-text-inverse);
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
}


/* === HERO === */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    oklch(from var(--color-primary) l c h / 0.78) 0%,
    oklch(from var(--color-primary) l c h / 0.6) 40%,
    oklch(from var(--color-primary) l c h / 0.75) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  padding: var(--space-24) var(--space-6) var(--space-16);
}
.hero-logo {
  width: clamp(80px, 12vw, 140px);
  height: auto;
  margin: 0 auto var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px oklch(0 0 0 / 0.2);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  color: var(--color-text-inverse);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
  max-width: 18ch;
  margin-inline: auto;
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: oklch(1 0 0 / 0.75);
  max-width: 48ch;
  margin-inline: auto;
  line-height: 1.5;
}
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: oklch(1 0 0 / 0.5);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-scroll-hint svg {
  animation: float 2.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}


/* === SECTIONS === */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-4);
}
.section-container {
  max-width: var(--content-wide);
  margin-inline: auto;
}
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-8);
  letter-spacing: -0.01em;
}


/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-12);
  }
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.about-text {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text);
  max-width: 65ch;
}


/* === PRODUCTS === */
.products-section {
  background: var(--color-surface);
}
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

.product-card {
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-interactive);
}
.product-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--color-surface-offset);
}
.product-images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.product-body {
  padding: var(--space-6);
}
@media (min-width: 768px) {
  .product-body { padding: var(--space-8); }
}
.product-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.product-specs {
  list-style: none;
  margin-bottom: var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
}
/* Language-aware display for product specs */
.product-specs.lang-content { display: none; }
.product-specs.lang-content.active { display: flex; }
.product-specs li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
  max-width: none;
}
.product-specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-highlight);
  border: 1.5px solid var(--color-primary);
}

.product-uses-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.product-uses {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
}


/* === WHY CHOOSE US === */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
  }
}

.feature-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature-icon.green  { background: var(--color-primary-highlight); color: var(--color-primary); }
.feature-icon.brown  { background: var(--color-brown-highlight); color: var(--color-brown); }
.feature-icon.red    { background: var(--color-rosehip-highlight); color: var(--color-rosehip); }
.feature-icon.blue   { background: var(--color-juniper-highlight); color: var(--color-juniper); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* === CONTACT === */
.contact-section {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.contact-section .section-label { color: oklch(1 0 0 / 0.5); }
.contact-section .section-title { color: var(--color-text-inverse); }

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

.contact-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.contact-info p {
  color: oklch(1 0 0 / 0.7);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: oklch(1 0 0 / 0.8);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}
.contact-detail svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.6;
}
.contact-detail a {
  color: oklch(1 0 0 / 0.85);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.contact-detail a:hover {
  color: var(--color-text-inverse);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: oklch(1 0 0 / 0.7);
}
.form-group input,
.form-group textarea {
  padding: var(--space-3) var(--space-4);
  border: 1px solid oklch(1 0 0 / 0.15);
  border-radius: var(--radius-md);
  background: oklch(1 0 0 / 0.08);
  color: var(--color-text-inverse);
  font-size: var(--text-base);
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: oklch(1 0 0 / 0.35);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: oklch(1 0 0 / 0.4);
  background: oklch(1 0 0 / 0.12);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  background: var(--color-text-inverse);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
  min-height: 48px;
  align-self: flex-start;
}
.btn-submit:hover {
  background: oklch(from var(--color-text-inverse) l c h / 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px oklch(0 0 0 / 0.2);
}
.btn-submit:active {
  transform: translateY(0);
}


/* === FOOTER === */
.footer {
  padding: var(--space-8) var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-divider);
}


/* === SCROLL ANIMATIONS (CSS-native) === */
.fade-in {
  opacity: 1;
}

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

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

/* Stagger children */
.stagger > * {
  opacity: 1;
}
@supports (animation-timeline: scroll()) {
  .stagger > *:nth-child(1) { animation: reveal-fade linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; opacity: 0; }
  .stagger > *:nth-child(2) { animation: reveal-fade linear both; animation-timeline: view(); animation-range: entry 5% entry 85%; opacity: 0; }
  .stagger > *:nth-child(3) { animation: reveal-fade linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; opacity: 0; }
  .stagger > *:nth-child(4) { animation: reveal-fade linear both; animation-timeline: view(); animation-range: entry 15% entry 95%; opacity: 0; }
}
