/* =========================================================
   DD Bodega — Stylesheet
   A warm, candlelit cellar aesthetic: deep espresso darks,
   cream paper, and amber/terracotta accents.
   ========================================================= */

:root {
  /* Palette */
  --ink: #1c1611;          /* deep espresso */
  --ink-2: #2a221a;        /* slightly lifted dark */
  --cream: #f6f0e6;        /* warm paper */
  --cream-2: #efe7d8;      /* darker cream / cards */
  --amber: #c89243;        /* primary accent (gold) */
  --amber-soft: #e0b46a;
  --terra: #b25a37;        /* terracotta accent */
  --muted: #8a7c6a;        /* muted text on cream */
  --muted-dark: #b8a991;   /* muted text on dark */
  --line: rgba(28, 22, 17, 0.12);
  --line-dark: rgba(246, 240, 230, 0.14);

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 18px;
  --shadow: 0 30px 60px -25px rgba(28, 22, 17, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.005em; }

p { margin: 0 0 1rem; }

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

img { max-width: 100%; display: block; }

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

.section { padding: clamp(72px, 11vw, 140px) 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--terra);
  margin: 0 0 1rem;
}

.section__head { max-width: 640px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.section__head .eyebrow { color: var(--amber); }
.section__sub { color: var(--muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.8em;
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.btn--primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(200, 146, 67, 0.7);
}
.btn--primary:hover { background: var(--amber-soft); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-dark);
}
.btn--ghost:hover { border-color: var(--amber); color: var(--amber-soft); transform: translateY(-2px); }
.btn--full { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 18px 0;
}
.nav.is-scrolled {
  background: rgba(28, 22, 17, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
  padding: 12px 0;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; align-items: baseline; gap: 0.4em; color: var(--cream); }
.nav__mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--amber);
  letter-spacing: -0.02em;
}
.nav__name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.02em; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.25s, color 0.25s;
}
.nav__links a:hover { opacity: 1; color: var(--amber-soft); }
.nav__cta {
  background: var(--amber);
  color: var(--ink) !important;
  padding: 0.6em 1.3em;
  border-radius: 100px;
  opacity: 1 !important;
}
.nav__cta:hover { background: var(--amber-soft); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(120% 80% at 50% -10%, #3a2e22 0%, var(--ink) 55%),
    var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: 140px 0 90px;
}
.hero__glow {
  position: absolute;
  width: 70vmax; height: 70vmax;
  top: -25vmax; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(200, 146, 67, 0.22) 0%, transparent 60%);
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(30px); }
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber-soft);
  margin-bottom: 1.4rem;
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin-bottom: 1.4rem;
}
.hero__title em { color: var(--amber); font-style: italic; }
.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted-dark);
  max-width: 620px;
  margin: 0 auto 2.4rem;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__stats {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4.5rem);
  margin-top: clamp(3rem, 7vw, 5rem);
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--amber-soft);
}
.stat__label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-dark);
  margin-top: 0.3rem;
}

.hero__scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--line-dark);
  border-radius: 14px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--amber);
  border-radius: 2px;
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Story ---------- */
.story__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.story__media { position: relative; }
.story__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, #3a2e22, #1c1611);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.story__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 30% 20%, rgba(200,146,67,0.18), transparent 70%);
}
.story__photo-label {
  position: relative;
  color: var(--muted-dark);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px dashed var(--line-dark);
  padding: 0.6em 1.2em;
  border-radius: 100px;
}
.story__badge {
  position: absolute;
  right: -18px; bottom: -18px;
  width: 132px; height: 132px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow);
  font-family: var(--serif);
  line-height: 1.2;
  transform: rotate(-8deg);
}
.story__badge-top { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.story__badge-mid { font-size: 0.8rem; }
.story__badge-bot { font-size: 1.05rem; font-weight: 600; }

.story__content h2 { max-width: 14ch; }
.story__content > p { color: var(--muted); font-size: 1.05rem; }
.story__list { list-style: none; padding: 0; margin: 1.8rem 0 0; }
.story__list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.9rem;
  color: var(--ink);
}
.story__list li::before {
  content: "✦";
  position: absolute; left: 0;
  color: var(--amber);
}

/* ---------- Cards (occasions) ---------- */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
}
.card {
  flex: 1 1 250px;
  max-width: 290px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--amber);
}
.card__icon {
  font-size: 2rem;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  border-radius: 16px;
  margin-bottom: 1.3rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ---------- Amenities ---------- */
.amenities { background: var(--ink); color: var(--cream); }
.amenities .eyebrow { color: var(--amber); }
.amenities .section__sub { color: var(--muted-dark); }
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.amenity {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2rem;
  background: linear-gradient(180deg, rgba(246,240,230,0.03), transparent);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.amenity:hover { transform: translateY(-6px); border-color: var(--amber); background: rgba(200,146,67,0.06); }
.amenity__icon { font-size: 1.9rem; margin-bottom: 1rem; }
.amenity h3 { color: var(--cream); margin-bottom: 0.4rem; }
.amenity p { color: var(--muted-dark); font-size: 0.96rem; margin: 0; }

/* ---------- Experience / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2.4rem 2rem 2rem;
  border-radius: var(--radius);
  background: var(--cream-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.step__num {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--amber);
  opacity: 0.4;
  display: block;
  margin-bottom: 0.6rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--terra));
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    radial-gradient(120% 140% at 50% 0%, #3a2e22, var(--ink));
  color: var(--cream);
  text-align: center;
}
.cta-banner__inner { padding: clamp(60px, 9vw, 110px) 28px; }
.cta-banner h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 0.6rem; }
.cta-banner p { color: var(--muted-dark); font-size: 1.1rem; margin-bottom: 2rem; }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__info h2 { max-width: 12ch; }
.contact__info > p { color: var(--muted); font-size: 1.05rem; }
.contact__details { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact__details li {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.contact__details li:last-child { border-bottom: 1px solid var(--line); }
.contact__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.contact__details a:hover { color: var(--terra); }

.contact__form {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.2rem; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(200, 146, 67, 0.18);
}
.form__note { font-size: 0.9rem; margin: 0.8rem 0 0; min-height: 1.2em; }
.form__note.is-ok { color: #4a7a3a; }
.form__note.is-err { color: var(--terra); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--muted-dark); padding: 64px 0 40px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer__brand { display: flex; align-items: baseline; gap: 0.4em; color: var(--cream); }
.footer__tag { max-width: 32ch; }
.footer__links { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.footer__links a { font-size: 0.9rem; transition: color 0.25s; }
.footer__links a:hover { color: var(--amber-soft); }
.footer__copy { font-size: 0.82rem; opacity: 0.7; margin: 0.6rem 0 0; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .story__grid, .contact__grid { grid-template-columns: 1fr; }
  .story__media { max-width: 420px; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 0 2rem;
    background: var(--ink-2);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
  }
  .nav.is-open .nav__links { transform: none; }
  .nav__links a { font-size: 1.15rem; }
  .nav__toggle { display: flex; z-index: 110; }
}

@media (max-width: 520px) {
  .cards, .amenity-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.6rem; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Photos & Gallery (lokalbilder) ---------- */
.story__photo { overflow: hidden; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }

.gallery { background: var(--cream); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1.1rem;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #3a2e22, var(--ink));
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }

@media (max-width: 720px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item--wide { grid-column: span 2; grid-row: span 1; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery__item:hover img { transform: none; }
}

/* ---------- Hero background video ---------- */
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(28,22,17,0.35), rgba(28,22,17,0.78) 75%),
    linear-gradient(180deg, rgba(28,22,17,0.5), rgba(28,22,17,0.85));
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }   /* keep the calm gradient hero */
}
