/* ============================================================
   FUNTASTING — SHARED CSS (inner pages)
   Design system matching home-premium.html
============================================================ */

/* ============================================================
   TOKENS & RESET
============================================================ */
:root {
  --wine-deep:   #1E0A14;
  --wine:        #5A1F33;
  --wine-mid:    #7A2D45;
  --gold:        #C9A070;
  --gold-light:  #E8D0A8;
  --cream:       #FAF8F4;
  --warm:        #F4EFE8;
  --border:      #EDE6DE;
  --text:        #1A0D12;
  --text-mid:    #6B4E5C;
  --text-light:  #A08A94;
  --white:       #FFFFFF;

  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;

  --sh-sm: 0 2px 12px rgba(30,10,20,.06);
  --sh-md: 0 8px 40px rgba(30,10,20,.10);
  --sh-lg: 0 24px 70px rgba(30,10,20,.16);

  --ease: 0.32s cubic-bezier(.4,0,.2,1);

  --serif: 'Sora', 'Manrope', system-ui, sans-serif;
  --sans:  'Manrope', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

::selection {
  background: rgba(201, 160, 112, .35);
  color: var(--wine-deep);
}

:focus-visible {
  outline: 2px solid rgba(201, 160, 112, .9);
  outline-offset: 2px;
}

/* ============================================================
   LAYOUT
============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.section { padding: clamp(64px, 9vw, 96px) 0; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--gold);
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
.t-display {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -.01em;
}
.t-h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.18;
}
.t-h3 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.28;
}
em { font-style: italic; color: inherit; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-gold {
  background: var(--gold);
  color: var(--wine-deep);
}
.btn-gold:hover {
  background: #b88a58;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,160,112,.35);
}
.btn-wine {
  background: var(--wine);
  color: var(--white);
}
.btn-wine:hover {
  background: var(--wine-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(90,31,51,.3);
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--text-mid);
  color: var(--text);
  transform: translateY(-1px);
}
.btn-ghost-white {
  border: 1.5px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.85);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}

/* Legacy button classes used in generated pages */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  transition: var(--ease);
  cursor: pointer;
  font-family: var(--sans);
  border: none;
}
.button-primary {
  background: var(--gold);
  color: var(--wine-deep);
}
.button-primary:hover {
  background: #b88a58;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,160,112,.35);
}
.button-secondary {
  border: 1.5px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.85);
  background: transparent;
}
.button-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}
.button-full { width: 100%; justify-content: center; }

/* ============================================================
   HEADER — starts opaque/white on inner pages (not transparent)
============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 0 rgba(0,0,0,.07);
  transition: background .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
}
.header.hero-mode {
  background: transparent;
  box-shadow: none;
}
.header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,.07);
}

.header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}
.logo-mark {
  width: clamp(150px, 15vw, 210px);
  height: auto;
  border-radius: 0;
  box-shadow: none;
  transition: transform var(--ease), filter var(--ease);
}
.logo:hover .logo-mark {
  transform: translateY(-1px);
}

/* Nav */
.nav { display: flex; align-items: center; gap: .1rem; }
.nav a {
  padding: 7px 13px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: 100px;
  transition: var(--ease);
}
.header.hero-mode .nav a { color: rgba(255,255,255,.8); }
.header.scrolled .nav a   { color: var(--text-mid); }
.nav a:hover { background: var(--warm); color: var(--text); }
.header.hero-mode .nav a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.header.scrolled .nav a:hover  { background: var(--warm); color: var(--text); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-mid);
  border: 1px solid var(--border);
  transition: var(--ease);
  cursor: pointer;
}
.header.hero-mode .lang-btn { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.18); }
.header.scrolled .lang-btn  { color: var(--text-mid); border-color: var(--border); }
.lang-btn:hover { background: var(--warm); color: var(--text); }
.header.hero-mode .lang-btn:hover { background: rgba(255,255,255,.1); color: var(--white); }

.user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 100px;
  font-size: .8rem;
  color: var(--text-mid);
  transition: var(--ease);
  cursor: pointer;
}
.header.hero-mode .user-btn { color: rgba(255,255,255,.8); }
.header.scrolled .user-btn  { color: var(--text-mid); }
.user-btn:hover { background: var(--warm); color: var(--text); }
.header.hero-mode .user-btn:hover { background: rgba(255,255,255,.1); color: var(--white); }

.header-cta {
  background: var(--gold);
  color: var(--wine-deep) !important;
  font-weight: 700 !important;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: .8rem;
  font-family: var(--sans);
  transition: var(--ease);
  border: none;
  cursor: pointer;
}
.header-cta:hover {
  background: #b88a58;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,160,112,.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: background var(--ease);
}
.header.hero-mode .hamburger span { background: var(--white); }
.header.scrolled .hamburger span  { background: var(--text); }
.hamburger span { transition: background var(--ease), transform .3s ease, opacity .3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 900;
  opacity: 0;
  transition: opacity .3s ease;
}
.mobile-nav-overlay.open { opacity: 1; }
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--white);
  z-index: 901;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  gap: .25rem;
}
.mobile-nav-close {
  position: absolute;
  top: 1rem; right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--warm);
  cursor: pointer;
  color: var(--text);
}
.mobile-nav a {
  display: block;
  padding: .85rem 0;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--wine); }
.mobile-nav-divider { height: 1rem; }
.mobile-nav-cta {
  display: block !important;
  margin-top: .5rem;
  padding: .9rem 1.5rem !important;
  background: var(--wine);
  color: var(--white) !important;
  text-align: center;
  border-radius: 4px;
  border-bottom: none !important;
  font-weight: 600 !important;
  letter-spacing: .04em;
}
.mobile-nav-cta:hover { background: var(--wine-deep) !important; color: var(--white) !important; }

/* ============================================================
   BREADCRUMBS
============================================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--text-light);
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.breadcrumbs a {
  color: var(--text-mid);
  transition: color var(--ease);
}
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs > span { color: var(--text-light); }

/* Breadcrumbs inside dark page hero */
.page-hero .breadcrumbs {
  color: rgba(255,255,255,.4);
}
.page-hero .breadcrumbs a {
  color: rgba(255,255,255,.6);
}
.page-hero .breadcrumbs a:hover {
  color: var(--gold);
}
.page-hero .breadcrumbs > span {
  color: rgba(255,255,255,.35);
}

/* ============================================================
   PAGE HERO — compact dark hero for inner pages
============================================================ */
.page-hero {
  position: relative;
  padding: calc(70px + clamp(3rem, 6vw, 5rem)) 0 clamp(3rem, 6vw, 4.5rem);
  background: var(--wine-deep);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(90,31,51,.55) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero--gradient {
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20,8,14,.55) 0%,
    rgba(20,8,14,.72) 60%,
    rgba(20,8,14,.85) 100%
  );
  z-index: 0;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-content { max-width: 780px; }

.page-hero .section-eyebrow {
  color: var(--gold);
}
.page-hero .section-eyebrow::before {
  background: var(--gold);
}

.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 1rem;
}
.page-hero-title em { color: var(--gold-light); font-style: italic; }

.page-hero-subtitle {
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,.65);
  font-weight: 300;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 1.5rem;
}

/* Hero tags row */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.75rem;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 100px;
  font-size: .73rem;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(4px);
}

/* Hero action buttons row */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   FILTER BAR (directory page)
============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.filter-bar-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-right: 4px;
  flex-shrink: 0;
}

.directory-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr) auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.directory-field {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.directory-field span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-mid);
}

.directory-field input,
.directory-field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  padding: .95rem 1rem;
  font: inherit;
  color: var(--text);
  box-shadow: var(--sh-sm);
}

.directory-field input:focus,
.directory-field select:focus {
  outline: none;
  border-color: rgba(90,31,51,.34);
  box-shadow: 0 0 0 4px rgba(90,31,51,.08);
}

.directory-toggle {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 54px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--sh-sm);
  color: var(--text);
  font-size: .86rem;
}

.directory-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--wine);
}

.directory-results {
  margin-bottom: 1.4rem;
  font-size: .86rem;
  color: var(--text-mid);
}
.filter-pill {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .79rem;
  color: var(--text-mid);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: var(--ease);
  font-family: var(--sans);
}
.filter-pill:hover {
  border-color: var(--gold);
  color: var(--wine);
  background: rgba(201,160,112,.08);
}
.filter-pill.active {
  background: var(--wine);
  color: var(--white);
  border-color: var(--wine);
}

/* ============================================================
   WINERY DIRECTORY GRID
============================================================ */
.winery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Winery Card */
.winery-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  transition: transform var(--ease), box-shadow var(--ease);
}
.winery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
}
.wc-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.wc-cover {
  position: relative;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}
/* Foto real */
.wc-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  z-index: 0;
}
.winery-card:hover .wc-photo { transform: scale(1.07); }
/* Overlay sobre foto o gradient */
.wc-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20,8,14,.82) 0%,
    rgba(20,8,14,.28) 52%,
    rgba(20,8,14,.06) 100%
  );
  z-index: 1;
}
.wc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  z-index: 2;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  color: var(--wine);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.wc-cover-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 1rem 1.1rem .9rem;
}
.wc-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
}
.wc-body {
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--white);
}
.wc-location {
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: .5rem;
}
.wc-desc {
  font-size: .84rem;
  color: var(--text-mid);
  line-height: 1.62;
  margin-bottom: .9rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: .9rem;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--warm);
  border-radius: 100px;
  font-size: .7rem;
  color: var(--text-mid);
}
.wc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.wc-price {
  font-size: .78rem;
  font-weight: 600;
  color: var(--wine);
  background: rgba(90,31,51,.07);
  padding: 3px 10px;
  border-radius: 100px;
}
.wc-cta {
  font-size: .79rem;
  font-weight: 600;
  color: var(--gold);
  transition: color var(--ease);
}
.winery-card:hover .wc-cta { color: var(--wine); }

/* ============================================================
   WINERY DETAIL LAYOUT
============================================================ */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
.profile-main { min-width: 0; }
.profile-aside { min-width: 0; }

/* Profile card */
.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--sh-sm);
  margin-bottom: 1.5rem;
}
.profile-card:last-child { margin-bottom: 0; }

.profile-card h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--text);
  margin-bottom: .75rem;
}
.profile-card h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: .6rem;
}
.profile-card p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.72;
  margin-bottom: .75rem;
}
.profile-card p:last-of-type { margin-bottom: 0; }

.section-kicker {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

/* Profile list */
.profile-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.profile-list li {
  font-size: .88rem;
  color: var(--text-mid);
  padding-left: 1rem;
  position: relative;
  line-height: 1.6;
}
.profile-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}
.profile-list li strong { color: var(--text); font-weight: 600; }

/* Key facts grid */
.modal-keyfacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 1rem;
}
.modal-keyfacts > div {
  background: var(--cream);
  padding: .85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.modal-keyfacts > div strong {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-light);
}
.modal-keyfacts > div span {
  font-size: .88rem;
  color: var(--text);
  font-weight: 500;
}

/* Card footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: .79rem;
  font-weight: 600;
  color: var(--text-mid);
  background: transparent;
  cursor: pointer;
  transition: var(--ease);
  font-family: var(--sans);
  text-decoration: none;
}
.ghost-button:hover {
  border-color: var(--wine);
  color: var(--wine);
  background: rgba(90,31,51,.04);
}

.atlas-link {
  font-size: .79rem;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--ease);
}
.atlas-link::after { content: ' ↗'; font-size: .72rem; }
.atlas-link:hover { color: var(--gold); }

/* Section head (subsection inside main content) */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--text);
  margin-top: .3rem;
}
.section-head p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 340px;
}

/* Related experiences / plans grid */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ============================================================
   CONTACT FORM
============================================================ */
.page-lead-form {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: 1.25rem;
}
.page-lead-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.page-lead-form label > span,
.page-lead-form label > strong {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-mid);
}
.page-lead-form input,
.page-lead-form select,
.page-lead-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.page-lead-form textarea {
  min-height: 100px;
  resize: vertical;
}
.page-lead-form input:focus,
.page-lead-form select:focus,
.page-lead-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,160,112,.15);
}
.page-lead-form input::placeholder,
.page-lead-form textarea::placeholder {
  color: var(--text-light);
}
.form-helper {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  flex-direction: row !important;
}
.form-helper input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
  margin-top: 2px;
  padding: 0 !important;
  accent-color: var(--gold);
}
.form-helper span {
  font-size: .78rem;
  color: var(--text-light);
  line-height: 1.55;
}
.page-lead-form button[type="submit"],
.button-submit {
  width: 100%;
  padding: 13px;
  background: var(--gold);
  color: var(--wine-deep);
  font-family: var(--sans);
  font-weight: 700;
  font-size: .88rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--ease);
  text-align: center;
  letter-spacing: .02em;
}
.page-lead-form button[type="submit"]:hover,
.button-submit:hover {
  background: #b88a58;
  box-shadow: 0 6px 22px rgba(201,160,112,.35);
}
.form-status {
  font-size: .8rem;
  color: var(--text-mid);
  text-align: center;
  min-height: 1em;
}

/* ============================================================
   LEGAL PAGES
============================================================ */
.legal-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--sh-sm);
  margin-bottom: 1.5rem;
}
.legal-card:last-child { margin-bottom: 0; }

.legal-card h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.22;
  color: var(--text);
  margin-bottom: .85rem;
}
.legal-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 .6rem;
}
.legal-card p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.78;
  margin-bottom: .75rem;
}
.legal-card p:last-of-type { margin-bottom: 0; }
.legal-card a { color: var(--wine); transition: color var(--ease); }
.legal-card a:hover { color: var(--gold); }

.legal-list {
  list-style: none;
  padding: 0;
  margin: .75rem 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.legal-list li {
  font-size: .88rem;
  color: var(--text-mid);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.65;
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .58em;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.legal-list li a { color: var(--wine); }
.legal-list li a:hover { color: var(--gold); }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--wine-deep);
  color: var(--white);
  padding-top: clamp(56px, 7vw, 96px);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: .45rem;
}
.footer-logo-img {
  width: clamp(172px, 17vw, 230px);
  height: auto;
  border-radius: 0;
  box-shadow: none;
}
.footer-tagline {
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: .86rem;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  max-width: 270px;
  margin-bottom: 1.5rem;
}
.footer-nl h4 {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: .75rem;
}
.footer-cta-group {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.footer-cta-group .btn {
  justify-content: center;
}
.nl-form {
  display: flex;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  overflow: hidden;
  transition: border-color var(--ease);
}
.nl-form:focus-within { border-color: rgba(201,160,112,.45); }
.nl-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--white);
  outline: none;
}
.nl-form input::placeholder { color: rgba(255,255,255,.3); }
.nl-form button {
  background: var(--gold);
  color: var(--wine-deep);
  border: none;
  padding: 8px 15px;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 100px 100px 0;
  transition: background var(--ease);
}
.nl-form button:hover { background: #b88a58; }

.footer-col h4 {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col a {
  font-size: .88rem;
  color: rgba(255,255,255,.58);
  transition: color var(--ease);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom-left { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-left p { font-size: .76rem; color: rgba(255,255,255,.28); }
.footer-legal { display: flex; gap: .9rem; }
.footer-legal a { font-size: .76rem; color: rgba(255,255,255,.32); transition: color var(--ease); }
.footer-legal a:hover { color: rgba(255,255,255,.65); }

.footer-bottom-right { display: flex; align-items: center; gap: 1rem; }
.footer-socials { display: flex; gap: 7px; }
.social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.45);
  font-size: .78rem;
  transition: var(--ease);
}
.social-link:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.footer-langs { display: flex; gap: 5px; }
.footer-langs a {
  font-size: .72rem;
  color: rgba(255,255,255,.3);
  padding: 3px 7px;
  border-radius: 4px;
  transition: var(--ease);
}
.footer-langs a:hover,
.footer-langs a.active {
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.07);
}

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* ============================================================
   NOISE TEXTURE
============================================================ */
.site-noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .winery-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-aside { order: -1; }
  .legal-layout { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .directory-toolbar { grid-template-columns: 1fr 1fr; }
  .directory-toggle { min-height: 48px; }
}

@media (max-width: 768px) {
  .logo-mark { width: 148px; }
  .winery-grid { grid-template-columns: 1fr; }
  .modal-keyfacts { grid-template-columns: 1fr; }
  .header-actions .lang-btn,
  .header-actions .user-btn { display: none; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-hero-title { font-size: clamp(1.9rem, 6vw, 2.8rem); }
  .filter-bar { gap: 6px; }
  .directory-toolbar { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .section-head p { max-width: 100%; }
}

@media (max-width: 480px) {
  .logo-mark { width: 132px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn,
  .hero-actions .button { width: 100%; justify-content: center; }
  .footer-cta-group { width: 100%; }
  .footer-cta-group .btn { width: 100%; }
  .footer-bottom-right { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .card-footer { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

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