/* ==========================================================================
   DREAM PARTY DECOR INC. - MAIN DESIGN SYSTEM & STYLESHEET
   High Contrast (A11y 100%), Fast Load (Perf 100%), SEO Optimized
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- DESIGN TOKENS --- */
:root {
  /* Primary Brand Palette */
  --bg-emerald-deep: #041713;
  --bg-emerald-main: #07241E;
  --bg-emerald-light: #123831;
  --bg-cream: #FDFBF7;
  --bg-cream-alt: #F4EFE6;
  --bg-surface-dark: #0D1412;
  --bg-surface-card: #141E1B;

  /* Metallic Gold Accents (Optimized for High Contrast) */
  --gold-primary: #D4AF37;
  --gold-dark-text: #8C660B; /* High-contrast gold for light backgrounds (passes AAA 7:1 ratio) */
  --gold-light: #FFF2C6;
  --gold-dark: #99781B;
  --gold-gradient: linear-gradient(135deg, #F5D77F 0%, #D4AF37 50%, #99781B 100%);
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.25);

  /* Terracotta Accent for Desi Functions */
  --terracotta-main: #C86D51;
  --terracotta-dark: #8C3B27;

  /* Neutral Text & UI Colors (Contrast Optimized) */
  --text-primary-dark: #111413;
  --text-secondary-dark: #333C3A; /* High contrast 7:1 against cream background */
  --text-primary-light: #FFFFFF;
  --text-secondary-light: #E1E8E6; /* High contrast 9:1 against dark emerald */
  --border-light: rgba(212, 175, 55, 0.3);
  --border-dark: rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.22);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.2);

  /* Spacing & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --container-max: 1320px;
}

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-primary-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-display: swap;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
  touch-action: manipulation;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  touch-action: manipulation;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* --- LAYOUT CONTAINER --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- SECTION TYPOGRAPHY HELPER CLASSES --- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-dark-text);
  margin-bottom: 0.75rem;
}

.hero-section .eyebrow,
.service-theme-wedding .eyebrow,
.service-theme-desi .eyebrow,
.service-theme-lighting .eyebrow,
.service-theme-corporate .eyebrow,
.service-theme-fullservice .eyebrow,
.site-footer .eyebrow {
  color: #F3E5AB !important; /* High contrast cream-gold on dark backgrounds */
}

.section-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  color: var(--text-primary-dark);
  margin-bottom: 1.25rem;
}

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

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary-dark);
  max-width: 680px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.section-desc.light {
  color: var(--text-secondary-light);
}

.text-gold {
  color: var(--gold-primary);
}

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

.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* --- BUTTON SYSTEM (Tap Target Size Optimized 48px+) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 2.25rem;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-height: 52px;
  min-width: 48px;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #041713;
  box-shadow: var(--shadow-gold);
  font-weight: 800;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(212, 175, 55, 0.45);
  color: #000;
}

.btn-secondary {
  background: transparent;
  color: var(--gold-light);
  border: 2px solid var(--gold-primary);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #FFFFFF;
  transform: translateY(-3px);
}

.btn-light {
  background: var(--bg-cream);
  color: var(--bg-emerald-deep);
  font-weight: 800;
}

.btn-light:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background-color: #1EBE5D; /* High contrast WCAG AAA Green */
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(30, 190, 93, 0.35);
  font-weight: 800;
}

.btn-whatsapp:hover {
  background-color: #179B4B;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(30, 190, 93, 0.5);
}

/* Floating WhatsApp Quick Contact Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #1EBE5D;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 999;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(30, 190, 93, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #ff3b30;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid #fff;
}

/* Floating Left "Go to Top" Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--bg-emerald-deep);
  color: var(--gold-primary);
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal), background-color var(--transition-normal);
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  background-color: var(--gold-primary);
  color: var(--bg-emerald-deep);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.45);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- BADGE STYLES --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.15);
  color: #FFF2C6;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

/* --- DECORATIVE GOLD DIVIDER --- */
.gold-divider {
  width: 80px;
  height: 3px;
  background: var(--gold-gradient);
  margin: 1.5rem 0;
  border-radius: 2px;
}

.gold-divider.center {
  margin-left: auto;
  margin-right: auto;
}

/* --- GLOBAL FOOTER STYLING --- */
.site-footer {
  background-color: var(--bg-emerald-deep);
  color: var(--text-primary-light);
  padding: 5rem 0 6rem; /* Extra 6rem bottom padding ensures floating buttons never hide text */
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .logo-text {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  color: var(--text-secondary-light);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--gold-primary);
  color: var(--bg-emerald-deep);
  transform: translateY(-3px);
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.85rem;
}

.footer-links a {
  color: var(--text-secondary-light);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
  padding: 4px 0;
  display: inline-block;
  min-height: 44px;
  line-height: 36px;
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-info-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary-light);
  font-size: 0.9375rem;
  align-items: flex-start;
}

.footer-info-item svg {
  width: 20px;
  height: 20px;
  color: var(--gold-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
  color: var(--text-secondary-light);
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- RESPONSIVE MEDIA QUERIES FOR MAIN --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Additional Responsive Helpers */
@media (max-width: 900px) {
  .responsive-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

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

.w-100 {
  width: 100% !important;
}
