/* ==========================================================================
   Flavor Theme - Diverse Dogs
   Colors: Primary #FEBD11, Dark #141b2d, Text #323334, Muted #666666
   Fonts: Poppins (headings/buttons), Jost (body)
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--flavor-dark);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--flavor-dark);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

a { color: var(--flavor-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #004E7B; }

img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--flavor-primary);
    color: var(--flavor-text);
    border: 3px solid var(--flavor-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.btn-primary:hover {
    background: var(--flavor-dark);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: var(--flavor-primary);
    border: 2px solid var(--flavor-primary);
}

.btn-outline:hover {
    background: var(--flavor-primary);
    color: var(--flavor-text);
}

.btn-dark {
    background: var(--flavor-dark);
    color: #ffffff;
}

.btn-dark:hover {
    background: #004E7B;
    color: #ffffff;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--flavor-light-bg);
    padding: 6px 0;
    text-align: center;
}

.top-bar-text {
    color: var(--flavor-dark);
    font-size: 14px;
    font-weight: 500;
}

/* --- Header --- */
.site-header {
    background: var(--flavor-dark);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: padding 0.3s;
}

.site-header.scrolled {
    padding: 8px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo img {
    max-height: 60px;
    width: auto;
    transition: max-height 0.3s;
}

.site-header.scrolled .site-logo img {
    max-height: 45px;
}

.site-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #ffffff;
}

/* Navigation */
.main-nav { flex: 1; }

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 5px;
}

.nav-menu li a {
    display: block;
    padding: 8px 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    transition: color 0.2s;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: var(--flavor-primary);
}

/* Dropdown sub-menus */
.nav-menu li {
    position: relative;
}

.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e2942;
    min-width: 240px;
    list-style: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 5px 5px;
    padding: 8px 0;
    z-index: 100;
}

.nav-menu li:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu li a {
    padding: 10px 20px;
    font-size: 15px;
    white-space: nowrap;
    border-bottom: none;
}

.nav-menu .sub-menu li a:hover {
    background: #2a3654;
    color: var(--flavor-primary);
}

.header-actions {
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
}

/* --- Flavor Content Elements --- */
.flavor-content {
    /* Base wrapper for page builder content */
}

.flavor-section {
    width: 100%;
    background-size: cover;
    background-position: center;
}

/* --- Section Style Presets --- */
.flavor-section-dark {
    background-color: var(--flavor-dark);
    --section-heading: #ffffff;
    --section-text: #cccccc;
    --section-accent: var(--flavor-primary);
}

.flavor-section-light {
    background-color: var(--flavor-light-bg);
    --section-heading: var(--flavor-dark);
    --section-text: var(--flavor-dark);
    --section-accent: var(--flavor-dark);
}

.flavor-section-white {
    background-color: #ffffff;
    --section-heading: var(--flavor-dark);
    --section-text: var(--flavor-dark);
    --section-accent: var(--flavor-dark);
}

.flavor-section-gold {
    background-color: var(--flavor-primary);
    --section-heading: var(--flavor-dark);
    --section-text: var(--flavor-dark);
    --section-accent: var(--flavor-dark);
}

.flavor-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flavor-columns {
    display: flex;
    flex-wrap: wrap;
}

.flavor-column {
    min-width: 0;
}

.flavor-heading {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 15px;
    color: var(--section-heading, var(--flavor-text));
}

.flavor-text {
    color: var(--section-text, var(--flavor-muted));
}

.flavor-text {
    font-family: 'Jost', sans-serif;
    line-height: 1.7;
    margin-bottom: 15px;
}

.flavor-text p {
    margin-bottom: 12px;
}

.flavor-text p:last-child {
    margin-bottom: 0;
}

.flavor-text blockquote {
    font-size: 24px;
    font-style: italic;
    line-height: 1.7;
    position: relative;
    padding: 0 50px;
    margin: 10px 0;
    border: none;
    background: none;
}

.flavor-text blockquote::before {
    content: '\201C';
    font-size: 80px;
    position: absolute;
    left: 0;
    top: -15px;
    color: var(--flavor-primary);
    font-family: Georgia, serif;
    line-height: 1;
}

.flavor-text blockquote::after {
    content: '\201D';
    font-size: 80px;
    position: absolute;
    right: 0;
    bottom: -30px;
    color: var(--flavor-primary);
    font-family: Georgia, serif;
    line-height: 1;
}

.flavor-image {
    margin-bottom: 15px;
}

.flavor-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.flavor-button-wrapper {
    margin-bottom: 15px;
}

.flavor-button {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1;
}

/* --- Button Style Presets --- */
.flavor-button-gold {
    background: var(--flavor-primary);
    color: var(--flavor-dark);
    border: 3px solid var(--flavor-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.flavor-button-gold:hover {
    background: var(--flavor-dark);
    color: var(--flavor-primary);
    border-color: var(--section-accent, var(--flavor-primary));
}

.flavor-button-dark {
    background: var(--flavor-dark);
    color: #ffffff;
    border: 3px solid var(--flavor-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.flavor-button-dark:hover {
    background: var(--flavor-primary);
    color: var(--flavor-dark);
    border-color: var(--section-accent, var(--flavor-primary));
}

.flavor-icon-box {
    padding: 20px;
    margin-bottom: 15px;
}

.flavor-icon-box i {
    color: var(--section-accent, var(--flavor-primary));
}

.flavor-icon-box-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--section-heading, var(--flavor-text));
}

.flavor-icon-box-text {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--section-text, var(--flavor-muted));
}

.flavor-icon-box-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.flavor-icon-box-image img,
.flavor-icon-box-image video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.flavor-icon-box-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--flavor-dark);
    border: 3px solid var(--flavor-dark);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--flavor-white);
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.flavor-icon-box-link:hover {
    background: var(--flavor-primary);
    color: var(--flavor-dark);
}

/* --- Section Background Video --- */
.flavor-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    object-position: center 15%;
}

/* --- Section Overlay --- */
.flavor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* --- Page Hero Banner --- */
.page-hero {
    background: var(--flavor-dark);
    padding: 50px 0;
    text-align: center;
}

.page-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
}

.page-hero-meta {
    color: #cccccc;
    font-size: 15px;
    margin-top: 10px;
}

.page-hero-meta i {
    margin-right: 5px;
    color: var(--flavor-primary);
}

/* --- Blog Archive --- */
.blog-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.blog-card {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.blog-card:first-child {
    padding-top: 0;
}

.blog-card:last-child {
    border-bottom: none;
}

.blog-card-image {
    flex: 0 0 40%;
    max-width: 40%;
    border-radius: 8px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.blog-card-image:hover img {
    transform: scale(1.03);
}

.blog-card-content {
    flex: 1;
}

.blog-card-title {
    font-size: 22px;
    margin-bottom: 8px;
}

.blog-card-title a {
    color: var(--flavor-text);
}

.blog-card-title a:hover {
    color: var(--flavor-primary);
}

.blog-card-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 12px;
}

.blog-card-meta i {
    margin-right: 5px;
    color: var(--flavor-primary);
}

.blog-card-excerpt {
    color: var(--flavor-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.blog-card-excerpt p {
    margin: 0;
}

.blog-read-more {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--flavor-primary);
}

.blog-read-more:hover {
    color: #004E7B;
}

.blog-read-more i {
    margin-left: 5px;
    font-size: 12px;
}

.blog-pagination {
    text-align: center;
    padding-top: 30px;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--flavor-text);
    background: #f5f5f5;
    transition: all 0.2s;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--flavor-primary);
    color: var(--flavor-text);
}

.no-posts {
    text-align: center;
    padding: 60px 0;
    color: #666;
    font-size: 18px;
}

/* --- Single Post --- */
.single-featured-image {
    margin-bottom: 0;
}

.single-featured-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.single-post-content {
    max-width: 800px;
    padding-top: 40px;
    padding-bottom: 60px;
}

.single-post-content p {
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}

.single-post-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.single-post-content h3 {
    margin-top: 25px;
    margin-bottom: 12px;
}

.single-post-content img {
    border-radius: 8px;
    margin: 20px 0;
}

.single-post-content blockquote {
    border-left: 4px solid var(--flavor-primary);
    padding: 15px 25px;
    margin: 25px 0;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 30px 0 60px;
    border-top: 1px solid #eee;
}

.post-navigation a {
    color: var(--flavor-text);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.post-navigation a:hover {
    color: var(--flavor-primary);
}

.post-navigation i {
    color: var(--flavor-primary);
}

/* --- Footer --- */
.site-footer {
    background: var(--flavor-dark);
    color: #ffffff;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    padding: 50px 20px;
}

.footer-contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.footer-contact-row .footer-contact-item {
    margin-bottom: 0;
}

.footer-cta {
    text-align: center;
    margin-top: 15px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
}

.footer-logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--flavor-primary);
    display: block;
    margin-bottom: 10px;
}

.footer-about {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    color: var(--flavor-primary);
    font-size: 20px;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: #ffffff;
}

.footer-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--flavor-primary);
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--flavor-primary);
    margin-right: 8px;
    font-size: 12px;
}

.footer-links a {
    color: #ffffff;
    font-size: 16px;
}

.footer-links a:hover {
    color: var(--flavor-primary);
}

.footer-contact-item {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.8;
}

.footer-contact-item strong {
    color: var(--flavor-primary);
}

.footer-contact-item a {
    color: #ffffff;
}

.footer-contact-item a:hover {
    color: var(--flavor-primary);
}

.footer-bottom {
    border-top: 1px solid var(--flavor-text);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--flavor-muted);
    font-size: 14px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    h4 { font-size: 18px; }

    .flavor-columns {
        flex-direction: column;
        gap: 20px !important;
    }

    .flavor-column {
        flex: 1 1 100% !important;
        margin-bottom: 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 30px; }
    h2 { font-size: 24px; }
    h5 { font-size: 16px; }

    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.open {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        padding: 15px 0;
        gap: 0;
    }

    .nav-menu li a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        min-width: 0;
        background: transparent;
    }

    .nav-menu .sub-menu li a {
        padding: 10px 0 10px 20px;
        font-size: 15px;
        white-space: normal;
    }

    .header-actions {
        display: none;
    }

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

    /* Hide background video on mobile — saves bandwidth, shows bg color fallback */
    .flavor-bg-video {
        display: none;
    }

    /* Cap section vertical padding on mobile */
    .flavor-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Reduce blockquote size on mobile */
    .flavor-text blockquote {
        font-size: 18px;
        padding: 0 30px;
    }

    .flavor-text blockquote::before,
    .flavor-text blockquote::after {
        font-size: 50px;
    }

    /* Reduce icon-box media height on mobile */
    .flavor-icon-box-image img,
    .flavor-icon-box-image video {
        height: 180px;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-card-image {
        flex: none;
        max-width: 100%;
    }

    .blog-card-image img {
        height: 200px;
    }

    .page-hero-title {
        font-size: 30px;
    }
}

/* --- WordPress Core Styles --- */
.wp-admin-bar-fix {
    margin-top: 32px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}
