/**
 * Waldoch Gallery — Header & Footer Styles
 * Matches waldoch.com design: full-width header (white) and footer (dark)
 * Two-tier nav: primary (waldoch.com links) + gallery nav (category links)
 */

/* ===========================
   HEADER
   =========================== */

.site-header {
    background: #ffffff;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.site-logo {
    display: inline-block;
}

.site-logo-img {
    height: 65px;
    width: auto;
}

/* Primary Navigation (waldoch.com links) */
.primary-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 25px;
    padding-bottom: 15px;
}

.primary-nav a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.primary-nav a:hover {
    color: #000;
    text-decoration: underline;
}

/* Gallery Navigation (category links) */
.gallery-nav {
    background: #f0f0f0;
    border-top: 1px solid #e0e0e0;
}

.gallery-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
}

.gallery-nav a {
    color: #444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.gallery-nav a:hover {
    color: #000;
    text-decoration: underline;
}

.gallery-nav a:first-child {
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 15px;
    top: 20px;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Hamburger animation when open */
.site-header.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-header.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
    background: #000000;
    color: #ccc;
    width: 100%;
    padding: 0 20px 0;
    font-size: 14px;
    line-height: 1.7;
}

/* QUICK LINKS Button */
.footer-quick-links {
    text-align: center;
    padding: 15px 0 0 0;
}

.quick-links-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #61CE70;
    border: 3px solid #2FFF4C;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s, border-color 0.3s;
}

.quick-links-btn:hover {
    background-color: #479552;
    border-color: #61CE70;
    color: #fff;
}

/* Social Media */
.footer-social {
    text-align: center;
    padding: 0 0 30px;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}

.footer-social-heading {
    color: #61CE70;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10%;
    transition: opacity 0.2s;
}

.footer-social-icons a:hover {
    opacity: 0.9;
}

.footer-social-icons svg {
    width: 25px;
    height: 25px;
    fill: #fff;
}

/* Brand colors matching waldoch.com Elementor social icons */
.footer-social-icons a.social-youtube    { background-color: #cd201f; }
.footer-social-icons a.social-instagram  { background-color: #EDC200; }
.footer-social-icons a.social-instagram svg  { fill: #000; }
.footer-social-icons a.social-tiktok     { background-color: #00F2EB; }
.footer-social-icons a.social-tiktok svg     { fill: #FF004F; }
.footer-social-icons a.social-rumble     { background-color: #74A441; }
.footer-social-icons a.social-facebook   { background-color: #3b5998; }
.footer-social-icons a.social-twitter    { background-color: #1da1f2; }
.footer-social-icons a.social-linkedin   { background-color: #0077b5; }

/* Link Columns — shared styles */
.footer-links {
    max-width: 1100px;
    margin: 0 auto 30px;
    display: grid;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

/* Row 1 & Row 2: 5 columns */
.footer-links-row1,
.footer-links-row2 {
    grid-template-columns: repeat(5, 1fr);
}

/* Row 3: 2 columns, centered */
.footer-links-row3 {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 20px 60px;
}

.footer-col h4 {
    color: #fff;
    font-family: "Helvetica", sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
}

.footer-col a {
    display: block;
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    padding: 2px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-col p {
    color: #aaa;
    font-size: 13px;
    margin: 2px 0;
}

/* Legal sub-heading in "In The Wild" column */
.footer-col-legal-heading {
    margin-top: 20px;
}

/* Certifications + Copyright wrapper */
.footer-certs-bottom {
    background: #373737;
    margin: 0 -20px;
    padding: 24px 20px 20px;
}

/* Certifications */
.footer-certs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin: 0 auto 20px;
    max-width: 600px;
}

.footer-certs img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* Copyright & Legal */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 0 0;
    border-top: 1px solid #555;
}

.footer-bottom p {
    color: #999;
    font-size: 13px;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #fff;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
    .footer-links-row1,
    .footer-links-row2 {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-links-row3 {
        grid-template-columns: repeat(2, auto);
    }
}

@media (max-width: 768px) {
    /* Header: show hamburger, hide nav by default */
    .site-header-inner {
        position: relative;
        padding: 15px 20px 0;
    }

    .site-logo-img {
        height: 50px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .primary-nav {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 15px 0;
        width: 100%;
    }

    .site-header.menu-open .primary-nav {
        display: flex;
    }

    .gallery-nav-inner {
        gap: 6px 15px;
    }

    .gallery-nav a {
        font-size: 13px;
    }

    /* Footer: stack columns */
    .footer-links-row1,
    .footer-links-row2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 30px;
    }

    .footer-links-row3 {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .footer-certs {
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-social-heading {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .site-logo-img {
        height: 42px;
    }

    .gallery-nav-inner {
        gap: 5px 12px;
    }

    .gallery-nav a {
        font-size: 12px;
    }

    .footer-links-row1,
    .footer-links-row2,
    .footer-links-row3 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social-icons {
        gap: 10px;
    }

    .footer-certs {
        flex-wrap: wrap;
    }

    .footer-social-heading {
        font-size: 20px;
    }

    .quick-links-btn {
        font-size: 13px;
        padding: 10px 24px;
    }
}
