/*
Theme Name: Dave Campaign Theme
Theme URI: https://davehamelin.ca/
Author: Dave Hamelin-Schuilenburg & ChatGPT
Description: Campaign theme with hero slider (bridge, silhouettes), inspired by Matt Richter, Jessica Wegg, Clancy, Mike Morrice, and Natalie Odd.
Version: 1.0.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dave-campaign
*/

:root {
    --primary-green: #0b7a41;
    --primary-dark: #063c21;
    --accent-yellow: #ffd966;
    --bg-light: #f5f7f5;
    --text-dark: #123027;
    --max-width: 1120px;
    --radius-lg: 1.4rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.2s ease-out, border-color 0.2s ease-out;
}

.site-header.is-scrolled {
    background: rgba(6,60,33,0.96);
    border-color: rgba(0,0,0,0.3);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1.5rem;
}

.site-title {
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #ffffff;
}

.site-title span {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: none;
    color: #e1f2ea;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.92rem;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.4rem;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    font-weight: 500;
    color: #ffffff;
}

.main-nav a:hover,
.main-nav li:hover > a {
    color: #d4f5df;
}

.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #063c21;
    padding: 0.6rem 0.4rem;
    border-radius: 0.75rem;
    box-shadow: 0 16px 30px rgba(0,0,0,0.38);
    min-width: 180px;
    z-index: 60;
}

.main-nav .sub-menu li {
    width: 100%;
}

.main-nav .sub-menu a {
    display: block;
    padding: 0.35rem 0.9rem;
    white-space: nowrap;
    color: #ffffff;
}

.main-nav .sub-menu a:hover {
    background: rgba(212,245,223,0.12);
    color: #d4f5df;
}

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

.main-nav .nav-cta {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: var(--accent-yellow);
    color: #25311a;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #f2c94c;
}

.main-nav .nav-cta:hover {
    background: #f2c94c;
}

/* Lang pill */
.lang-switcher {
    position: relative;
    margin-left: 0.75rem;
}

.lang-pill {
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: #1f7ae0;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-pill span.icon-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ffffff;
}

.lang-menu {
    position: absolute;
    right: 0;
    top: 115%;
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 0.35rem 0;
    box-shadow: 0 18px 32px rgba(0,0,0,0.32);
    min-width: 160px;
    display: none;
    z-index: 70;
}

.lang-menu a {
    display: block;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    color: #123027;
}

.lang-menu a:hover {
    background: #e6f7ec;
    color: #0b7a41;
}

.lang-switcher:hover .lang-menu {
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out;
}

.btn-primary {
    background: #ffd966;
    color: #25311a;
    border-color: #f2c94c;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.75);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero slider */
.hero-slider {
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    display: none;
}

.hero-slide.is-active {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 6.0rem 0 3.6rem;
}

.hero-slide--gradient {
    background: radial-gradient(circle at top left, #35b878 0, #0b7a41 38%, #063c21 100%);
}

.hero-slide--bridge {
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.8)), url('assets/hero-bridge.jpg');
    background-size: cover;
    background-position: center center;
}

.hero-slider-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.4rem;
    align-items: center;
}

.hero-slide-kicker {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    opacity: 0.9;
}

.hero-slide-title {
    font-size: clamp(2.2rem, 3vw + 1.4rem, 3.4rem);
    line-height: 1.1;
    margin: 0.75rem 0;
    font-weight: 700;
}

.hero-slide-subtitle {
    font-size: 1.05rem;
    max-width: 32rem;
    opacity: 0.96;
}

.hero-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.hero-cta-grid .btn {
    width: 100%;
    justify-content: center;
}

.hero-cta-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hero-cta-column .btn {
    width: auto;
    min-width: 210px;
}

.hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
}

.hero-slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.8);
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.hero-slider-dot.is-active {
    background: #ffd966;
    border-color: #ffd966;
}

/* Portraits */
.hero-portrait-wrap {
    justify-self: end;
}

.hero-portrait-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(145deg, rgba(6,60,33,0.68), rgba(11,122,65,0.9));
    padding: 0.9rem;
    box-shadow:
        0 28px 60px rgba(0,0,0,0.45),
        0 0 0 1px rgba(255,255,255,0.02);
}

.hero-portrait-inner {
    position: relative;
    border-radius: calc(var(--radius-lg) - 0.3rem);
    overflow: hidden;
    background: #000;
}

.hero-portrait-inner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-portrait-plain {
    justify-self: start;
    display: flex;
    align-items: flex-end;
}

.hero-portrait-plain img {
    display: block;
    height: auto;
    max-height: calc(100vh - 3rem);
    width: auto;
}

/* v1.0.8 hero tweaks */
/* Slide 1: full-body portrait tight to left, head up near header */
.hero-slide--bridge.hero-slide.is-active {
    padding-top: 3.5rem;
}
.hero-slide--bridge .hero-slider-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
.hero-slide--bridge .hero-portrait-plain {
    position: relative;
    left: -12vw;
}

/* Slide 2: double-size Elizabeth + Dave image */
.hero-slide--elizabeth .hero-slider-inner {
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
}
.hero-slide--elizabeth .hero-portrait-wrap {
    max-width: 1100px;
    width: 100%;
}

/* Sections */
.section {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    margin: 0;
}

.section-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    opacity: 0.75;
    font-weight: 600;
}

.note-section {
    padding: 3rem 0;
    background: #f9fbf9;
}

.note-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
}

.note-photo-circle {
    width: 260px;
    height: 260px;
    border-radius: 999px;
    overflow: hidden;
    border: 6px solid rgba(11, 122, 65, 0.18);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.note-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.note-heading {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.note-signoff {
    margin-top: 1rem;
    font-weight: 600;
}

.video-section {
    padding: 2.5rem 0 3rem;
    background: #ffffff;
}

.video-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.4rem;
    align-items: center;
}

.video-placeholder {
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 22px 40px rgba(0,0,0,0.18);
}

.video-placeholder img {
    display: block;
    width: 100%;
    height: auto;
}

.priorities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
}

.priority-card {
    background: #fff;
    border-radius: 1.1rem;
    padding: 1.4rem 1.4rem 1.5rem;
    box-shadow: 0 16px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
}

.priority-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.news-list {
    display: grid;
    gap: 1rem;
}

.news-item {
    padding: 1.1rem 1.2rem;
    border-radius: 0.9rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
}

.news-item-title {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.news-item-meta {
    font-size: 0.78rem;
    opacity: 0.7;
}

/* Footer */
.site-footer {
    padding: 2.5rem 0 2rem;
    background: #063c21;
    color: rgba(255,255,255,0.86);
    font-size: 0.88rem;
}

.site-footer a {
    color: rgba(255,255,255,0.9);
}

.site-footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    margin-top: 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.footer-meta {
    opacity: 0.8;
    max-width: 30rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    opacity: 0.75;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-slide.is-active {
        padding-top: 5.5rem;
    }
    .hero-slider-inner,
    .video-layout,
    .note-layout {
        grid-template-columns: 1fr;
    }
    .hero-portrait-plain {
        justify-self: center;
        margin-bottom: 1.5rem;
        left: 0;
    }
    .hero-portrait-plain img {
        max-height: 420px;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    .hero-portrait-wrap {
        justify-self: stretch;
        max-width: 420px;
        margin: 2rem auto 0;
    }
    .note-photo-circle {
        margin: 0 auto 1.5rem;
    }
    .hero-slide--elizabeth .hero-portrait-wrap {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav ul {
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }
    .hero-slide-subtitle {
        font-size: 0.98rem;
    }
    .hero-cta-grid {
        grid-template-columns: 1fr;
    }
}
