/*
Theme Name: Ruimte in Recht Theme
Theme URI: https://ruimteinrecht.nl
Author: Jouw Naam
Description: Een op maat gemaakt, modern en snel thema voor Ruimte in Recht.
Version: 1.0
Text Domain: ruimte-in-recht
*/

:root {
    --primary: #22374F;
    --primary-dark: #172433;
    --secondary: #8B9C8A;
    --accent: #D8CBB8;
    --white: #ffffff;
    --light: #F7F8FA;
    --text: #2F3944;
    --radius: 18px;
    --shadow: 0 15px 35px rgba(0,0,0,.08);
    --transition: .35s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
    background: white;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

section {
    padding: 120px 0;
}

/* ==========================================================
TYPOGRAFIE
========================================================== */

h1 {
    font-family: "Playfair Display", serif;
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 30px;
    color: white;
}

h2 {
    font-family: "Playfair Display", serif;
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--primary);
}

h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary);
}

p {
    margin-bottom: 20px;
}

.section-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* ==========================================================
BUTTONS
========================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 34px;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.button.secondary {
    background: white;
    color: var(--primary);
    margin-left: 15px;
}

.button.light {
    background: white;
    color: var(--primary);
}

/* ==========================================================
HEADER
========================================================== */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 28px 0;
    z-index: 100;
    color: white;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.navigation {
    margin-left: auto;
}

.navigation ul {
    display: flex;
    gap: 36px;
    align-items: center;
}

.navigation a {
    color: inherit;
    font-weight: 500;
    transition: .3s;
}

.navigation a:hover {
    opacity: .75;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 34px;
    cursor: pointer;
    color: inherit;
    z-index: 101;
}

.desktop-button {
    margin-left: 35px;
}

.header-scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    position: fixed;
    padding: 15px 0;
    color: var(--primary);
    animation: headerDown .3s ease;
}

@keyframes headerDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ==========================================================
HERO
========================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('images/hero.jpg') center center/cover no-repeat;
    padding: 180px 0 100px 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20,32,47,.58);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.lead {
    font-size: 22px;
    color: white;
    max-width: 620px;
    margin-bottom: 40px;
}

.eyebrow {
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 600;
}

.hero-panel {
    background: rgba(255,255,255,.94);
    padding: 40px;
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    color: var(--text);
}

.hero-panel h2 {
    font-size: 30px;
    margin-bottom: 25px;
}

.hero-panel li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.hero-panel li:last-child {
    border-bottom: none;
}

/* ==========================================================
INTRO
========================================================== */

.intro {
    background: var(--white);
}

.intro .container {
    max-width: 900px;
    text-align: center;
}

.intro p {
    font-size: 20px;
    color: #58626C;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    max-width: 760px;
    margin: 0 auto 20px;
}

.section-intro {
    max-width: 760px;
    margin: 0 auto;
}

/* ==========================================================
SERVICES
========================================================== */

.services {
    background: var(--light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
}

.service-card h3 {
    margin-bottom: 20px;
}

.service-card p {
    margin-bottom: 0;
}

/* ==========================================================
PROCESS
========================================================== */

.process {
    background: white;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-item {
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}

.process-number {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    font-size: 24px;
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.process-item:hover .process-number {
    transform: scale(1.08);
    background: var(--secondary);
}

/* ==========================================================
ABOUT
========================================================== */

.about {
    background: var(--light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-image img {
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.about-content {
    padding: 10px;
}

.about-list {
    margin: 35px 0;
}

.about-list li {
    padding: 8px 0;
    font-weight: 600;
}

/* ==========================================================
CTA
========================================================== */

.cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
}

.cta p {
    max-width: 700px;
    margin: 25px auto 40px;
    color: white;
}

/* ==========================================================
CONTACT
========================================================== */

.contact {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.contact-card {
    background: var(--light);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,.10);
}

.contact-cta {
    margin-top: 60px;
    text-align: center;
}

/* ==========================================================
FOOTER
========================================================== */

.footer {
    background: var(--primary-dark);
    color: white;
    padding-top: 90px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer h3 {
    color: white;
    margin-bottom: 20px;
}

.footer p {
    color: rgba(255,255,255,.85);
}

.footer ul li {
    margin: 14px 0;
}

.footer a {
    color: rgba(255,255,255,.85);
    transition: .3s;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 70px;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.15);
    font-size: 15px;
    color: rgba(255,255,255,.7);
}

/* ==========================================================
SCROLL INTERSECTION ANIMATIES
========================================================== */

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s cubic-bezier(0.25, 1, 0.5, 1), transform .8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
RESPONSIVE DESIGN
========================================================== */

@media (max-width: 1200px) {
    .hero-grid { grid-template-columns: 1fr; gap: 50px; }
    .hero-panel { max-width: 650px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    h1 { font-size: 54px; }
    h2 { font-size: 38px; }
    .service-grid { grid-template-columns: 1fr 1fr; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .navigation ul { gap: 20px; }
}

@media (max-width: 768px) {
    .header { padding: 18px 0; }
    .menu-toggle { display: block; }
    
    .navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        padding: 120px 35px;
        transition: .35s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,.15);
        color: var(--primary) !important;
    }
    
    .navigation.open { right: 0; }
    .navigation ul { flex-direction: column; gap: 28px; align-items: flex-start; }
    .navigation a { font-size: 20px; }
    .desktop-button { display: none; }
    
    .hero { padding: 140px 0 80px; min-height: auto; }
    .hero-buttons { display: flex; flex-direction: column; gap: 15px; }
    .button.secondary { margin-left: 0; }
    
    h1 { font-size: 42px; }
    h2 { font-size: 34px; }
    
    .service-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    section { padding: 80px 0; }
}

@media (max-width: 480px) {
    .container { width: 94%; }
    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    .lead { font-size: 18px; }
    .button { width: 100%; }
    .hero-panel { padding: 25px; }
    .service-card { padding: 30px; }
    .contact-card { padding: 28px; }
}