/*
Theme Name: Ten Voorden Advice
Theme URI: https://tenvoordenadvice.nl
Author: Randy
Description: Final production theme with premium animations, Smooth Scroll, and Contact UX.
Version: 2.2
Text Domain: tenvoordenadvice
*/

/* ---------------------------------------------------- */
/* BASE & GLOBAL STYLES */
/* ---------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #e5e7eb;
    background: #050816;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.55s cubic-bezier(.22,.61,.36,1), transform 0.55s cubic-bezier(.22,.61,.36,1);
}

body.page-loaded {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3 { margin: 0 0 0.5em; font-weight: 700; color: #fff; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; transition: 0.22s ease; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, #0a1330 0%, #0b1533 35%, #050816 100%);
}

.section::before {
    content:"";
    position:absolute;
    inset:0;
    background: radial-gradient(circle at top center, rgba(60,105,255,0.18), transparent 70%);
    opacity:0.35;
    pointer-events:none;
}

/* ---------------------------------------------------- */
/* HEADER & NAVIGATION (DESKTOP) */
/* ---------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(20px) brightness(1.2);
    background: rgba(15, 18, 40, 0.55);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.header-logo .logo-img { height: 50px; width: auto; }

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

.main-nav a {
    position: relative;
    padding-bottom: 4px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-weight: 600;
    color: #9ca3af;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 100%;
    max-width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active-nav-link {
    color: #ffffff !important;
}

.main-nav a:hover::after,
.main-nav a.active-nav-link::after {
    transform: translateX(-50%) scaleX(1) !important;
}

.current-menu-item a::after,
.current_page_item a::after,
.current-menu-ancestor a::after {
    transform: translateX(-50%) scaleX(0) !important;
}

/* ---------------------------------------------------- */
/* BUTTONS (GENERAL & CONTACT) */
/* ---------------------------------------------------- */

.header-cta, .contact-button {
    background: linear-gradient(135deg,#f97316,#fb923c);
    color: #111 !important;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.25s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-align: center;
}

.contact-button {
    margin-top: 20px;
    padding: 14px 32px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-button-outline {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff !important;
    transition: all 0.25s ease;
}

.contact-button-outline:hover {
    border-color: #f97316;
    color: #f97316 !important;
    transform: translateY(-3px);
}

.contact-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.header-cta:hover, .contact-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.35);
    color: #000 !important;
}

/* ---------------------------------------------------- */
/* TRUST BAR */
/* ---------------------------------------------------- */

.trust-bar-container {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 35px; 
    flex-wrap: wrap; 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 12px 20px;
}

.trust-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.3);
    font-weight: 700;
    white-space: nowrap;
}

.client-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
}

/* ---------------------------------------------------- */
/* MOBILE MENU DESIGN */
/* ---------------------------------------------------- */

.mobile-menu-toggle {
    display: none;
    width: 30px;
    flex-direction: column;
    gap: 6px;
    background: none; border: none; cursor: pointer;
}

.mobile-menu-toggle span { height: 2px; width: 100%; background: #fff; }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 40px 25px;
    background: #050816;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu.open { display: flex; }

.mobile-menu ul { list-style: none; padding: 0; margin: 0; }

.mobile-menu ul li a {
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    padding: 15px 0;
    color: #9ca3af;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-menu a.active-nav-link {
    color: #f97316 !important;
}

.mobile-cta {
    margin-top: 25px;
    background: linear-gradient(135deg,#f97316,#fb923c);
    color: #000 !important;
    text-align: center;
    padding: 18px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-social {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    text-decoration: underline;
}

/* ---------------------------------------------------- */
/* HERO, DIENSTEN & PORTFOLIO */
/* ---------------------------------------------------- */

.hero { padding: 160px 0 100px; text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 25px; }
.hero h1 span { color: #f97316; }
.hero-subtitle { font-size: clamp(1.1rem, 1.5vw, 1.4rem); max-width: 800px; margin: 0 auto 40px; color: #9ca3af; }

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.cta-primary {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #111 !important;
}

.cta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.35);
}

.cta-secondary {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.cta-secondary:hover {
    border-color: #f97316;
    color: #f97316 !important;
    transform: translateY(-3px);
}

.diensten-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.dienst { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 40px; border-radius: 20px; }
.dienst:hover { border-color: #f97316; background: rgba(255,255,255,0.05); }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.portfolio-card { background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 40px; transition: 0.4s ease; }
.portfolio-card:hover { transform: translateY(-8px); border-color: #f97316; background: rgba(15, 23, 42, 0.9); }

/* ---------------------------------------------------- */
/* ABOUT SECTION */
/* ---------------------------------------------------- */

.over-inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
}

/* Used on page-about.php (no photo, text + card side by side) */
.over-text { }
.over-side { }

/* Used on front-page.php (photo left, content right) */
.over-photo { position: relative; }

.over-portrait {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.over-content > p { color: #9ca3af; line-height: 1.8; margin-bottom: 16px; }

.over-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    margin-top: 28px;
}

.over-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f97316;
    font-weight: 700;
    margin: 0 0 14px !important;
}

.over-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #9ca3af;
}

.over-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.over-list li:last-child { border-bottom: none; }
.over-list li::before { content: "→ "; color: #f97316; }

/* ---------------------------------------------------- */
/* RESPONSIVE (MOBILE FIXES) */
/* ---------------------------------------------------- */

@media (max-width: 768px) {
    .main-nav, .header-cta { display: none; }
    .mobile-menu-toggle { display: flex; }
    
    .header-inner { padding: 10px 0; }
    .hero { padding: 100px 0 60px; }
    .hero-actions { flex-direction: column; gap: 15px; }

    .trust-bar-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 20px;
        padding: 15px 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .trust-bar-container::-webkit-scrollbar { display: none; }

    .client-name { font-size: 0.75rem; }

    .footer-inner { flex-direction: column; gap: 20px; text-align: center; }

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

    .over-inner { grid-template-columns: 1fr; gap: 40px; }
    .over-portrait { aspect-ratio: 4 / 3; max-height: 280px; }
}

/* --- EXTRA FINISHING TOUCHES --- */

/* LinkedIn Footer Styling */
.footer-linkedin {
    color: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-linkedin:hover {
    color: #f97316;
    transform: translateY(-3px);
}

/* Portfolio & Case Linkjes */
.case-link {
    color: #f97316;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
    display: inline-block;
}

.case-link:hover {
    color: #fb923c;
    transform: translateX(5px);
}