/* ============================================
   Anny's Pastry Chicago — Design Tokens
   Palette: cream base, deep berry text, blush +
   antique gold accents, sage green highlight —
   pulled from the real tones in her cake photography.
   Type: Fraunces (display/script feel) + Work Sans (body)
   ============================================ */

:root {
  --cream:        #FAF4EC;
  --cream-deep:    #F2E9DC;
  --berry:         #5B2338;
  --berry-soft:    #7A3549;
  --blush:         #EBC0CB;
  --blush-deep:    #DDA1AF;
  --gold:          #B98A4A;
  --sage:          #93AD96;
  --ink:           #2E1B22;
  --white:         #FFFFFF;

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-script:  "Fraunces", Georgia, serif;
  --font-body:    "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--berry);
  margin: 0 0 0.4em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

p { margin: 0 0 1em; }

.section {
  padding: 96px 0;
}

.section--tight { padding: 72px 0; }

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-head p {
  color: var(--berry-soft);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--berry);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--berry-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(91, 35, 56, 0.25);
}

.btn--ghost {
  background: transparent;
  border-color: var(--berry);
  color: var(--berry);
}
.btn--ghost:hover {
  background: var(--berry);
  color: var(--white);
}

.btn--whatsapp {
  background: #3F7A4E;
  color: var(--white);
}
.btn--whatsapp:hover {
  background: #33633f;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(63, 122, 78, 0.3);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 244, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(91, 35, 56, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--berry);
  line-height: 1;
}
.wordmark span {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--berry);
  margin: 5px 0;
  transition: 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 60px 0 0;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.04;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-copy p {
  font-size: 1.15rem;
  color: var(--berry-soft);
  max-width: 480px;
}

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

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(91, 35, 56, 0.12);
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--berry);
}
.hero-stats div span {
  font-size: 0.8rem;
  color: var(--berry-soft);
  letter-spacing: 0.03em;
}

.hero-visual {
  position: relative;
}

.hero-visual .frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(46, 27, 34, 0.35);
  transform: rotate(1.2deg);
}

.hero-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

.hero-visual .badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -15px rgba(46, 27, 34, 0.3);
  max-width: 220px;
  transform: rotate(-2deg);
}
.hero-visual .badge strong {
  font-family: var(--font-display);
  color: var(--berry);
  font-size: 1.05rem;
  display: block;
}
.hero-visual .badge span {
  font-size: 0.78rem;
  color: var(--berry-soft);
}

/* ---------- Tiers / process (signature element) ---------- */
.tiers {
  background: var(--berry);
  color: var(--cream);
}
.tiers .section-head h2,
.tiers .section-head p { color: var(--cream); }
.tiers .section-head p { color: rgba(250,244,236,0.75); }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(250, 244, 236, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}

.tier-card {
  background: var(--berry);
  padding: 40px 32px;
  position: relative;
}

.tier-card .tier-label {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--blush);
  font-size: 0.95rem;
  margin-bottom: 18px;
  display: block;
}

.tier-card h3 {
  color: var(--cream);
  font-size: 1.35rem;
}

.tier-card p {
  color: rgba(250,244,236,0.75);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 10px;
  grid-auto-flow: dense;
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  grid-column: span 3;
  cursor: default;
}
.gallery-item.tall  { grid-row: span 33; }
.gallery-item.med   { grid-row: span 27; }
.gallery-item.wide  { grid-column: span 4; }
.gallery-item.narrow{ grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 18px 14px;
  background: linear-gradient(to top, rgba(46,27,34,0.78), rgba(46,27,34,0));
  color: var(--cream);
  font-size: 0.88rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-within .gallery-caption { opacity: 1; }

/* ---------- About ---------- */
.about {
  background: var(--cream-deep);
}
.about .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-visual img {
  border-radius: var(--radius);
  aspect-ratio: 1;
  object-fit: cover;
}
.about-visual .offset { margin-top: 34px; }

.about-copy .stat-row {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(91,35,56,0.15);
}
.about-copy .stat-row strong {
  font-family: var(--font-display);
  color: var(--berry);
  font-size: 1.7rem;
  display: block;
}
.about-copy .stat-row span {
  font-size: 0.82rem;
  color: var(--berry-soft);
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid rgba(91,35,56,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--blush-deep);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.testimonial-card p {
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 18px;
}

.testimonial-card .who {
  font-size: 0.82rem;
  color: var(--berry-soft);
  letter-spacing: 0.03em;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--berry);
  color: var(--cream);
}
.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact h2 { color: var(--cream); }
.contact .section-head p { color: rgba(250,244,236,0.78); }

.contact-card {
  background: rgba(250,244,236,0.06);
  border: 1px solid rgba(250,244,236,0.18);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(250,244,236,0.14);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(250,244,236,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-row strong { display: block; font-size: 0.95rem; }
.contact-row span { font-size: 0.85rem; color: rgba(250,244,236,0.7); }

.contact-cta {
  margin-top: 28px;
}

.contact-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--blush);
  max-width: 440px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(250,244,236,0.6);
  padding: 32px 0;
  font-size: 0.82rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a:hover { color: var(--blush); }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero .container,
  .about .container,
  .contact .container {
    grid-template-columns: 1fr;
  }
  .about-visual { order: -1; }
  .tier-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero-visual .badge { position: static; transform: none; margin-top: -30px; margin-left: 16px; width: fit-content; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 28px 28px;
    gap: 18px;
    border-bottom: 1px solid rgba(91,35,56,0.1);
  }
  .section { padding: 64px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item, .gallery-item.wide, .gallery-item.narrow { grid-column: span 1; }
  .gallery-item.tall { grid-row: span 26; }
  .gallery-item.med { grid-row: span 20; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
}
