/* Glow Curated - Reusable Components */
/* NOTE: Minify this file during production builds. */

.site-header {
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .06) !important;
  margin-bottom: 0 !important;
  overflow: visible;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: box-shadow var(--transition), background var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .07) !important;
}

.main-nav {
  overflow: visible;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    gap: var(--spacing-sm);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text);
    font-weight: 600;
}

.logo-link svg {
    width: 60px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-link {
  position: relative;
  padding-block: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--color-text);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  height: 2px;
  width: 100%;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

/* Admin bar offset */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    color: var(--color-text);
    padding: var(--spacing-xs) var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle::after {
    content: "▾";
    font-size: 0.75rem;
    transition: transform var(--transition);
}

.nav-dropdown.open .dropdown-toggle::after {
    transform: rotate(-180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-sm) 0;
    display: none;
}

.nav-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-text);
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    background: rgba(232, 155, 126, 0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-text);
    transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition), transform var(--transition);
        
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-toggle {
        display: flex;
    }

}

.site-footer {
  background: #fff !important;
  border-top: 1px solid rgba(0, 0, 0, .08);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.site-footer,
.site-footer *,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5, .site-footer h6,
.site-footer p, .site-footer span, .site-footer li,
.site-footer .site-info, .site-footer .footer-credits,
.site-footer .widget, .site-footer .widget *:not(.wp-block-button__link),
.site-footer .widget-title, .site-footer .wp-block-heading,
.site-footer .site-title, .site-footer .site-branding, .site-footer .site-branding *,
.site-footer .custom-logo-link, .site-footer .site-title a, .site-footer .site-description,
.site-footer .brand, .site-footer .logo, .site-footer .logo *,
.site-footer .has-white-color, .site-footer [class*="white"], .site-footer .text-white {
  color: #2c2c2c !important;
}

.site-footer a {
  color: #2c2c2c !important;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-footer a:hover {
  color: var(--color-primary) !important;
  text-decoration: underline;
}

.site-footer svg, .site-footer svg *, .site-footer svg path, .site-footer svg text,
.site-footer .site-branding svg, .site-footer .site-branding svg * {
  fill: #2c2c2c !important;
  color: #2c2c2c !important;
}

.site-footer .wp-block-button__link {
  background: var(--color-primary) !important;
  color: #fff !important;
  border: 1px solid transparent;
}

.site-footer .wp-block-button.is-style-outline .wp-block-button__link {
  background: #fff !important;
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--spacing-lg);
}

.footer-brand svg {
    width: 160px;
}

.footer-links h4,
.footer-legal h4,
.footer-social h4 {
    margin-bottom: var(--spacing-sm);
    color: #FFFFFF;
}

.site-footer .container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 28px);
}

.site-footer .footer-widgets {
  padding-block: clamp(24px, 4vw, 48px);
}

.site-footer .footer-widgets .widgets-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}

.site-footer .widget {
  margin: 0;
  padding: 0;
}

.site-footer .widget:nth-child(1) {
  grid-column: span 4;
}

.site-footer .widget:nth-child(2) {
  grid-column: span 3;
}

.site-footer .widget:nth-child(3) {
  grid-column: span 3;
}

.site-footer .widget:nth-child(4) {
  grid-column: span 2;
}

@media (max-width: 980px) {
  .site-footer .widget:nth-child(1),
  .site-footer .widget:nth-child(2),
  .site-footer .widget:nth-child(3),
  .site-footer .widget:nth-child(4) {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .site-footer .widgets-inner {
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 24px);
  }

  .site-footer .widget {
    grid-column: 1/-1;
  }

  .site-footer .footer-widgets {
    padding-block: clamp(20px, 3vw, 32px);
  }
}

.site-footer .widget .wp-block-heading, .site-footer .widget-title {
  margin: 0 0 10px;
  font-size: clamp(0.9375rem, 1.5vw, 1rem);
  line-height: 1.2;
  font-weight: 700;
}

.site-footer .widget p {
  margin: 0 0 10px;
  font-size: clamp(0.875rem, 1.5vw, 0.95rem);
}

.site-footer .widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer .widget li {
  margin: 0;
}

.site-footer .widget a {
  color: #2c2c2c;
  text-decoration: none;
}

.site-footer .widget a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.site-footer .social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.site-footer .social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 999px;
  min-width: 44px;
  min-height: 44px;
}

.site-footer .social-row svg {
  width: 18px;
  height: 18px;
}

.site-footer form input[type="email"] {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  min-height: 48px;
  font-size: 16px;
}

.site-footer form .wp-block-button__link {
  border-radius: 999px;
  padding: 10px 16px;
}

.site-footer .site-info {
  border-top: 1px solid rgba(0, 0, 0, .08);
  padding-block: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: clamp(0.8125rem, 1.5vw, 0.92rem);
}

.site-footer .site-info .left, .site-footer .site-info .right {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .site-footer .site-info {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .site-footer .site-info .left,
  .site-footer .site-info .right {
    flex-direction: column;
    gap: 8px;
  }
}

.site-footer .wp-block-group {
  row-gap: 10px;
}

.footer-social .social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 10px 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: var(--spacing-md);
    color: rgba(255, 255, 255, 0.85);
}

.back-to-top {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    color: #FFFFFF;
    font-size: 22px;
    cursor: pointer;
    align-self: flex-end;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    opacity: 0;
    pointer-events: none;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(232, 155, 126, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.card {
  background: var(--gc-cream);
  border: 1px solid var(--gc-border);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 22px);
  box-shadow: var(--shadow-1);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(232, 155, 126, 0.2), transparent 40%, transparent 60%, rgba(232, 155, 126, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  background: #fff;
}


.category-card .icon {
  font-size: 1.8rem;
  margin-bottom: .5rem;
}

.category-card h3 {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
  letter-spacing: -.005em;
}

.category-card p {
  margin: 0;
  color: var(--gc-muted);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .8rem;
  font-weight: 600;
  color: var(--gc-charcoal);
  text-decoration: none;
  outline: none;
}

.arrow-link svg {
  transform: translateX(0);
  transition: transform var(--transition);
}

.arrow-link:hover svg {
  transform: translateX(4px);
}

.arrow-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(232, 155, 126, .35);
}

.breadcrumb {
  color: #8a8a8a;
  font-size: clamp(0.85rem, 1.5vw, 0.9rem);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: clamp(12px, 1.5vw, 18px);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #6d6d6d;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  transition: var(--transition);
}

.breadcrumb a:hover {
  border-bottom-color: #bfbfbf;
}

.breadcrumb .sep {
  opacity: .6;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.form-group label {
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    background: #FFFFFF;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(232, 155, 126, 0.15);
}

.form-error {
    color: #B00020;
    font-size: 0.85rem;
}

.form-success {
    color: #1B5E20;
    font-weight: 600;
    margin-top: var(--spacing-sm);
}

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

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin: 36px 0 12px;
}

@media (max-width: 767px) {
  .pagination {
    margin: 24px 0 8px;
  }
}

.pagination .nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .pagination .nav-links {
    gap: 8px;
  }
}

.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .8rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .05);
  transition: transform .2s, border-color .2s, background .2s;
  min-height: 44px;
}

.pagination a:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, .14);
}

@media (max-width: 767px) {
  .pagination a:hover {
    transform: translateY(-1px);
  }
}

.pagination .current {
  background: var(--color-text);
  color: #fff;
  border-color: transparent;
}

@media (min-width: 1025px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .site-header .container {
        padding: var(--spacing-sm) var(--spacing-lg);
    }
}