/* Cava Rovellats — site styles */
:root {
  --ink: #1C1915;
  --paper: #F6F1E8;
  --sand: #EDE5D8;
  --card: #FFFDF8;
  --line: #E3DACB;
  --line-strong: #B9AC96;
  --text-2: #3E372F;
  --muted: #5E554A;
  --muted-dark: #BDB2A2;
  --muted-dark-2: #CFC5B6;
  --gold: #7A5C22;      /* gold text on light grounds */
  --gold-hover: #4F3B14;
  --gold-light: #D4B26A; /* gold on dark grounds */
  --champagne: #E9D7A8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Manrope, system-ui, -apple-system, sans-serif;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--gold); }
a:hover { color: var(--gold-hover); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--gold-light); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: 8px 14px; }

/* Type */
.eyebrow { font-size: 13px; letter-spacing: .3em; font-weight: 700; color: var(--gold); text-transform: uppercase; }
.dark .eyebrow, .hero .eyebrow { color: var(--gold-light); }
.h1, .h2, .h3 { font-family: var(--serif); margin: 0; }
.h2 { font-weight: 500; font-size: clamp(36px, 4.5vw, 58px); line-height: 1.05; }
.h3 { font-weight: 600; font-size: 32px; line-height: 1.1; }
.lead { font-size: 17px; color: var(--text-2); margin: 0; }
p { margin: 0; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #3A332B; color: var(--paper); }
.btn-gold { background: var(--gold-light); color: var(--ink); font-weight: 700; font-size: 15px; min-height: 50px; padding: 0 28px; }
.btn-gold:hover { background: var(--champagne); color: var(--ink); }
.btn-ghost-light { border-color: rgba(246,241,232,.6); color: var(--paper); font-size: 15px; min-height: 50px; padding: 0 28px; }
.btn-ghost-light:hover { background: rgba(246,241,232,.1); color: var(--paper); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.pill { min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px; }
.segmented .pill { border: 0; }

.tag { border: 1px solid #D8CDB9; border-radius: 999px; padding: 3px 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.badge { display: inline-block; background: var(--ink); color: var(--champagne); font-size: 12px; font-weight: 700; letter-spacing: .1em; padding: 6px 12px; border-radius: 999px; }

/* Utility bar + header */
.utility { background: var(--ink); color: var(--muted-dark); font-size: 13px; }
.utility .wrap { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.utility a { color: var(--muted-dark); }
.utility a.tel { color: var(--gold-light); }
.utility a[aria-current] { color: var(--paper); font-weight: 600; }
.langs { display: flex; gap: 14px; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: .14em; }
.brand-sub { font-size: 10.5px; letter-spacing: .32em; color: var(--muted); margin-top: 6px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14.5px; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.main-nav a:hover { color: var(--gold); }
.main-nav a[aria-current="page"] { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.icon-btn { height: 44px; min-width: 44px; padding: 0 14px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }

/* Hero */
.hero { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; opacity: .55; }
.hero .wrap { position: relative; padding-top: 120px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(52px, 8vw, 112px); line-height: .98; max-width: 900px; margin: 0; letter-spacing: -.01em; }
.hero h1 em { color: var(--champagne); }
.hero p { max-width: 560px; font-size: 18px; color: #E6DED1; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { margin-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; border-top: 1px solid rgba(246,241,232,.25); padding-top: 28px; }
.stat-num { font-family: var(--serif); font-size: 44px; line-height: 1; }
.stat-label { font-size: 13.5px; color: var(--muted-dark-2); margin-top: 6px; }

/* Sections */
.section { padding-top: 112px; padding-bottom: 112px; }
.section-sm { padding-top: 88px; padding-bottom: 88px; }
.bg-sand { background: var(--sand); }
.dark { background: var(--ink); color: var(--paper); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; flex-wrap: wrap; gap: 20px 64px; justify-content: space-between; align-items: end; margin-bottom: 40px; }
.section-head .h2 { margin-top: 8px; }
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-fill { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 24px; }

.pillar { display: flex; flex-direction: column; gap: 12px; }
.pillar-num { font-family: var(--serif); font-size: 22px; color: var(--gold); font-style: italic; }
.pillar p { color: var(--text-2); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
.visit-card { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.visit-card .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.visit-card .quote { color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.visit-card ul { margin: 0; padding-left: 18px; color: var(--text-2); display: grid; gap: 4px; }
.visit-card p { color: var(--text-2); }
.card-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.visit-card > .btn-outline { margin-top: auto; align-self: flex-start; }
.price-pp { font-size: 14px; color: var(--muted); }
.price-pp strong { font-family: var(--serif); font-size: 26px; color: var(--ink); }

/* Featured wine */
.cavas { display: flex; flex-wrap: wrap; gap: 24px; }
.cavas > * { flex: 1 1 520px; min-width: 0; }
.feature { display: flex; flex-wrap: wrap; overflow: hidden; }
.feature-media { flex: 0 0 200px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 24px 0; margin: 0 auto; }
.feature-media img { height: 460px; width: auto; }
.feature-body { flex: 1 1 260px; padding: 40px 36px; display: flex; flex-direction: column; gap: 14px; }
.feature-body .badge { align-self: flex-start; }
.feature-body h3 { font-size: 40px; line-height: 1.05; }
.feature-body p { color: var(--text-2); }
.feature-foot { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.price-big { font-family: var(--serif); font-size: 32px; font-weight: 600; }

.wine-row { display: flex; gap: 20px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.wine-row:hover { color: var(--ink); background: rgba(255,253,248,.6); }
.wine-row .info { flex: 1 1 auto; min-width: 0; }
.wine-tier { font-size: 12px; letter-spacing: .16em; color: var(--gold); font-weight: 700; }
.wine-name { font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.15; }
.wine-award { font-size: 13.5px; color: var(--muted); }
.wine-price { font-family: var(--serif); font-size: 24px; font-weight: 600; white-space: nowrap; }

/* Awards band */
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.award-num { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--champagne); }
.award-label { font-size: 14px; color: var(--muted-dark-2); margin-top: 8px; }

.placeholder { aspect-ratio: 4 / 3; background: #D8CDB9; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; text-align: center; padding: 24px; }

/* Info */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.info-grid h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; margin: 0 0 12px; }
.info-grid p { color: var(--text-2); }
.info-grid .small { margin-top: 10px; color: var(--muted); font-size: 14px; }
.newsletter { display: flex; flex-direction: column; gap: 10px; }
.newsletter label { font-size: 14px; color: var(--text-2); }
.newsletter .row { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input { flex: 1 1 160px; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); font: inherit; }
.form-msg { font-size: 14px; color: var(--gold); min-height: 1.4em; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; }
.facts > div { border-top: 1px solid var(--ink); padding-top: 16px; }
.facts h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.facts p { color: var(--text-2); }

/* Visits hero */
.page-hero { padding-top: 72px; padding-bottom: 64px; }
.page-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 6vw, 84px); line-height: 1; letter-spacing: -.01em; margin: 0; }
.page-hero h1 em { color: var(--gold); }
.rating { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; margin-top: 4px; }
.rating-num { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; }
.rating small { font-size: 13.5px; color: var(--muted); line-height: 1.35; display: block; }
.vrule { width: 1px; height: 40px; background: #D8CDB9; }
.photo-tall { aspect-ratio: 5 / 4; }

.voucher { border: 1px solid #5A5146; border-radius: 4px; padding: 32px; display: flex; flex-direction: column; gap: 14px; flex: 0 1 380px !important; }
.voucher .amount { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--champagne); }

/* Shop */
.shop-intro { padding-top: 64px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: end; justify-content: space-between; }
.shop-intro h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 5.5vw, 76px); line-height: 1; margin: 8px 0 12px; }
.shop-tabs { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 96px; }
.product { display: flex; flex-direction: column; overflow: hidden; }
.product-media { height: 260px; display: flex; align-items: flex-end; justify-content: center; position: relative; }
.product-media .badge { position: absolute; top: 14px; left: 14px; font-size: 11.5px; letter-spacing: .08em; padding: 5px 10px; }
.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.product-body h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.15; margin: 0; }
.product-style { font-size: 14px; color: var(--muted); }
.product-foot { margin-top: auto; padding-top: 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.product-price { display: flex; flex-direction: column; line-height: 1.1; }
.product-price strong { font-family: var(--serif); font-size: 28px; }
.product-price span { font-size: 12.5px; color: var(--muted); }
.reassure { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.reassure h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.reassure p { color: var(--text-2); font-size: 15px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120%); background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: transform .25s ease; z-index: 20; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-dark); font-size: 14px; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.footer-top .brand-name { color: var(--paper); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 10px 48px; }
.footer-nav a { color: #E6DED1; text-decoration: none; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid #3A342C; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }
.footer-bottom a { color: var(--muted-dark); }
.legal-note { font-size: 12.5px; color: #9C9283; }
.site-footer.slim .wrap { padding-top: 28px; padding-bottom: 28px; flex-direction: row; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }

@media (max-width: 640px) {
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero .wrap { padding-top: 72px; }
  .stats { margin-top: 40px; }
  .feature-body { padding: 28px 22px; }
  .feature-media img { height: 340px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .toast { transition: none; } }
