/* ============================================
   CAKE BY JADE — Shared Stylesheet
   Design System: Zen Garden
   Approach: Mobile-first responsive
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --pink: #CE99A8;
  --pink-light: #e2bec8;
  --cream: #FDF6F0;
  --sage: #9CAF88;
  --charcoal: #2D2D2D;
  --white: #FEFEFE;
  --soft-gray: #F9F9F9;
  --text-light: #777;
  --text-mid: #555;
  --border-light: rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-pad-y: 60px;
  --section-pad-x: 5%;
  --gap-sm: 15px;
  --gap-md: 30px;
  --gap-lg: 60px;

  /* Transitions */
  --ease: cubic-bezier(0.165, 0.84, 0.44, 1);
  --transition: 0.35s var(--ease);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(45, 45, 45, 0.05);
  --shadow-md: 0 10px 30px rgba(45, 45, 45, 0.08);
  --shadow-lg: 0 22px 45px rgba(45, 45, 45, 0.12);
}

::selection {
  background: var(--pink-light);
  color: var(--charcoal);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-mid);
}

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.8rem; }
}

@media (min-width: 1024px) {
  :root {
    --section-pad-y: 100px;
    --section-pad-x: 10%;
  }
  h1 { font-size: 4rem; }
  h2 { font-size: 3rem; }
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.section {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.section--cream { background-color: var(--cream); }
.section--white { background-color: var(--white); }
.section--dark {
  background-color: var(--charcoal);
  color: white;
}

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

/* --- Grid Systems --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 246, 240, 0.88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  padding: 20px var(--section-pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: -0.5px;
  text-decoration: none;
}

@media (min-width: 768px) {
  .logo { font-size: 1.8rem; }
}

/* Cart icon in header */
.cart-icon-link {
  position: relative;
  text-decoration: none;
  color: var(--charcoal);
  font-size: 1.25rem;
  line-height: 1;
  transition: color 0.3s;
  order: 2;
  margin-left: 8px;
}
.cart-icon-link:hover {
  color: var(--pink);
}
.cart-icon-link svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--pink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-badge:empty {
  display: none;
}

@media (min-width: 768px) {
  .cart-icon-link {
    order: 0;
    margin-left: 16px;
  }
}

/* Mobile hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--charcoal);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav menu — mobile: slide-down overlay */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* mobile browsers: exclude the URL bar */
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease);
  z-index: 999;
}

.nav-menu.open {
  transform: translateY(0);
}

.nav-menu a {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.3s;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--pink);
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .nav-menu {
    position: static;
    transform: none;
    height: auto;
    width: auto;
    flex-direction: row;
    gap: 35px;
    background: transparent;
  }

  .nav-menu a {
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--pink);
    transition: width 0.3s var(--ease);
  }

  .nav-menu a:hover::after,
  .nav-menu a.active::after {
    width: 100%;
  }
}

/* --- Nav Dropdown --- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > .nav-drop-label {
  cursor: pointer;
}
.nav-drop-menu {
  display: none;
  flex-direction: column;
  gap: 0;
}

/* Mobile: show dropdown items inline when parent is open */
.nav-dropdown.open .nav-drop-menu {
  display: flex;
}
.nav-drop-menu a {
  font-size: 1rem;
  padding: 4px 0;
}

/* Desktop dropdown */
@media (min-width: 768px) {
  .nav-dropdown {
    position: relative;
  }
  .nav-drop-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: rgba(253, 246, 240, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 1002;
  }
  /* Invisible bridge over the 12px gap so the menu stays open while the mouse crosses it */
  .nav-drop-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
  }
  .nav-drop-menu a {
    display: block;
    padding: 10px 24px;
    font-size: 12px !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s;
  }
  .nav-drop-menu a::after {
    display: none !important;
  }
  .nav-drop-menu a:hover {
    color: var(--pink);
  }
  .nav-dropdown:hover .nav-drop-menu,
  .nav-dropdown.open .nav-drop-menu {
    display: flex;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 35px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn--primary {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
}

.btn--primary:hover {
  background: #b8849a;
  border-color: #b8849a;
  color: white;
}

.btn--secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn--secondary:hover {
  background: var(--charcoal);
  color: white;
}

.btn--outline-white {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  border-color: white;
}

.btn--outline-white:hover {
  background: white;
  color: var(--charcoal);
}

.btn--outline-pink {
  background: transparent;
  color: var(--pink);
  border-color: var(--pink);
}

.btn--outline-pink:hover {
  background: var(--pink);
  color: white;
}

.btn--sage {
  background: var(--sage);
  color: white;
  border-color: var(--sage);
}

.btn--sage:hover {
  background: transparent;
  color: var(--sage);
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 768px) {
  .btn {
    padding: 16px 40px;
    font-size: 13px;
  }
  .btn-group {
    flex-direction: row;
    gap: 20px;
  }
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: white;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__img {
  transform: scale(1.04);
}

@media (min-width: 768px) {
  .card__img { height: 350px; }
}

@media (min-width: 1024px) {
  .card__img { height: 400px; }
}

.card__body {
  padding: 30px;
}

.card__body h3 {
  margin-bottom: 12px;
  color: var(--charcoal);
  white-space: nowrap;
  font-size: 1.3rem;
}

.card__body p {
  font-size: 15px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.card__link {
  color: var(--pink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--pink);
  padding-bottom: 4px;
  transition: opacity 0.3s;
}

.card__link:hover {
  opacity: 0.7;
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 70vh;
  padding: 80px var(--section-pad-x);
  background-size: cover;
  background-position: center;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 800px;
  margin-bottom: 20px;
  color: white;
  line-height: 1.1;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 35px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  letter-spacing: 0.3px;
}

@media (min-width: 768px) {
  .hero {
    min-height: 85vh;
    padding: 100px var(--section-pad-x);
  }
  .hero h1 { font-size: 3.8rem; }
  .hero p { font-size: 1.3rem; }
}

@media (min-width: 1024px) {
  .hero { min-height: 90vh; }
}

.hero-wedding-link {
  display: block;
  width: 100%;
  margin-top: 8px;
  color: var(--pink-light);
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--pink);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.hero-wedding-link:hover {
  color: #fff;
  border-color: #fff;
}

/* Page hero (no background image, lighter) */
.page-hero {
  padding: 120px var(--section-pad-x) 60px;
  text-align: center;
  background-color: var(--cream);
}

.page-hero h1 {
  color: var(--charcoal);
  margin-bottom: 15px;
}

.page-hero h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
  margin: 18px auto 0;
}

.page-hero p {
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .page-hero { padding: 140px var(--section-pad-x) 80px; }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial {
  position: relative;
  text-align: left;
  padding: 30px 28px 25px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--pink);
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 4px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--pink-light);
  opacity: 0.7;
  pointer-events: none;
}

.testimonial p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  font-style: italic;
  position: relative;
}

.testimonial cite {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.6;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading h2 {
  color: var(--pink);
  margin-bottom: 15px;
}

.section-heading p {
  max-width: 650px;
  margin: 0 auto;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--charcoal);
  text-align: left;
}

.accordion-btn::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--pink);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 15px;
}

.accordion-item.open .accordion-btn::after {
  content: '−';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-content p {
  padding-bottom: 20px;
  font-size: 0.95rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--charcoal);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  background: white;
  color: var(--charcoal);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(206, 153, 168, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================
   BADGE / TAG
   ============================================ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
}

.badge--pink {
  background: var(--pink);
  color: white;
}

.badge--sage {
  background: var(--sage);
  color: white;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--charcoal);
  color: white;
  padding: 60px var(--section-pad-x) 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
  }
}

.footer-brand .logo {
  color: white;
  display: inline-block;
  margin-bottom: 15px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-col p,
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--pink-light);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 400;
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyboard focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   PHONE REFINEMENTS
   ============================================ */
@media (max-width: 767px) {
  /* iOS Safari zooms the page when focusing inputs under 16px — prevent it */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Slimmer sticky header = more cake on screen */
  .site-header {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  /* Comfortable thumb targets */
  .btn {
    padding: 15px 32px;
    width: 100%;
    max-width: 360px;
  }
  .btn-group .btn { width: 100%; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}
