/*
Theme Name: Sub Vibes
Theme URI: 
Author:  WebForce
Author URI:  
Description: A simple, clean WordPress theme for Quebec Vibes — culture, hockey, community and local stories from Quebec. Built with a single design, French-first, and a static homepage template.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sub-vibes
Tags: blog, news, one-column, two-columns, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   1. Root variables / Reset
   ========================================================= */
:root {
    --quebec-blue: #003AA7;
    --quebec-blue-dark: #002B7A;
    --quebec-blue-deep: #001F5C;
    --quebec-blue-soft: #EAF1FF;
    --ice-bg: #F2F6FC;
    --white: #FFFFFF;
    --text-dark: #0B1F3A;
    --text-muted: #5F6F89;
    --border: #DCE6F5;
    --shadow: 0 14px 34px rgba(11, 31, 58, 0.10);
    --radius-lg: 24px;
    --radius-md: 16px;
    --container: 1180px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--ice-bg);
    color: var(--text-dark);
    line-height: 1.65;
    overflow-x: hidden;
    width: 100%;
    display: block !important;
}

/* Force all top-level sections to behave as block, full-width, no inherited rounding */
body > .site-top,
body > .header,
body > .hero,
body > .quick-links,
body > .section,
body > .page-header,
body > .single-hero,
body > .main-content,
body > .footer {
    display: block;
    width: 100%;
    max-width: 100%;
    clear: both;
    border-radius: 0 !important;
    float: none !important;
    position: relative;
}

/* Prevent any plugin/builder from imposing rounded shapes on our section containers */
.site-top,
.header,
.page-header,
.single-hero,
.main-content,
.footer,
.section,
.quick-links,
.hero {
    border-radius: 0 !important;
}

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

a { color: inherit; }

p { margin: 0 0 1em; }

/* =========================================================
   2. Layout helpers
   ========================================================= */
.container {
    width: 100%;
    max-width: var(--container);
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0;
}

/* =========================================================
   3. Top strip
   ========================================================= */
.site-top {
    background: var(--text-dark);
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    padding: 8px 0;
}
.site-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.site-top strong { color: var(--white); }

/* =========================================================
   4. Header / Navigation
   ========================================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    box-shadow: 0 2px 18px rgba(11,31,58,0.08);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}
.brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--quebec-blue);
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 31px;
    font-weight: 900;
    box-shadow: 0 9px 22px rgba(0,58,167,0.28);
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.brand-text strong {
    color: var(--quebec-blue-dark);
    font-size: 26px;
    letter-spacing: -0.5px;
}
.brand-text span {
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 26px;
}
.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 15px;
    position: relative;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--quebec-blue);
    transition: width 0.25s ease;
}
.nav a:hover::after { width: 100%; }

.nav-cta a,
.nav .nav-cta > a {
    background: var(--quebec-blue);
    color: var(--white) !important;
    padding: 11px 17px;
    border-radius: 999px;
    box-shadow: 0 9px 20px rgba(0,58,167,0.20);
}
.nav-cta a::after { display: none; }

/* Hamburger */
.hamburger {
    display: none;
    background: transparent;
    border: 0;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--quebec-blue-dark);
    border-radius: 2px;
}

/* =========================================================
   5. Hero (homepage static)
   ========================================================= */
.hero {
    position: relative;
    min-height: 610px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0,31,92,0.94) 0%, rgba(0,58,167,0.76) 46%, rgba(0,58,167,0.28) 100%),
        url('assets/hero.jpg') center/cover no-repeat;
    color: var(--white);
}
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    background: rgba(255,255,255,0.88);
    pointer-events: none;
}
.hero::before {
    width: 100%;
    height: 26px;
    left: 0;
    top: 50%;
    opacity: 0.42;
}
.hero::after {
    width: 26px;
    height: 100%;
    top: 0;
    left: 50%;
    opacity: 0.42;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 78px 0;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}
.eyebrow span { font-size: 18px; line-height: 1; }
.hero h1 {
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    margin: 22px 0 20px;
    letter-spacing: -2.4px;
}
.hero p {
    font-size: 21px;
    max-width: 650px;
    margin: 0 0 34px;
    color: rgba(255,255,255,0.92);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--white);
    color: var(--quebec-blue-dark);
    box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}
.btn-outline {
    color: var(--white);
    border-color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.05);
}

.hero-card {
    position: absolute;
    right: max(30px, calc((100vw - var(--container)) / 2));
    bottom: 44px;
    z-index: 3;
    width: 340px;
    background: rgba(255,255,255,0.94);
    color: var(--text-dark);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
    border-top: 7px solid var(--quebec-blue);
}
.hero-card strong {
    color: var(--quebec-blue-dark);
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
}
.hero-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 15px;
}

/* =========================================================
   6. Quick links (homepage second section)
   ========================================================= */
.quick-links {
    margin-top: -46px;
    position: relative;
    z-index: 4;
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.quick-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-decoration: none;
    min-height: 172px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.quick-card:hover {
    transform: translateY(-5px);
    border-color: var(--quebec-blue);
}
.quick-card.featured {
    background: var(--quebec-blue-dark);
    color: var(--white);
    border-color: var(--quebec-blue-dark);
}
.quick-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--quebec-blue-soft);
    color: var(--quebec-blue);
    display: grid;
    place-items: center;
    font-size: 29px;
    margin-bottom: 18px;
}
.quick-card.featured .quick-icon {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}
.quick-card h3 { margin: 0 0 6px; font-size: 20px; }
.quick-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}
.quick-card.featured p { color: rgba(255,255,255,0.78); }

/* =========================================================
   7. Generic section
   ========================================================= */
.section { padding: 86px 0; }
.section-white { background: var(--white); }
.section-blue {
    background:
        linear-gradient(rgba(0,58,167,0.93), rgba(0,43,122,0.94)),
        url('assets/hero.jpg') center/cover fixed no-repeat;
    color: var(--white);
}
.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 42px;
}
.section-kicker {
    color: var(--quebec-blue);
    font-weight: 900;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 8px;
}
.section-blue .section-kicker { color: rgba(255,255,255,0.84); }
.section-title {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -1px;
}
.section-desc {
    margin: 15px auto 0;
    color: var(--text-muted);
    font-size: 18px;
}
.section-blue .section-desc { color: rgba(255,255,255,0.78); }

/* =========================================================
   8. Article grid (used on home latest posts + archive + search)
   ========================================================= */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.18s ease;
    display: flex;
    flex-direction: column;
}
.article-card:hover { transform: translateY(-5px); }
.article-image {
    height: 210px;
    background-color: var(--quebec-blue-soft);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.article-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,31,92,0.34), transparent 60%);
}
.article-body { padding: 24px; }
body .category {
    display: inline-flex;
    background: var(--quebec-blue-soft);
    color: var(--quebec-blue-dark);
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 13px;
    text-decoration: none;
}
.article-body h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
    color: var(--text-dark);
}
.article-body h3 a {
    color: inherit;
    text-decoration: none;
}
.article-body h3 a:hover { color: var(--quebec-blue); }
.article-body p {
    color: var(--text-muted);
    margin: 0 0 18px;
    font-size: 15px;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--quebec-blue);
    font-weight: 900;
    margin-top: auto;
}

/* =========================================================
   9. Page header (archive / page / single)
   ========================================================= */
.page-header {
    background: var(--quebec-blue-dark);
    color: var(--white);
    padding: 70px 0 60px;
    text-align: center;
}
.page-header h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: -1px;
    line-height: 1.05;
}
.page-header .crumbs,
.page-header .archive-description {
    margin: 0;
    color: rgba(255,255,255,0.78);
    font-size: 16px;
}

/* Single post hero (with optional featured image) */
.single-hero {
    position: relative;
    background: var(--quebec-blue-dark);
    color: var(--white);
    padding: 90px 0 70px;
    overflow: hidden;
}
.single-hero.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-image: var(--single-bg);
    opacity: 0.35;
    z-index: 0;
}
.single-hero .container { position: relative; z-index: 1; }
.single-hero .category { background: rgba(255,255,255,0.15); color: #fff; }
.single-hero h1 {
    margin: 12px 0 14px;
    font-size: clamp(30px, 4.5vw, 50px);
    line-height: 1.08;
    letter-spacing: -1px;
    max-width: 900px;
}
.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 700;
}
.single-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* =========================================================
   10. Content / Typography for posts & pages
   ========================================================= */
.main-content { padding: 70px 0; }
.entry-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 48px;
    max-width: 880px;
    margin: 0 auto;
}
.entry-content { font-size: 17px; color: var(--text-dark); }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--quebec-blue-dark);
    line-height: 1.2;
    margin: 1.6em 0 0.6em;
    letter-spacing: -0.5px;
}
.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 24px; }
.entry-content a {
    color: var(--quebec-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.entry-content img {
    border-radius: var(--radius-md);
    margin: 1.4em 0;
}
.entry-content blockquote {
    border-left: 4px solid var(--quebec-blue);
    background: var(--ice-bg);
    margin: 1.6em 0;
    padding: 18px 22px;
    border-radius: 8px;
    color: var(--text-dark);
    font-style: italic;
}
.entry-content ul,
.entry-content ol { padding-left: 22px; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 8px; }
.entry-content code {
    background: var(--ice-bg);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.9em;
}
.entry-content pre {
    background: var(--text-dark);
    color: #fff;
    padding: 18px;
    border-radius: var(--radius-md);
    overflow-x: auto;
}

/* =========================================================
   11. Pagination
   ========================================================= */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 50px 0 0;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--quebec-blue-dark);
    font-weight: 800;
    text-decoration: none;
    transition: all 0.18s ease;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--quebec-blue);
    color: var(--white);
    border-color: var(--quebec-blue);
}

/* =========================================================
   12. Search results
   ========================================================= */
.search-results-list { display: grid; gap: 20px; max-width: 880px; margin: 0 auto; }
.search-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.search-item h2 { margin: 0 0 8px; font-size: 22px; }
.search-item h2 a { color: var(--quebec-blue-dark); text-decoration: none; }
.search-item h2 a:hover { color: var(--quebec-blue); }
.search-item p { margin: 0; color: var(--text-muted); }

/* =========================================================
   13. Footer
   ========================================================= */
.footer {
    background: var(--quebec-blue-dark);
    color: var(--white);
    padding: 56px 0 22px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.9fr;
    gap: 30px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}
.footer h3,
.footer h4 { margin: 0 0 14px; }
.footer p,
.footer a {
    color: rgba(255,255,255,0.76);
    text-decoration: none;
    margin: 0 0 6px;
    font-size: 15px;
}
.footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 9px; }
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.footer-brand .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 27px;
    background: var(--white);
    color: var(--quebec-blue-dark);
    box-shadow: none;
}
.copyright {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 22px;
    color: rgba(255,255,255,0.62);
    font-size: 14px;
}

/* =========================================================
   14. Responsive
   ========================================================= */
@media (max-width: 980px) {
    .nav { display: none; }
    .nav.nav-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 12px 24px rgba(0,0,0,0.12);
        align-items: stretch;
    }
    .nav.nav-open ul {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .hamburger { display: inline-flex; }
    .hero { min-height: auto; }
    .hero-card {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(100% - 40px, 520px);
        margin: -40px auto 40px;
    }
    .quick-grid,
    .article-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .entry-wrap { padding: 30px; }
}

@media (max-width: 640px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .site-top .container,
    .copyright {
        flex-direction: column;
        align-items: flex-start;
    }
    .brand-text strong { font-size: 22px; }
    .hero-content { padding: 62px 0 88px; }
    .hero p { font-size: 18px; }
    .hero::before { height: 18px; }
    .hero::after { width: 18px; }
    .quick-grid,
    .article-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .entry-wrap { padding: 22px; }
    .section { padding: 60px 0; }
}