/*
Theme Name: Glow Curated V2
Theme URI: https://glowcurated.com/
Author: Glow Curated Team
Author URI: https://glowcurated.com/
Description: A luxury beauty editorial theme inspired by Glow Curated's curated static site. Includes customizable hero content, brand colors, Pinterest integrations, and editorial layouts for posts and pages.
Version: 2.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glow-curated
Tags: blog, custom-colors, custom-logo, custom-menu, featured-images, editor-style, one-column, two-columns
*/

/* The bulk of the theme styles are enqueued from assets/css. This file only holds the required header block and minimal fallbacks. */
:root {
  --color-primary: #E89B7E;
  --gc-cream: #FAF9F6;
  --color-text: #201C17;
}

body {
  background-color: var(--gc-cream);
  color: var(--color-text);
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* WordPress Core Styles */
.wp-caption { max-width: 100%; }
.wp-caption-text { text-align: center; font-size: 0.9em; color: var(--color-text-light, #7A6F67); }
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1200px; }
.alignfull { max-width: 100%; }

/* WordPress Blocks */
.wp-block-image img {
    border-radius: var(--border-radius, 20px);
    height: auto;
    max-width: 100%;
}

.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md, 1.5rem);
}

/* Blog hero styles are now consolidated in single-post.css to avoid conflicts */

/* Product Cards with Images */
.product-card {
    background: var(--color-accent, #FDEFE8);
    border-radius: var(--radius, 20px);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(232, 155, 126, 0.2);
}

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: var(--spacing-md, 1.5rem);
}

/* Text-Only Mode */
.text-only-mode .hero-image-wrapper,
.text-only-mode .product-image,
.text-only-mode .wp-block-image,
.text-only-mode .wp-post-image {
    display: none !important;
}

.text-only-mode .hero-content.with-image {
    margin-top: 0;
}

/* Gutenberg Button Styles */
.wp-block-button__link {
    background: var(--color-primary);
    color: #FFFFFF;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius);
    text-decoration: none;
    transition: background var(--transition);
}

.wp-block-button__link:hover {
    background: #d88162;
}

/* Admin Bar Adjustment */
.admin-bar .site-header.sticky {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header.sticky {
        top: 46px;
    }
}
/* === Your existing style.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);
}