/* ============================================================
   LARY PRIVATE CHEF — v4 "Chef's Story" Editorial Design
   Palette: Deep Forest Green #1a3a2a | Cream #faf8f0
            Warm Gold #c9a84c | Charcoal #2d2d2d
   Fonts: DM Serif Display (headings) + Source Sans 3 (body)
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green:   #1a3a2a;
  --green-mid: #254d39;
  --cream:   #faf8f0;
  --cream-dk: #f0ece0;
  --gold:    #c9a84c;
  --gold-lt: #e2c878;
  --charcoal:#2d2d2d;
  --white:   #ffffff;
  --text-dk: #1e1e1e;

  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;

  --max-w: 1280px;
  --section-pad: clamp(4rem, 8vw, 8rem);
  --col-gap: clamp(2rem, 4vw, 5rem);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Typography Scale ─────────────────────────────────────── */
.t-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.t-display {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.08;
  color: var(--white);
  font-weight: 400;
}

.t-section-num {
  font-family: var(--font-head);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 1;
  color: var(--gold);
  opacity: 0.18;
  position: absolute;
  top: -0.35em;
  left: -0.12em;
  user-select: none;
  pointer-events: none;
  font-weight: 400;
}

.t-section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  line-height: 1.12;
  font-weight: 400;
}

.t-body {
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.82;
  color: var(--charcoal);
  opacity: 0.88;
}

/* ── Gold Divider ─────────────────────────────────────────── */
.gold-rule {
  display: block;
  width: 3.5rem;
  height: 1px;
  background: var(--gold);
  margin: 1.4rem 0;
}

.gold-rule--center {
  margin-left: auto;
  margin-right: auto;
}

.gold-rule--wide {
  width: 100%;
  max-width: 22rem;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(to bottom, rgba(26,58,42,0.92) 0%, transparent 100%);
  backdrop-filter: blur(0px);
}

.nav__brand {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.nav__brand span {
  color: var(--gold);
}

.nav__links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,248,240,0.78);
  transition: color 0.25s;
}

.nav__links a:hover {
  color: var(--gold);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--green);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  transform-origin: center center;
}

/* Multi-layer overlay: bottom-heavy vignette + side fade */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,  rgba(10,26,18,0.96) 0%,
                             rgba(10,26,18,0.55) 42%,
                             rgba(10,26,18,0.12) 75%,
                             transparent 100%),
    linear-gradient(to right, rgba(10,26,18,0.4) 0%, transparent 50%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem);
}

.hero__eyebrow {
  margin-bottom: 1.1rem;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1.04;
  color: var(--white);
  font-weight: 400;
  max-width: 14ch;
}

.hero__title em {
  font-style: italic;
  color: var(--gold-lt);
}

.hero__subtitle {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(250,248,240,0.72);
  font-weight: 300;
  letter-spacing: 0.04em;
  max-width: 38ch;
}

.hero__cta {
  margin-top: 2.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.25rem;
  transition: color 0.25s, border-color 0.25s;
}

.hero__cta:hover {
  color: var(--gold-lt);
  border-color: var(--gold-lt);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero__scroll-hint span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,248,240,0.45);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── Story Intro ──────────────────────────────────────────── */
.intro {
  background: var(--green);
  padding: var(--section-pad) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}

.intro__inner {
  max-width: 680px;
  margin: 0 auto;
}

.intro__quote {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.5;
  color: var(--cream);
  font-weight: 400;
  font-style: italic;
  position: relative;
  padding: 0 1.5rem;
}

.intro__quote::before,
.intro__quote::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
  margin: 1.8rem auto;
}

.intro__author {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
}

/* ── Story Sections (alternating layout) ──────────────────── */
.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
  overflow: hidden;
}

.story-section--reverse {
  direction: rtl;
}

.story-section--reverse > * {
  direction: ltr;
}

/* Photo column */
.story-section__photo {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

.story-section__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-section__photo:hover img {
  transform: scale(1.04);
}

/* Photo edge gradient for visual flow */
.story-section__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Normal (photo left): gradient fades right edge */
.story-section:not(.story-section--reverse) .story-section__photo::after {
  background: linear-gradient(to right, transparent 65%, rgba(250,248,240,0.06) 100%);
}

/* Reverse (photo right): gradient fades left edge */
.story-section--reverse .story-section__photo::after {
  background: linear-gradient(to left, transparent 65%, rgba(250,248,240,0.06) 100%);
}

/* Text column */
.story-section__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
  position: relative;
  background: var(--cream);
}

/* Green-background variant */
.story-section__text--dark {
  background: var(--green);
  color: var(--cream);
}

.story-section__text--dark .t-section-title {
  color: var(--cream);
}

.story-section__text--dark .t-body {
  color: rgba(250,248,240,0.82);
}

.story-section__num {
  position: relative;
  height: 2.5rem;
  margin-bottom: 0.5rem;
}

.story-section__body {
  max-width: 44ch;
}

.story-section__body p + p {
  margin-top: 1.1rem;
}

/* ── Section Transition Bands ─────────────────────────────── */
.band {
  background: var(--green);
  padding: 2px 0;
}

.band--gold {
  background: var(--gold);
  height: 1px;
  opacity: 0.35;
}

/* ── Services Section ─────────────────────────────────────── */
.services {
  background: var(--green);
  padding: var(--section-pad) clamp(1.5rem, 5vw, 4rem);
}

.services__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.services__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.services__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--cream);
  font-weight: 400;
  margin-top: 0.8rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.service-card {
  border: 1px solid rgba(201,168,76,0.28);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: rgba(201,168,76,0.55);
  background: rgba(201,168,76,0.04);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 1.2rem;
}

.service-card__title {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  color: var(--cream);
  font-weight: 400;
  margin-bottom: 0.7rem;
}

.service-card__desc {
  font-size: 0.95rem;
  color: rgba(250,248,240,0.68);
  line-height: 1.75;
}

.service-card__tag {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 0.3rem 0.85rem;
}

/* ── Pricing Band ─────────────────────────────────────────── */
.pricing {
  background: var(--cream-dk);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.pricing__inner {
  max-width: 600px;
  margin: 0 auto;
}

.pricing__amount {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--green);
  line-height: 1;
  margin: 1rem 0 0.4rem;
}

.pricing__amount sup {
  font-size: 0.4em;
  vertical-align: super;
  color: var(--gold);
}

.pricing__note {
  font-size: 0.9rem;
  color: var(--charcoal);
  opacity: 0.6;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}

/* ── Contact Section ──────────────────────────────────────── */
.contact {
  background: var(--green);
  padding: var(--section-pad) clamp(1.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

/* Decorative large number watermark */
.contact::before {
  content: 'Kontakt';
  font-family: var(--font-head);
  font-size: clamp(5rem, 16vw, 14rem);
  color: rgba(201,168,76,0.05);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.contact__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  color: var(--cream);
  font-weight: 400;
  margin: 0.8rem 0 1.4rem;
  line-height: 1.12;
}

.contact__lead {
  font-size: 1.05rem;
  color: rgba(250,248,240,0.7);
  line-height: 1.8;
  max-width: 46ch;
  margin: 0 auto 3rem;
}

.contact__methods {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.contact-method {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-method__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-method__value {
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--cream);
  transition: color 0.25s;
}

.contact-method__value:hover {
  color: var(--gold-lt);
}

.contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.1rem 3rem;
  background: var(--gold);
  color: var(--green);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  transition: background 0.3s, color 0.3s;
}

.contact__btn:hover {
  background: transparent;
  color: var(--gold);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: #0e2119;
  padding: 2.4rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(201,168,76,0.15);
}

.footer__brand {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: rgba(250,248,240,0.5);
}

.footer__brand strong {
  color: var(--gold);
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(250,248,240,0.3);
  letter-spacing: 0.06em;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links { display: none; }

  .story-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .story-section--reverse {
    direction: ltr;
  }

  .story-section__photo {
    height: 60vw;
    min-height: 300px;
  }

  /* On mobile always: photo first, then text */
  .story-section--reverse .story-section__photo {
    order: -1;
  }

  .story-section__text {
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  }

  .services__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .contact__methods {
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 600px) {
  .hero__title {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .pricing__amount {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }
}

/* ── Subtle entrance animation (CSS-only) ─────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .story-section__text {
    --delay: 0s;
  }

  .story-section:nth-child(2) .story-section__text { --delay: 0.05s; }
  .story-section:nth-child(3) .story-section__text { --delay: 0.1s; }
  .story-section:nth-child(4) .story-section__text { --delay: 0.08s; }
  .story-section:nth-child(5) .story-section__text { --delay: 0.06s; }
  .story-section:nth-child(6) .story-section__text { --delay: 0.04s; }

  /* Photo subtle scale already handled via hover transition */
}

/* ── Accessibility ────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line { animation: none; }
  .story-section__photo img { transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Service Card Icon ────────────────────────────────────── */
.service-card__icon {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

/* ── Language Switcher ────────────────────────────────────── */

/* Container injected by i18n.js into #i18n-switcher (in nav) */
#i18n-switcher {
  position: relative;
  flex-shrink: 0;
}

.i18n-switcher {
  position: relative;
}

/* Toggle button */
.i18n-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.45);
  color: rgba(250,248,240,0.82);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
  line-height: 1;
}

.i18n-toggle:hover,
.i18n-toggle[aria-expanded="true"] {
  border-color: var(--gold);
  color: var(--gold);
}

/* Caret icon inside button */
.i18n-toggle__caret {
  width: 8px;
  height: 5px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.i18n-toggle[aria-expanded="true"] .i18n-toggle__caret {
  transform: rotate(180deg);
}

/* Dropdown list */
.i18n-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 10rem;
  background: rgba(18,40,28,0.97);
  border: 1px solid rgba(201,168,76,0.3);
  list-style: none;
  padding: 0.4rem 0;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* hidden attribute hides it; JS toggles this */
.i18n-dropdown[hidden] {
  display: none;
}

.i18n-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
  outline: none;
}

.i18n-dropdown__item:hover,
.i18n-dropdown__item:focus {
  background: rgba(201,168,76,0.12);
}

.i18n-dropdown__item.is-active {
  color: var(--gold);
}

.i18n-dropdown__flag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  min-width: 1.6rem;
}

.i18n-dropdown__name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(250,248,240,0.78);
}

.i18n-dropdown__item.is-active .i18n-dropdown__name {
  color: var(--gold);
}

/* On very small screens, hide nav links but keep switcher */
@media (max-width: 900px) {
  #i18n-switcher {
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  .i18n-dropdown {
    right: auto;
    left: 0;
  }
}
