/*
 * Theme Name:   Snalažljivi Roditelji
 * Theme URI:    https://snalazljiviroditelji.com
 * Description:  Custom child theme for Snalažljivi Roditelji portal. Built on ListingHive + HivePress.
 * Author:       Snalažljivi Roditelji
 * Author URI:   https://snalazljiviroditelji.com
 * Template:     listinghive
 * Version:      2.0.0
 * Requires at least: 6.0
 * Tested up to: 6.7
 * Requires PHP: 7.4
 * License:      GNU General Public License v2 or later
 * License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:  listinghive-child
 */


/* ==========================================================================
   1. DESIGN SYSTEM — CSS Variables
   ==========================================================================
   Single source of truth for the entire site.
   Your WPCode snippets can also reference these variables.
   ========================================================================== */
:root {
    /* Brand Colors */
    --sr-teal:           #1a9e8f;
    --sr-teal-dark:      #158a7d;
    --sr-teal-light:     #e6f5f2;
    --sr-teal-rgb:       26, 158, 143;
    --sr-yellow:         #ffc107;
    --sr-yellow-hover:   #f0b400;
    --sr-yellow-light:   #fff8e1;
    --sr-yellow-rgb:     255, 193, 7;
    --sr-orange:         #f39c12;
    --sr-orange-rgb:     243, 156, 18;

    /* Neutrals */
    --sr-dark:           #1d1b20;
    --sr-text:           #374151;
    --sr-text-light:     #6b7280;
    --sr-text-muted:     #9ca3af;
    --sr-border:         #e5e7eb;

    /* Backgrounds */
    --sr-bg:             #faf8f5;
    --sr-bg-cream:       #fef9f0;
    --sr-bg-white:       #ffffff;

    /* Semantic */
    --sr-success:        #28a745;
    --sr-danger:         #dc3545;

    /* Typography */
    --sr-font-heading:   'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    --sr-font-body:      'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --sr-radius-sm:      8px;
    --sr-radius-md:      12px;
    --sr-radius-lg:      20px;
    --sr-radius-xl:      28px;
    --sr-radius-pill:    50px;

    /* Shadows */
    --sr-shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.06);
    --sr-shadow-md:      0 4px 20px rgba(0, 0, 0, 0.08);
    --sr-shadow-lg:      0 8px 40px rgba(0, 0, 0, 0.10);
    --sr-shadow-xl:      0 20px 60px rgba(0, 0, 0, 0.12);

    /* Layout */
    --sr-container:      1200px;
}


/* ==========================================================================
   2. GLOBAL — Typography & Base (applied via font enqueue)
   ==========================================================================
   NOTE: We do NOT override ListingHive's base styles here.
   We only apply our fonts to elements we explicitly control.
   ========================================================================== */
.sr-homepage,
.sr-homepage h1,
.sr-homepage h2,
.sr-homepage h3,
.sr-homepage h4 {
    font-family: var(--sr-font-heading);
}

.sr-homepage p,
.sr-homepage span,
.sr-homepage a,
.sr-homepage div {
    font-family: var(--sr-font-body);
}


/* ==========================================================================
   2.5. HEADER — Navigation Bar
   ==========================================================================
   Migrated from WPCode "Header Menu Design" snippet.
   Updated: smaller fonts, warm teal, bottom shadow, improved account menu.
   IMPORTANT: Disable WPCode "Header Menu Design" snippet after activating.
   ========================================================================== */

/* Main menu alignment */
.header-navbar__menu > ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-navbar__menu > ul > li > a {
    font-family: var(--sr-font-body);
    font-size: 17px;
    font-weight: 600;
    color: var(--sr-text);
    text-decoration: none !important;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 12px;
}

.header-navbar__menu > ul > li > a:hover {
    color: var(--sr-teal);
}

/* Header bottom shadow */
.site-header {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}

/* Login link */
.header-navbar__menu .menu-item--user-login {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.header-navbar__menu .menu-item--user-login a {
    color: var(--sr-text) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    margin-left: 8px;
    background: none !important;
    border-radius: 12px;
}

.header-navbar__menu .menu-item--user-login a:hover {
    color: var(--sr-teal) !important;
}

.header-navbar__menu .menu-item--user-login a > i {
    display: none !important;
}

/* "Dodaj Atrakciju" CTA button */
.header-navbar__menu .menu-item.gumb-dodaj-atrakciju > a {
    background-color: var(--sr-yellow) !important;
    color: #000000 !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    margin-left: 8px;
    font-family: var(--sr-font-body) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease !important;
}

.header-navbar__menu .menu-item.gumb-dodaj-atrakciju > a:hover {
    background-color: var(--sr-yellow-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.header-navbar__menu .menu-item.gumb-dodaj-atrakciju > a::after {
    display: none !important;
}

/* Active menu item */
.header-navbar__menu .current-menu-item > a {
    background-color: var(--sr-teal) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 8px 20px !important;
}

.header-navbar__menu .current-menu-item > a::after {
    display: none !important;
}

/* User account menu — improved look */
.header-navbar__menu .menu-item--user-account > a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--sr-text) !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    border: 1px solid var(--sr-border) !important;
    background: var(--sr-bg-white) !important;
    transition: all 0.2s ease !important;
    margin-left: 8px !important;
}

.header-navbar__menu .menu-item--user-account > a:hover {
    border-color: var(--sr-teal) !important;
    color: var(--sr-teal) !important;
}

.header-navbar__menu .menu-item--user-account > a > i {
    font-size: 14px !important;
    color: var(--sr-teal) !important;
}

/* Account dropdown */
.header-navbar__menu .menu-item--user-account .sub-menu {
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid var(--sr-border) !important;
    overflow: hidden !important;
    padding: 8px 0 !important;
    min-width: 200px !important;
}

.header-navbar__menu .menu-item--user-account .sub-menu .menu-item a {
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    color: var(--sr-text) !important;
    transition: all 0.2s ease !important;
}

.header-navbar__menu .menu-item--user-account .sub-menu .menu-item a:hover {
    background: var(--sr-teal-light) !important;
    color: var(--sr-teal) !important;
}

/* Style the DEFAULT HivePress submit button as yellow CTA */
button.hp-menu__item--listing-submit,
.hp-menu__item--listing-submit,
.header-navbar__menu button.hp-menu__item--listing-submit,
.hp-menu--site-header button.hp-menu__item--listing-submit {
    background-color: var(--sr-yellow) !important;
    background-image: none !important;
    color: #000000 !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    margin-left: 8px !important;
    font-family: var(--sr-font-body) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

button.hp-menu__item--listing-submit:hover,
.hp-menu__item--listing-submit:hover {
    background-color: var(--sr-yellow-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* Also target if it's rendered as a link */
.hp-menu__item--listing-submit a {
    background-color: var(--sr-yellow) !important;
    background-image: none !important;
    color: #000000 !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-family: var(--sr-font-body) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border: none !important;
    text-decoration: none !important;
}

/* Hide the CUSTOM "Dodaj Atrakciju" menu item (HivePress button replaces it) */
.header-navbar__menu .menu-item.gumb-dodaj-atrakciju {
    display: none !important;
}

.hp-menu__item--request-submit {
    display: none !important;
}

/* Region placeholder (if used) */
.header-navbar__menu .menu-item.odabir-regije {
    margin-left: 12px;
}

.header-navbar__menu .menu-item.odabir-regije > a::before {
    content: "🇭🇷";
    font-size: 16px;
    margin-right: 6px;
}

/* General polish */
.header-navbar__menu a {
    text-decoration: none !important;
}


/* ==========================================================================
   3. HOMEPAGE — Hero Section (Full-Width, Full-Viewport)
   ========================================================================== */
.sr-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
}

.sr-hero__card {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    box-shadow: none;
}

.sr-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.sr-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(29, 27, 32, 0.70) 0%,
        rgba(29, 27, 32, 0.40) 45%,
        rgba(29, 27, 32, 0.15) 100%);
    z-index: 1;
}

.sr-hero__content {
    position: relative;
    z-index: 2;
    padding: 80px 60px;
    max-width: 700px;
    width: 100%;
    margin-left: max(24px, calc((100vw - 1200px) / 2));
}

.sr-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 18px;
    border-radius: var(--sr-radius-pill);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.sr-hero__badge-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: sr-pulse 2s ease-in-out infinite;
}

.sr-hero__title {
    font-family: var(--sr-font-heading);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}

.sr-hero__title .sr-highlight {
    color: var(--sr-yellow);
}

.sr-hero__subtitle {
    font-size: 21px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 520px;
}

/* Search form inside hero */
.sr-hero__search {
    background: #fff;
    border-radius: var(--sr-radius-lg);
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-width: 600px;
}

/* The form itself — horizontal layout */
.sr-hero__search form.hp-form--listing-search {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    gap: 0 !important;
    margin: 0 !important;
}

/* Fields container — take remaining space */
.sr-hero__search .hp-form__fields {
    flex: 1 !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Individual field */
.sr-hero__search .hp-form__field {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Input styling */
.sr-hero__search .hp-form__field input[type="search"],
.sr-hero__search .hp-form__field input[type="text"] {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-family: var(--sr-font-body) !important;
    font-size: 16px !important;
    color: var(--sr-text) !important;
    padding: 12px 16px !important;
    height: auto !important;
    line-height: 1.5 !important;
    width: 100% !important;
}

.sr-hero__search .hp-form__field input::placeholder {
    color: var(--sr-text-muted) !important;
}

/* Search button */
.sr-hero__search button.hp-form__button,
.sr-hero__search button[type="submit"] {
    background-color: var(--sr-teal) !important;
    background-image: none !important;
    color: #fff !important;
    border-radius: 14px !important;
    padding: 12px 28px !important;
    font-family: var(--sr-font-body) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    height: auto !important;
    line-height: 1.5 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.sr-hero__search button.hp-form__button:hover,
.sr-hero__search button[type="submit"]:hover {
    background-color: var(--sr-teal-dark) !important;
}

/* Mobile — stack vertically */
@media (max-width: 768px) {
    .sr-hero__search {
        max-width: 100% !important;
    }

    .sr-hero__search form.hp-form--listing-search {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .sr-hero__search .hp-form__fields {
        flex-direction: column !important;
        width: 100% !important;
    }

    .sr-hero__search .hp-form__field {
        width: 100% !important;
        border: none !important;
    }

    .sr-hero__search .hp-form__field input[type="search"],
    .sr-hero__search .hp-form__field input[type="text"] {
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 16px !important;
        border-bottom: 1px solid #eee !important;
    }

    .sr-hero__search button.hp-form__button,
    .sr-hero__search button[type="submit"] {
        width: 100% !important;
        margin-top: 8px !important;
        padding: 14px 28px !important;
        flex-shrink: 0 !important;
    }
}

/* Trust stats strip */
.sr-hero__trust {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 600;
}

.sr-hero__trust strong {
    color: var(--sr-yellow);
    font-weight: 800;
    font-size: 17px;
}

@media (max-width: 768px) {
    .sr-hero__card { min-height: 75vh; align-items: flex-end; }
    .sr-hero__content { padding: 40px 24px; margin-left: 0; max-width: 100%; }
    .sr-hero__trust { flex-direction: column; align-items: flex-start; gap: 8px; }

    .sr-hero__search .hp-form--listing-search .hp-form__field:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(7, 36, 86, 0.075);
    }
}


/* ==========================================================================
   4. HOMEPAGE — Category Grid
   ========================================================================== */
.sr-categories {
    padding: 80px 0 60px;
}

.sr-categories__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.sr-category-card {
    background: var(--sr-bg-white);
    border-radius: var(--sr-radius-lg);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    color: var(--sr-text);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.sr-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    border-color: var(--sr-teal);
    color: var(--sr-text);
}

.sr-category-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    transition: transform 0.3s ease;
}

.sr-category-card:hover .sr-category-card__icon {
    transform: scale(1.1);
}

.sr-category-card__name {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: var(--sr-text);
}

.sr-category-card__count {
    font-size: 13px;
    color: var(--sr-text-light);
    margin-top: 6px;
}

/* Icon background colors */
.sr-cat--parks .sr-category-card__icon    { background: #e8f5e9; }
.sr-cat--food .sr-category-card__icon     { background: #fff3e0; }
.sr-cat--indoor .sr-category-card__icon   { background: #fff8e1; }
.sr-cat--museum .sr-category-card__icon   { background: #e8eaf6; }
.sr-cat--zoo .sr-category-card__icon      { background: #f9fbe7; }
.sr-cat--nature .sr-category-card__icon   { background: #f1f8e9; }
.sr-cat--adventure .sr-category-card__icon{ background: #fbe9e7; }
.sr-cat--aqua .sr-category-card__icon     { background: #e0f7fa; }
.sr-cat--theater .sr-category-card__icon  { background: #f3e5f5; }
.sr-cat--events .sr-category-card__icon   { background: #fce4ec; }

@media (max-width: 1024px) {
    .sr-categories__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .sr-categories { padding: 60px 0 40px; }
    .sr-categories__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sr-category-card { padding: 24px 14px; }
    .sr-category-card__icon { width: 68px; height: 68px; font-size: 32px; }
}


/* ==========================================================================
   5. HOMEPAGE — Popular Listings Section
   ========================================================================== */
.sr-popular {
    padding: 60px 0 80px;
}


/* ==========================================================================
   6. HOMEPAGE — Region Explorer
   ========================================================================== */
.sr-regions {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--sr-bg) 0%, var(--sr-bg-cream) 100%);
}

.sr-regions__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sr-region-card {
    position: relative;
    height: 200px;
    border-radius: var(--sr-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    display: block;
    text-decoration: none;
}

.sr-region-card--large {
    grid-column: span 2;
    grid-row: span 2;
    height: 100%;
}

.sr-region-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sr-shadow-lg);
}

.sr-region-card__bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.sr-region-card:hover .sr-region-card__bg {
    transform: scale(1.08);
}

.sr-region-card__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
}

.sr-region-card__content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px;
    color: #fff;
    z-index: 2;
}

.sr-region-card__name {
    font-family: var(--sr-font-heading);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.sr-region-card--large .sr-region-card__name { font-size: 28px; }

.sr-region-card__count {
    font-size: 15px;
    opacity: 0.85;
    font-weight: 600;
}

.sr-region-card__flag {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

@media (max-width: 1024px) {
    .sr-regions__grid { grid-template-columns: repeat(2, 1fr); }
    .sr-region-card--large { grid-column: span 2; grid-row: span 1; height: 260px; }
}

@media (max-width: 768px) {
    .sr-regions { padding: 60px 0; }
    .sr-regions__grid { grid-template-columns: 1fr; }
    .sr-region-card--large { grid-column: span 1; height: 220px; }
}


/* ==========================================================================
   7. HOMEPAGE — Stats / Social Proof
   ========================================================================== */
.sr-stats {
    padding: 70px 0;
    background: var(--sr-dark);
    position: relative;
    overflow: hidden;
}

.sr-stats::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--sr-teal-rgb), 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.sr-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.sr-stats__grid--three {
    grid-template-columns: repeat(3, 1fr);
}

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

.sr-stat__icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.sr-stat__number {
    font-family: var(--sr-font-heading);
    font-size: clamp(40px, 4vw, 54px);
    font-weight: 800;
    color: var(--sr-yellow);
    line-height: 1;
    margin-bottom: 8px;
}

.sr-stat__label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

@media (max-width: 768px) {
    .sr-stats { padding: 50px 0; }
    .sr-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}


/* ==========================================================================
   8. HOMEPAGE — How It Works
   ========================================================================== */
.sr-how {
    padding: 80px 0;
    background: var(--sr-teal-light);
}

.sr-how__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.sr-how__grid::before {
    content: '';
    position: absolute;
    top: 52px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: repeating-linear-gradient(90deg,
        var(--sr-teal) 0px, var(--sr-teal) 8px,
        transparent 8px, transparent 16px);
    opacity: 0.3;
    z-index: 0;
}

.sr-how__step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.sr-how__number {
    width: 56px;
    height: 56px;
    background: var(--sr-teal);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sr-font-heading);
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(var(--sr-teal-rgb), 0.3);
    position: relative;
}

.sr-how__number::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(var(--sr-teal-rgb), 0.3);
}

.sr-how__icon { font-size: 36px; margin-bottom: 16px; }

.sr-how__title {
    font-family: var(--sr-font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--sr-dark);
    margin-bottom: 10px;
}

.sr-how__desc {
    font-size: 16px;
    color: var(--sr-text-light);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .sr-how { padding: 60px 0; }
    .sr-how__grid { grid-template-columns: 1fr; gap: 40px; }
    .sr-how__grid::before { display: none; }
}


/* ==========================================================================
   9. HOMEPAGE — Blog Section
   ========================================================================== */
.sr-blog {
    padding: 80px 0;
    background: var(--sr-bg-white);
}

.sr-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sr-blog-card {
    background: var(--sr-bg);
    border-radius: var(--sr-radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.sr-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sr-shadow-lg);
}

.sr-blog-card__image-link { display: block; text-decoration: none; }

.sr-blog-card__image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.sr-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sr-blog-card:hover .sr-blog-card__image img {
    transform: scale(1.06);
}

.sr-blog-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, var(--sr-teal-light), #ddd);
}

.sr-blog-card__tags {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sr-blog-card__tag {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    padding: 4px 10px;
    border-radius: var(--sr-radius-pill);
    font-size: 11px;
    font-weight: 700;
    color: var(--sr-teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sr-blog-card__body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sr-blog-card__date {
    font-size: 13px;
    color: var(--sr-text-light);
    font-weight: 600;
    margin-bottom: 8px;
}

.sr-blog-card__title {
    font-family: var(--sr-font-heading);
    font-size: 19px;
    font-weight: 800;
    color: var(--sr-dark);
    line-height: 1.3;
    margin-bottom: 10px;
}

.sr-blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.sr-blog-card__title a:hover { color: var(--sr-teal); }

.sr-blog-card__excerpt {
    font-size: 15px;
    color: var(--sr-text-light);
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sr-blog-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--sr-teal);
    margin-top: 16px;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.sr-blog-card__read-more:hover {
    gap: 10px;
    color: var(--sr-teal-dark);
}

@media (max-width: 768px) {
    .sr-blog { padding: 60px 0; }
    .sr-blog__grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   10. HOMEPAGE — Newsletter CTA
   ========================================================================== */
.sr-newsletter {
    padding: 80px 0;
}

.sr-newsletter__card {
    background: linear-gradient(135deg, var(--sr-yellow) 0%, var(--sr-orange) 100%);
    border-radius: var(--sr-radius-xl);
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(var(--sr-orange-rgb), 0.25);
}

.sr-newsletter__card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -50px;
}

.sr-newsletter__content,
.sr-newsletter__form {
    flex: 1;
    position: relative;
    z-index: 1;
}

.sr-newsletter__emoji {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.sr-newsletter__icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.sr-newsletter__title {
    font-family: var(--sr-font-heading);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--sr-dark);
    margin-bottom: 10px;
}

.sr-newsletter__desc {
    font-size: 17px;
    color: rgba(0, 0, 0, 0.65);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Style FluentForms inside newsletter — clean stacked layout */
/* Hide ALL labels */
.sr-newsletter__form label,
.sr-newsletter__form .ff-el-input--label {
    display: none !important;
}

/* Remove all margins from form groups */
.sr-newsletter__form .ff-el-group {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Email input — large, bright, prominent */
.sr-newsletter__form input[type="email"],
.sr-newsletter__form input[type="text"],
.sr-newsletter__form .ff-el-form-control {
    border-radius: 16px !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    padding: 20px 24px !important;
    font-size: 18px !important;
    font-family: var(--sr-font-body) !important;
    background: #fff !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 12px !important;
}

.sr-newsletter__form input::placeholder {
    color: #999 !important;
    font-size: 17px !important;
}

.sr-newsletter__form input:focus {
    border-color: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3) !important;
}

/* Submit button — full width, matching input width */
.sr-newsletter__form button[type="submit"],
.sr-newsletter__form .ff-btn-submit,
.sr-newsletter__form input[type="submit"] {
    background: var(--sr-dark) !important;
    color: #fff !important;
    border-radius: 16px !important;
    padding: 16px 32px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    font-family: var(--sr-font-body) !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    height: auto !important;
    line-height: 1.5 !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.sr-newsletter__form button[type="submit"]:hover,
.sr-newsletter__form .ff-btn-submit:hover {
    background: #2d2a33 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Hide extra FluentForms elements */
.sr-newsletter__form .ff-el-progress-status,
.sr-newsletter__form .ff_upload_btn,
.sr-newsletter__form .ff-el-tooltip,
.sr-newsletter__form .ff-message-success {
    display: none !important;
}

/* Footer wrapper — remove extra spacing */
.sr-newsletter__form .ff-btn-group,
.sr-newsletter__form .ff_submit_btn_wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 1024px) {
    .sr-newsletter__card { flex-direction: column; gap: 32px; padding: 40px; }
}

@media (max-width: 768px) {
    .sr-newsletter { padding: 60px 0; }
    .sr-newsletter__card { padding: 32px 24px; }
}


/* ==========================================================================
   11. SHARED — Section Layout Components
   ========================================================================== */
.sr-container {
    max-width: var(--sr-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.sr-section-header { margin-bottom: 48px; }
.sr-section-header--center { text-align: center; }

.sr-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sr-teal);
    margin-bottom: 12px;
}

.sr-section-title {
    font-family: var(--sr-font-heading);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--sr-dark);
    line-height: 1.2;
    margin-bottom: 8px;
}

.sr-section-subtitle {
    font-size: 18px;
    color: var(--sr-text-light);
    margin-top: 10px;
    max-width: 520px;
}

.sr-section-header--center .sr-section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.sr-section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 24px;
}

@media (max-width: 768px) {
    .sr-section-header-row { flex-direction: column; align-items: flex-start; }
}

/* Buttons */
.sr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--sr-font-body);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    padding: 12px 24px;
    border-radius: var(--sr-radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.sr-btn--outline {
    background: transparent;
    color: var(--sr-teal);
    border-color: var(--sr-teal);
}

.sr-btn--outline:hover {
    background: var(--sr-teal);
    color: #fff;
    transform: translateY(-2px);
}

/* Section footer with centered button */
.sr-section-footer {
    text-align: center;
    margin-top: 32px;
}


/* ==========================================================================
   12. CUSTOM FOOTER — Matches ListingHive's markup structure
   ==========================================================================
   ListingHive footer has: .site-footer > .container > .footer-widgets + .footer-navbar
   Our footer.php replaces this entirely with .sr-footer
   ========================================================================== */
.sr-footer {
    background-color: var(--sr-dark);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--sr-font-body);
    padding: 64px 0 24px;
    font-size: 14px;
    line-height: 1.6;
    border-top: 4px solid var(--sr-orange);
}

.sr-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.sr-footer__brand {
    font-family: var(--sr-font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    display: inline-block;
    margin-bottom: 14px;
    text-decoration: none;
}

.sr-footer__brand span { color: var(--sr-orange); }

.sr-footer__desc {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.sr-footer h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.sr-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sr-footer__links li { margin-bottom: 12px; }

.sr-footer__links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.sr-footer__links a:hover {
    color: var(--sr-orange);
    transform: translateX(4px);
}

.sr-footer__links a.sr-footer__cta {
    color: var(--sr-yellow) !important;
    font-weight: 700;
}

.sr-footer__socials { display: flex; gap: 12px; }

.sr-footer__social {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sr-footer__social svg { fill: currentColor; }

.sr-footer__social:hover {
    background: var(--sr-orange);
    transform: translateY(-3px);
}

.sr-footer__bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 992px) {
    .sr-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .sr-footer__grid { grid-template-columns: 1fr; text-align: center; }
    .sr-footer__socials { justify-content: center; }
}


/* ==========================================================================
   13. ANIMATIONS
   ========================================================================== */
@keyframes sr-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes sr-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.sr-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.sr-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .sr-reveal { opacity: 1; transform: none; transition: none; }
    .sr-hero__badge-dot { animation: none; }
}


/* ==========================================================================
   14. HOMEPAGE-ONLY — Hide ListingHive's default page content & fix spacing
   ==========================================================================
   front-page.php does NOT call the_content(), so old Kadence blocks
   won't render. But ListingHive's header-hero area might still show.
   Also remove the gap between header and hero.
   ========================================================================== */
body.home .header-hero,
body.home .header-hero-section {
    display: none !important;
}

/* Remove the gap between header and hero */
body.home .site-container > .sr-homepage {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Kill all spacing on the empty .site-content wrappers we open/close */
body.home .site-content {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

body.home .site-content > .container {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

/* The hero itself needs to sit directly under the header with no gap */
.sr-hero {
    margin-top: 0 !important;
}

/* Ensure .sr-homepage sits flush — no inherited padding from ListingHive */
.sr-homepage {
    padding: 0 !important;
    margin: 0 !important;
}
