/* ============================================================
   Marksplinter Vineyard — shared stylesheet
   FICTIONAL winery site for software testing (markstestwinery)
   ============================================================ */

:root {
  --ink:        #2b2621;   /* near-black warm brown for text */
  --stone:      #6b6157;   /* muted brown-grey */
  --cream:      #f6f1e7;   /* page background */
  --cream-2:    #efe7d7;   /* alternate section bg */
  --gold:       #a9843f;   /* accent / links / buttons */
  --gold-dark:  #866325;
  --wine:       #5b2333;   /* deep burgundy */
  --line:       #ddd2bd;   /* hairline borders */
  --white:      #fffdf8;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: .5px; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }

a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 1.1em; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin: 0 0 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  background: transparent;
  cursor: pointer;
  transition: all .18s ease;
}
.btn:hover { background: var(--gold); color: var(--white); text-decoration: none; }

.btn--solid { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn--solid:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn--light { border-color: var(--white); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--ink); }

.btn--lg { padding: 18px 46px; font-size: .85rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246,241,231,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  max-width: 1120px;
  margin: 0 auto;
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ink);
  line-height: 1;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: .58rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 5px;
}
.brand:hover { text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.nav-links a:hover { color: var(--gold-dark); text-decoration: none; }
.nav-links a.active { color: var(--gold-dark); border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
.nav-links .nav-cta { }

@media (max-width: 820px) {
  .nav { flex-wrap: wrap; justify-content: center; }
  .nav-links { gap: 18px; flex-wrap: wrap; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(43,38,33,.42) 0%, rgba(43,38,33,.62) 100%),
    url("images/home-hero.jpg") center 45%/cover no-repeat,
    linear-gradient(135deg, #6d5334 0%, #3f2d1e 45%, #5b2333 100%);
  overflow: hidden;
}
.hero::after { /* subtle vine-row texture */
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 2px, transparent 2px 46px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); }
.hero .lede { font-size: 1.25rem; max-width: 620px; margin: 0 auto 2rem; color: rgba(255,255,255,.92); }
.hero .eyebrow { color: #e7c983; }

/* smaller page hero for interior pages */
.page-hero {
  min-height: 44vh;
  color: var(--white);
  display: flex; align-items: center; text-align: center;
  background:
    linear-gradient(180deg, rgba(43,38,33,.35), rgba(43,38,33,.6)),
    linear-gradient(135deg, #6d5334 0%, #3f2d1e 55%, #5b2333 100%);
}
.page-hero--wines, .page-hero--club, .page-hero--about, .page-hero--visit {
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.page-hero--wines { background-image: linear-gradient(180deg, rgba(43,38,33,.45), rgba(43,38,33,.62)), url("images/vine-rows.jpg"); }
.page-hero--about { background-image: linear-gradient(180deg, rgba(43,38,33,.45), rgba(43,38,33,.62)), url("images/terrace-view.jpg"); }
.page-hero--club  { background-image: linear-gradient(180deg, rgba(43,38,33,.42), rgba(43,38,33,.60)), url("images/red-flower.jpg"); }
.page-hero--visit { background-image: linear-gradient(180deg, rgba(43,38,33,.42), rgba(43,38,33,.60)), url("images/basic-good-view.jpg"); }
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: #e7c983; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto; }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.section--alt { background: var(--cream-2); }
.section--wine { background: var(--wine); color: var(--white); }
.section--wine h2, .section--wine h3 { color: var(--white); }
.section--wine .eyebrow { color: #e7c983; }

.centered { text-align: center; max-width: 720px; margin: 0 auto; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* Decorative "photo" placeholder blocks (self-contained, no external images) */
.photo {
  border-radius: 2px;
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: .05em;
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.photo::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 40px);
}
.photo span { position: relative; z-index: 2; }
.photo.has-img { background-size: cover; background-position: center; background-repeat: no-repeat; }
.photo.has-img::after { display: none; }
.photo--vines   { background: linear-gradient(135deg, #6d5334, #3f2d1e); }
.photo--barrels { background: linear-gradient(135deg, #7a4a2b, #4a2a18); }
.photo--pour    { background: linear-gradient(135deg, #5b2333, #331018); }
.photo--hills   { background: linear-gradient(135deg, #7d7a4a, #43502d); }
.photo--room    { background: linear-gradient(135deg, #8a6a3a, #4a3418); }

/* ---------- Wine cards ---------- */
.grid { display: grid; gap: 34px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.wine-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.wine-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(43,38,33,.12); }
.wine-card__img {
  height: 210px;
  display: flex; align-items: flex-end; justify-content: center;
  color: rgba(255,255,255,.9);
  font-family: var(--serif);
  padding-bottom: 16px;
}
.bottle-red   { background: linear-gradient(160deg, #7a3346 0%, #3d1622 100%); }
.bottle-white { background: linear-gradient(160deg, #c9b56e 0%, #8a7333 100%); }
.bottle-rose  { background: linear-gradient(160deg, #e3a9a0 0%, #b56a6a 100%); }
.wine-card__body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.wine-card__vintage { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.wine-card__name { font-family: var(--serif); font-size: 1.5rem; margin: 6px 0 4px; }
.wine-card__appellation { font-size: .85rem; color: var(--stone); margin-bottom: 12px; }
.wine-card__notes { font-size: .95rem; color: var(--stone); flex: 1; }
.wine-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.wine-card__price { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }

/* ---------- Info / hours strip ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
@media (max-width: 700px) { .info-grid { grid-template-columns: 1fr; gap: 30px; } }
.info-grid h3 { color: inherit; }
.info-grid .eyebrow { margin-bottom: .5rem; }

/* ---------- Callout (Visit / booking) ---------- */
.callout {
  text-align: center;
  background: var(--wine);
  color: var(--white);
  padding: 80px 24px;
  border-radius: 2px;
}
.callout h2 { color: var(--white); }
.callout p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 2rem; }

/* External-link marker */
.ext::after {
  content: " \2197";
  font-size: .85em;
  opacity: .8;
}

/* ---------- Simple form ---------- */
.form { max-width: 560px; }
.form label { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin: 18px 0 7px; font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
}
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { margin-top: 24px; border: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding: 64px 0 40px;
  font-size: .9rem;
}
.site-footer a { color: rgba(255,255,255,.85); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: var(--white); margin-bottom: 8px; }
.site-footer h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--white); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: rgba(255,255,255,.5); }

/* Little test-site banner so it's obvious this is fictional */
.test-banner {
  background: var(--gold-dark);
  color: var(--white);
  text-align: center;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 7px 12px;
}

/* ============================================================
   Embedded booking widget — Option 2 (hidden demo page)
   Keeps the winery's branding instead of redirecting out.
   ============================================================ */
.widget-wrap { max-width: 760px; margin: 0 auto; }
.widget {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(43,38,33,.10);
}
.widget__head { background: var(--wine); color: var(--white); padding: 22px 28px; }
.widget__head h3 { color: var(--white); margin: 0; }
.widget__head p { margin: 5px 0 0; color: rgba(255,255,255,.82); font-size: .9rem; }
.widget__body { padding: 28px; }
.widget__step-label {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 600; margin: 0 0 14px;
}
.venue-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
@media (max-width: 560px) { .venue-options { grid-template-columns: 1fr; } }
.venue-opt {
  border: 1px solid var(--line); background: var(--cream); border-radius: 3px;
  padding: 14px 16px; cursor: pointer; transition: all .15s ease;
  text-align: left; font: inherit; color: inherit;
}
.venue-opt:hover { border-color: var(--gold); }
.venue-opt.selected { border-color: var(--gold); background: #fdf6e8; box-shadow: inset 0 0 0 1px var(--gold); }
.venue-opt strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 2px; }
.venue-opt span { font-size: .82rem; color: var(--stone); }
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.widget label { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin: 0 0 6px; font-weight: 600; }
.widget input, .widget select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  background: var(--white); font-family: var(--sans); font-size: .95rem; color: var(--ink);
}
.widget__confirm { margin-top: 26px; width: 100%; text-align: center; border: none; }
.widget__summary { margin-top: 22px; padding: 16px 18px; background: var(--cream-2); border-radius: 3px; font-size: .95rem; display: none; }
.widget__summary strong { color: var(--gold-dark); }
.slot-hint {
  border: 1px dashed var(--gold); background: #fdf6e8; color: var(--gold-dark);
  font-size: .8rem; padding: 10px 14px; border-radius: 3px; margin-bottom: 22px;
  text-align: center; letter-spacing: .02em;
}
.hidden-note {
  background: #2b2621; color: #e7c983; text-align: center;
  font-size: .72rem; letter-spacing: .1em; padding: 8px 12px;
}
