/* =============================================
   MOMMA LEE BAKES — Main Stylesheet
   Colors: Purple #7B4FA0, Gold #E8A82A, Cream #FFF8F2, Brown #3D1A08
   ============================================= */

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

:root {
  --purple:      #7B4FA0;
  --purple-dark: #5C3478;
  --purple-light:#F3EBF9;
  --gold:        #E8A82A;
  --gold-light:  #FDF3D8;
  --cream:       #FFF8F2;
  --brown:       #3D1A08;
  --brown-mid:   #6B3D1E;
  --white:       #FFFFFF;
  --text:        #2E1503;
  --text-muted:  #7A5C47;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(61,26,8,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(61,26,8,0.08);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo {
  height: 52px;
  width: auto;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1.2;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  text-decoration: none;
  color: var(--brown-mid);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

nav a:hover { color: var(--purple); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--brown) !important;
  padding: 8px 20px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  background: #d4941f !important;
  transform: translateY(-1px);
}

.nav-social {
  color: var(--brown-mid);
  display: flex;
  align-items: center;
  transition: color 0.2s, transform 0.15s;
}

.nav-social:hover {
  color: var(--purple);
  transform: translateY(-2px);
}

/* ── HERO ── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  max-width: 620px;
  text-align: center;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--brown);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(232,168,42,0.35);
}

.btn-primary:hover {
  background: #d4941f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,168,42,0.45);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg { width: 100%; height: 60px; }

/* ── SECTION SHARED ── */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--purple-dark);
  text-align: center;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ── PRODUCTS ── */
.products {
  background: var(--cream);
  padding: 80px 0 60px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(61,26,8,0.14);
}

.product-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--purple-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--purple);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.placeholder-icon { font-size: 3rem; }

.product-info {
  padding: 18px 20px 22px;
}

.product-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--purple-dark);
  margin-bottom: 6px;
}

.product-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.products-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.products-note a {
  color: var(--purple);
  font-weight: 700;
  text-decoration: none;
}

.products-note a:hover { text-decoration: underline; }

/* ── ABOUT ── */
.about {
  background: var(--gold-light);
  padding: 80px 0;
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-img-wrap {
  flex-shrink: 0;
}

.about-logo {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(123,79,160,0.18));
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--purple-dark);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 1.02rem;
}

.btn-secondary {
  display: inline-block;
  margin-top: 8px;
  background: transparent;
  color: var(--purple);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid var(--purple);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  background: var(--purple);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── CONTACT ── */
.contact {
  background: var(--cream);
  padding: 80px 0;
}

.contact-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brown-mid);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Lato', sans-serif;
  font-size: 0.97rem;
  color: var(--text);
  background: var(--cream);
  border: 1.5px solid #E0C8B8;
  border-radius: 8px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123,79,160,0.12);
}

.form-group textarea { resize: vertical; }

.contact-form .btn-primary {
  width: 100%;
  font-size: 1.05rem;
  padding: 15px;
  margin-top: 4px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--brown);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-logo {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.85);
  margin-bottom: 4px;
}

.footer-inner p { font-size: 0.88rem; }

.footer-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1rem !important;
}

.footer-location {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}

.footer-social {
  display: flex;
  gap: 24px;
  margin: 6px 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s, transform 0.15s;
}

.footer-social a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

.footer-credit {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.footer-credit:hover { color: #fff; }

/* ── CARD HINT ── */
.card-hint {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}

.product-card:hover .card-hint,
.product-card:focus .card-hint {
  opacity: 1;
  transform: translateX(0);
}

.product-card { cursor: pointer; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(61, 26, 8, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  /* keep modal from going under mobile browser chrome */
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--white);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  /* leave room for browser chrome on short phones */
  max-height: min(90vh, calc(100dvh - 32px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 20px 60px rgba(61,26,8,0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--purple-light);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--purple-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  z-index: 2;
}

.modal-close:hover {
  background: var(--purple);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-body {
  padding: 28px 32px 32px;
}

.modal-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--purple-dark);
  margin-bottom: 8px;
}

.modal-body p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 18px;
}

.modal-items {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 28px;
}

.modal-items li {
  font-size: 0.95rem;
  color: var(--text);
  background: var(--purple-light);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 600;
}

.modal-cta {
  display: block;
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .about-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .about-logo { width: 160px; }

  .form-row { grid-template-columns: 1fr; }

  .contact-form { padding: 28px 20px; }

  .modal-items { grid-template-columns: 1fr; }
  .modal-body { padding: 20px 20px 24px; }
  .modal-img-wrap { height: 160px; }

  /* larger tap targets on mobile */
  .modal-items li { padding: 12px 14px; font-size: 1rem; }
  .modal-close { width: 44px; height: 44px; top: 10px; right: 10px; font-size: 1.5rem; }
  .btn-primary, .btn-secondary { padding: 16px 28px; font-size: 1.05rem; }
  .nav-cta { padding: 12px 22px; }
  .nav-social svg { width: 24px; height: 24px; }
  nav { gap: 20px; }

  nav { gap: 16px; }

  .brand-name { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  nav a:not(.nav-cta) { display: none; }
}
