/* ==========================================================================
   www.planters.lk — maintenance site
   Shared stylesheet for index.html and websitepolicy.html
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts — self-hosted Poppins (latin subset) so no visitor data reaches a
   third party before consent. Weights limited to those actually used.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/poppins-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/poppins-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Poppins; font-style: italic; font-weight: 500; font-display: swap;
  src: url('fonts/poppins-500-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/poppins-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/poppins-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --green-900: #0B4C1A;
  --green-800: #1B4620;
  --green-700: #235A2A;
  --green-600: #2E7D32;
  --green-400: #61B96B;
  --mint:      #E8F5E8;
  --ink:       #1F1F1F;
  --ink-muted: #666666;
  --black:     #0E0E0E;
  --paper:     #F8F9FA;
  --white:     #FFFFFF;
  --rule:      #E1E8E1;

  --font: Poppins, "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --shell: 1240px;
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--green-600); }
a:hover { color: var(--green-900); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green-400);
  outline-offset: 3px;
  border-radius: 2px;
}

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Visible only to screen readers until focused (skip link). */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--green-900);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Hero (index.html)
   ========================================================================== */
.hero {
  position: relative;          /* containing block for .hero__media / .hero__scrim */
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;          /* min-height, not height: short viewports scroll
                                  instead of clipping the contact details */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 7vw, 96px) 24px clamp(44px, 7vw, 96px);
  background: var(--green-800);
}

.hero__media,
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__media { z-index: -2; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Two stacked washes give an effective ~0.51 alpha across the headline band,
   which keeps white text at ~5.7:1 even over the brightest part of the photo. */
.hero__scrim {
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 48%, rgba(20, 54, 13, .12) 40%, rgba(20, 54, 13, .30) 100%),
    linear-gradient(180deg, rgba(11, 76, 26, .42) 0%, rgba(27, 70, 32, .44) 44%, rgba(11, 76, 26, .52) 100%);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 3.4vw, 34px);
  max-width: 760px;
}

.hero__logo {
  height: clamp(40px, 5.6vw, 58px);
  width: auto;
  filter: brightness(0) invert(1);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.2vw, 22px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(8, 26, 6, .7);
}

.hero__lead {
  margin: 0;
  max-width: 620px;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.65;
  color: var(--mint);
  text-wrap: pretty;
  text-shadow: 0 1px 16px rgba(8, 26, 6, .75);
}

.hero__note {
  margin: 0;
  max-width: 560px;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.7;
  color: rgba(238, 248, 238, .88);
  text-wrap: pretty;
  text-shadow: 0 1px 14px rgba(8, 26, 6, .75);
}

.hero__contact {
  margin-top: clamp(10px, 2vw, 22px);
  padding-top: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 520px;
}

.hero__contact-label {
  margin: 0;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--white);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(97, 185, 107, .75);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  background: rgba(11, 38, 10, .62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color .18s ease, border-color .18s ease;
}
.pill:hover {
  background: rgba(97, 185, 107, .18);
  border-color: var(--green-400);
  color: var(--white);
}
.pill svg { flex: none; }

/* The hero fills the viewport, so the section below it needs a visible cue.
   An anchor rather than an icon: it works without JavaScript and is reachable
   by keyboard. Pinned to the bottom of the hero, out of the copy's flow. */
.hero__more {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vw, 30px);
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  text-shadow: 0 1px 14px rgba(8, 26, 6, .8);
  transition: color .18s ease;
}
.hero__more:hover { color: var(--green-400); }
.hero__more svg { animation: hero-nudge 2.4s ease-in-out infinite; }

@keyframes hero-nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* Short viewports: the cue would collide with the contact pills, and the
   content below is reachable by scrolling anyway. */
@media (max-height: 700px) {
  .hero__more { display: none; }
}

/* ==========================================================================
   Tea Academy promo (index.html)
   Bridges the maintenance page to /teaacademy, in that page's own language:
   dark ground, photography carrying the weight, the notice's own wording.
   ========================================================================== */
.promo {
  background: var(--ta-ink);
  padding: clamp(56px, 8vw, 104px) var(--gutter);
}

.promo__inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.promo__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.promo__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: clamp(11px, 1.1vw, 12.5px);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-400);
}

.promo__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green-400);
  animation: ta-pulse 2.6s ease-out infinite;
}

.promo h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  text-wrap: balance;
}

.promo p {
  margin: 0;
  max-width: 54ch;
  font-size: clamp(16px, 1.5vw, 17.5px);
  line-height: 1.8;
  color: var(--mint);
  text-wrap: pretty;
}

.promo__cta { margin-top: clamp(22px, 3vw, 30px); }

/* The photograph is treated like a panel on the Tea Academy page: same
   bottom-weighted wash, same label sitting inside the image. */
.promo__figure {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  border-radius: 4px;
  background: #16241d;
}

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

.promo__figure figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(18px, 2.4vw, 28px);
  background: linear-gradient(to top, rgba(8, 18, 12, .92) 12%, rgba(8, 18, 12, .55) 60%, rgba(8, 18, 12, 0) 100%);
}

.promo__label {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--white);
}

.promo__unit {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ta-dim);
  text-wrap: pretty;
}

/* ==========================================================================
   Policy page
   ========================================================================== */
.policy-header {
  background: linear-gradient(180deg, var(--green-700) 0%, var(--green-800) 100%);
  padding: clamp(28px, 4vw, 44px) var(--gutter) clamp(72px, 8vw, 104px);
}

.policy-header__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
}

.policy-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.policy-header__logo {
  height: clamp(34px, 4.4vw, 46px);
  width: auto;
  filter: brightness(0) invert(1);
}

.policy-header h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

.policy-header__tagline {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--mint);
}

.policy-main {
  flex: 1 1 auto;
  padding: 0 clamp(16px, 5vw, 64px) clamp(56px, 7vw, 88px);
}

.policy-card {
  max-width: 900px;
  margin: clamp(-56px, -5vw, -40px) auto 0;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(11, 76, 26, .10);
  padding: clamp(26px, 4.5vw, 64px);
}

.policy-card__inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 3.6vw, 42px);
}

.policy-intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.policy-card section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.policy-card h2 {
  margin: 0;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--green-600);
  border-left: 3px solid var(--green-400);
  padding-left: 16px;
}

.policy-card p {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 17.5px);
  line-height: 1.85;
  color: var(--ink);
  text-wrap: pretty;
}

.policy-card strong { font-weight: 600; }

.policy-close {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: clamp(26px, 3vw, 34px);
  border-top: 1px solid var(--rule);
}

.policy-close blockquote {
  margin: 0;
  padding-left: clamp(18px, 2.5vw, 26px);
  border-left: 3px solid var(--green-600);
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.5;
  font-style: italic;
  font-weight: 500;
  color: var(--green-900);
  text-wrap: pretty;
}

.policy-signoff { display: flex; flex-direction: column; gap: 6px; }
.policy-signoff p { margin: 0; line-height: 1.7; }
.policy-signoff p:first-child { font-size: 15.5px; font-weight: 500; color: var(--ink); }
.policy-signoff p:last-child  { font-size: 14.5px; color: var(--ink-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

/* The ghost button and .pill sit side by side on the same photographic heroes
   — "Back to home" above the hero's own calls to action — so they share one
   surface: same border weight, same translucent ground, same blur. They stay
   separate selectors because .btn carries its own sizing, but these values
   must not drift apart again. */
.btn--ghost {
  padding: 10px 20px;
  border: 1px solid rgba(97, 185, 107, .75);
  background: rgba(11, 38, 10, .62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--white);
}
.btn--ghost:hover {
  background: rgba(97, 185, 107, .18);
  border-color: var(--green-400);
  color: var(--white);
}

.btn--outline {
  border: 1px solid var(--green-600);
  color: var(--green-900);
}
.btn--outline:hover {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--white);
}

/* ==========================================================================
   Footer (shared)
   ========================================================================== */
.site-footer {
  background: var(--black);
  padding: clamp(48px, 6vw, 76px) var(--gutter) 0;
}

.site-footer__grid {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: clamp(36px, 4vw, 56px);
  align-items: start;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-footer__lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer__mark {
  height: 62px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-footer__wordmark {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--white);
  letter-spacing: -0.01em;
}

.site-footer__blurb {
  margin: 0;
  max-width: 330px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--mint);
}

.site-footer h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Social */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--white);
  transition: background-color .18s ease;
}
.social-link:hover {
  background: rgba(97, 185, 107, .2);
  color: var(--white);
}

/* Contact */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: 16.5px;
  color: var(--mint);
  text-decoration: none;
  transition: color .18s ease;
}
.contact-item svg { flex: none; }

.contact-item--address {
  align-items: flex-start;
  min-height: 0;
  padding: 10px 0;
  line-height: 1.55;
}
.contact-item--address svg { margin-top: 3px; }

a.contact-item:hover { color: var(--green-400); }

/* Colophon */
.site-footer__colophon {
  max-width: var(--shell);
  margin: clamp(36px, 4vw, 52px) auto 0;
  border-top: 1px solid var(--green-600);
  padding: 26px 0 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer__colophon p {
  margin: 0;
  font-size: 15px;
  color: var(--mint);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 26px;
}

.site-footer__policy-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--mint);
  text-decoration: none;
  transition: color .18s ease;
}
.site-footer__policy-link:hover { color: var(--green-400); }
.site-footer__policy-link[aria-current="page"] { color: var(--white); font-weight: 500; }

/* ==========================================================================
   Tea Academy Kandy (teaacademy.html)

   Follows the approved one-page notice section for section, in its own
   wording. The six support commitments are the centrepiece: six photographic
   panels the reader opens, rather than a grid of text cards.
   ========================================================================== */

:root {
  --ta-ink:   #0C1A12;
  --ta-dim:   rgba(232, 245, 232, .70);
  --ta-gold:  #C9A227;   /* used only for the notice flag, sparingly */
}

.ta-main { flex: 1 1 auto; }

/* --------------------------------------------------------------------------
   Hero - full bleed, type at display size
   -------------------------------------------------------------------------- */
.ta-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(820px, 96svh);
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 36px) var(--gutter) clamp(40px, 6vw, 72px);
  background: var(--ta-ink);
}

.ta-hero__media,
.ta-hero__scrim { position: absolute; inset: 0; pointer-events: none; }
.ta-hero__media { z-index: -2; }
.ta-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
.ta-hero__scrim {
  z-index: -1;
  background:
    linear-gradient(to top, rgba(8, 18, 12, .92) 0%, rgba(8, 18, 12, .52) 38%, rgba(8, 18, 12, .22) 66%, rgba(8, 18, 12, .52) 100%);
}

.ta-hero__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
}

.ta-hero__logo {
  height: clamp(32px, 4.2vw, 44px);
  width: auto;
  filter: brightness(0) invert(1);
}

.ta-hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: auto auto 0;
  padding-top: clamp(56px, 9vw, 112px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(18px, 2.4vw, 26px);
}

/* The document's title, at the scale a title deserves. Tracking opens up as
   the type gets bigger so it reads as a masthead rather than a heading. */
.ta-hero h1 {
  margin: 0;
  font-size: clamp(38px, 9vw, 124px);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 4px 40px rgba(6, 20, 8, .55);
}

.ta-hero__tagline {
  margin: 0;
  font-size: clamp(18px, 2.6vw, 34px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--green-400);
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(6, 20, 8, .7);
}

.ta-hero__unit {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(13px, 1.3vw, 15.5px);
  line-height: 1.65;
  letter-spacing: .04em;
  color: var(--mint);
  text-shadow: 0 1px 16px rgba(6, 20, 8, .8);
}

.ta-hero .pill-row { margin-top: 6px; }

/* --------------------------------------------------------------------------
   Continuity notice
   -------------------------------------------------------------------------- */
.ta-notice {
  background: var(--green-900);
  padding: clamp(22px, 3vw, 34px) var(--gutter);
}

.ta-notice__inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 26px;
}

.ta-notice__flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: clamp(11px, 1.1vw, 12.5px);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-400);
}

.ta-notice__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green-400);
  animation: ta-pulse 2.6s ease-out infinite;
}
@keyframes ta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(97, 185, 107, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(97, 185, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(97, 185, 107, 0); }
}

.ta-notice p {
  margin: 0;
  flex: 1 1 380px;
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.65;
  color: var(--mint);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Who we are / Our purpose
   -------------------------------------------------------------------------- */
.ta-section { padding: clamp(56px, 8vw, 104px) var(--gutter); }
.ta-section--paper { background: var(--paper); }
.ta-section--white { background: var(--white); }

.ta-shell { max-width: var(--shell); margin: 0 auto; }

.ta-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.ta-split--flip .ta-split__figure { order: -1; }

.ta-eyebrow {
  margin: 0 0 16px;
  font-size: clamp(11px, 1.1vw, 12.5px);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-600);
}

.ta-prose h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--green-900);
  text-wrap: balance;
}

.ta-prose p {
  margin: 0 0 16px;
  font-size: clamp(16px, 1.5vw, 17.5px);
  line-height: 1.85;
  color: var(--ink);
  text-wrap: pretty;
}
.ta-prose p:last-child { margin-bottom: 0; }

.ta-split__figure { margin: 0; }
.ta-split__figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 22px 60px rgba(11, 76, 26, .16);
}

/* --------------------------------------------------------------------------
   Panels - "How we support home-made tea producers"

   Six photographs the reader opens. Base styles (no JavaScript) lay them out
   as a plain readable grid; tea.js adds .is-interactive, which switches on
   the collapsing behaviour. That way the content never depends on the script.
   -------------------------------------------------------------------------- */
.ta-support {
  background: var(--ta-ink);
  padding: clamp(56px, 8vw, 104px) 0 clamp(60px, 8vw, 110px);
}

.ta-support__head {
  max-width: var(--shell);
  margin: 0 auto clamp(32px, 4.4vw, 56px);
  padding: 0 var(--gutter);
}

.ta-support__head .ta-eyebrow { color: var(--green-400); }

.ta-support__head h2 {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  text-wrap: balance;
}

.ta-panels {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.ta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 4px;
  background: #16241d;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 2.4vw, 28px);
  text-align: left;
  border: 0;
  color: var(--white);
  font: inherit;
}

.ta-panel img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.ta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 18, 12, .93) 6%, rgba(8, 18, 12, .55) 46%, rgba(8, 18, 12, .18) 100%);
  transition: opacity .4s ease;
}

.ta-panel__no {
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--green-400);
  margin-bottom: 10px;
}

.ta-panel__label {
  margin: 0 0 12px;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--white);
  text-wrap: balance;
}

.ta-panel__body {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--mint);
  text-wrap: pretty;
}

/* --- interactive mode (JavaScript present) ------------------------------- */
.ta-panels.is-interactive {
  display: flex;
  gap: 10px;
  height: clamp(440px, 62vh, 620px);
}

.is-interactive .ta-panel {
  flex: 1 1 0;
  min-width: 74px;
  min-height: 0;
  cursor: pointer;
  transition: flex-grow .55s cubic-bezier(.2, .7, .3, 1);
}

/* Closed: the label turns on its side and runs up the panel, which is what
   lets six photographs sit side by side without shrinking to slivers. */
.is-interactive .ta-panel[aria-expanded="false"] .ta-panel__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0;
  max-height: 100%;
  overflow: hidden;
}
.is-interactive .ta-panel[aria-expanded="false"] .ta-panel__body {
  /* Hidden from view but not from the accessibility tree until it is opened;
     aria-expanded on the button carries the state. */
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Closed panels pin the number to the top and the upright label to the
   bottom, so the six read as a numbered row rather than drifting. */
/* The base scrim is bottom-weighted, which leaves the number at the top of a
   closed panel sitting on whatever the photograph happens to be. Closed
   panels get a matching wash from the top so it always reads. */
.is-interactive .ta-panel[aria-expanded="false"]::after {
  background:
    linear-gradient(to bottom, rgba(8, 18, 12, .70) 0%, rgba(8, 18, 12, .22) 26%, rgba(8, 18, 12, .40) 58%, rgba(8, 18, 12, .88) 100%);
}

.is-interactive .ta-panel[aria-expanded="false"] {
  justify-content: space-between;
  align-items: flex-start;
  padding-inline: clamp(12px, 1.4vw, 18px);
}
.is-interactive .ta-panel[aria-expanded="false"] .ta-panel__no { margin: 0; }

.is-interactive .ta-panel[aria-expanded="true"] {
  flex-grow: 4.6;
  cursor: default;
}
.is-interactive .ta-panel[aria-expanded="true"] .ta-panel__body {
  max-width: 46ch;
  animation: ta-fade .5s ease both .12s;
}
@keyframes ta-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.is-interactive .ta-panel:hover img,
.is-interactive .ta-panel[aria-expanded="true"] img { transform: scale(1.06); }

.is-interactive .ta-panel:focus-visible {
  outline: 3px solid var(--green-400);
  outline-offset: -3px;
}

.ta-panels__hint {
  max-width: var(--shell);
  margin: clamp(20px, 2.4vw, 28px) auto 0;
  padding: 0 var(--gutter);
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--ta-dim);
}
.ta-panels__hint[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Gallery loop
   -------------------------------------------------------------------------- */
.ta-gallery {
  background: var(--black);
  padding: clamp(52px, 7vw, 88px) 0 clamp(56px, 7vw, 92px);
  overflow: hidden;
}

.ta-gallery__head {
  max-width: var(--shell);
  margin: 0 auto clamp(28px, 3.4vw, 40px);
  padding: 0 var(--gutter);
}

.ta-gallery__head h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
}

.ta-marquee {
  position: relative;
  /* Masks the two hard edges so tiles fade in and out of the loop rather
     than being clipped mid-frame. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.ta-marquee__viewport { overflow: hidden; }
.ta-marquee__viewport + .ta-marquee__viewport { margin-top: var(--tile-gap, 16px); }

.ta-marquee__track {
  display: flex;
  width: max-content;
  gap: var(--tile-gap, 16px);
  padding-inline: var(--tile-gap, 16px);
  animation: ta-marquee 64s linear infinite;
  will-change: transform;
}

/* Same keyframes played backwards, so the lower row travels left-to-right.
   The slightly longer duration keeps the two rows from moving in lockstep. */
.ta-marquee__track--reverse {
  animation-direction: reverse;
  animation-duration: 78s;
}

/* The track holds the tile list twice; translating by exactly -50% of the
   track width lands the copy where the original started, so the loop has no
   visible seam. The trailing gap + padding keep the spacing even at the join. */
@keyframes ta-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-50% - var(--tile-gap, 16px) / 2), 0, 0); }
}

.ta-marquee:hover .ta-marquee__track,
.ta-marquee:focus-within .ta-marquee__track { animation-play-state: paused; }

.ta-tile {
  flex: none;
  margin: 0;
  height: clamp(170px, 21vw, 280px);
  border-radius: 4px;
  overflow: hidden;
  background: #16241d;
}
.ta-tile img { height: 100%; width: auto; max-width: none; object-fit: cover; }

.ta-gallery__note {
  max-width: var(--shell);
  margin: clamp(26px, 3vw, 36px) auto 0;
  padding: 0 var(--gutter);
  font-size: 14px;
  color: var(--ta-dim);
}

/* --------------------------------------------------------------------------
   Home-made tea catalogue

   The catalogue is shown as the object it is: three real pages, fanned. The
   PDF is linked twice on purpose - "Download" carries the download attribute
   (same-origin, so the browser saves it), "Read online" opens it in the
   browser's own viewer.
   -------------------------------------------------------------------------- */
.btn--light {
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--green-900);
  font-weight: 600;
}
.btn--light:hover { background: var(--mint); border-color: var(--mint); color: var(--green-900); }

.ta-pub {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 85% 40%, rgba(97, 185, 107, .16), transparent 70%),
    var(--green-900);
  padding: clamp(64px, 9vw, 120px) var(--gutter);
}

.ta-pub__inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.ta-pub .ta-eyebrow { color: var(--green-400); }

.ta-pub h2 {
  margin: 0 0 22px;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  text-wrap: balance;
}

.ta-pub__lead {
  margin: 0 0 26px;
  max-width: 54ch;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
  color: var(--mint);
  text-wrap: pretty;
}

.ta-pub__makers {
  margin: 0 0 34px;
  padding: 18px 0;
  border-top: 1px solid rgba(232, 245, 232, .18);
  border-bottom: 1px solid rgba(232, 245, 232, .18);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 500;
  color: var(--white);
}
.ta-pub__makers span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ta-dim);
}

.ta-pub__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ta-pub__file {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ta-dim);
}

.ta-pub__reach {
  margin: 36px 0 0;
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ta-dim);
}
.ta-pub__reach a { color: var(--green-400); font-weight: 500; white-space: nowrap; }
.ta-pub__reach a:hover { color: var(--white); }

/* The stack: the cover sits flat-ish on top, two inner pages fan out
   behind it. Opening the fan a little on hover is the only motion. */
.ta-pub__stack {
  position: relative;
  display: block;
  justify-self: center;
  width: min(100%, 360px);
  aspect-ratio: 720 / 1018;
  margin-right: 14%;
  border-radius: 3px;
}
.ta-pub__page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  box-shadow: 0 28px 60px rgba(4, 22, 9, .45), 0 2px 6px rgba(4, 22, 9, .25);
  transform-origin: 50% 100%;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.ta-pub__page--back  { transform: translateX(26%) rotate(8deg); }
.ta-pub__page--mid   { transform: translateX(13%) rotate(4deg); }
.ta-pub__page--front { transform: rotate(-1.5deg); }

.ta-pub__stack:hover .ta-pub__page--back,
.ta-pub__stack:focus-visible .ta-pub__page--back  { transform: translateX(34%) rotate(11deg); }
.ta-pub__stack:hover .ta-pub__page--mid,
.ta-pub__stack:focus-visible .ta-pub__page--mid   { transform: translateX(17%) rotate(5.5deg); }
.ta-pub__stack:hover .ta-pub__page--front,
.ta-pub__stack:focus-visible .ta-pub__page--front { transform: rotate(-2.5deg) translateY(-6px); }

/* --------------------------------------------------------------------------
   Call for submissions - set as the notice it is, signed by Dammike
   -------------------------------------------------------------------------- */
.ta-call {
  background: var(--paper);
  padding: clamp(64px, 9vw, 120px) var(--gutter);
}

.ta-call__sheet {
  max-width: 920px;
  margin: 0 auto;
  background: var(--white);
  border-top: 4px solid var(--green-900);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 22px 60px rgba(11, 76, 26, .10);
  padding: clamp(32px, 5.5vw, 72px);
}

.ta-call__head h2 {
  margin: 0 0 24px;
  max-width: 20ch;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--green-900);
  text-wrap: balance;
}

.ta-call__body p {
  margin: 0 0 14px;
  max-width: 64ch;
  font-size: clamp(16px, 1.45vw, 17px);
  line-height: 1.8;
  color: var(--ink);
  text-wrap: pretty;
}
.ta-call__body p:last-child { margin-bottom: 0; font-weight: 500; color: var(--green-900); }

.ta-call__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px clamp(28px, 4vw, 56px);
  margin: clamp(32px, 4vw, 44px) 0 0;
  padding-top: clamp(28px, 3.5vw, 36px);
  border-top: 1px solid var(--rule);
}

.ta-call__cols h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--green-900);
}

.ta-call__cols ul { margin: 0; padding: 0; list-style: none; }
.ta-call__cols li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.ta-call__cols li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 8px;
  height: 1.5px;
  background: var(--green-600);
}


@media (max-width: 900px) {
  .ta-pub__inner { grid-template-columns: 1fr; }
  .ta-pub__stack { order: -1; width: min(62%, 300px); margin: 0 auto 8px; transform: translateX(-9%); }
}

@media (prefers-reduced-motion: reduce) {
  .ta-pub__page { transition: none; }
}

@media print {
  .ta-pub { background: none; padding: 0 0 24px; }
  .ta-pub h2, .ta-pub__makers { color: #000; }
  .ta-pub__lead, .ta-pub__reach, .ta-pub__file { color: #333; }
  .ta-pub__stack, .ta-pub__actions { display: none; }
  .ta-call { padding: 0 0 24px; }
  .ta-call__sheet { box-shadow: none; padding: 0; border: 0; }
}

/* --------------------------------------------------------------------------
   Contact / inquiries
   -------------------------------------------------------------------------- */
.ta-contact { background: var(--paper); padding: clamp(56px, 8vw, 104px) var(--gutter); }

.ta-contact__inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  padding: clamp(30px, 4vw, 56px);
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 22px 60px rgba(11, 76, 26, .12);
}

.ta-contact h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--green-900);
}

.ta-contact__unit {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.ta-contact .pill-row { justify-content: flex-start; }

.pill--solid {
  border-color: var(--green-600);
  background: var(--green-900);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.pill--solid:hover { background: var(--green-600); border-color: var(--green-600); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Side-by-side panels cannot work at this width, so the same component
     runs vertically: the open panel grows downward instead of sideways. */
  .ta-panels.is-interactive {
    flex-direction: column;
    height: auto;
  }
  .is-interactive .ta-panel {
    flex: none;
    min-width: 0;
    height: 86px;
    transition: height .5s cubic-bezier(.2, .7, .3, 1);
  }
  .is-interactive .ta-panel[aria-expanded="false"] { justify-content: center; }
  .is-interactive .ta-panel[aria-expanded="false"] .ta-panel__label {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .is-interactive .ta-panel[aria-expanded="false"] .ta-panel__no { margin-bottom: 6px; }
  .is-interactive .ta-panel[aria-expanded="true"] { height: 400px; }
  .ta-split--flip .ta-split__figure { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  /* No auto-scroll: the strip becomes a normal swipeable row instead. The
     global reduce rule zeroes animation-duration, which would otherwise snap
     the track straight to its end position. */
  .ta-marquee { -webkit-mask-image: none; mask-image: none; }
  .ta-marquee__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .ta-marquee__track,
  .ta-marquee__track--reverse { animation: none !important; transform: none !important; }
  .ta-tile { scroll-snap-align: center; }
  .ta-notice__dot { animation: none; }
  .ta-panel img { transition: none; }
}

@media print {
  .ta-hero__media { display: none; }
  .ta-hero, .ta-support { background: none; padding: 0 0 24px; }
  .ta-hero h1, .ta-support__head h2, .ta-panel__label { color: #000; }
  .ta-hero__tagline, .ta-hero__unit, .ta-panel__body { color: #333; }
  .ta-hero__logo { filter: none; }
  .ta-panels, .ta-panels.is-interactive { display: block; height: auto; padding: 0; }
  .ta-panel { min-height: 0; padding: 0 0 14px; page-break-inside: avoid; }
  .ta-panel img, .ta-panel::after { display: none; }
  .ta-gallery, .ta-hero .pill-row { display: none !important; }
  .ta-contact__inner { box-shadow: none; padding: 0; }
}

/* ==========================================================================
   Preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .policy-header { background: none; padding: 0 0 24px; }
  .policy-header h1 { color: #000; }
  .policy-header__tagline { color: #333; }
  .policy-header__logo { filter: none; }
  .policy-main { padding: 0; }
  .policy-card { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  .policy-card h2 { color: #000; border-left-color: #999; }
  .policy-close blockquote { color: #000; }
  .btn, .site-footer, .skip-link { display: none !important; }
  body { background: #fff; }
  .policy-card p { font-size: 11pt; line-height: 1.5; }
}
