/*
Theme Name: Party Center
Theme URI: https://example.com/party-center
Author: Party Center
Author URI: https://example.com
Description: Child theme of Twenty Twenty-Five for Party Center.
Requires at least: 6.4
Tested up to: 6.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: party-center
Template: twentytwentyfive
*/

:root {
  --background: 36 100% 97%;
  --foreground: 330 20% 18%;

  --card: 30 40% 99%;
  --card-foreground: 330 20% 18%;

  --muted: 36 45% 94%;
  --muted-foreground: 330 10% 40%;

  /* Brand palette override */
  /* primary: #f2975a */
  --primary: 109 39% 32%;
  --primary-foreground: 0 0% 100%;

  /* secondary: #4dcbc3 */
  --secondary: 24.1 85.4% 65.1%;
  --secondary-foreground: 0 0% 100%;

  /* accent: yellow */
  --accent: 45 90% 70%;
  --accent-foreground: 25 30% 20%;

  --border: 30 25% 88%;
  --input: 30 25% 88%;
  --ring: 109 39% 32%;

  --radius: 1rem;

  /* custom colors used by bg-*-light */
  --coral: 109 39% 32%;
  --coral-light: 24.1 85.4% 92%;
  --teal: 176.2 54.8% 54.9%;
  --teal-light: 176.2 54.8% 92%;
  --lavender-light: 268 65% 95%;
  --mint-light: 166 55% 93%;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Nunito, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Section helpers */
.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
@media (min-width: 768px) {
  .section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* Page head spacing to offset fixed header */
.page-head {
  padding-top: calc(1rem + 1rem + 2rem);
  padding-bottom: 0rem;
}
@media (min-width: 768px) {
  .page-head {
    padding-top: calc(1rem + 2rem + 3rem);
    padding-bottom: 1rem;
  }
}

.container-custom {
  max-width: 89.5rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.heading-xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 800;
}
@media (min-width: 768px) {
  .heading-xl {
    font-size: 3rem;
    line-height: 1;
  }
}
@media (min-width: 1024px) {
  .heading-xl {
    font-size: 3.75rem;
    line-height: 1;
  }
}

.heading-lg {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
}
@media (min-width: 768px) {
  .heading-lg {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.card-playful {
  background-color: hsl(var(--card));
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid hsl(var(--border) / 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 20px -2px hsl(var(--foreground) / 0.06);
}
@media (min-width: 768px) {
  .card-playful {
    padding: 2rem;
  }
}
.card-playful:hover {
  box-shadow: 0 12px 32px -4px hsl(var(--foreground) / 0.1);
  transform: translateY(-4px);
}

/* Extra shadows used in markup */
.shadow-soft {
  box-shadow: 0 4px 20px -2px hsl(var(--foreground) / 0.06);
}
.shadow-lifted {
  box-shadow: 0 12px 32px -4px hsl(var(--foreground) / 0.1);
}
.shadow-foreground\/10 {
  --tw-shadow-color: hsl(var(--foreground) / 0.1);
  --tw-shadow: var(--tw-shadow-colored);
}
.shadow-foreground\/20 {
  --tw-shadow-color: hsl(var(--foreground) / 0.2);
  --tw-shadow: var(--tw-shadow-colored);
}

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards;
}


/* ========================================
   General Styles
   ======================================== */
h2.wp-block-post-title {
  display: none;
}

.homepage-page .is-layout-constrained,
.homepage-page :where(.is-layout-constrained) > *,
:root :where(.is-layout-constrained) > *,
:where(.wp-site-blocks) > * {
  margin-block-start: 0 !important;
}


/* ========================================
   Buttons
   ======================================== */

/* .wp-block-button .wp-block-button__link.has-primary-background-color,
.wp-block-button .wp-block-button__link.has-primary-color,
.wp-block-button .wp-block-button__link.has-secondary-background-color,
.wp-block-button .wp-block-button__link.has-secondary-color { */
.wp-block-button .wp-block-button__link {
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.5rem 1.5rem;
  height: 3rem;
  transition: all 0.2s ease;
  box-shadow: 0 12px 32px -4px hsl(var(--foreground) / 0.1);
}

.wp-block-button .wp-block-button__link.wp-element-button:not(.has-background) {
  background: none !important;
}

.wp-block-button .wp-block-button__link.wp-element-button:hover {
  transform: translateY(-0.15rem);
}


/* ========================================
   Header / Navbar Critical Styles
   These load before Tailwind to prevent FOUC
   ======================================== */

/* Fixed navbar positioning - critical for no-flash */
nav.wp-block-group.fixed {
  position: fixed !important;
  top: 1rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 50 !important;
  width: 95% !important;
  max-width: 87.5rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 1rem !important;
  background-color: rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 10px 15px -3px hsl(var(--foreground) / 0.1) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid hsl(var(--border) / 0.6) !important;
}

.header-logo a {
  transition: transform 0.2s ease;
}

.header-logo a:hover {
  transform: scale(1.05);
}

/* Header CTA Button */
.header-cta-wrapper {
  margin-left: 1rem !important;
}

.header-cta-button .wp-block-button__link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1.5rem !important;
  background-color: hsl(var(--primary)) !important;
  border-radius: 0.75rem !important;
  color: hsl(var(--primary-foreground)) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 6px -1px hsl(var(--foreground) / 0.1) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.header-cta-button .wp-block-button__link:hover {
  background-color: hsl(var(--primary) / 0.9) !important;
  box-shadow: 0 10px 15px -3px hsl(var(--foreground) / 0.15) !important;
}

/* Smaller CTA button on mobile/tablet */
@media (max-width: 1024px) {
  .header-right-section {
    gap: 0.5rem !important;
  }

  /* CTA button before burger menu on mobile */
  .header-navigation {
    order: 2 !important;
  }

  .header-cta-wrapper {
    order: 1 !important;
  }

  .header-cta-button .wp-block-button__link {
    padding: 0.5rem 0.875rem !important;
    font-size: 0.875rem !important;
  }

  .header-cta-button .wp-block-button__link::before {
    font-size: 0.75rem;
  }
}

/* ========================================
   Header Navigation Styles
   ======================================== */

/* Force mobile menu up to 1024px */
@media (max-width: 1024px) {
  .header-navigation .wp-block-navigation__responsive-container {
    display: none !important;
  }

  .header-navigation .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }

  .header-navigation .wp-block-navigation__responsive-container.is-menu-open {
    display: flex !important;
  }
}

@media (min-width: 1025px) {
  .header-navigation .wp-block-navigation__responsive-container-open {
    display: none !important;
  }

  .header-navigation .wp-block-navigation__responsive-container {
    display: flex !important;
  }
}

/* Desktop Navigation Links */
.header-navigation :where(.wp-site-blocks :focus) {
  outline: none;
}

.header-navigation .wp-block-navigation-item__content {
  position: relative;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.9);
  transition: color 0.2s ease;
}

.header-navigation .wp-block-navigation-item__content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: hsl(var(--primary));
  transition: width 0.2s ease;
}

.header-navigation .wp-block-navigation-item__content:hover {
  color: hsl(var(--primary));
  text-decoration: none;
}

.header-navigation .wp-block-navigation-item__content:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.header-navigation .wp-block-navigation__responsive-container-open {
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
  color: hsl(var(--foreground));
}

.header-navigation .wp-block-navigation__responsive-container-open:hover {
  background-color: hsl(var(--foreground) / 0.05);
}

/* Mobile Menu Overlay - Full Screen */
.header-navigation .wp-block-navigation__responsive-container {
  overflow: visible !important;
}

.header-navigation .wp-block-navigation__responsive-container.is-menu-open {
  position: fixed !important;
  top: -1rem !important;
  right: 0 !important;
  bottom: 0 !important;
  left: -1rem !important;
  z-index: 9999 !important;
  overflow-y: auto !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  max-height: none !important;
  background-color: hsl(var(--background) / 0.98) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  transform: none !important;
}

.header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  overflow: visible !important;
  min-height: auto !important;
  height: auto !important;
  padding: 6rem 2rem 2rem !important;
}

.header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  width: 100% !important;
}

.header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  display: block !important;
  width: 100% !important;
  padding: 1rem 1.5rem !important;
  border-radius: 0.75rem !important;
  font-size: 1.25rem !important;
  text-align: left !important;
}

.header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
  background-color: hsl(var(--primary) / 0.1);
}

.header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
  display: none;
}

/* Mobile Close Button */
.header-navigation .wp-block-navigation__responsive-container-close {
  position: fixed !important;
  top: 1.5rem !important;
  right: 1.5rem !important;
  padding: 0.75rem !important;
  border-radius: 0.75rem !important;
  background-color: hsl(var(--foreground) / 0.05) !important;
  transition: background-color 0.2s ease !important;
  z-index: 10000 !important;
}

.header-navigation .wp-block-navigation__responsive-container-close:hover {
  background-color: hsl(var(--foreground) / 0.1) !important;
}

.header-navigation .wp-block-navigation__responsive-container-close svg {
  width: 1.5rem !important;
  height: 1.5rem !important;
  color: hsl(var(--foreground)) !important;
}


/* ========================================
   Hero Section Styles
   ======================================== */

/* Overlay gradient on top of image */
.hero-cover .wp-block-cover__background {
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(to bottom,
    hsl(var(--foreground) / 0.80) 0%,
    hsl(var(--foreground) / 0.55) 50%,
    hsl(var(--foreground) / 0.85) 100%
  ) !important;
  opacity: 1 !important;
  z-index: 1 !important;
}

/* Content above overlay */
.hero-cover .wp-block-cover__inner-container {
  position: relative !important;
  z-index: 2 !important;
}

/* Hero Primary Button */
.hero-btn-primary .wp-block-button__link {
  background-color: hsl(var(--primary)) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 12px 32px -4px hsl(var(--foreground) / 0.1) !important;
  font-size: 1.125rem !important;
  color: hsl(var(--primary-foreground)) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.hero-btn-primary .wp-block-button__link:hover {
  background-color: hsl(var(--primary) / 0.9) !important;
  box-shadow: 0 20px 40px -8px hsl(var(--foreground) / 0.15) !important;
  transform: translateY(-4px) !important;
}

/* Hero Secondary Button */
.hero-btn-secondary .wp-block-button__link {
  background-color: hsl(var(--secondary)) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 12px 32px -4px hsl(var(--foreground) / 0.1) !important;
  font-size: 1.125rem !important;
  color: hsl(var(--secondary-foreground)) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.hero-btn-secondary .wp-block-button__link:hover {
  background-color: hsl(var(--secondary) / 0.9) !important;
  box-shadow: 0 20px 40px -8px hsl(var(--foreground) / 0.15) !important;
  transform: translateY(-4px) !important;
}

/* Hero Wave Separator */
.hero-section .hero-wave-separator {
  position: absolute !important;
  bottom: -1px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 30 !important;
  pointer-events: none;
  line-height: 0;
}


/* ========================================
   FAQ Section Styles
   ======================================== */
/* FAQ accordion (simple) */
.faq-trigger {
  width: 100%;
  text-align: left;
  font-weight: 600;
  color: hsl(var(--foreground));
  padding: 1.25rem 0;
  background: transparent;
  border: 0;
}

.faq-trigger:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-radius: 0.75rem;
}

.faq-content {
  color: hsl(var(--muted-foreground));
  padding: 0 0 1.25rem 0;
  line-height: 1.6;
}


/* ========================================
   Gallery Lightbox Styles
   ======================================== */
/* Responsive Lightbox Gallery styling */
.rl-gallery-container .rl-gallery-item {
  overflow: hidden;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.rl-gallery-container .rl-gallery-item .rl-gallery-link {
  display: block;
  overflow: hidden;
  border-radius: 1rem;
}

.rl-gallery-container .rl-gallery-item .rl-gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.rl-gallery-container .rl-gallery-item:hover .rl-gallery-link img {
  transform: scale(1.1);
}

/* Grid layout for gallery section */
#gallery .rl-gallery-container .rl-basicgrid-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  #gallery .rl-gallery-container .rl-basicgrid-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ========================================
   Footer Styles
   ======================================== */
/* Footer Theming */
footer.wp-block-template-part {
  margin-top: 0;
  background-color: hsl(var(--foreground) / 0.05);
  border-top: 1px solid hsl(var(--border) / 0.5);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

footer h3,
footer h4 {
  color: hsl(var(--foreground));
  transition: color 0.3s ease;
}

footer .text-primary {
  color: hsl(var(--primary));
  transition: color 0.3s ease;
}

footer .text-muted-foreground {
  color: hsl(var(--muted-foreground));
  transition: color 0.3s ease;
}

/* Footer Logo/Brand */
footer h3.text-primary {
  color: hsl(var(--primary));
}

/* Footer Navigation Links */
footer a[data-scroll] {
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

footer a[data-scroll]:hover {
  color: hsl(var(--primary));
}

footer a[data-scroll]:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-radius: 0.375rem;
}

/* Social Media Icons */
footer .bg-primary\/10 {
  background-color: hsl(var(--primary) / 0.1);
  transition: background-color 0.2s ease, color 0.2s ease;
}

footer .bg-primary\/10:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

footer .bg-primary\/10:hover i {
  color: hsl(var(--primary-foreground));
}

/* Contact Icons */
footer .fa-solid.text-primary {
  color: hsl(var(--primary));
  transition: color 0.3s ease;
}

/* Footer Border Separator */
footer hr,
footer .border-t {
  border-color: hsl(var(--border) / 0.5);
  transition: border-color 0.3s ease;
}

/* Footer Lists */
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin: 0;
}

/* Footer Navigation Links in Lists */
footer ul li a {
  display: inline-block;
  text-decoration: none;
}

/* Footer Contact Items */
footer ul li.flex {
  display: flex;
  align-items: center;
}

/* Footer Social Media Links - Focus States */
footer a[aria-label] {
  outline: none;
}

footer a[aria-label]:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-radius: 50%;
}

/* Footer Copyright Text */
footer .text-muted-foreground.text-sm {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Footer Social Links */
footer .footer-social-links {
  gap: 1rem;
}

footer .footer-social-links .wp-social-link {
  background-color: hsl(var(--primary) / 0.1);
  border-radius: 9999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

footer .footer-social-links .wp-social-link a {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary)) !important;
}

footer .footer-social-links .wp-social-link:hover {
  background-color: hsl(var(--primary));
}

footer .footer-social-links .wp-social-link:hover a {
  color: hsl(var(--primary-foreground)) !important;
}



/* ========================================
   Article Content Styles
   ======================================== */
.article-content {
  max-width: 780px;
  margin: 0 auto;
  font-family: inherit;
  line-height: 1.7;
  font-size: 16px;
  color: #222;
}

/* Titles */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  font-weight: 600;
  line-height: 1.3;
  margin: 2.2em 0 0.8em;
  color: #111;
}

.article-content h1 { font-size: 2.4rem; }
.article-content h2 { font-size: 2rem; }
.article-content h3 { font-size: 1.6rem; }
.article-content h4 { font-size: 1.3rem; }
.article-content h5 { font-size: 1.1rem; }
.article-content h6 { font-size: 1rem; }

/* Paragraphs */
.article-content p {
  margin: 0 0 1.2em;
}

/* Strong / Bold */
.article-content strong,
.article-content b {
  font-weight: 600;
  color: #000;
}

/* Lists */
.article-content ul,
.article-content ol {
  margin: 1.2em 0 1.6em 1.5em;
  padding: 0;
}

.article-content li {
  margin-bottom: 0.6em;
}

/* Links */
.article-content a {
  color: #005fcc;
  text-decoration: underline;
}

.article-content a:hover {
  text-decoration: none;
}

/* Quotes */
.article-content blockquote {
  margin: 2em 0;
  padding: 1em 1.4em;
  border-left: 4px solid #ddd;
  background: #f9f9f9;
  font-style: italic;
}

/* Code */
.article-content code {
  padding: 0.2em 0.4em;
  background: #f2f2f2;
  font-family: monospace;
  font-size: 0.95em;
}

.article-content pre {
  padding: 1em;
  background: #f2f2f2;
  overflow-x: auto;
  margin: 1.6em 0;
}

/* Images */
.article-content img {
  max-width: 100%;
  height: auto;
  margin: 1.6em 0;
  display: block;
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
}

.article-content th,
.article-content td {
  padding: 0.6em 0.8em;
  border: 1px solid #ddd;
  text-align: left;
}

.article-content th {
  background: #f5f5f5;
  font-weight: 600;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .article-content {
      font-size: 15px;
  }

  .article-content h1 { font-size: 2rem; }
  .article-content h2 { font-size: 1.7rem; }
}
