* { margin: 0; padding: 0; box-sizing: border-box; }

body { background: var(--sam-cream, #F4EFE3); }

/* ── MODAL BACKDROP ── */
.age-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.age-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Background winery photo with overlay */
.age-modal-background {
  position: absolute;
  inset: 0;
  background-image: url('newimages/bgimage.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.02);
  animation: bgDrift 18s ease-in-out infinite alternate;
}

@keyframes bgDrift {
  0%   { transform: scale(1.02) translateX(0px); }
  100% { transform: scale(1.06) translateX(-10px); }
}

.age-modal-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(20, 30, 18, 0.7) 0%, rgba(107, 26, 26, 0.88) 100%);
  z-index: 1;
}

/* Content Container */
.age-modal-content {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
}

/* The Card Container */
.age-card {
  position: relative;
  width: min(460px, 92vw);
  padding: 40px 36px 32px;
  text-align: center;
  overflow: hidden;
  background: rgba(244, 239, 227, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--sam-gold, #C7A241);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  border-radius: 20px;
  animation: cardReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Ornament & Icon */
.age-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.age-ornament-line {
  width: 40px;
  height: 1px;
  background: var(--sam-gold, #C7A241);
}

.age-ornament-icon {
  width: 36px;
  height: 36px;
  color: var(--sam-burgundy, #6B1A1A);
  flex-shrink: 0;
}

/* Eyebrow Tag */
.age-eyebrow {
  display: inline-block;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sam-green-dark, #4C7A37);
  font-weight: 700;
  margin-bottom: 12px;
}

/* Heading */
.age-modal-text h2 {
  font-family: var(--font-display, "Playfair Display", serif);
  font-size: clamp(1.8rem, 4.5vw, 2.3rem);
  font-weight: 700;
  color: var(--sam-burgundy, #6B1A1A);
  line-height: 1.25;
  margin-bottom: 14px;
}

.age-divider {
  width: 60px;
  height: 2px;
  background: var(--sam-gold, #C7A241);
  margin: 0 auto 16px auto;
}

/* Subtext */
.age-subtext {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.95rem;
  color: #2d3728;
  line-height: 1.6;
  margin-bottom: 28px;
  font-weight: 400;
}

/* Buttons */
.age-modal-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 22px;
}

.age-btn {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 30px;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.age-btn-yes {
  background: var(--sam-green-dark, #4C7A37);
  color: #ffffff !important;
  border: 1px solid var(--sam-green-dark, #4C7A37);
  box-shadow: 0 4px 15px rgba(76, 122, 55, 0.25);
}

.age-btn-yes:hover {
  background: var(--sam-burgundy, #6B1A1A);
  border-color: var(--sam-burgundy, #6B1A1A);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 26, 26, 0.3);
}

.age-btn-no {
  background: transparent;
  color: var(--sam-burgundy, #6B1A1A) !important;
  border: 1px solid var(--sam-gold, #C7A241);
}

.age-btn-no:hover {
  background: var(--sam-gold, #C7A241);
  color: #000000 !important;
  border-color: var(--sam-gold, #C7A241);
  transform: translateY(-2px);
}

/* Legal Disclaimer */
.age-legal {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.78rem;
  color: #555555;
  letter-spacing: 0.5px;
  line-height: 1.5;
  font-weight: 500;
}

/* Brand Mark Footer */
.age-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(199, 162, 65, 0.25);
}

.age-brand-mark span {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sam-burgundy, #6B1A1A);
  font-weight: 700;
}

.age-brand-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sam-gold, #C7A241);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .age-card { padding: 32px 24px 24px; }
  .age-modal-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
  .age-btn { width: 100%; }
}