/* =========================================================================
   Bacchavaga QR Microsite Styles
   Color scheme: parchment gold (#E0C27E) + deep olive (#1F3A29)
   Fonts: Cinzel (headings), Inter (body)
   ========================================================================= */

/* Base tokens */
:root{
  --parchment: #E0C27E;
  --parchment-soft: #e9d39e;
  --parchment-ink: #d6b66b;
  --olive: #1F3A29;
  --olive-ink: #163021;
  --shadow: 0 10px 30px rgba(31,58,41,0.18);
  --radius-lg: 18px;
  --radius-md: 12px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  background: var(--parchment);
  color: var(--olive);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================== Header ===================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--olive);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.site-header .wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo{
  width: 56px; height: 56px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #fff3;
  padding: 4px;
}
.spacer{ flex: 1; }

.lang-label{
  color:#fff;
  margin-right: 8px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Language select */
#languageSwitcher{
  appearance: none; -webkit-appearance: none;
  background: #1f3a29;
  color: #fff;
  font-weight: 700;
  border: 1px solid #ffffff66;
  border-radius: 999px;
  padding: 10px 16px;
  min-width: 200px;
  box-shadow: inset 0 0 0 1px #00000022;
  cursor: pointer;
}
#languageSwitcher option{ color:#000; }

/* ===================== HERO ===================== */
.hero{
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 52vh, 540px);
}
.hero picture, .hero .hero-img{
  width: 100%; height: 100%; display: block;
}
.hero .hero-img{
  object-fit: cover;
  object-position: center 6%;
}

/* ===================== Content blocks ===================== */
.wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px;
}
.section{ margin: 28px 0; }

.block{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  background: linear-gradient(180deg, #f6e7bd 0%, #f0db9d 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.block.reverse{ grid-template-columns: 1fr 1.2fr; }
.reverse-on-mobile{ grid-template-columns: 1.2fr 1fr; }

.text{ display: grid; align-content: start; gap: 10px; }
.media{ margin: 0; display: block; }
.media img{
  width: 100%; height: 100%;
  max-height: 420px; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 30px rgba(0,0,0,.15);
}

/* ===================== Tips list (iOS-style bubbles + animation) ===================== */
.tips{
  list-style: none;
  counter-reset: step;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.tips li{
  position: relative;
  padding: 10px 12px 10px 48px;
  padding-inline-start: 48px;
  padding-inline-end: 12px;
  background: linear-gradient(180deg, #fff7 0%, #fff3 100%);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.5);
  line-height: 1.45;

  /* Animation setup */
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 0.5s ease forwards;
}
.tips li::before{
  content: counter(step);
  counter-increment: step;
  position: absolute;
  inset-inline-start: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #1F3A29;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(31,58,41,.22), inset 0 -2px 0 rgba(255,255,255,.2);
}

/* Keyframes for bubble fade-in */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger the animations */
.tips li:nth-child(1){ animation-delay: 0.1s; }
.tips li:nth-child(2){ animation-delay: 0.25s; }
.tips li:nth-child(3){ animation-delay: 0.4s; }
.tips li:nth-child(4){ animation-delay: 0.55s; }
.tips li:nth-child(5){ animation-delay: 0.7s; }
.tips li:nth-child(6){ animation-delay: 0.85s; }
.tips li:nth-child(7){ animation-delay: 1s; }

/* ===================== Typography ===================== */
h1, h2, h3{
  font-family: "Cinzel", Garamond, Georgia, serif;
  margin: 0 0 6px;
  color: var(--olive);
}
h1{ font-weight: 700; letter-spacing: .02em; }
h2{
  font-weight: 700; font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: .02em; text-transform: none;
}
p{
  margin: 0; color: var(--olive-ink);
  font-size: clamp(15px, 1.05rem, 18px);
}

/* ===================== Contact & footer ===================== */
.contact-card{
  background: linear-gradient(180deg, #f6e7bd 0%, #f0db9d 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-card a{
  color: var(--olive);
  font-weight: 700;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--olive);
}
.site-footer{
  background: #e9d39e;
  border-top: 1px solid #d6b66b;
}
.site-footer .wrap{ padding: 22px 16px; }
.footgrid{ display: flex; justify-content: center; text-align: center; }
small{ color: var(--olive-ink); }

/* ===================== Responsive ===================== */
@media (max-width: 1024px){
  .block{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px){
  .site-header .wrap{ padding: 10px 12px; }
  .logo{ width: 48px; height: 48px; }
  .block, .block.reverse, .reverse-on-mobile{
    grid-template-columns: 1fr;
    gap: 16px; padding: 18px;
  }
  .media img{ max-height: 340px; }
  .hero{ min-height: clamp(380px, 60vh, 520px); }
  .hero .hero-img{ object-position: center 8%; }

  /* tips tightening on mobile */
  .tips li{ padding-inline-start: 44px; border-radius: 12px; }
  .tips li::before{ width: 26px; height: 26px; font-size: 13px; }
}
