/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* --- EXISTING FUNCTIONAL CODE --- */
.relatedhai { display: block; padding: 20px 30px; margin-right: 30px; background-color: #ADD8E6; }
.page-links { color: #000000; text-align: center; word-spacing: 9px; background-color: #cfcfcf; padding: 3px; border-top: 2px solid #000000; border-bottom: 2px solid #000000; }
.recent-post-title { text-align: center; }
.what-others-are, .blog-top-banner { text-align: center; text-transform: uppercase; background-color: #cfcfcf; margin-bottom: 20px; font-weight: bold; }
.entry-meta { border-top: 2px solid #000000; border-bottom: 2px solid #000000; padding: 10px 0; font-size: 15px; font-weight: 700; margin-bottom: 24px; }
footer.entry-meta, .cat-links, .nav-previous, .nav-next, .copyright-bar { display: none; }
#primary.content-area.grid-parent.mobile-grid-100.grid-75.tablet-grid-75 { border-right: 1px solid #ebe8e8; }
.inside-right-sidebar { padding-left: 10px; }
.widget-title { margin-top: 0; margin-bottom: 5px; text-decoration: underline; }
.site-content { box-shadow: rgba(0,0,0,.04) 0 4px 12px; }
.nav-aligned-center .main-navigation ul { border-top: 1px solid #ebe8e8; border-bottom: 1px solid #ebe8e8; margin-top: -20px; }
.yellowme { background-color: #FFFF00; }
.site-header .header-image { width: 350px; height: auto; }

/* --- HERO SECTION: FIXED SPACING & BUTTONS --- */
.hero-section { 
    display: flex !important; 
    flex-direction: column !important; 
    justify-content: center !important; 
    align-items: center !important; 
    min-height: 60vh !important; 
    position: relative; 
    overflow: hidden; 
}
.hero-headline { margin-bottom: 30px !important; text-align: center; color: #ffffff !important; font-family: "Playfair Display", serif; font-size: clamp(30px, 6vw, 60px) !important; line-height: 1.1 !important; text-shadow: 2px 2px 15px rgba(0,0,0,0.6) !important; max-width: 800px; z-index: 5 !important; position: relative; letter-spacing: -0.5px !important; }
.hero-button-wrapper { display: flex !important; gap: 20px !important; z-index: 5 !important; position: relative; margin-top: 20px !important; }

.hero-section .wp-block-button__link { padding: 15px 35px !important; border-radius: 50px !important; font-size: 18px !important; font-weight: 700 !important; transition: all 0.3s ease !important; border: none !important; }
.hero-section .wp-block-button:nth-child(1) .wp-block-button__link { background-color: #e91e63 !important; color: #ffffff !important; }
.hero-section .wp-block-button:nth-child(2) .wp-block-button__link { background-color: #1a2a3a !important; color: #ffffff !important; }
.hero-section .wp-block-button__link:hover { transform: translateY(-3px) !important; box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important; }
.hero-section::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.45) !important; z-index: 1; }

/* --- NATIVE BOUTIQUE BLOG FEED (QUERY LOOP) --- */
.gb-query-loop-item { background: #ffffff; transition: all 0.3s ease !important; border-radius: 12px; padding: 25px; position: relative !important; cursor: pointer !important; }
.gb-query-loop-item:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important; }
.gb-query-loop-item img { border-radius: 8px !important; margin-bottom: 20px; pointer-events: none !important; }
.gb-query-loop-item h3, .gb-query-loop-item h3 a { font-family: "Playfair Display", serif !important; font-size: 24px !important; color: #1a2a3a !important; text-decoration: none !important; line-height: 1.3 !important; letter-spacing: -0.3px !important; }

/* THE CLICKABLE OVERLAY LOGIC (BLOG FEED) */
.gb-query-loop-item h3 a::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 20 !important;
    display: block !important;
}

.gb-query-loop-item h3 a:hover { color: #e91e63 !important; }
.gb-query-loop-item p, .gb-query-loop-item .gb-text:not(h3) { font-size: 15px !important; line-height: 1.7 !important; color: #555555 !important; pointer-events: none !important; }

/* --- THE FINAL FOOTER FIX --- */
.site-footer, .footer-widgets, .inside-footer-widgets { background-color: #1a2a3a !important; color: #ffffff !important; }
.site-footer { padding: 80px 0 0 0 !important; }
.footer-widgets-container { display: flex !important; justify-content: space-between !important; gap: 50px !important; max-width: 1300px !important; margin: 0 auto !important; padding: 0 40px !important; }
@media (min-width: 769px) { .footer-widget-1 { flex: 1.5 !important; } .footer-widget-2 { flex: 1 !important; } .footer-widget-3 { flex: 2 !important; } }
.site-footer .widget-title { color: #ffffff !important; font-family: "Playfair Display", serif !important; font-size: 24px !important; font-weight: 700 !important; margin-bottom: 25px !important; border-bottom: 2px solid #e91e63 !important; display: inline-block !important; padding-bottom: 5px !important; text-decoration: none !important; }
.site-footer p, .site-footer li, .site-footer a { font-size: 15px !important; line-height: 1.8 !important; color: rgba(255,255,255,0.85) !important; text-decoration: none !important; }
.site-footer a:hover { color: #e91e63 !important; }
.site-footer ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.site-footer li { margin-bottom: 12px !important; }
.site-info { background-color: #121d28 !important; padding: 25px 0 !important; margin-top: 60px !important; border-top: 1px solid rgba(255,255,255,0.1) !important; font-size: 13px !important; color: rgba(255,255,255,0.6) !important; }

/* --- MODERN NAVIGATION MENU --- */
.main-navigation { background-color: #ffffff !important; border-top: 1px solid #f1f1f1 !important; border-bottom: 1px solid #f1f1f1 !important; padding: 10px 0 !important; }
.main-navigation a { font-family: "Source Sans Pro", sans-serif !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: 1.5px !important; font-size: 13px !important; color: #333333 !important; padding: 10px 20px !important; position: relative; transition: all 0.3s ease !important; }
.main-navigation .main-nav ul li a:after { content: ''; position: absolute; width: 0; height: 2px; display: block; margin-top: 5px; right: 0; background: #e91e63; transition: width 0.3s ease; }
.main-navigation .main-nav ul li a:hover:after { width: 100%; left: 0; background: #e91e63; }
.main-navigation a:hover, .main-navigation .current-menu-item a { color: #e91e63 !important; }

/* --- PREMIUM BACK TO TOP BUTTON (CONFLICT FIX) --- */
.generate-back-to-top, 
.generate-back-to-top:visited { 
    background-color: rgba(26, 42, 58, 0.9) !important; /* Slightly more solid for visibility */
    color: #ffffff !important; 
    border-radius: 50% !important; 
    width: 50px !important; 
    height: 50px !important; 
    line-height: 50px !important; 
    text-align: center !important; 
    bottom: 30px !important; 
    right: 30px !important; 
    transition: all 0.3s ease !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    
    /* THE FIX: Force this to be on the very top layer */
    z-index: 999999 !important; 
    position: fixed !important;
    pointer-events: auto !important; /* Ensures it is definitely clickable */
}

.generate-back-to-top:hover, 
.generate-back-to-top:focus { 
    background-color: #e91e63 !important; 
    color: #ffffff !important; 
    transform: translateY(-5px) !important; 
    box-shadow: 0 6px 15px rgba(233, 30, 99, 0.4) !important; 
}

.generate-back-to-top .gp-icon { 
    font-size: 20px !important; 
    position: relative; 
    top: 2px; /* Adjusted to center perfectly in the 50px circle */
}

/* MOBILE ADJUSTMENT: Move it slightly so it doesn't block the very corner of cards */
@media (max-width: 768px) {
    .generate-back-to-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 45px !important;
        height: 45px !important;
        line-height: 45px !important;
    }
}

/* --- THE ULTIMATE BOUTIQUE GRID --- */
[class*="gb-looper"] { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 30px !important; padding: 40px 0 !important; }
[class*="gb-loop-item"] { position: relative !important; background-color: #ffffff !important; border: 1px solid #f2f2f2 !important; border-radius: 15px !important; padding: 25px !important; box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important; display: flex !important; flex-direction: column !important; height: 100% !important; transition: all 0.3s ease-in-out !important; }
[class*="gb-loop-item"]:hover { transform: translateY(-8px) !important; box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important; }

/* THE CLICKABLE OVERLAY LOGIC (BOUTIQUE GRID) */
[class*="gb-loop-item"] h2.gb-text a::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 30 !important;
}

[class*="gb-loop-item"] h2.gb-text, [class*="gb-loop-item"] h2.gb-text a { font-family: "Playfair Display", serif !important; color: #1a2a3a !important; font-size: 21px !important; font-weight: 700 !important; text-decoration: none !important; margin: 15px 0 15px 0 !important; line-height: 1.3 !important; letter-spacing: -0.4px !important; }
[class*="gb-loop-item"] a.gb-button, [class*="gb-loop-item"] a[class*="gb-text-"] { background-color: #e91e63 !important; color: #ffffff !important; border-radius: 50px !important; padding: 12px 28px !important; text-transform: uppercase !important; font-weight: 700 !important; margin-top: auto !important; display: inline-flex !important; justify-content: center !important; border: none !important; text-decoration: none !important; font-size: 12px !important; letter-spacing: 1.2px !important; z-index: 5 !important; }
[class*="gb-loop-item"] figure img { width: 100% !important; height: auto !important; min-height: 200px; object-fit: contain !important; border-radius: 10px !important; pointer-events: none !important; }
/* --- THE PLANNING PATH --- */
.planning-path-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; margin: 40px 0 !important; }
.planning-path-grid > div { background-color: #ffffff !important; border: 1px solid #f2f2f2 !important; border-radius: 20px !important; padding: 40px 25px !important; box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important; border-bottom: 6px solid #e91e63 !important; display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; transition: all 0.3s ease !important; height: 100% !important; position: relative !important; cursor: pointer !important; }
.planning-path-grid > div:hover { transform: translateY(-8px) !important; box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important; }

/* THE CLICKABLE OVERLAY LOGIC (PLANNING PATH) */
.planning-path-grid > div h3 a::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 30 !important;
}

.planning-path-grid .wp-block-image img { 
    width: 100% !important; 
    max-width: 220px !important; 
    height: auto !important; 
    border-radius: 10px !important; 
    margin-bottom: 20px !important; 
    aspect-ratio: 16/9 !important;
    object-fit: cover !important;
    pointer-events: none !important;
}
.planning-path-grid h3 { font-family: "Playfair Display", serif !important; color: #1a2a3a !important; font-size: 22px !important; margin-bottom: 15px !important; font-weight: 700 !important; line-height: 1.2 !important; letter-spacing: 0.2px !important; }
.planning-path-grid p { font-size: 15px !important; line-height: 1.8 !important; color: #555555 !important; letter-spacing: 0.1px !important; pointer-events: none !important; }

/* --- UNIVERSAL SUBHEADING FIX --- */
.start-planning-anchor, h2.start-planning-anchor, [class*="start-planning-anchor"] {
    text-align: center !important;
    font-family: "Playfair Display", serif !important;
    font-size: 34px !important;
    color: #1a2a3a !important;
    font-weight: 700 !important;
    margin: 50px auto 30px auto !important; 
    display: block !important;
    width: 100% !important;
    clear: both !important;
    letter-spacing: -0.5px !important;
}
.start-planning-anchor::after, [class*="start-planning-anchor"]::after {
    content: "" !important;
    display: block !important;
    width: 40px !important;
    height: 3px !important;
    background-color: #e91e63 !important;
    margin: 15px auto 0 auto !important;
}

/* --- THE ULTIMATE CENTER-FORCE CSS --- */
.center-my-pagination, nav.gb-query-loop-pagination {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 60px 0 !important; 
    clear: both !important;
    gap: 12px !important; 
}
.center-my-pagination .page-numbers, nav.gb-query-loop-pagination a, nav.gb-query-loop-pagination span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    background-color: #ffffff !important;
    color: #1a2a3a !important; 
    border: 1px solid #e0e0e0 !important; 
    border-radius: 50% !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    font-size: 16px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06) !important;
    transition: all 0.3s ease !important;
}
.center-my-pagination .current, nav.gb-query-loop-pagination .current { background-color: #e91e63 !important; color: #ffffff !important; border-color: #e91e63 !important; }
.center-my-pagination a:hover, nav.gb-query-loop-pagination a:hover { background-color: #1a2a3a !important; color: #ffffff !important; transform: translateY(-4px) !important; box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important; }

/* --- PRECISE MOBILE RESCUE --- */
@media (max-width: 768px) {
    /* 1. TOP STORY SECTION: Force Vertical Stack */
    .magazine-flex-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
    }

    div.magazine-image-side, 
    div.magazine-text-side {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        padding: 10px 20px !important;
    }

    /* Target ONLY the Top Story image to use 'contain' */
    div.magazine-flex-container div.magazine-image-side img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: contain !important; 
        box-shadow: none !important;
        border-radius: 12px !important;
    }

    /* 2. MOST LOVED POSTS: Restore Grid & Card Spacing */
    /* Target the specific GenerateBlocks looper class seen in your inspector */
    .gb-looper-59493121, 
    [class*="gb-looper"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        padding: 20px !important;
    }

    /* Restore the card appearance for the posts */
    [class*="gb-loop-item"] {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 20px !important;
        background: #ffffff !important;
        border: 1px solid #f2f2f2 !important;
        border-radius: 15px !important;
        box-sizing: border-box !important;
    }

    /* Restore the images in the cards to fill the width (cover) */
    [class*="gb-loop-item"] figure img,
    [class*="gb-loop-item"] img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: cover !important; 
        border-radius: 10px !important;
    }

    /* 3. ALIGNMENT & BUTTONS */
    .magazine-text-side, 
    [class*="gb-loop-item"] {
        text-align: center !important;
    }

    .magazine-btn, 
    [class*="gb-loop-item"] a.gb-button {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 15px !important;
    }
}

/* --- THE IRONCLAD SCROLL-KILLER --- */
*, *::before, *::after { box-sizing: border-box !important; }
html, body { max-width: 100vw !important; overflow-x: hidden !important; position: relative !important; margin: 0 !important; padding: 0 !important; -webkit-font-smoothing: antialiased; }

@media (max-width: 768px) {
    .gb-grid-wrapper, .gb-query-loop-wrapper, .planning-path-grid, [class*="gb-grid-wrapper"], [class*="gb-query-loop-wrapper"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        padding: 0 15px !important; 
    }
    img { max-width: 100% !important; height: auto !important; }
    .site-footer, .site-info, nav.gb-query-loop-pagination { width: 100% !important; overflow: hidden !important; margin: 0 !important; }
}

/* --- TARGETED BUTTON HOVER (SPECIFIC TO YOUR CLASSES) --- */
.hero-section .wp-block-button__link,
[class*="gb-query-loop-item"] a.gb-button,
a.gb-text-83c7d42a {
    transition: all 0.3s ease-in-out !important;
    display: inline-flex !important;
}

.hero-section .wp-block-button__link:hover,
[class*="gb-query-loop-item"] a.gb-button:hover,
a.gb-text-83c7d42a:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 15px rgba(233, 30, 99, 0.25) !important;
    filter: brightness(1.1) !important;
    color: #ffffff !important; 
}

/* --- SECTION C: THE FEATURED STORY (MAGAZINE LAYOUT) --- */
.featured-story-magazine {
    display: flex !important;
    align-items: center !important;
    gap: 40px !important;
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 45px rgba(0,0,0,0.05) !important;
    margin: 40px 0 !important;
}
.featured-story-magazine .gb-container { flex: 1 !important; }
.featured-story-magazine img { width: 100% !important; height: 450px !important; object-fit: cover !important; border-radius: 15px !important; }
.featured-story-magazine h2 { font-family: "Playfair Display", serif !important; font-size: clamp(28px, 4vw, 42px) !important; margin-bottom: 20px !important; line-height: 1.2 !important; }

/* --- SECTION D: SHOP THE VIBE (CLEAN PRODUCT CIRCLES) --- */
.shop-the-vibe-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; gap: 30px !important; text-align: center !important; margin: 40px 0 !important; }
.shop-product-circle { display: flex !important; flex-direction: column !important; align-items: center !important; }
.shop-product-circle img { width: 120px !important; height: 120px !important; border-radius: 50% !important; border: 2px solid #f2f2f2 !important; padding: 10px !important; background: #fff !important; transition: all 0.3s ease !important; object-fit: contain !important; }
.shop-product-circle img:hover { border-color: #e91e63 !important; transform: scale(1.05) !important; }
.shop-product-title { font-size: 14px !important; font-weight: 600 !important; margin-top: 15px !important; color: #1a2a3a !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; }

/* --- RECTANGLE MAGAZINE LAYOUT --- */
.magazine-flex-container { max-width: 1200px !important; margin: 0 auto; display: flex; align-items: center; gap: 60px; }
.magazine-image-side { flex: 1.4 !important; }
.magazine-image-side img { width: 100% !important; height: 350px !important; object-fit: cover !important; border-radius: 8px !important; box-shadow: 20px 20px 0px 0px #fdf7f9 !important; }
.magazine-text-side { flex: 1 !important; }
.magazine-text-side h2 { font-family: "Playfair Display", serif !important; font-size: 42px !important; font-weight: 900 !important; line-height: 1.1 !important; margin-bottom: 20px !important; color: #1a2a3a !important; }
.magazine-text-side p { font-size: 18px !important; line-height: 1.7 !important; color: #444 !important; margin-bottom: 30px !important; }
.magazine-btn { background-color: #e91e63 !important; color: #ffffff !important; padding: 14px 40px !important; border-radius: 50px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 1px !important; display: inline-block !important; text-decoration: none !important; transition: all 0.3s ease !important; }

@media (max-width: 900px) {
    .magazine-flex-container { flex-direction: column; padding: 0 20px; }
    .magazine-image-side img { height: 250px !important; }
}

/* --- BOLD EYEBROW HEADING --- */
.magazine-eyebrow { display: block; font-size: 14px !important; font-weight: 800 !important; text-transform: uppercase; letter-spacing: 2px !important; color: #e91e63; margin-bottom: 8px !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; }

/* --- MOBILE LAYOUT REORDERING --- */
.mobile-first { display: none !important; }
@media (max-width: 768px) {
    .magazine-flex-container { display: flex !important; flex-direction: column !important; gap: 0 !important; }
    .mobile-first { display: block !important; order: 1 !important; margin-bottom: 8px !important; text-align: left !important; font-size: 13px !important; }
    .magazine-image-side { order: 2 !important; margin-bottom: 20px !important; }
    .magazine-text-side { order: 3 !important; }
    .desktop-only { display: none !important; }
    .magazine-text-side h2 { margin-top: 5px !important; }
}

/* --- TIGHTEN GAP BETWEEN POSTS AND PAGINATION (MOBILE ONLY) --- */
@media (max-width: 768px) {
    .wp-block-query, .gb-query-loop-wrapper, [class*="gb-query-loop-wrapper"] { margin-bottom: 5px !important; padding-bottom: 0 !important; }
    .wp-block-query-pagination, nav.gb-query-loop-pagination, .center-my-pagination { margin-top: 0 !important; padding-top: 0 !important; }
    .wp-block-query-pagination { margin-top: -10px !important; }
}

.magazine-btn:hover { transform: translateY(-4px) !important; box-shadow: 0 8px 15px rgba(233, 30, 99, 0.25) !important; filter: brightness(1.1) !important; color: #ffffff !important; background-color: #e91e63 !important; }

/* --- SHOP THE VIBE SECTION --- */
.shop-vibe-container { padding: 60px 20px; max-width: 1200px; margin: 0 auto; text-align: center; }
.shop-vibe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 40px; }
.shop-item { text-decoration: none !important; display: flex; flex-direction: column; align-items: center; transition: all 0.3s ease; }
.shop-circle { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; border: 1px solid #f0f0f0; background: #ffffff; box-shadow: 0 10px 25px rgba(0,0,0,0.05); margin-bottom: 15px; transition: all 0.3s ease; }
.shop-circle img { width: 100%; height: 100%; object-fit: contain !important; padding: 10px; transition: transform 0.5s ease; }
.shop-title { font-family: "Source Sans Pro", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 2px !important; font-size: 13px; color: #1a2a3a; margin-top: 15px !important; }

.shop-item:hover .shop-circle { transform: translateY(-10px); border-color: #e91e63; box-shadow: 0 15px 30px rgba(233, 30, 99, 0.15); }
.shop-item:hover img { transform: scale(1.1); }
.shop-item:hover .shop-title { color: #e91e63; }

@media (max-width: 768px) {
    .shop-vibe-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .shop-circle { width: 140px; height: 140px; }
}

/* --- MEET THE EDITOR SECTION --- */
.editor-section-container { background-color: #ffffff; padding: 80px 20px; margin-top: 60px; display: flex; justify-content: center; border-top: 1px solid #f0f0f0; }
.editor-content { max-width: 900px; display: flex; align-items: center; gap: 50px; }
.editor-image { flex-shrink: 0; }
.editor-image img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; padding: 8px; background: #fff; box-shadow: 0 15px 35px rgba(0,0,0,0.05); }
.editor-text { text-align: left; }
.editor-text h3 { font-family: "Playfair Display", serif; font-size: 32px; color: #1a2a3a; margin-bottom: 15px; margin-top: 0; }
.editor-text p { font-family: "Source Sans Pro", sans-serif; line-height: 1.8; color: #444; font-size: 17px; margin-bottom: 25px; }
.editor-link { font-family: "Source Sans Pro", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; color: #e91e63; text-decoration: none; display: inline-block; padding-bottom: 5px; border-bottom: 2px solid #e91e63; transition: all 0.3s ease; }
.editor-link:hover { color: #1a2a3a; border-bottom-color: #1a2a3a; transform: translateX(5px); }

@media (max-width: 768px) {
    .editor-section-container { padding: 50px 20px; }
    .editor-content { flex-direction: column; text-align: center; gap: 30px; }
    .editor-text { text-align: center; }
    .editor-image img { width: 180px; height: 180px; }
}

/* --- MOBILE HEADER & LOGO FIX --- */
@media (max-width: 981px) {
    .site-logo-link img { max-width: 180px !important; height: auto !important; margin: 10px auto !important; display: block !important; }
    .site-header { padding: 10px 0 !important; background-color: #ffffff !important; }
    .menu-toggle { background: transparent !important; color: #1a2a3a !important; border: none !important; font-size: 20px !important; padding: 10px !important; }
    #site-navigation { margin-top: 0 !important; border: none !important; }
    .header-widget-area, .site-branding { width: 100% !important; text-align: center !important; float: none !important; }
}

@media (max-width: 981px) {
    .main-navigation ul.menu { background-color: #ffffff !important; border-top: 1px solid #f0f0f0 !important; }
    .main-navigation li a { padding: 15px 20px !important; border-bottom: 1px solid #f9f9f9 !important; font-family: "Source Sans Pro", sans-serif !important; text-transform: uppercase !important; letter-spacing: 1px !important; font-size: 14px !important; }
}

/* Ensure the title turns pink when the CARD is hovered */
[class*="gb-loop-item"]:hover h2.gb-text a,
.planning-path-grid > div:hover h3 a {
    color: #e91e63 !important;
    transition: color 0.3s ease !important;
}

/* --- 1. DEFINE THE LOCAL FONTS --- */

/* Playfair Display - Bold (Titles) */
@font-face {
    font-family: 'Playfair Display';
    src: url('https://gohousewarming.com/wp-content/uploads/2026/02/playfair-display-v40-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Montserrat - Regular (Body) */
@font-face {
    font-family: 'Montserrat';
    src: url('https://gohousewarming.com/wp-content/uploads/2026/02/montserrat-v31-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Montserrat - Semi-Bold (Accents) */
@font-face {
    font-family: 'Montserrat';
    src: url('https://gohousewarming.com/wp-content/uploads/2026/02/montserrat-v31-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* --- 2. APPLY TO HEADERS & BODY --- */

/* Serif Headlines: Clean, Sophisticated, and Bold */
h1, h2, h3, h4, 
.gb-headline, 
.gb-headline a {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700 !important;
    color: #1a2a3a !important; 
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
}

/* Sans-Serif Body: Modern and highly readable */
body, p, li, span, 
.gb-container p, 
.gb-grid-column p {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: #4a4a4a !important;
}

/* Use the 600 weight for any bolded text within paragraphs */
strong, b {
    font-weight: 600 !important;
    color: #1a2a3a !important;
}

/* Specific fix for the Planning Grid titles to ensure they use Montserrat 600 */
.planning-path-grid h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

/* --- SECTION WHITESPACE REFINEMENT --- */

/* 1. Reduce the massive gap between major sections */
.site-content .gb-container {
    margin-bottom: 40px !important; /* Reduced from 80px */
}

/* 2. Tighten padding for 'Start Planning' specifically */
.shop-vibe-container {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* 4. Remove internal card padding for the Icon Sections ONLY */
/* This stops the icons from being pushed down away from the title */
#planning-icon-section .planning-step-item,
.shop-vibe-grid .shop-item {
    padding: 0 !important; /* Removes the 35px stuffy padding */
}

/* --- LIFESTYLE IMAGE HOVER (MOBILE RESCUE V4) --- */

/* 1. Container - Ensure it holds the image safely */
[class*="gb-loop-item"] figure, 
.planning-path-grid figure {
    overflow: hidden !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    background-color: transparent !important;
}

/* 2. Desktop: Keep the cinematic 16:9 look */
@media (min-width: 769px) {
    [class*="gb-loop-item"] img, 
    .planning-path-grid img {
        aspect-ratio: auto !important; 
        object-fit: contain !important;
        width: 100% !important;
        transition: transform 0.8s ease !important;
    }
    
    [class*="gb-loop-item"]:hover img, 
    .planning-path-grid > div:hover img {
        transform: scale(1.04) !important;
    }
}

/* 3. MOBILE: No Cropping, No Zooming, Full Visibility */
@media (max-width: 768px) {
    [class*="gb-loop-item"] img, 
    .planning-path-grid img {
        /* This prevents the "zoom" and shows the full image file */
        width: 100% !important;
        height: auto !important;
        aspect-ratio: auto !important; 
        object-fit: contain !important; 
        
        /* Adds a tiny bit of space so the white border doesn't touch the card edge */
        padding: 5px !important; 
        display: block !important;
        transform: none !important; /* Kills any inherited zoom */
    }

    /* Tighten the card space so the image can be the star */
    [class*="gb-loop-item"], .planning-path-grid > div {
        padding: 15px !important;
    }
}

/* --- HOVER COLOR FOR TITLES --- */
.shop-item:hover .shop-title {
    color: #e91e63 !important;
    transition: color 0.3s ease !important;
}

/* Optional: If you want the description text to also turn pink, use this: */
.shop-item:hover p {
    color: #e91e63 !important;
    transition: color 0.3s ease !important;
}

/* --- BOLD TITLES FOR PLANNING SECTION --- */
.shop-item .shop-title {
    font-weight: 700 !important; /* Forces the bold style */
    display: block !important;
    margin-top: 12px !important;
    font-size: 16px !important; /* Adjust if you want them slightly larger */
}



/* Fix for the About Us Hero Photo */
.about-hero-photo img {
    object-fit: cover !important;
    object-position: center !important;
}

/* 1. POST PAGES ONLY: Tighten the gap */
.single-post .editor-section-container,
.single-post .editor-content {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

.single-post .gh-related-posts {
    margin-top: -30px !important; /* Pulls title closer to the Editor block */
    margin-bottom: 40px;
    clear: both;
}

/* 2. HOMEPAGE ONLY: Ensure the footer has its original airy gap */
.home .editor-section-container,
.home .editor-content {
    margin-bottom: 50px !important;
    padding-bottom: 20px !important;
}

/* 3. Global Related Posts Styling (Brand & Ratios) */
:root {
    --brand-teal: #00a8b7;
    --brand-orange: #f37021;
    --card-bg: #ffffff;
}

/* Added border-top and padding-top to create the separator */
.gh-related-posts {
    border-top: 1px solid #ececec; /* separator line */
    padding-top: 30px;             /* space between line and title */
    margin-top: 20px !important;    /* space between line and editor block */
    margin-bottom: 40px;
    clear: both;
}

.gh-section-title {
    font-size: 24px;
    font-weight: 800;
    color: #222;
    /* Increased from 20px to 40px for better breathing room */
    margin-bottom: 40px; 
    border-left: 6px solid var(--brand-teal); /* Teal Accent */
    padding-left: 15px;
}

.gh-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Balanced 3-post grid */
    gap: 20px;
}

.gh-post-card {
    background: var(--card-bg);
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gh-post-card:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.gh-post-thumb img {
    width: 100%;
    aspect-ratio: 1200 / 628; /* Your specific ratio */
    object-fit: cover;
    object-position: 50% 20%; /* Prevents bad cropping */
    display: block;
}

.gh-post-content {
    padding: 15px;
    flex-grow: 1;
}

.gh-post-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    line-height: 1.3;
    display: block;
}

.gh-post-title:hover {
    color: var(--brand-orange); /* Orange Hover */
}

@media (max-width: 600px) {
    .gh-wrapper { grid-template-columns: 1fr; }
}

.gh-post-card:hover .gh-post-thumb img {
    filter: brightness(1.05);
    border-bottom: 4px solid var(--brand-orange);
}

/* Container for all metadata boxes */
.gh-post-meta-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #ececec;
    align-items: center;
}

/* Individual Box Styling */
.gh-meta-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Circular Avatar */
.gh-meta-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #eee;
    display: block;
}

/* Icon and Label Colors */
.gh-meta-icon {
    color: #888;
    display: flex;
}

.gh-meta-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.gh-meta-label {
    font-size: 12px;
    color: #777;
    font-weight: 500;
}

.gh-meta-value {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

/* Category links styling with your brand teal */
.gh-meta-value a {
    text-decoration: none;
    color: inherit;
}

.gh-meta-value a:hover {
    color: #00a8b7; 
}

/* MOBILE FIX: Keep everything horizontal */
@media (max-width: 600px) {
    .gh-post-meta-boxes {
        flex-direction: row; /* Horizontal alignment */
        flex-wrap: wrap;     /* Allow wrapping to a second line if needed */
        gap: 15px;           /* Tighter gap for small screens */
    }

    .gh-meta-avatar img {
        width: 35px;
        height: 35px;
    }

    .gh-meta-label {
        font-size: 11px;
    }

    .gh-meta-value {
        font-size: 13px;
    }
}

/* Author link hover color */
.author-box .gh-meta-value a:hover {
    color: #00a8b7; /* Using your brand teal */
    text-decoration: underline; /* Optional: adds a line on hover for better UX */
}

/* Ensure the avatar is also clickable */
.gh-meta-avatar a {
    display: block;
    line-height: 0;
}

/* Increase gap between list items sitewide in content area */
.entry-content ul li, 
.entry-content ol li {
    margin-bottom: 12px; /* Adjust this value to increase/decrease the gap */
}

/* Prevents the last item from having unnecessary extra space at the bottom */
.entry-content ul li:last-child, 
.entry-content ol li:last-child {
    margin-bottom: 0;
}

/* Prevent Headline Wrap Shifts on Mobile Viewports */
@media (max-width: 768px) {
    h1.entry-title {
        font-size: clamp(24px, 6vw, 32px) !important;
        line-height: 1.2 !important;
        text-rendering: optimizeLegibility;
    }
}

/* Lock Content Text Blocks to Prevent FOUT Shifts */
.entry-content p, .entry-content div {
    font-display: block !important;
}

/* Fix Unsized Lazy-Load Image Shifts */
.entry-content img {
    height: auto !important;
    max-width: 100% !important;
    aspect-ratio: attr(width) / attr(height);
}
