/* ============================================================
   COMPONENTS
   ============================================================ */

/* --- Skip Link -------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 100;
  font-size: var(--text-sm);
}
.skip-link:focus { top: var(--space-2); }

/* ---------------------------------------------------------- */
/* --- Header ----------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.header--scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-4) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Logo --- */

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
 min-width: 0;
}

.logoimage--light,
.logoimage--dark {
  display: none;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

[data-theme="dark"] .logoimage--dark {
  display: block;
}

[data-theme="light"] .logoimage--light {
  display: block;
}

/*.logo__icon { width: 36px; height: 36px; flex-shrink: 0; }*/

.logotext {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-leaf);
}
.logotext span { 
 color: var(--color-primary);
}

/* Nav */
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  padding: var(--space-1) 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width 0.25s var(--ease-out);
}
.nav__link:hover { color: var(--color-text); }
.nav__link:hover::after { width: 100%; }

/* Theme toggle */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
}
.theme-toggle:hover { color: var(--color-text); background: var(--color-surface-offset); }

/* Mobile menu */
.mobile-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--color-text);
}
.mobile-toggle svg { width: 24px; height: 24px; }

@media (max-width: 767px) {
  .nav { display: none; }
  .nav--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4);
    gap: var(--space-4);
  }
  .mobile-toggle { display: flex; }
}

/* ---------------------------------------------------------- */
/* --- Hero ------------------------------------------------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, oklch(0.08 0.03 260 / 0.92) 0%, oklch(0.08 0.03 260 / 0.6) 50%, oklch(0.08 0.03 260 / 0.4) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-16) var(--space-4);
}
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-6);
  max-width: 14ch;
  line-height: 1.05;
}
.hero__sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  max-width: 48ch;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ---------------------------------------------------------- */
/* --- Section containers ----------------------------------- */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-4);
}
.section__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
}
.section__header {
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}
.section__eyebrow {
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.1;
}

/* ---------------------------------------------------------- */
/* --- COLLECTION ------------------------------------ */
/* --- COLLECTION  - Grid -------------------- */
.tea-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 600px) {
  .tea-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .tea-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- COLLECTION  - Cards -------------------- */
.tea-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.tea-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tea-card__image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-surface-offset);
}
.tea-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.tea-card:hover .tea-card__image img { transform: scale(1.05); }
.tea-card__body {
  padding: var(--space-4) var(--space-4) var(--space-5);
}
.tea-card__type {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.tea-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.tea-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---------------------------------------------------------- */
/* --- LANDSCAPE ------------------------------------------- */
.landscape {
  width: 100%;
  margin: 0 0 var(--space-8);
  padding: 0;
}

.landscape img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------- */
/* --- ORIGIN ---------------------------------------------- */
.origins {
  position: relative;
  padding-top: 0;
  min-height: auto;
}

.origins .section__header {
  margin-bottom: var(--space-6);
}

/* --- ORIGIN - Region Card Grid ---------- */
.region-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: 0;
  align-items: stretch;
}

@media (max-width: 899px) {
  .region-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
  .region-cards { grid-template-columns: 1fr; }
}

/* --- ORIGIN - Region Card ---------- */
.region-card {
  background: oklch(from var(--color-surface) l c h / 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  transition: border-color var(--transition-interactive), transform var(--transition-interactive);
}

.region-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.region-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.region-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.2;
}

/* --- Newsletter ------------------------------------------- */
.newsletter {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.newsletter__inner {
  max-width: var(--content-narrow);
  margin-inline: auto;
  text-align: center;
}
.newsletter__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.newsletter__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  margin-inline: auto;
}
.newsletter__form {
  display: flex;
  gap: var(--space-3);
  max-width: 440px;
  margin-inline: auto;
}
.newsletter__input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-text);
  min-height: 44px;
}
.newsletter__input::placeholder { color: var(--color-text-faint); }
.newsletter__input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}
@media (max-width: 480px) {
  .newsletter__form { flex-direction: column; }
}

/* --- Footer ----------------------------------------------- */
.footer {
  padding: var(--space-12) var(--space-4) var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.footer__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-divider);
}
@media (min-width: 768px) {
  .footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  max-width: 32ch;
  line-height: 1.6;
}
.footer__col-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer__links a:hover { color: var(--color-text); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* --- Scroll animations ------------------------------------ */
.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; } }

/* --- Horizontal rule divider ------------------------------ */
.divider {
  width: 48px;
  height: 2px;
  background: var(--color-primary);
  border: none;
  margin: var(--space-6) 0;
}

/* --- Light mode override for hero overlay ----------------- */
[data-theme="light"] .hero__overlay {
  background:
    linear-gradient(135deg, oklch(0.08 0.03 260 / 0.85) 0%, oklch(0.08 0.03 260 / 0.5) 50%, oklch(0.08 0.03 260 / 0.35) 100%);
}
[data-theme="light"] .hero h1 { color: #fff; }
/*[data-theme="light"] .hero__eyebrow { color: #e86070; }*/
[data-theme="light"] .hero__sub { color: rgba(255,255,255,0.75); }
[data-theme="light"] .btn--outline { color: #fff; border-color: rgba(255,255,255,0.3); }
[data-theme="light"] .btn--outline:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }


/* --- Mobile tea cards + footer refinement ---------------- */
@media (max-width: 767px) {
.tea-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-4);
}

.tea-cardimage {
aspect-ratio: 4 / 3;
}

.tea-cardbody {
padding: var(--space-3);
}

.tea-cardname {
font-size: var(--text-base);
}

.tea-carddesc {
font-size: var(--text-xs);
line-height: 1.5;
}

.footertop {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-6) var(--space-4);
}

.footerbrand {
grid-column: 1 / -1;
}
}

@media (max-width: 420px) {
.tea-grid {
gap: var(--space-3);
}

.tea-cardimage {
aspect-ratio: 1 / 1;
}
}


/* --- Mobile header refinement ---------------------------- */
@media (max-width: 767px) {
.headerinner {
padding: var(--space-3) var(--space-4);
gap: var(--space-3);
}

.logo {
position: relative;
gap: var(--space-2);
min-width: 0;
}

.logotext {
font-size: var(--text-base);
letter-spacing: 0.02em;
white-space: nowrap;
}

.nav--open {
padding: var(--space-3) var(--space-4) var(--space-4);
gap: var(--space-3);
box-shadow: var(--shadow-md);
}

.navlink {
font-size: var(--text-xs);
padding: var(--space-2) 0;
}

.theme-toggle,
.mobile-toggle {
width: 38px;
height: 38px;
}

.theme-toggle svg,
.mobile-toggle svg {
width: 20px;
height: 20px;
}

.hero {
min-height: 78vh;
}

.herocontent {
padding-top: var(--space-12);
padding-bottom: var(--space-12);
}

.hero h1 {
font-size: var(--text-2xl);
max-width: 10ch;
margin-bottom: var(--space-4);
}

.heroeyebrow {
margin-bottom: var(--space-3);
letter-spacing: 0.12em;
}

.herosub {
font-size: var(--text-sm);
margin-bottom: var(--space-5);
max-width: 34ch;
}
}


/* --- Origins spacing refinement -------------------------- */
.landscape {
margin-bottom: var(--space-2);
}

.region-cards {
margin-top: 0;
gap: var(--space-6);
}

@media (max-width: 767px) {
.landscape {
margin-bottom: var(--space-1);
}

.region-cards {
gap: var(--space-4);
}
}
