/* =========================================================================
   KAPSTER AAN HUIS - Calm Luxury Theme
   ========================================================================= */

:root {
    /* Color Palette */
    --color-bg-white: #FFFFFF;
    --color-bg-tint: #FAF9F8;
    /* Soft warm off-white */
    --color-accent-soft: #E8DCD5;
    /* Soft nude/blush */
    --color-accent-gold: #CDB397;
    /* Soft gold / beige */
    --color-text-dark: #3A3633;
    /* Softer dark taupe/gray */
    --color-text-light: #7A7571;
    /* Softer text for paragraphs */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-max-width: 1200px;
    --text-max-width: 680px;

    /* Styling */
    --border-radius-soft: 20px;
    --border-radius-btn: 30px;
    --shadow-soft: 0 15px 40px rgba(58, 54, 51, 0.06);
}

/* =========================================================================
   ANIMATIONS
   ========================================================================= */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up.delay-1 {
    transition-delay: 0.15s;
}

.fade-up.delay-2 {
    transition-delay: 0.3s;
}

.fade-up.delay-3 {
    transition-delay: 0.45s;
}

.fade-up.delay-4 {
    transition-delay: 0.6s;
}

/* =========================================================================
   GLOBAL RESET & BASE
   ========================================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================================
   LAYOUT & CONTAINERS
   ========================================================================= */

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

.hero-text {
    max-width: 520px;
}

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

.text-narrow {
    width: 100%;
    max-width: 550px;
}

/* Section Spacing (Mobile First) */
.section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 7rem 0;
    }
}

.section-title {
    margin-bottom: 4rem;
}

#about p {
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.section-tint {
    background-color: var(--color-bg-tint);
}

.section-gradient {
    background: linear-gradient(180deg, var(--color-bg-white) 0%, var(--color-accent-soft) 100%);
}

/* =========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================= */

.text-center {
    text-align: center;
}

.eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    display: block;
}

.title-large {
    font-size: 2.5rem;
}

@media (min-width: 768px) {
    .title-large {
        font-size: 3.5rem;
    }
}

/* =========================================================================
   COMPONENTS
   ========================================================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--color-text-dark);
    text-decoration: none;
    border-radius: var(--border-radius-btn);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1.5px solid var(--color-accent-gold);
    font-family: var(--font-body);
    font-size: 1.05rem;
}

.btn:hover {
    background-color: var(--color-bg-tint);
    border-color: #BCA082;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.btn-filled {
    background: linear-gradient(to bottom, #d8c3a5, #cbb399);
    color: var(--color-bg-white);
    border: none;
}

.btn-filled:hover {
    background: linear-gradient(to bottom, #cbb399, #cbb399);
    color: var(--color-bg-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.btn-soft {
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    box-shadow: var(--shadow-soft);
}

/* Soft Cards */
.soft-card {
    background-color: #FDFBF8; /* Very subtle warm paper tint replacing pure white */
    border-radius: var(--border-radius-soft);
    padding: 3rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.soft-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

/* Images */
.img-rounded {
    border-radius: var(--border-radius-soft);
    object-fit: cover;
    box-shadow: var(--shadow-soft);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.img-rounded.lift-on-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(58, 54, 51, 0.09);
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

/* =========================================================================
   HEADER / NAVBAR
   ========================================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 1rem;
    /* Reduce aggressive side-padding solely inside the navbar on mobile to give the wide logo more real estate */
    padding: 0 1rem; 
}

@media (min-width: 768px) {
    .navbar-container {
        padding: 0 2rem; /* Restore standard container padding gracefully */
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex: 1 1 auto; /* Logo is allowed to shrink if layout space is tight */
    min-width: 0;   /* Essential flex property to prevent overflow bursting */
}

.nav-logo img {
    height: 35px; /* Restrict height for mobile */
    max-width: 100%; /* Force image to proportionately scale down entirely if horizontally squeezed by the button */
    object-fit: contain;
    object-position: left center;
    transition: transform 0.3s ease;
}

.nav-cta {
    flex: 0 0 auto; /* Protect button from being squished */
}

.nav-logo:hover img {
    transform: scale(1.02);
}

@media (min-width: 768px) {
    .nav-logo img {
        height: 45px; /* Larger, premium scale for desktop */
    }
}

.nav-links {
    display: none;
    /* hidden on mobile for elegance */
}

.nav-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2.5rem;
        align-items: center;
    }

    .nav-links a {
        text-decoration: none;
        color: var(--color-text-light);
        font-size: 0.95rem;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .nav-links a:hover {
        color: var(--color-accent-gold);
    }
}

/* =========================================================================
   SPECIFIC SECTION UTILS
   ========================================================================= */

/* Value Strip */
.value-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* Remove gap so borders collide */
    padding: 2rem 0;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1.5px solid var(--color-accent-gold);
    padding: 1.5rem 1rem;
    margin-top: -1.5px;
    /* Pull borders into each other vertically */
    margin-left: -1.5px;
    /* Pull borders into each other horizontally */
    transition: background-color 0.3s ease;
}

.value-item:hover {
    background-color: var(--color-bg-tint);
}

@media (min-width: 768px) {
    .value-strip {
        display: flex;
        justify-content: space-between;
        padding: 3rem 0;
        border-top: 1px solid var(--color-accent-soft);
        border-bottom: 1px solid var(--color-accent-soft);
    }

    .value-item {
        flex-direction: row;
        text-align: left;
        border: none;
        padding: 0;
        margin: 0;
    }

    .value-item:hover {
        background-color: transparent;
    }
}

.value-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent-gold);
}

.testimonial-block {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-style: italic;
    color: var(--color-text-dark);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .testimonial-block {
        font-size: 2.25rem;
    }
}

.testimonial-card {
    background: linear-gradient(135deg, var(--color-bg-tint) 0%, rgba(205, 179, 151, 0.1) 100%);
    border-radius: var(--border-radius-soft);
    padding: 5rem 3rem;
    margin: 0 auto;
    max-width: 900px;
}

.quote-icon {
    width: 56px;
    height: 56px;
    color: var(--color-accent-gold);
    margin: 0 auto 2rem auto;
    opacity: 0.8;
    display: block;
}

.step-icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent-gold);
    margin: 0 auto 1.5rem auto;
    stroke-width: 1;
    /* enforce thin stroke */
}

.step-title {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--color-text-dark);
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.step-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 1px;
    background-color: var(--color-accent-gold);
}

/* Timeline */
.timeline {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    bottom: 3rem;
    left: 9px;
    width: 2px;
    background-color: #D6C5B9;
    /* Slightly darker than accent-soft */
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    text-align: left;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: var(--color-accent-gold);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    margin-top: 5px;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px var(--color-bg-tint);
}

.timeline-content strong {
    display: block;
    color: var(--color-text-dark);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.timeline-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================================================
   MOBILE SPACING OVERRIDES
   ========================================================================= */

@media (max-width: 767px) {
    .hero {
        padding-bottom: 0.5rem;
    }
    
    .value-strip {
        padding-top: 1rem;
    }
}