/* ==========================================================================
   QAMADI — design system derived directly from the bottle labels.
   Surfaces: near-white. Ink: single near-black. Accent: one muted bronze.
   No shadows, no rounded cards, no ornaments — hairlines and whitespace only.
   ========================================================================== */

:root {
  /* --- color tokens (sampled from label artwork) --- */
  --c-warm-white: #faf8f3;
  --c-surface: #f4f0e8;
  --c-charcoal: #232320;
  --c-black: #131311;
  --c-oak: #9c7a4a;
  --c-bronze: #b8a06a;
  --c-line: rgba(19, 19, 17, 0.14);
  --c-line-strong: rgba(19, 19, 17, 0.28);
  --c-on-dark: #f4f0e8;

  /* --- type tokens --- */
  --f-display: "Fraunces", "Noto Serif", "Noto Serif Georgian", serif;
  --f-body: "Inter", "Noto Sans Georgian", -apple-system, sans-serif;

  /* --- spacing scale --- */
  --space-section: clamp(64px, 9vw, 160px);
  --space-section-sm: clamp(48px, 6vw, 96px);
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 640px;
  --container: 1280px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--c-warm-white);
  color: var(--c-black);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.measure { max-width: var(--measure); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* --- eyebrow / spec typography (lifted straight from the label's spec bar) --- */
.eyebrow, .spec-item, .lang-switch a, .nav-menu a, .btn {
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 500;
}

.eyebrow {
  color: var(--c-oak);
  margin-bottom: 20px;
  display: block;
}

/* ==========================================================================
   Navigation — sticky, transparent over hero, gains hairline + surface on scroll
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), padding 0.4s var(--ease);
}

.site-nav.is-scrolled {
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 19px;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.nav-mark { height: 22px; width: auto; }

.nav-menu {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-menu a {
  position: relative;
  padding-bottom: 4px;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--c-black);
  transition: right 0.35s var(--ease);
}
.nav-menu a:hover::after,
.nav-menu a.is-active::after { right: 0; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.lang-switch {
  display: flex;
  gap: 10px;
}
.lang-switch a {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-charcoal);
  padding: 4px 2px;
  font-family: var(--f-body);
  opacity: 0.5;
  text-decoration: none;
  transition: opacity 0.25s var(--ease);
}
.lang-switch a.is-active,
.lang-switch a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px; height: 20px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--c-black);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px var(--gutter) 80px;
  position: relative;
}

.hero-mark {
  width: clamp(44px, 5vw, 60px);
  margin-bottom: 32px;
  opacity: 0;
  animation: rise 1s var(--ease) 0.1s forwards;
}

.hero-title {
  font-size: clamp(48px, 9vw, 108px);
  opacity: 0;
  animation: rise 1s var(--ease) 0.25s forwards;
}

/* Every language shows the wordmark exactly as set on the actual logo files
   (Georgian calligraphy for GE, the Latin lockup for EN/RU) instead of a
   typed re-creation in a fallback web font. */
.hero-title-mark { display: block; height: clamp(48px, 8.2vw, 96px); width: auto; margin: 0 auto; }

.hero-tagline {
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(12px, 1.4vw, 14px);
  color: var(--c-oak);
  margin-top: 18px;
  opacity: 0;
  animation: rise 1s var(--ease) 0.4s forwards;
}

.hero-body {
  max-width: 620px;
  margin-top: 40px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--c-charcoal);
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  animation: rise 1s var(--ease) 0.55s forwards;
}

.hero .btn {
  margin-top: 48px;
  opacity: 0;
  animation: rise 1s var(--ease) 0.7s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-block;
  padding: 16px 38px;
  border: 1px solid var(--c-black);
  color: var(--c-black);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover { background: var(--c-black); color: var(--c-warm-white); }
.email-link { align-self: flex-start; margin-top: 4px; }

/* ==========================================================================
   Sections — generous, hairline-separated, centered narrative columns
   ========================================================================== */

section { position: relative; }

.section {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--c-line);
}

.section-surface { background: var(--c-surface); }

.section-title {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 40px;
}

.section-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--c-charcoal);
}

.section-copy .lede {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--c-black);
  line-height: 1.35;
}

.social-links {
  display: flex;
  gap: 28px;
  margin-top: 8px;
}
.social-links a {
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-oak);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--c-line);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.social-links a:hover {
  color: var(--c-black);
  border-color: var(--c-line-strong);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="1"] { transition-delay: 0.05s; }
[data-reveal="2"] { transition-delay: 0.15s; }
[data-reveal="3"] { transition-delay: 0.25s; }

/* ==========================================================================
   How QAMADI Began — story text beside the heritage scene (oak, qvevri,
   grain, Old Tbilisi). Transparent artwork, no frame, bleeds toward the edge.
   ========================================================================== */

.began-scene {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.began-figure { display: flex; justify-content: center; }
.began-figure img { width: 100%; max-width: 640px; }

/* ==========================================================================
   Releases — the label is the hero image, nothing competes with it
   ========================================================================== */

.release {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: var(--space-section-sm) 0;
}

.release:not(:last-child) { border-bottom: 1px solid var(--c-line); }
.release.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); }
.release.reverse .release-figure { order: 2; }
.release.reverse .release-body { order: 1; }

.release-figure {
  display: flex;
  justify-content: center;
}
.release-figure img {
  width: 100%;
  max-width: 460px;
}

.release-name {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-bottom: 14px;
}

.release-desc {
  font-size: 17px;
  color: var(--c-charcoal);
  margin-bottom: 28px;
}

.release-comp {
  font-size: 14px;
  color: var(--c-charcoal);
  margin-bottom: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}
.release-comp .spec-item { display: block; color: var(--c-oak); margin-bottom: 8px; }

.spec-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--c-line);
  margin-top: 8px;
}

.spec-entry {
  flex: 1 1 220px;
  padding: 20px 24px 20px 0;
  border-right: 1px solid var(--c-line);
}
.spec-entry:last-child { border-right: none; }
.spec-entry:first-child { padding-left: 0; }

.spec-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-oak);
  margin-bottom: 8px;
}
.spec-desc { font-size: 14.5px; color: var(--c-charcoal); }

.release-category {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-charcoal);
  opacity: 0.72;
}

/* ==========================================================================
   Founder — typographic monogram in place of a photograph
   ========================================================================== */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.founder-mark {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.founder-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.founder-quote {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  margin: 24px 0;
  padding-left: 24px;
  border-left: 1px solid var(--c-line-strong);
}

/* ==========================================================================
   Q&A — question as display heading, answer beneath a hairline
   ========================================================================== */

.qa-entry { padding: var(--space-section-sm) 0; }
.qa-entry:not(:last-child) { border-bottom: 1px solid var(--c-line); }
.qa-question {
  font-size: clamp(26px, 3.4vw, 40px);
  margin-bottom: 28px;
  max-width: 820px;
}
.qa-answer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: var(--measure);
  font-size: 17px;
  color: var(--c-charcoal);
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}

/* ==========================================================================
   Page header (About / Q&A / Contact)
   ========================================================================== */

.page-header {
  padding: 168px var(--gutter) 64px;
  text-align: center;
}
.page-header h1.eyebrow {
  margin-bottom: 0;
}

/* ==========================================================================
   Footer — minimal, spec-bar style single line
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--c-line);
  padding: 48px var(--gutter) 40px;
  background: var(--c-black);
  color: var(--c-on-dark);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(244, 240, 232, 0.16);
}
.footer-wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 20px;
  letter-spacing: 0.06em;
}
.footer-mark { height: 30px; width: auto; opacity: 0.92; }
.footer-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}
.footer-menu a { opacity: 0.72; transition: opacity 0.25s var(--ease); }
.footer-menu a:hover { opacity: 1; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}
.footer-social { display: flex; gap: 20px; }
.footer-social a:hover { text-decoration: underline; }
.site-footer .lang-switch a { color: var(--c-on-dark); }

/* ==========================================================================
   Responsive — tablet / mobile. Same top-to-bottom order at every size.
   ========================================================================== */

@media (max-width: 1024px) {
  .release,
  .release.reverse,
  .founder,
  .began-scene {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .began-figure { order: 2; margin-top: 8px; }
  .release.reverse .release-figure,
  .release.reverse .release-body { order: initial; }
  .release-figure { order: -1; }
  .founder-mark { max-width: 220px; margin: 0 auto; }
  .founder-quote { border-left: none; border-top: 1px solid var(--c-line-strong); padding-left: 0; padding-top: 20px; text-align: left; }
  .spec-bar { justify-content: center; text-align: left; }
  .release-comp { text-align: left; }

  /* On the stacked single-column layout, the image sits directly above its
     text with a much smaller gap than on desktop. The scroll-linked
     parallax offset (up to 64px) was enough to slide the image down over
     the copy beneath it as the page scrolled. Parallax is a desktop-only
     flourish; below this breakpoint it's switched off entirely (also
     gated in main.js so the scroll listener isn't doing pointless work). */
  [data-parallax] { transform: none !important; }
}

@media (max-width: 780px) {
  .nav-menu {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--c-warm-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
    z-index: 90;
  }
  .nav-menu a { font-size: 15px; }
  body.nav-open .nav-menu { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: block; }
  /* Language switch stays visible in the top bar on mobile too — it used to
     be hidden here (desktop-only) with no equivalent inside the hamburger
     menu, so mobile visitors had no visible way to find the GE/EN/RU
     versions at all. Kept compact so it fits next to the wordmark + toggle. */
  .nav-right { gap: 14px; }
  .nav-right .lang-switch { gap: 6px; }
  .nav-right .lang-switch a { font-size: 11px; padding: 4px 1px; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .hero { padding-top: 120px; }
  .section { padding: var(--space-section-sm) 0; }
  /* Extra breathing room on very narrow phones so the wordmark, language
     switch, and hamburger toggle never crowd each other in the top bar. */
  .nav-wordmark { font-size: 16px; gap: 8px; }
  .nav-mark { height: 18px; }
  .nav-right { gap: 10px; }
  .spec-entry { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--c-line); padding: 16px 0; }
  .spec-entry:last-child { border-bottom: none; }
}
