/* ============================================================
   VinoVoyage — styles.css
   Modern / minimal. Edit the variables below to re-skin fast.
   ============================================================ */

:root {
  /* Color */
  --bg:        #faf8f5;   /* warm off-white */
  --surface:   #ffffff;
  --ink:       #1c1a19;   /* near-black text */
  --muted:     #6b6562;   /* secondary text */
  --line:      #e9e3dc;   /* hairlines / borders */
  --accent:    #7b1e3b;   /* wine / oxblood */
  --accent-ink:#641630;   /* darker accent on hover */
  --accent-soft:#f3e8ec;  /* tinted accent background */

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1080px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --radius: 14px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.nav__links a:not(.btn) { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav__links a:not(.btn):hover { color: var(--ink); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent);
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 5px 7px;
  border-radius: 0 0 50% 50% / 0 0 70% 70%;
  background: #fff;
}
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 11vw, 7.5rem) 0 clamp(3rem, 8vw, 6rem); }
.hero__inner { max-width: 760px; }
.eyebrow {
  display: inline-block; margin: 0 0 1.1rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.4rem 0.9rem; border-radius: 999px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.3rem;
}
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); margin: 0 0 2.2rem; max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Section labels ---------- */
.section-label {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1rem;
}

/* ---------- Mission ---------- */
.mission { padding: clamp(3rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.mission__inner { max-width: 820px; }
.mission__statement {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.8rem, 4.2vw, 2.9rem); line-height: 1.12; letter-spacing: -0.015em;
  margin: 0 0 1.4rem;
}
.mission__body { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); margin: 0; max-width: 62ch; }

/* ---------- Platform / phases ---------- */
.platform { padding: clamp(3rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.platform__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em;
  margin: 0 0 2.6rem; max-width: 26ch;
}
.phases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.phase {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.phase:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(28,26,25,.35); border-color: #ddd4cb; }
.phase__tag {
  display: inline-block; margin-bottom: 1rem;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 0.35rem 0.8rem; border-radius: 999px;
}
.phase__tag--next { color: var(--muted); background: #efece8; }
.phase__title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: 0 0 0.6rem; line-height: 1.2; }
.phase__text { color: var(--muted); margin: 0 0 1.2rem; font-size: 0.99rem; }
.phase__list { margin: 0; padding: 0; list-style: none; }
.phase__list li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem;
  font-size: 0.94rem; color: var(--ink);
}
.phase__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* ---------- Team ---------- */
.team { padding: clamp(3rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.team__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em;
  margin: 0 0 2.6rem;
}
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.7rem;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.member:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(28,26,25,.35); border-color: #ddd4cb; }
.member__avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.02em;
}
.member__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 0 0 0.25rem; }
.member__role { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- Access / signup ---------- */
.access { padding: clamp(3.5rem, 9vw, 6.5rem) 0; border-top: 1px solid var(--line); }
.access__inner { max-width: 640px; text-align: center; margin-inline: auto; }
.access__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 0.9rem;
}
.access__sub { color: var(--muted); font-size: 1.1rem; margin: 0 0 2rem; }
.signup { display: flex; gap: 0.6rem; max-width: 460px; margin: 0 auto; }
.signup__input {
  flex: 1; min-width: 0;
  font-family: inherit; font-size: 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.signup__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.signup__input.is-invalid { border-color: #c0392b; box-shadow: 0 0 0 3px #f8e3e0; }
.signup__msg { min-height: 1.4rem; margin: 0.9rem 0 0; font-size: 0.95rem; }
.signup__msg.is-success { color: var(--accent); font-weight: 500; }
.signup__msg.is-error { color: #c0392b; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 2.6rem 0 2rem; margin-top: 1rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.brand--footer .brand__name { font-size: 1.05rem; }
.footer__contact a { color: var(--muted); }
.footer__contact a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 1.2rem; }
.footer__social a { color: var(--muted); font-size: 0.92rem; }
.footer__social a:hover { color: var(--ink); }
.footer__copy { color: var(--muted); font-size: 0.85rem; margin: 1.6rem auto 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .phases { grid-template-columns: 1fr; gap: 1rem; }
  .team__grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav__links a:not(.btn) { display: none; }   /* keep nav clean on small screens; CTA stays */
  .signup { flex-direction: column; }
  .signup__input, .signup .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
