/* theme.css — PUDE Theme */

/* ══════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════ */
:root {
    --pude-bg:          #0b0f0e;
    --pude-bg-alt:      #0f1512;
    --pude-text:        #e8eceb;
    --pude-text-muted:  #8aa39a;
    --pude-accent:      #3aaa8c;
    --pude-border:      rgba(58, 170, 140, 0.18);
    --pude-nav-height:  80px;
    --font-body:        'DM Sans', sans-serif;
    --font-heading:     'Outfit', sans-serif;
}

/* ══════════════════════════════════════════════
   BASE RESET
══════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--pude-bg);
    color: var(--pude-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* prevent body scroll when mobile menu is open */
}

body.pude-nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.pude-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    width: 100%;
    height: var(--pude-nav-height);
    background: rgba(15, 21, 18, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--pude-border);
}

.pude-nav__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ── Brand ──────────────────────────────────── */
.pude-nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pude-nav__brand-link {
    text-decoration: none;
}

/* WordPress generates its own <a> — target it directly inside the navbar */
.pude-nav__inner .custom-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    max-height: calc(var(--pude-nav-height) - 32px);
}
.pude-nav__inner .custom-logo {
    width: auto !important;
    height: auto !important;
    max-width: 48px;
    max-height: calc(var(--pude-nav-height) - 32px);
    object-fit: contain;
    display: block;
}

.pude-nav__site-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--pude-text);
    line-height: 1;
}

/* ── Menu wrap ──────────────────────────────── */
.pude-nav__menu-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

/* ── Nav menu (WordPress-generated <ul>) ─────── */
.pude-nav__menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pude-nav__menu li a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--pude-text-muted);
    border-radius: 8px;
    transition: color 0.18s ease, background 0.18s ease;
}

.pude-nav__menu li a:hover,
.pude-nav__menu li.current-menu-item > a,
.pude-nav__menu li.current-page-ancestor > a {
    color: var(--pude-text);
    background: rgba(255, 255, 255, 0.06);
}

/* ── CTA button ─────────────────────────────── */
.pude-nav__cta {
    margin-left: 12px;
    padding: 9px 20px;
    background: var(--pude-accent);
    color: #0b0f0e;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.18s ease;
    flex-shrink: 0;
}

.pude-nav__cta:hover {
    background: #4dbf9f;
    color: #0b0f0e;
    transform: translateY(-1px);
}

/* ── Mobile toggle ──────────────────────────── */
.pude-nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.pude-nav__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--pude-text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.pude-nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pude-nav__toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.pude-nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════
   PAGE HERO
══════════════════════════════════════════════ */
.pude-page-hero {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    /* CSS variable set inline when image exists */
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    /* Fallback gradient when no image */
    background-color: var(--pude-bg-alt);
}

/* Gradient used as background when no image is set */
.pude-page-hero:not(.has-image) {
    background-image: linear-gradient(135deg, #0f1512 0%, #152b20 50%, #0f1512 100%);
    border-bottom: 1px solid var(--pude-border);
}

/* Dark overlay to ensure text readability over photos */
.pude-page-hero.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(11, 15, 14, 0.94) 0%,
        rgba(11, 15, 14, 0.55) 45%,
        rgba(11, 15, 14, 0.25) 100%
    );
    z-index: 1;
}

.pude-page-hero__content {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px 52px;
}

.pude-page-hero__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--pude-accent);
    margin-bottom: 4px;
}

.pude-page-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 62px);
    font-weight: 900;
    color: var(--pude-text);
    letter-spacing: -0.5px;
    line-height: 1.05;
    max-width: 16ch;
    margin: 0;
}

.pude-page-hero__subtitle {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 400;
    color: rgba(232, 236, 235, 0.70);
    max-width: 55ch;
    line-height: 1.65;
}

/* ══════════════════════════════════════════════
   PAGE CONTENT WRAPPER
══════════════════════════════════════════════ */
.pude-page-content {
    min-height: 300px;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.pude-footer {
    width: 100%;
    background: #0f1512;
    border-top: 1px solid rgba(58, 170, 140, 0.18);
    margin-top: 60px;
    font-family: var(--font-body);
}

.pude-footer__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 24px 32px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.pude-footer__brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.pude-footer__brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pude-footer__brand-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.pude-footer__brand-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #e8eceb;
    line-height: 1;
    margin-bottom: 3px;
}

.pude-footer__brand-tagline {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--pude-accent);
    line-height: 1;
}

.pude-footer__brand-desc {
    font-size: 13.5px;
    color: #8aa39a;
    line-height: 1.7;
    max-width: 28ch;
    margin-bottom: 20px;
}

.pude-footer__socials { display: flex; gap: 8px; }

.pude-footer__social-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #8aa39a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pude-footer__social-btn:hover {
    background: rgba(58, 170, 140, 0.15);
    border-color: rgba(58, 170, 140, 0.40);
    color: var(--pude-accent);
    transform: translateY(-2px);
}

.pude-footer__col-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #e8eceb;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(58, 170, 140, 0.20);
}

.pude-footer__sponsor {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-sizing: border-box;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.pude-footer__sponsor:hover {
    border-color: rgba(58, 170, 140, 0.30);
    background: rgba(58, 170, 140, 0.06);
    transform: translateY(-2px);
}

.pude-footer__sponsor-logo {
    width: 90%;
    max-height: 120px;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.3) brightness(1.1) opacity(0.85);
    transition: filter 0.25s ease;
}

.pude-footer__sponsor:hover .pude-footer__sponsor-logo {
    filter: grayscale(0) brightness(1.05) opacity(1);
}

.pude-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pude-footer__links li a {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 500;
    color: #8aa39a;
    text-decoration: none;
    transition: color 0.18s ease, gap 0.18s ease;
}

.pude-footer__links li a:hover {
    color: var(--pude-accent);
    gap: 10px;
}

.pude-footer__link-icon { font-size: 13px; flex-shrink: 0; }

.pude-footer__hours {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 500;
    color: #8aa39a;
    margin-top: 2px;
}

.pude-footer__divider {
    max-width: 1240px;
    margin: 0 auto;
    height: 1px;
    background: rgba(58, 170, 140, 0.12);
}

.pude-footer__bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.pude-footer__copy {
    font-size: 12.5px;
    color: #8aa39a;
    font-weight: 400;
}

.pude-footer__bottom-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pude-footer__badge {
    font-size: 12px;
    font-weight: 600;
    color: #8aa39a;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 999px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Show hamburger, hide menu by default */
    .pude-nav__toggle { display: flex; }

    /* Full-screen overlay menu */
    .pude-nav__menu-wrap {
        position: fixed;
        top: var(--pude-nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 199;
        background: var(--pude-bg-alt);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .pude-nav__menu-wrap.is-open { transform: translateX(0); }

    .pude-nav__menu {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .pude-nav__menu li a {
        padding: 12px 14px;
        font-size: 16px;
    }

    .pude-nav__cta {
        margin-left: 0;
        margin-top: 20px;
        padding: 13px 20px;
        text-align: center;
        font-size: 15px;
    }

    /* Smaller hero on mobile */
    .pude-page-hero { min-height: 300px; }

    .pude-page-hero__content { padding: 28px 20px 40px; }

    /* Footer */
    .pude-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .pude-footer__brand { grid-column: 1 / -1; }
    .pude-footer__brand-desc { max-width: 100%; }
}

@media (max-width: 600px) {
    .pude-footer__inner {
        grid-template-columns: 1fr;
        padding: 40px 16px 24px;
        gap: 28px;
    }
    .pude-footer__brand { grid-column: auto; }
    .pude-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 10px;
    }
    .pude-footer__bottom-badges { gap: 8px; }
}
