/* --- VARIABLES --- */
:root {
    --primary: #D9232A;
    --primary-dark: #b91d23;
    --dark: #2D2D2D;
    --light-bg: #F8F9FA;
    --wood: #C59D72;
    --white: #FFFFFF;
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    --radius: 4px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
    color: #555;
    font-weight: 300;
}

.text-center {
    text-align: center;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(217, 35, 42, 0.2);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(217, 35, 42, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    box-shadow: none;
    padding: 14px 35px;
    display: inline-block;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

/* --- HEADER & NAV --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 5%;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 4px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 14px;
}

header.scrolled .logo {
    color: var(--dark);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

header.scrolled nav a {
    color: var(--dark);
}

header.scrolled nav a.btn {
    color: var(--white) !important;
}

header.scrolled nav a.btn:hover {
    color: var(--primary) !important;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--white);
}

header.scrolled .hamburger {
    color: var(--dark);
}

/* --- SECTIONS & CONTAINER --- */
section {
    padding: 100px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.bg-white {
    background-color: var(--white);
}

/* --- HOME: HERO --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    /* Contain absolute layers */
    background: #000;
    /* Fallback */
}

/* Smart Dark Overlay for Readability */
.hero::after,
.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    /* Above images, below content */
    pointer-events: none;
}

/* Background Layers for Smooth Cross-fade */
.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    /* Changed from -1 to 1 to sit above base background */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-layer.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
    padding: 0 20px;
    position: relative;
    /* Create stacking context */
    z-index: 2;
    /* Sit on top of bg-layer */
}

.hero-subtitle {
    display: block;
    font-size: 1.1rem;
    color: var(--wood);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-weight: 600;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- HOME: FEATURES --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-bottom: 4px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    color: var(--primary);
    background: rgba(217, 35, 42, 0.1);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    text-align: center;
}

/* --- ACCORDION (FAQ & AANBOD) --- */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-left: 4px solid var(--wood);
}

.accordion-header {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #fafafa;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.accordion-header.active::after {
    content: '-';
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #f8f8f8;
    padding: 0 25px;
}

.accordion-content-inner {
    padding: 25px 0;
    color: #666;
}

#faq .accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

#faq .accordion-header {
    font-weight: 500;
}

/* --- FORMS --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info h3 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-icon {
    color: var(--primary);
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #eee;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: #fafafa;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(217, 35, 42, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.cf-turnstile {
    margin-bottom: 20px;
}

#form-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: var(--radius);
    color: white;
    z-index: 2000;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    text-align: center;
}

#form-notification.success {
    background-color: #28a745;
}

#form-notification.error {
    background-color: #dc3545;
}

/* --- GALLERY PAGE: HEADER --- */
.page-header {
    padding: 120px 5% 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #000;
    /* Fallback */
}

.page-header h1 {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.page-header p {
    color: #eee;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

/* --- GALLERY PAGE: CATEGORY SECTIONS --- */
.category-section {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.category-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-header {
    text-align: center;
    margin-bottom: 30px;
}

.category-header h3 {
    font-size: 1.8rem;
    color: var(--dark);
    display: inline-block;
    position: relative;
    margin-bottom: 10px;
}

.category-header h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin: 10px auto 0;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
}

.category-section:hover .category-header h3::after {
    width: 100px;
}

.category-desc {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    background: #fff;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.gallery-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
    border-color: #d0d0d0;
}

.gallery-img-wrapper {
    overflow: hidden;
    border-radius: 2px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Allow click on item */
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    color: white;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    backdrop-filter: blur(5px);
}

/* --- LIGHTBOX (Restored & Branded) --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-frame {
    position: relative;
    background: #fff;
    padding: 10px 10px 40px 10px;
    /* Polaroid bottom padding */
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox.active .lightbox-frame {
    transform: scale(1);
}

.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 2px;
}

/* Branding Watermark */
.lb-branding {
    position: absolute;
    bottom: 8px;
    /* Perfectly centered in 40px padding (40-24)/2 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    opacity: 0.9;
}

.lb-brand-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: grid;
    place-items: center;
    border-radius: 3px;
}

.lb-brand-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Controls */
.lb-btn {
    position: absolute;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    transition: var(--transition);
    padding: 0;
    line-height: 1;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.lb-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
}

.lb-prev {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.lb-next {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.lb-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lb-next:hover {
    transform: translateY(-50%) scale(1.1);
}


/* Counter */
.lb-counter {
    position: absolute;
    top: 30px;
    left: 30px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    z-index: 10001;
    letter-spacing: 2px;
}

/* Progress Bar */
.lb-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.lb-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s;
}

/* Overscroll Pulse */
.overscroll-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: inset 0 0 0 0 rgba(217, 35, 42, 0);
    transition: box-shadow 0.2s ease-out;
}

.pulse-right {
    animation: flashRight 0.5s forwards;
}

.pulse-left {
    animation: flashLeft 0.5s forwards;
}

@keyframes flashRight {
    0% {
        box-shadow: inset -50px 0 50px -20px rgba(217, 35, 42, 0.8);
    }

    100% {
        box-shadow: inset 0 0 0 0 rgba(217, 35, 42, 0);
    }
}

@keyframes flashLeft {
    0% {
        box-shadow: inset 50px 0 50px -20px rgba(217, 35, 42, 0.8);
    }

    100% {
        box-shadow: inset 0 0 0 0 rgba(217, 35, 42, 0);
    }
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 80px 5%;
    background: #e9ecef;
}

.cta-card {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border-top: 5px solid var(--primary);
    position: relative;
}

.cta-card h2 {
    left: auto;
    transform: none;
    display: block;
    width: 100%;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.cta-card p {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 35px;
    color: #555;
    line-height: 1.6;
}

/* Pulse Animation on BUTTON */
.cta-card .btn {
    display: inline-block;
    padding: 18px 40px;
    font-size: 1.1rem;
    animation: btn-pulse 2s infinite ease-in-out;
    box-shadow: 0 5px 15px rgba(217, 35, 42, 0.3);
}

@keyframes btn-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(217, 35, 42, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(217, 35, 42, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(217, 35, 42, 0.3);
    }
}

/* --- FOOTER --- */
footer {
    background: var(--dark);
    color: #aaa;
    padding: 80px 5% 30px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    border-bottom: 1px solid #444;
    padding-bottom: 50px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    margin-bottom: 10px;
}

.footer-credit {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.footer-credit a {
    color: #888;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-credit a:hover {
    color: var(--primary);
}

.footer-credit span {
    font-size: 1.25em;
    vertical-align: -1px;
    display: inline-block;
    padding: 0 2px;
}

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

/* --- MOBILE MENU OVERLAY --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}