/* resource-buzz.ca — RapidWeaver "Future" theme recreation */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(138, 136, 140, 1.00);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 700;
    color: rgba(50, 51, 86, 1.00);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.navbar-brand:hover {
    color: rgba(50, 51, 86, 0.8);
}

.navbar-nav {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.navbar-nav > li {
    position: relative;
    padding: 0;
}

.navbar-nav > li > a {
    color: rgba(136, 150, 165, 1.00);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    display: block;
    transition: color 0.2s ease;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    color: rgba(167, 184, 204, 1.00);
}

/* Dropdown arrows on parent items */
.navbar-nav > li:has(> .sub-menu) > a {
    position: relative;
    padding-right: 20px;
}

.navbar-nav > li:has(> .sub-menu) > a::after {
    content: "\203A";
    display: inline-block;
    transform: rotate(90deg);
    font-size: 1.3em;
    line-height: 1;
    margin-left: 4px;
    vertical-align: middle;
}

/* Sub-menus */
.navbar-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 8px 0;
    min-width: 260px;
    list-style: none;
    z-index: 1001;
}

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

.navbar-nav .sub-menu li {
    padding: 0;
}

.navbar-nav .sub-menu a {
    display: block;
    padding: 8px 20px;
    color: rgba(136, 150, 165, 1.00);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease;
}

.navbar-nav .sub-menu a:hover {
    color: rgba(167, 184, 204, 1.00);
    background: rgba(50, 51, 86, 0.03);
}

/* Mobile nav toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(50, 51, 86, 1.00);
    margin: 5px 0;
    transition: 0.3s;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 60vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(50, 51, 86, 1.00);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    color: #fff;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0;
    letter-spacing: -0.5px;
}

.hero-title::after {
    display: none;
}

/* ============================================
   Content Section
   ============================================ */
.content-section {
    position: relative;
    padding: 80px 0 60px;
}

/* Diagonal skew decoration (before content) */
.content-section::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 120px;
    background: #fff;
    transform: skewY(-6deg);
    transform-origin: top left;
    z-index: 3;
}

/* When there's no hero (interior pages), remove the skew */
.no-hero .content-section::before {
    display: none;
}

.no-hero .content-section {
    padding-top: 100px;
}

/* ============================================
   Typography
   ============================================ */
p {
    margin: 0 0 1.2em 0;
    font-size: 17px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: rgba(50, 51, 86, 1.00);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    position: relative;
    padding-bottom: 20px;
}

h1::after, h2::after, h3::after, h4::after, h5::after, h6::after {
    content: "";
    display: block;
    width: 125px;
    height: 2px;
    background: rgba(254, 135, 155, 1.00);
    margin-top: 12px;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 26px;
}

h3 {
    font-size: 21px;
}

h4 {
    font-size: 18px;
}

h5, h6 {
    font-size: 17px;
}

/* Page title (used on interior pages) */
.page-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: rgba(50, 51, 86, 1.00);
    margin-top: 0;
    margin-bottom: 1.5em;
    padding-bottom: 25px;
}

.page-title::after {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Links
   ============================================ */
a {
    color: rgba(254, 135, 155, 1.00);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: rgba(203, 108, 124, 1.00);
}

main a {
    color: rgba(254, 135, 155, 1.00);
    text-decoration: underline;
    text-decoration-color: rgba(254, 135, 155, 0.4);
    text-underline-offset: 2px;
}

main a:hover {
    color: rgba(203, 108, 124, 1.00);
    text-decoration-color: rgba(203, 108, 124, 0.6);
}

/* ============================================
   Lists
   ============================================ */
ul, ol {
    margin: 0 0 1.2em 0;
    padding-left: 1.5em;
}

li {
    font-size: 17px;
    padding-bottom: 0.4em;
    line-height: 1.7;
}

/* ============================================
   Blockquotes
   ============================================ */
blockquote {
    font-size: 17px;
    margin: 1.5em 0;
    padding: 0 0 0 1.2em;
    border-left: 3px solid rgba(254, 135, 155, 1.00);
    color: rgba(138, 136, 140, 1.00);
    font-style: italic;
}

/* ============================================
   Images
   ============================================ */
img {
    height: auto;
    max-width: 100%;
}

/* ============================================
   Horizontal Rules
   ============================================ */
hr {
    border: none;
    height: 2px;
    background: rgba(50, 51, 86, 0.1);
    margin: 2em 0;
}

/* ============================================
   Strong / Bold
   ============================================ */
strong, b {
    color: rgba(50, 51, 86, 1.00);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: rgba(50, 51, 86, 0.05);
    padding: 40px 0;
    margin-top: 60px;
}

.site-footer p {
    color: rgba(50, 51, 86, 1.00);
    font-size: 15px;
    margin: 0;
    text-align: center;
}

.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
}

.footer-nav li {
    font-size: 15px;
}

.footer-nav a {
    color: rgba(50, 51, 86, 0.7);
    text-decoration: none;
}

.footer-nav a:hover {
    color: rgba(254, 135, 155, 1.00);
}

.site-footer a {
    color: rgba(50, 51, 86, 0.7);
    text-decoration: none;
}

.site-footer a:hover {
    color: rgba(254, 135, 155, 1.00);
}

/* ============================================
   Logo Row
   ============================================ */
.logo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5em;
    margin: 2em 0;
}

.logo-row a {
    text-decoration: none;
    border: none;
}

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

.funding-item {
    display: flex;
    align-items: center;
    gap: 1.5em;
    margin: 1.5em 0;
}

.funding-item img {
    max-height: 80px;
    max-width: 160px;
    width: auto;
    flex-shrink: 0;
}

.funding-item p {
    margin: 0;
}

/* ============================================
   Image Grid (BC Project page)
   ============================================ */
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    margin: 2em 0;
}

.image-grid-item {
    text-align: center;
}

.image-grid-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.image-grid-item img:hover {
    opacity: 0.85;
}

.image-grid-item p {
    margin-top: 0.8em;
    font-size: 15px;
    color: rgba(138, 136, 140, 1.00);
}

.image-grid-item p a {
    color: rgba(254, 135, 155, 1.00);
    font-weight: 600;
}

/* ============================================
   Contact Logo
   ============================================ */
.contact-logo {
    max-width: 300px;
    margin-top: 1.5em;
}

/* ============================================
   Responsive
   ============================================ */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    .navbar-nav.active {
        display: flex;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-nav > li > a {
        padding: 10px 20px;
    }

    .navbar-nav .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

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

    .content-section::before {
        height: 60px;
        top: -30px;
    }

    .content-section {
        padding: 50px 0 40px;
    }

    .no-hero .content-section {
        padding-top: 80px;
    }

    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    h3 { font-size: 19px; }

    .page-title {
        font-size: 28px;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .hero,
    .site-footer {
        display: none;
    }
    .content-section {
        padding-top: 0;
    }
    .content-section::before {
        display: none;
    }
    body {
        color: #000;
        font-size: 12pt;
    }
    a {
        color: #000;
        text-decoration: underline;
    }
}
