/* Glow Curated - Main Stylesheet */
/* NOTE: Consider minifying this stylesheet for production deployment. */

:root {
  /* Brand Colors */
  --gc-cream: #FAF9F6;
  --gc-charcoal: #2C2C2C;
  --gc-rose: #E89B7E;
  --gc-muted: #6B6B6B;
  --gc-border: #E6E2DD;
  --color-primary: #E89B7E;
  --color-text: #2c2c2c;
  --color-text-light: #666;
  --color-bg: #ffffff;
  --color-bg-alt: #fafafa;
  --color-border: #e5e5e5;
  --color-accent: #f5f5f5;

  /* Typography - System fonts for better performance */
  --font-primary: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: ui-serif, Georgia, 'Times New Roman', Times, serif;
  --font-body: var(--font-primary);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Layout */
  --max-width: 1200px;
  --content-width: 720px;
  --container: max(280px, min(1200px, 92vw));

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-1: 0 6px 24px rgba(0, 0, 0, .08);
  --shadow-2: 0 10px 40px rgba(0, 0, 0, .14);

  /* Border Radius */
  --radius: 1.25rem;
  --radius-sm: .75rem;
  --radius-lg: 1.75rem;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Consistent Breakpoints */
  --breakpoint-mobile: 640px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 980px;
  --breakpoint-large: 1200px;

  /* Header Heights */
  --gc-header-h: 64px;

  /* Hero Panel */
  --panel-bg: rgba(0,0,0,.56);

  /* Legacy Variables for Backward Compatibility */
  --color-primary-dark: #D88A6F;
  --color-secondary: #FAF9F6;
  --color-background: #FDFCFB;
  --border-radius: 12px;
  --gradient-primary: linear-gradient(135deg, #E89B7E 0%, #F5B5A0 100%);
  --gradient-background: linear-gradient(135deg, #FAF9F6 0%, #FDFCFB 50%, #F5E6E0 100%);
}

@media (max-width: 767px) {
  :root {
    --gc-header-h: 56px;
  }
}

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: clamp(80px, 12vh, 120px);
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: clamp(60px, 10vh, 100px);
    -webkit-overflow-scrolling: touch;
  }
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background: #fff !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

.main-content {
    background: var(--color-bg);
    outline: none;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover,
a:focus-visible {
    color: var(--color-primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

@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;
  }

  .blog-card,
  .featured-card,
  .featured-card__img,
  .blog-card__media img,
  .pagination a,
  .blog-hero .hero-image-wrapper img,
  .blog-hero .hero-image,
  .post-navigation a,
  .related-card,
  .share .share-btn {
    transition: none !important;
    transform: scale(1) !important;
  }
}

/* Performance optimizations */
@media (max-width: 767px) {
  * {
    transition-duration: 0.2s !important;
  }

  .blog-card:hover,
  .featured-card:hover,
  .related-card:hover {
    filter: none !important;
  }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading, inherit);
    line-height: 1.15;
    letter-spacing: -.01em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    scroll-margin-top: var(--gc-header-h);
    color: var(--color-text);
}

h1 {
  font-size: clamp(2rem, 2.8vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
}

h3 {
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.4;
}

p, li {
  font-family: var(--font-body, inherit);
  line-height: 1.65;
  color: var(--color-text-light);
  font-size: clamp(0.9375rem, 2vw, 1rem);
  overflow-wrap: break-word;
  word-break: break-word;
}

img, video, svg, canvas, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px !important;
  margin-inline: auto !important;
  padding-inline: clamp(16px, 3vw, 28px) !important;
  width: var(--container);
  min-width: 0;
}

@media (max-width: 767px) {
  .container {
    padding-inline: clamp(12px, 2.5vw, 20px) !important;
  }
}

main {
    display: block;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
}

.skip-link:focus {
    left: 50%;
    top: 20px;
    width: auto;
    height: auto;
    transform: translateX(-50%);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-primary);
    color: var(--color-accent);
    border-radius: 40px;
    z-index: 9999;
}

.btn, .btn-primary, .btn-secondary, .btn-large-cta, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 700;
  padding: .9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(232, 155, 126, 0.2);
}


.btn-primary, .btn-large-cta, .wp-block-button__link {
  background: var(--color-primary);
  color: #fff !important;
  box-shadow: var(--shadow-1);
}

.btn-primary:hover, .btn-large-cta:hover, .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  filter: saturate(110%);
}

.btn-secondary {
  background: #fff;
  color: var(--color-text) !important;
  border: 1px solid var(--color-border);
}

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

.btn-large-cta {
  padding: 1rem 1.4rem;
  font-weight: 800;
}

.btn:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-large-cta:focus-visible {
  box-shadow: 0 0 0 3px rgba(232, 155, 126, .35);
  outline: none;
}

@media (max-width: 767px) {
  .btn, .btn-primary, .btn-secondary, .wp-block-button__link {
    padding: 12px 20px;
    font-size: 15px;
  }

  .btn:hover, .btn-primary:hover, .btn-secondary:hover, .wp-block-button__link:hover {
    transform: translateY(-1px);
  }
}

/* Forms */
.search-form input[type="search"],
.search-form input[type="text"],
input[type="email"],
input[type="text"],
textarea,
select {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  min-height: 48px;
  font-size: 16px; /* Prevents zoom on iOS */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font: inherit;
  color: var(--color-text);
  -webkit-tap-highlight-color: rgba(232, 155, 126, 0.2);
}

.search-form button[type="submit"],
button[type="submit"] {
  margin-left: 8px;
  min-height: 48px;
  min-width: 48px;
}

@media (max-width: 767px) {
  .search-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .search-form button[type="submit"] {
    margin-left: 0;
    width: 100%;
  }
}

ul {
    list-style: none;
}

/* Section spacing */
section {
  scroll-margin-top: 88px;
}

/* ===== Utility Classes ===== */
.eyebrow {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gc-muted);
}

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

.lede, .section-subhead {
  color: var(--gc-muted);
}

/* Screen reader utilities */
.screen-reader-text, .sr-only {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* Mobile-specific utilities */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }

  .mobile-full-width {
    width: 100% !important;
  }

  .mobile-stack {
    flex-direction: column !important;
  }

  .mobile-text-center {
    text-align: center !important;
  }

  .mobile-gap-sm {
    gap: var(--spacing-xs) !important;
  }
}

.mt-lg { margin-top: var(--spacing-lg); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.py-xl { padding: var(--spacing-xl) 0; }

/* Touch-friendly improvements */
button, a, input, textarea, select {
  -webkit-tap-highlight-color: rgba(232, 155, 126, 0.2);
}

button, .btn, .btn-primary, .btn-secondary {
  touch-action: manipulation;
}

/* Component overflow safety */
.site-main, .hero, .featured-categories, .latest-from-blog, .why-choose-us, .pinterest-cta {
  overflow-x: clip;
}

.wp-block-columns, .wp-block-group, .site-header .container, .site-main .container {
  min-width: 0;
  max-width: 100%;
}

/* Accessibility */
a:focus-visible {
  outline: 3px solid #ffd9ce;
  outline: 3px solid color-mix(in oklab, var(--color-primary) 70%, white);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 60px;
        --spacing-xxl: 80px;
    }
}
/* === Your existing main.css content (unchanged parts above) === */
/* ... (keep everything you already have) ... */


/* === GC: Section spacing (2025-10-31) ============================
   Adds consistent breathing room between major sections site-wide.
   Adjust via --section-gap and --section-gap-xl tokens.
   ================================================================= */
:root{
  --section-gap: clamp(40px, 6vw, 84px);
  --section-gap-xl: clamp(56px, 8vw, 120px);
}

/* Hand-off from hero areas to next section */
.hero,
.page-hero,
.blog-hub-hero,
.blog-article__hero{
  margin-bottom: var(--section-gap);
}

/* Default section-to-section spacing within main content areas */
.site-main > section + section,
.main-content > section + section,
.entry-content > section + section{
  margin-top: var(--section-gap);
}

/* Larger padded groups/lists */
.latest-from-blog,
.blog-hub-list,
.featured-categories,
.why-choose-us,
.what-we-curate,
.latest-features{
  padding-top: var(--section-gap-xl);
  padding-bottom: var(--section-gap-xl);
}

/* Reduce double-padding when two padded sections are adjacent */
:where(.site-main,.main-content,.entry-content) :where(section) + :where(section){
  margin-top: calc(var(--section-gap) - 2rem);
}

/* Optional divider helper (attach .section-sep to any section) */
.section-sep{
  border-top: 1px solid var(--gc-border, #E6E2DD);
  padding-top: var(--section-gap);
}