/* ═══════════════════════════════════════════════════════════════════
   Bric del Vento — Shared Design System
   Website_all/shared.css
   ═══════════════════════════════════════════════════════════════════
   Covers: tokens, reset, base, nav, hero, utilities, buttons,
           strips, quote, footer, lightbox, responsive base.
   Each page keeps only its own layout styles in an inline <style>.
   Note: Google Fonts <link> tags remain in each HTML <head>.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ──────────────────────────────────────────────── */
:root {
  --cream:        #FEF9F2;
  --cream-dark:   #F2E5D0;
  --beige:        #E4CDB0;
  --terra:        #E08A65;      /* house-wall terracotta — main warm accent */
  --terra-light:  #F2C4A4;      /* sun-bleached plaster */
  --terra-dark:   #A04830;      /* deep terracotta — use sparingly */
  --brown:        #E08A65;      /* alias → --terra */
  --brown-light:  #F2C4A4;      /* alias → --terra-light */
  --brown-dark:   #A04830;      /* alias → --terra-dark */
  --blend:        #9A6A52;      /* forest × terracotta mix (35 / 65) */
  --forest:       #1F2F27;      /* primary dark */
  --forest-mid:   #2D4A38;      /* hover / secondary */
  --green:        #6B9E88;      /* sage */
  --green-light:  #AECDC0;      /* light sage */
  --charcoal:     #1F2F27;
  --grey:         #A89888;
  --white:        #FDFAF7;
  --wine-red:     #A85060;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --section-pad: clamp(4rem, 8vw, 7rem);
}

/* ─── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Base ───────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }

p { color: var(--charcoal); }

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

/* ─── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 4%;
  transition: background 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(31, 47, 39, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 28px rgba(0,0,0,0.22);
}

.nav-logo { display: flex; align-items: center; transition: opacity 0.3s; }
.nav-logo:hover { opacity: 0.85; }
.nav-logo img { height: 52px; width: auto; object-fit: contain; display: block; transition: height 0.4s; }
.nav.scrolled .nav-logo img { height: 44px; }

.nav-links { display: flex; gap: 2.2rem; list-style: none; }

.nav-links a {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.88); transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--beige); }

/* Nav action button — book / shop / cta */
.nav-book,
.nav-shop,
.nav-cta {
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.6rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white); transition: all 0.3s;
}

.nav-book:hover,
.nav-shop:hover,
.nav-cta:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.85); }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative; height: 100svh; min-height: 600px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}

.hero--full  { height: 100svh; min-height: 600px; }
.hero--short { height: 46vh;   min-height: 320px; }

.hero-img { position: absolute; inset: 0; z-index: 0; }

.hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(30,20,10,0.35) 0%,
    rgba(30,20,10,0.55) 60%,
    rgba(20,14,6,0.75)  100%
  );
}

.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 0 1.5rem; max-width: 860px;
  animation: fadeUp 1.2s ease both;
}

.hero-eyebrow {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--beige); margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--serif); font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300; color: var(--white); line-height: 1.1; margin-bottom: 1.5rem;
}

.hero-title em { font-style: italic; font-weight: 300; }

.hero-sub {
  font-size: 1.05rem; font-weight: 300; color: rgba(255,255,255,0.82);
  max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.8;
}

/* Arrow-style CTA (villa, guide, experiences) */
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--white);
  border-bottom: 1px solid var(--beige); padding-bottom: 0.3rem; transition: gap 0.3s;
}
.hero-cta:hover { gap: 1rem; }

/* Button-style CTAs (wine page) */
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-btn {
  display: inline-block; font-family: var(--sans); font-size: 0.75rem;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 0.85rem 2rem; transition: all 0.3s;
}

.hero-btn--solid {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.55);
  color: var(--white);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero-btn--solid:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.85); }

.hero-btn--outline { border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.75); }
.hero-btn--outline:hover { border-color: rgba(255,255,255,0.7); color: var(--white); }

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.hero-scroll span {
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── Animations ─────────────────────────────────────────────────── */
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

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

/* ─── Utilities ──────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 4%; }

.section-label {
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--blend); margin-bottom: 0.9rem;
}

.divider { width: 48px; height: 1px; background: var(--beige); margin: 1.5rem 0; }
.divider-center { margin: 1.5rem auto; }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Image placeholder (guide card pages) */
.img-ph {
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--beige) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; color: var(--brown); width: 100%; height: 100%;
}
.img-ph svg  { width: 32px; height: 32px; opacity: 0.45; }
.img-ph span { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.55; }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 1rem 2.4rem;
  transition: all 0.3s; cursor: pointer; border: none; white-space: nowrap;
}

.btn-primary { background: var(--forest); color: var(--white); border: 1px solid var(--forest); }
.btn-primary:hover { background: transparent; color: var(--forest); }

.btn-outline { background: transparent; color: var(--forest); border: 1px solid var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); }

.btn-cream { background: var(--cream); color: var(--forest); border: 1px solid var(--cream); }
.btn-cream:hover { background: transparent; color: var(--cream); }

.btn-outline-light { background: transparent; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.35); }
.btn-outline-light:hover { border-color: rgba(255,255,255,0.8); color: var(--white); }

.btn-wine { background: var(--wine-red); color: var(--white); border: 1px solid var(--wine-red); }
.btn-wine:hover { background: transparent; color: var(--wine-red); }

.btn-download {
  background: transparent; color: var(--grey);
  border: 1px solid var(--cream-dark); font-size: 0.7rem; padding: 0.75rem 1.4rem;
}
.btn-download:hover { border-color: var(--brown); color: var(--forest); }

.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ─── Text Link CTA (VIEW GALLERY style) ────────────────────────── */
.text-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--forest);
  border-bottom: 1px solid var(--beige); padding-bottom: 0.25rem;
  transition: gap 0.3s, border-color 0.3s; width: fit-content;
}
.text-link:hover { gap: 0.9rem; border-color: var(--forest); }
.text-link--light { color: var(--cream); border-bottom-color: rgba(255,255,255,0.3); }
.text-link--light:hover { border-bottom-color: var(--cream); }

/* ─── Intro / Welcome Strip ──────────────────────────────────────── */
.intro-strip,
.welcome-strip {
  background: var(--forest); text-align: center; padding: 2.2rem 1.5rem;
}
.intro-strip p,
.welcome-strip p {
  font-family: var(--serif); font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  font-weight: 300; font-style: italic; color: var(--cream); letter-spacing: 0.02em;
}

/* ─── Quote / Green Strip ────────────────────────────────────────── */
.quote-strip,
.nature-strip {
  background: var(--terra); color: var(--white); padding: 5rem 0; text-align: center;
}
.quote-strip blockquote,
.nature-strip blockquote {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 300;
  font-style: italic; line-height: 1.55; color: rgba(255,255,255,0.92);
  max-width: 780px; margin: 0 auto 1.2rem;
}
.quote-strip blockquote::before,
.nature-strip blockquote::before { content: '\201C'; }
.quote-strip blockquote::after,
.nature-strip blockquote::after  { content: '\201D'; }
.quote-attr {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}

/* ─── Footer ─────────────────────────────────────────────────────── */
footer { background: var(--forest); color: rgba(255,255,255,0.6); padding: 4rem 0 2rem; }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}

.footer-brand-name { font-family: var(--serif); font-size: 1.6rem; color: var(--white); margin-bottom: 0.8rem; }
.footer-brand-tagline { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.5); margin-bottom: 1.2rem; }

.footer-socials { display: flex; gap: 1rem; }
.footer-socials a {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); transition: color 0.2s;
}
.footer-socials a:hover { color: var(--white); }

footer h5 {
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--beige); margin-bottom: 1rem;
}
footer ul { list-style: none; }
footer li { font-size: 0.85rem; color: rgba(255,255,255,0.5); padding: 0.25rem 0; transition: color 0.2s; }
footer li:hover { color: var(--white); }
footer li a { color: inherit; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 0.78rem; }

/* ─── Cookie Banner ──────────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(40, 26, 14, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(201,184,154,0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }

.cookie-banner-inner {
  max-width: 1200px; margin: 0 auto; padding: 1.2rem 4%;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}

.cookie-banner-text {
  font-size: 0.82rem; color: rgba(255,255,255,0.7); line-height: 1.6; flex: 1; min-width: 200px;
}
.cookie-banner-text a { color: var(--beige); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-text strong { color: rgba(255,255,255,0.9); font-weight: 500; }

.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

.cookie-btn {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.6rem 1.4rem; cursor: pointer;
  transition: all 0.2s;
}
.cookie-btn--accept { background: var(--beige); color: var(--forest); border: none; }
.cookie-btn--accept:hover { background: var(--cream); }
.cookie-btn--decline { background: transparent; color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.2); }
.cookie-btn--decline:hover { border-color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.8); }

@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; gap: 1rem; }
  .cookie-banner-actions { width: 100%; justify-content: flex-end; }
}

/* ─── Lightbox ───────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 7, 3, 0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox-inner {
  position: relative; width: 100%; max-width: 1100px;
  padding: 0 5rem;
  display: flex; flex-direction: column; align-items: center;
}

.lightbox-img-wrap {
  width: 100%; max-height: 80vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 100%; max-height: 80vh; width: auto; height: auto;
  object-fit: contain; display: block; transition: opacity 0.25s ease;
}
.lightbox-img-wrap img.fading { opacity: 0; }

.lightbox-close {
  position: fixed; top: 1.5rem; right: 1.5rem; z-index: 1001;
  background: none; border: 1px solid rgba(255,255,255,0.3); color: var(--white);
  width: 44px; height: 44px; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.lightbox-close:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.1); }

.lightbox-arrow {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 1001;
  background: rgba(20,14,6,0.5); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); width: 52px; height: 52px; font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, border-color 0.25s;
  -webkit-user-select: none; user-select: none;
}
.lightbox-arrow:hover { background: rgba(20,14,6,0.85); border-color: rgba(255,255,255,0.6); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-meta { margin-top: 1.2rem; text-align: center; }
.lightbox-name {
  font-family: var(--serif); font-size: 1.4rem; font-style: italic;
  color: var(--white); margin-bottom: 0.3rem;
}
.lightbox-counter {
  font-family: var(--sans); font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}

.lightbox-thumbs {
  display: flex; gap: 0.4rem; margin-top: 1.2rem;
  overflow-x: auto; max-width: 100%; padding-bottom: 0.2rem;
  scrollbar-width: none;
}
.lightbox-thumbs::-webkit-scrollbar { display: none; }

.lightbox-thumb {
  flex: 0 0 56px; height: 40px; overflow: hidden; cursor: pointer;
  opacity: 0.45; transition: opacity 0.2s; border: 1px solid transparent;
}
.lightbox-thumb.active { opacity: 1; border-color: var(--beige); }
.lightbox-thumb:hover  { opacity: 0.8; }
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Responsive — shared base ───────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links  { display: none; }
  .hero-ctas  { flex-direction: column; align-items: center; }
  .footer-grid   { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .lightbox-inner  { padding: 0 3.5rem; }
  .lightbox-thumbs { display: none; }
}

@media (max-width: 480px) {
  .lightbox-inner { padding: 0 1rem; }
  .lightbox-arrow { width: 40px; height: 40px; font-size: 1.2rem; }
}
