/* ============================================================
   BOTANICA — stylesheet
   Linked from index.html
   ============================================================ */

/* ------------------------------------------------------------
   DESIGN TOKENS — all colors / spacing as CSS custom properties
   60/30/10 balance:
     60% base off-white, 30% sage/taupe secondary, 10% forest accent
   ------------------------------------------------------------ */
:root {
  /* Color system */
  --bg:            #FAF7F0;  /* warm off-white — dominant 60% */
  --sage:          #8B9E7B;  /* muted sage green — secondary */
  --taupe:         #DEBDA6;  /* soft taupe — secondary */
  --accent:        #3A5A40;  /* deep forest green — accent 10% */
  --accent-dark:   #2C4631;  /* darker accent for hover states */
  --text:          #2E2E2E;  /* deep charcoal */
  --text-soft:     #56564f;  /* muted charcoal for secondary text */
  --surface:       #FFFFFF;  /* card surface, slightly lifted from bg */
  --surface-warm:  #F2ECE0;  /* warm placeholder / muted block */

  /* Soft, subtle shadows (no harsh borders) */
  --shadow-sm: 0 2px 10px rgba(46, 46, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(46, 46, 46, 0.09);
  --shadow-lg: 0 16px 40px rgba(46, 46, 46, 0.12);

  /* Shape */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Typography — Georgian-capable fallbacks appended so ქართული
     glyphs render even though no external fonts are loaded. */
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans Georgian", "BPG Nino Mtavruli", "Sylfaen", sans-serif;
  --font-heading: Georgia, "Times New Roman", Times, "Noto Serif Georgian", "Noto Sans Georgian", "Sylfaen", serif;

  /* Fluid spacing scale */
  --space-section: clamp(3.5rem, 8vw, 7rem);
  --gutter:        clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------
   BASE / RESET
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* guard against any accidental horizontal overflow */
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; color: var(--text-soft); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

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

/* Layout container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Section rhythm */
section { padding-block: var(--space-section); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
.section-head p  { font-size: clamp(1rem, 2.2vw, 1.1rem); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* ------------------------------------------------------------
   BUTTONS — accent reserved for primary CTAs only
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;            /* >=44px tap target */
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 2px rgba(58, 90, 64, 0.35);
}
.btn-outline:hover { background: rgba(58, 90, 64, 0.06); transform: translateY(-3px); }

/* Small "add to cart" button on product cards */
.btn-add {
  width: 100%;
  min-height: 44px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease);
}
.btn-add:hover { background: var(--accent-dark); transform: scale(1.03); }
.btn-add:active { transform: scale(0.98); }

/* Card action row: round wishlist button (left) + compact add-to-cart */
.card-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
}
/* Smaller add-to-cart variant — no longer full width, sits beside the heart */
.btn-add--sm {
  width: auto;
  flex: 1;                 /* fills the row next to the round button */
  min-height: 42px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}
/* Round wishlist button */
.wish-btn {
  flex: none;
  width: 44px;
  height: 44px;            /* keeps a comfortable tap target */
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--accent);
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1.5px rgba(58, 90, 64, 0.25);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wish-btn:hover { transform: scale(1.08); box-shadow: inset 0 0 0 1.5px var(--accent); }
.wish-btn:active { transform: scale(0.94); }
/* Active = product added to wishlist → filled heart */
.wish-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.wish-btn.active svg { fill: currentColor; }

/* ------------------------------------------------------------
   HEADER — floating, rounded, offset 5px from the top edge
   and narrower than the full viewport
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 5px;                                   /* 5px gap from the top edge */
  z-index: 100;
  width: calc(100% - 2 * var(--gutter));      /* reduced width — floats off the side edges */
  max-width: 1160px;
  margin: 5px auto 0;                         /* 5px top offset + horizontally centered */
  background: rgba(250, 247, 240, 0.80);
  backdrop-filter: saturate(140%) blur(10px);
  border-radius: var(--radius);              /* rounded corners */
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding-inline: clamp(1rem, 3vw, 1.75rem);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
/* Animated logo — the leaf gently sways as if moving in the wind.
   transform-origin at the stem (bottom) so it pivots naturally.
   Used by both the header and footer logos. */
.logo svg {
  color: var(--accent);
  flex: none;
  transform-origin: 50% 90%;
  animation: leafSway 3.8s ease-in-out infinite;
}
@keyframes leafSway {
  0%   { transform: rotate(-7deg) skewX(0deg); }
  30%  { transform: rotate(5deg)  skewX(-2deg); }
  60%  { transform: rotate(-3deg) skewX(1deg); }
  100% { transform: rotate(-7deg) skewX(0deg); }
}

/* Centered nav */
.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); }
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.4rem 0.2rem;
  position: relative;
  cursor: pointer;                           /* clickable even without href */
  transition: color 0.3s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover { color: var(--accent); }
.main-nav a:hover::after { transform: scaleX(1); }

/* Header action icons (wishlist + cart) */
.header-actions { display: flex; align-items: center; gap: 0.4rem; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;   /* full tap target */
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}
.icon-btn:hover { background: rgba(139, 158, 123, 0.18); color: var(--accent); transform: translateY(-2px); }
.icon-btn svg { transition: transform 0.3s var(--ease); }
.icon-btn:hover svg { transform: scale(1.08); }

/* Count badge */
.badge {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
/* tiny pop animation when a badge updates */
.badge.bump { animation: badgePop 0.4s var(--ease); }
@keyframes badgePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
}

/* ------------------------------------------------------------
   HERO — two columns on desktop, stacked on mobile
   ------------------------------------------------------------ */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  margin-bottom: 1rem;
}
.hero-copy p {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  max-width: 46ch;
  margin-bottom: 1.75rem;
}

/* Hero image — real photo, lots of negative space around it */
.hero-media {
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--taupe); /* warm fallback while the photo loads */
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------
   CATEGORY CARDS — responsive auto-fit grid, photo + floating icon
   ------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.category-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-media { aspect-ratio: 16 / 10; background: var(--surface-warm); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-body { text-align: center; padding: 0 1.5rem 1.75rem; }
.cat-icon {
  width: 60px; height: 60px;
  margin: -30px auto 0.85rem;      /* float the icon over the photo edge */
  position: relative; z-index: 1;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease);
}
.category-card:hover .cat-icon { transform: scale(1.08); }
.category-card h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.category-card p  { font-size: 0.9rem; margin: 0; }

/* ------------------------------------------------------------
   PRODUCT CARDS — bestsellers grid
   ------------------------------------------------------------ */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Product photo — FIXED height so every bestseller card is the same size.
   width:100% + object-fit:cover keeps differing source ratios from
   stretching or breaking the layout. */
.product-media {
  height: 240px;
  background: var(--surface-warm);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 1.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-body h3 { font-size: 1.08rem; margin: 0; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.price { font-weight: 700; color: var(--accent); font-size: 1.05rem; }

/* Star rating */
.stars { display: inline-flex; gap: 2px; color: var(--taupe); }
.stars svg { color: #C9A227; } /* filled star — accessible gold on light bg */
.rating-count { font-size: 0.8rem; color: var(--text-soft); margin-left: 0.35rem; }
.product-body .btn-add { margin-top: auto; }

/* ------------------------------------------------------------
   TRUST STRIP — wraps cleanly on mobile
   ------------------------------------------------------------ */
.trust { background: var(--surface-warm); }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
}
.trust-badge .t-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--surface);
  border-radius: var(--radius-pill);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  flex: none;
}

/* ------------------------------------------------------------
   BRAND STORY — two column, stacks on mobile
   ------------------------------------------------------------ */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story-media {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--sage); /* fallback while photo loads */
}
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-copy h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.story-copy .btn { margin-top: 0.5rem; }

/* ------------------------------------------------------------
   TESTIMONIALS
   ------------------------------------------------------------ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.testimonial-card .stars { color: var(--taupe); }
.testimonial-card blockquote { margin: 0; font-size: 1.02rem; color: var(--text); font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.reviewer .avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--taupe);
  flex: none;
}
.reviewer .avatar img { width: 100%; height: 100%; object-fit: cover; }
.reviewer .who { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.reviewer .role { font-size: 0.82rem; color: var(--text-soft); }

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background: var(--accent);
  color: #EEF1EA;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.site-footer .logo { color: #fff; }
.site-footer .logo svg { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.78); max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin: 0 0 0.9rem;
}
.footer-col a {
  color: #EEF1EA;
  display: block;
  padding: 0.3rem 0;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer-col a:hover { color: #fff; transform: translateX(3px); }

.social { display: flex; gap: 0.6rem; }
.social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.12);
  color: #fff;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social a:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

/* ------------------------------------------------------------
   SCROLL REVEAL — base hidden state, .visible reveals
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------------
   HERO LOAD ANIMATION — staggered fade-in
   ------------------------------------------------------------ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-anim { opacity: 0; animation: fadeUp 0.6s var(--ease) forwards; }
.hero-anim.d1 { animation-delay: 0.1s; }
.hero-anim.d2 { animation-delay: 0.3s; }
.hero-anim.d3 { animation-delay: 0.5s; }
.hero-anim.d4 { animation-delay: 0.4s; }

/* ------------------------------------------------------------
   RESPONSIVE — tablet & desktop layout shifts
   ------------------------------------------------------------ */
@media (min-width: 768px) {
  .hero-grid  { grid-template-columns: 1.05fr 1fr; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3rem; }
}

/* Mobile nav behaviour — collapse to hamburger below 768px */
@media (max-width: 767px) {
  .hamburger { display: inline-flex; }

  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .main-nav.open { max-height: 360px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
  }
  .main-nav li { border-bottom: 1px solid rgba(46,46,46,0.07); }
  .main-nav a {
    display: block;
    padding: 0.9rem 0;
    min-height: 44px;
  }
  .main-nav a::after { display: none; }
}

/* ------------------------------------------------------------
   REDUCED MOTION — disable all animation/transition
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-anim { opacity: 1; }
}

/* ============================================================
   PRODUCTS (CATALOG) PAGE — products.html
   Reuses the shared design tokens above (colors, fonts,
   radius, shadows). New rules only.
   ============================================================ */

/* Page title block */
.page-head {
  text-align: center;
  padding-top: clamp(5.5rem, 12vw, 8rem); /* clears the floating sticky header */
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-head p  { font-size: clamp(1rem, 2.2vw, 1.15rem); margin: 0; }

/* ------------------------------------------------------------
   SORT BAR — sits above the grid, stays compact on mobile
   ------------------------------------------------------------ */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.sort-bar label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}
.sort-select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: none;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-pill);
  padding: 0.7rem 2.4rem 0.7rem 1.1rem;
  min-height: 44px;               /* comfortable tap target */
  cursor: pointer;
  /* custom dropdown caret (no external assets) */
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233A5A40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  transition: box-shadow 0.3s var(--ease);
}
.sort-select:hover { box-shadow: var(--shadow-md); }
.sort-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------
   CATALOG GRID — auto-fill so columns reflow to a single
   column on phones; consistent gap throughout
   ------------------------------------------------------------ */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* ------------------------------------------------------------
   CATALOG CARD — every card is identical in size.
   Structure (top→bottom): image, name, price, 2-line description.
   flex column + fixed image height + clamped description height
   guarantee equal-height cards regardless of text length.
   ------------------------------------------------------------ */
.catalog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.catalog-card:hover {
  transform: translateY(-6px);          /* gentle lift */
  box-shadow: var(--shadow-lg);         /* softly stronger shadow */
}

/* Image wrapper — overflow:hidden clips the zoom on hover.
   Fixed height + object-fit:cover means any image ratio renders
   at exactly the same size, so cards never differ in height. */
.catalog-media {
  height: 220px;                         /* fixed, explicit image height */
  overflow: hidden;
  background: var(--surface-warm);       /* solid fallback before load */
}
.catalog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}
.catalog-card:hover .catalog-media img { transform: scale(1.05); } /* subtle zoom */

/* Card body — flex:1 lets it fill remaining height so the
   button (if any) and spacing stay aligned across all cards */
.catalog-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.2rem 1.4rem;
  flex: 1;
}
.catalog-body h3 { font-size: 1.1rem; margin: 0; }
.catalog-price { font-weight: 700; color: var(--accent); font-size: 1.1rem; }

/* Description clamped to EXACTLY two lines so it can never
   push the card taller than its neighbours */
.catalog-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

/* Reduced motion — neutralise the lift + zoom for this page too */
@media (prefers-reduced-motion: reduce) {
  .catalog-card:hover { transform: none; }
  .catalog-card:hover .catalog-media img { transform: none; }
}

/* ============================================================
   ABOUT PAGE — about.html
   Cinematic, Apple-style scroll experience. The whole page
   shares ONE continuous vertical gradient so sections blend
   with no hard edges; reveals are driven by JS toggling .in.
   ============================================================ */

/* Continuous background flow — a single gradient spans the whole
   page (sections are transparent) so colours melt into each other.
   Soft, palette-derived tints only. */
.about-main {
  position: relative;
  overflow: hidden;                /* contains parallax decor */
  background:
    linear-gradient(180deg,
      #FAF7F0 0%,
      #F3EEE3 14%,
      #EAEFE4 30%,
      #F1ECE0 46%,
      #E7EDE2 62%,
      #F4EFE5 78%,
      #FAF7F0 100%);
}
/* Each about section is transparent and uses big vertical padding
   so neighbours overlap visually rather than butting up hard. */
.about-section {
  position: relative;
  z-index: 1;
  padding-block: clamp(4.5rem, 11vw, 9rem);
}

/* Floating decorative blobs — moved by JS parallax for depth.
   Pointer-events:none so they never block clicks. */
.parallax-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.5;
  will-change: transform;
}
.blob-1 { width: 320px; height: 320px; background: var(--sage);  top: 8%;  left: -90px; }
.blob-2 { width: 260px; height: 260px; background: var(--taupe); top: 42%; right: -80px; opacity: 0.45; }
.blob-3 { width: 380px; height: 380px; background: #c9d6bb;      top: 72%; left: -120px; opacity: 0.4; }

/* ------------------------------------------------------------
   SHARED REVEAL PRIMITIVE — layered fade + slide + scale.
   JS adds .in when the element scrolls into view.
   Smooth Apple-ish easing; stagger via --d (delay).
   ------------------------------------------------------------ */
.a-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.a-reveal.in { opacity: 1; transform: translateY(0) scale(1); }

/* ------------------------------------------------------------
   HERO — full viewport, calm gradient, content scales in on load
   ------------------------------------------------------------ */
.about-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 35%, rgba(222, 189, 166, 0.35), transparent 70%),
    linear-gradient(180deg, #FAF7F0 0%, #EFEADD 60%, #F3EEE3 100%);
}
.about-hero .hero-inner { position: relative; z-index: 2; max-width: 820px; padding-inline: var(--gutter); }
.about-hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  margin-bottom: 1rem;
  line-height: 1.05;
}
.about-hero p {
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  max-width: 38ch;
  margin: 0 auto;
  color: var(--text-soft);
}
/* A soft parallax disc behind the hero headline */
.about-hero .hero-orb {
  position: absolute;
  z-index: 1;
  width: min(70vw, 540px);
  aspect-ratio: 1;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 40%, rgba(139, 158, 123, 0.30), transparent 65%);
  filter: blur(10px);
  will-change: transform;
}
/* Scroll-cue chevron at the bottom of the hero */
.scroll-cue {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--accent);
  animation: cueBob 2s ease-in-out infinite;
}
@keyframes cueBob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* Hero load-in: headline → subtitle → cue, staggered */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-load { opacity: 0; animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-load.l1 { animation-delay: 0.15s; }
.hero-load.l2 { animation-delay: 0.4s; }
.hero-load.l3 { animation-delay: 0.7s; }

/* ------------------------------------------------------------
   OUR STORY — two-column narrative, image + text reveal on scroll
   ------------------------------------------------------------ */
.story-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--sage);
  will-change: transform;            /* parallax target */
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-text h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); }

/* ------------------------------------------------------------
   TIMELINE / OUR JOURNEY — sticky title column (desktop) while
   milestones scroll past, Apple-product-page style.
   ------------------------------------------------------------ */
.timeline-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.timeline-aside { align-self: start; }
.timeline-aside h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }

.timeline {
  position: relative;
  padding-left: 2.25rem;             /* room for the spine + dots */
}
/* Vertical spine */
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--sage), var(--accent));
  opacity: 0.5;
}
.t-item { position: relative; padding-bottom: clamp(2rem, 5vw, 3rem); }
.t-item:last-child { padding-bottom: 0; }
/* Dot on the spine */
.t-item::before {
  content: "";
  position: absolute;
  left: -2.25rem;
  top: 4px;
  width: 16px; height: 16px;
  margin-left: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(58, 90, 64, 0.14);
}
.t-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 600;
}
.t-item h3 { font-size: 1.15rem; margin: 0.2rem 0 0.4rem; }
.t-item p { margin: 0; }

/* ------------------------------------------------------------
   MISSION & VALUES — 3 staggered blocks
   ------------------------------------------------------------ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.value-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.value-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.1rem;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: rgba(139, 158, 123, 0.18);
  color: var(--accent);
}
.value-card h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.value-card p { margin: 0; }

/* ------------------------------------------------------------
   MEET THE TEAM — founder cards
   ------------------------------------------------------------ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 760px;
  margin-inline: auto;
}
.team-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.team-photo {
  height: 260px;
  overflow: hidden;
  background: var(--taupe);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 1.5rem 1.5rem 1.75rem; }
.team-body h3 { font-size: 1.25rem; margin-bottom: 0.15rem; }
.team-role {
  display: block;
  color: var(--sage);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.team-body p { margin: 0; font-size: 0.95rem; }

/* ------------------------------------------------------------
   ACHIEVEMENTS / STATS — animated counters
   ------------------------------------------------------------ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 4rem);
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-soft);
  font-size: 1rem;
}

/* ------------------------------------------------------------
   CLOSING CTA
   ------------------------------------------------------------ */
.about-cta { text-align: center; }
.about-cta h2 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 0.75rem; }
.about-cta p { max-width: 46ch; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ------------------------------------------------------------
   ABOUT — desktop layout shifts
   ------------------------------------------------------------ */
@media (min-width: 768px) {
  .story-block  { grid-template-columns: 1fr 1fr; }
  .timeline-wrap { grid-template-columns: 0.85fr 1.15fr; }
  /* Sticky title stays put while milestones scroll past it */
  .timeline-aside {
    position: sticky;
    top: 110px;
  }
  .team-grid { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------
   ABOUT — reduced motion: drop parallax + heavy motion,
   keep only simple, instant visibility (gentle fades handled in JS)
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .a-reveal { opacity: 1; transform: none; transition: opacity 0.4s ease; }
  .hero-load { opacity: 1; animation: none; }
  .scroll-cue { animation: none; }
  .blob, .hero-orb, .story-photo { transform: none !important; }
}

/* ============================================================
   BILINGUAL (EN / KA) — language switcher + i18n helpers
   ============================================================ */

/* No-flash guard: while .i18n-pending is on <html>, hide the body
   so the first paint isn't in the wrong language. lang.js removes
   the class the moment translations are applied. <noscript> in each
   page restores visibility when JS is unavailable. */
.i18n-pending body { visibility: hidden; }

/* Soft cross-fade applied to <main> while text swaps (~180ms) */
main { transition: opacity 0.18s ease; }
main.lang-fading { opacity: 0.35; }

/* ------------------------------------------------------------
   FOOTER LANGUAGE SWITCHER — sliding pill toggle
   ------------------------------------------------------------ */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  padding: 4px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  flex: none;
}
/* The two language labels (native <button>s = keyboard accessible) */
.lang-opt {
  position: relative;
  z-index: 1;                       /* above the sliding thumb */
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-soft);          /* inactive = dimmed */
  cursor: pointer;
  min-width: 48px;
  min-height: 40px;                 /* + 8px padding ≈ 48px tap target */
  padding: 0 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lang-opt[aria-pressed="true"] { color: #fff; }   /* active label on the thumb */
.lang-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The sliding indicator that glides between EN and KA */
.lang-thumb {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* data-active is set by lang.js → moves the thumb to the KA side */
.lang-switch[data-active="ka"] .lang-thumb { transform: translateX(100%); }

/* Reduced motion: switch instantly, no glide or cross-fade */
@media (prefers-reduced-motion: reduce) {
  .lang-thumb { transition: none; }
  .lang-opt { transition: none; }
  main { transition: none; }
  main.lang-fading { opacity: 1; }
}

/* ------------------------------------------------------------
   FOOTER BOTTOM — hold the rights text + switcher on one row,
   stack neatly on mobile
   ------------------------------------------------------------ */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: left;
}
.footer-bottom .lang-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 0.6rem;
}
.lang-switch-wrap {
  display: inline-flex;
  align-items: center;
}
@media (max-width: 560px) {
  .footer-bottom { justify-content: center; text-align: center; }
}
