/* ========================================
   Jaime's Dairy Treat — Styles
   Classic & Elegant | Plum + Amber
======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --plum-50: #faf5f7;
  --plum-100: #f3e8ed;
  --plum-200: #e8cfd9;
  --plum-300: #d4a7b8;
  --plum-400: #be7e95;
  --plum-500: #a35a74;
  --plum-600: #8a4460;
  --plum-700: #6e364e;
  --plum-800: #52273a;
  --plum-900: #371a26;
  --plum-950: #1e0e15;

  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;

  --cream: #faf8f5;
  --cream-dark: #f0ebe4;
  --charcoal: #1a1a1a;
  --warm-gray: #6b6560;
  --warm-gray-light: #9e9690;
  --white: #ffffff;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--plum-600);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--amber-500);
}

.section-label--light {
  color: var(--amber-300);
}

.section-label--light::before {
  background: var(--amber-400);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 20px;
  color: var(--charcoal);
}

.section-title--light {
  color: var(--white);
}

.text-plum {
  color: var(--plum-600);
}

.text-amber {
  color: var(--amber-600);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--warm-gray);
  max-width: 560px;
}

.section-desc--light {
  color: var(--plum-200);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-label {
  justify-content: center;
}

.section-header--center .section-desc {
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-amber {
  background: var(--amber-500);
  color: var(--charcoal);
  border-color: var(--amber-500);
}

.btn-amber:hover {
  background: var(--amber-400);
  border-color: var(--amber-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--plum-800);
  transition: color var(--transition);
}

.logo:hover {
  color: var(--plum-600);
}

.logo--light {
  color: var(--white);
}

.logo--light:hover {
  color: var(--amber-300);
}

.logo-icon {
  color: var(--amber-500);
  flex-shrink: 0;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--warm-gray);
  padding: 8px 16px;
  border-radius: 50px;
  transition: all var(--transition);
}

.nav a:hover {
  color: var(--plum-700);
  background: var(--plum-50);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--plum-800);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--plum-800);
  border-radius: 2px;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--plum-950);
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,14,21,0.92) 0%, rgba(55,26,38,0.85) 50%, rgba(82,39,58,0.75) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-400);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero-badge svg {
  color: var(--amber-400);
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-emphasis {
  color: var(--amber-400);
  font-style: italic;
  font-weight: 500;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--plum-200);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}

.stat-card--amber {
  background: linear-gradient(135deg, rgba(245,158,11,0.18) 0%, rgba(217,119,6,0.12) 100%);
  border-color: rgba(245,158,11,0.25);
}

.stat-card--plum {
  background: linear-gradient(135deg, rgba(163,90,116,0.2) 0%, rgba(138,68,96,0.15) 100%);
  border-color: rgba(163,90,116,0.3);
}

.stat-icon {
  color: var(--amber-400);
  margin: 0 auto 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,158,11,0.12);
  border-radius: 50%;
}

.stat-card--plum .stat-icon {
  color: var(--plum-300);
  background: rgba(196,167,184,0.15);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--plum-200);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(8px); }
  60% { transform: translateX(-50%) translateY(4px); }
}

/* ---------- Section ---------- */
.section {
  padding: 100px 0;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--cream);
}

.about-image-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-seal {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 90px;
  height: 90px;
  background: var(--amber-500);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.about-seal svg {
  margin-bottom: 2px;
}

.about-seal span {
  font-family: var(--font-serif);
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.about-content {
  padding: 20px 0;
}

.about-text {
  color: var(--warm-gray);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.value-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--plum-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum-600);
}

.value-item strong {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  display: block;
  margin-bottom: 2px;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.5;
}

/* ---------- Flavors ---------- */
.section--dark {
  background: var(--plum-950);
}

.flavors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.flavor-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.flavor-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.flavor-visual {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.flavor-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.flavor-card:hover .flavor-visual img {
  transform: scale(1.08);
}

.flavor-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--amber-400);
  padding: 4px 12px;
  border-radius: 50px;
}

.flavor-info {
  padding: 24px;
}

.flavor-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.flavor-desc {
  font-size: 0.9rem;
  color: var(--plum-200);
  line-height: 1.65;
}

.flavors-cta {
  text-align: center;
  padding: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
}

.flavors-cta p {
  color: var(--plum-200);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item--large {
  grid-column: span 7;
  grid-row: span 2;
}

.gallery-item--large img {
  height: 100%;
  min-height: 400px;
}

.gallery-item--wide {
  grid-column: span 8;
}

.gallery-item--wide img {
  height: 200px;
}

.gallery-item:not(.gallery-item--large):not(.gallery-item--wide) img {
  height: 200px;
}

/* ---------- Visit ---------- */
.section--plum {
  background: linear-gradient(135deg, var(--plum-900) 0%, var(--plum-950) 100%);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.visit-info {
  padding: 20px 0;
}

.visit-intro {
  font-size: 1.08rem;
  color: var(--plum-200);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(245,158,11,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-400);
}

.contact-item strong {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 0.95rem;
  color: var(--plum-200);
  line-height: 1.6;
}

.contact-item a:hover {
  color: var(--amber-400);
}

.visit-map {
  min-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  color: var(--warm-gray-light);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.7;
}

.footer-links strong,
.footer-contact strong {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  font-size: 0.9rem;
  color: var(--warm-gray-light);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--amber-400);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--warm-gray-light);
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--amber-500);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--warm-gray);
}

.footer-bottom a {
  color: var(--amber-500);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--amber-400);
}

/* ---------- Scroll Reveal (Progressive Enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-cards {
    max-width: 480px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image-accent {
    right: -10px;
    bottom: -20px;
  }

  .flavors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item--large {
    grid-column: span 12;
  }

  .gallery-item--wide {
    grid-column: span 12;
  }

  .visit-grid {
    grid-template-columns: 1fr;
  }

  .visit-map {
    min-height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    box-shadow: var(--shadow-xl);
    padding: 80px 32px 32px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav a {
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .nav a:hover {
    background: var(--plum-100);
  }

  .hero {
    padding: 100px 24px 60px;
    min-height: auto;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .hero-cards {
    grid-template-columns: 1fr 1fr;
  }

  .flavors-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item--large,
  .gallery-item--wide {
    grid-column: span 2;
  }

  .gallery-item img {
    height: 200px;
  }

  .gallery-item--large img {
    min-height: 240px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cards {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--large,
  .gallery-item--wide {
    grid-column: span 1;
  }

  .about-seal {
    width: 70px;
    height: 70px;
  }

  .about-image-accent {
    width: 65%;
    right: -5px;
    bottom: -15px;
  }
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
