/* ================================================================
   Kasteel van Poeke - Static Site Stylesheet
   Elegant groen / goud / crème, geïnspireerd op het rococo-waterkasteel
   ================================================================ */

:root {
    --green: #3d4446;
    --green-dark: #252b2d;
    --green-light: #5e6668;
    --gold: #c9a84c;
    --gold-dark: #b8953c;
    --cream: #f1f0ed;
    --cream-dark: #e7e5e1;
    --dark: #1a1a1a;
    --stone: #747774;
    --white: #ffffff;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --max-w: 1140px;
    --pad: 1.25rem;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--dark); background-color: var(--cream); background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); line-height: 1.7; font-size: 16px; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--gold); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-serif); color: var(--green); line-height: 1.25; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }

/* === HEADER === */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: var(--green-dark); transition: background 0.35s, box-shadow 0.35s; }
.site-header.scrolled { background: rgba(37,43,45,0.97); box-shadow: 0 2px 20px rgba(0,0,0,0.2); }

.lang-switch { display: flex; gap: 0.35rem; align-items: center; }
.nav-lang { order: 3; margin-left: 1rem; }
.nav-lang a { font-size: 0.8rem; }
.lang-switch a { color: rgba(241,240,237,0.65); font-weight: 600; letter-spacing: 0.04em; padding: 0.1rem 0.4rem; border-radius: 3px; }
.lang-switch a:hover { color: var(--white); }
.lang-switch a.active { color: var(--gold); background: rgba(201,168,76,0.15); padding: 0.1rem 0.5rem; padding-top: 0.12rem; padding-bottom: 0.12rem; }

.main-nav { padding: 0.6rem 0; transition: background 0.35s; }
.main-nav .container { display: flex; align-items: center; justify-content: space-between; }

.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 55px; width: auto; filter: brightness(0) invert(1); transition: filter 0.3s; }
.site-header.scrolled .logo-img { height: 45px; }

.nav-wrapper { display: flex; align-items: center; order: 2; }
.nav-menu { display: flex; align-items: center; gap: 0.25rem; }
.nav-menu li { position: relative; }
.nav-menu a { color: var(--white); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.5rem 0.85rem; border-radius: 4px; transition: background 0.25s, color 0.25s; }
.nav-menu a:hover, .nav-menu .current a { background: rgba(255,255,255,0.12); color: var(--gold); }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-lang-mobile { display: none; }

/* === HERO === */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-video, .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; transform: scale(1.05); animation: kenburns 26s ease-in-out infinite alternate; }

@keyframes kenburns { 0% { transform: scale(1.05); } 100% { transform: scale(1.16) translateY(-1.2%); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37,43,45,0.55) 0%, rgba(37,43,45,0.35) 50%, rgba(37,43,45,0.65) 100%); z-index: 1; }
.hero-inner { position: relative; z-index: 2; padding: 2rem var(--pad); max-width: 760px; }
.hero-logo { margin-bottom: 1.5rem; }
.hero-logo img { max-height: 110px; height: auto; width: auto; margin: 0 auto; filter: brightness(0) invert(1); }
.hero-title { font-size: 3.2rem; color: var(--white); text-shadow: 0 2px 30px rgba(0,0,0,0.4); margin-bottom: 0.5rem; font-weight: 700; letter-spacing: 0.02em; }
.hero-subtitle { font-size: 1.15rem; color: var(--gold); font-family: var(--font-serif); font-style: italic; margin-bottom: 2rem; text-shadow: 0 1px 10px rgba(0,0,0,0.3); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; display: block; }
.hero-scroll span { display: block; width: 30px; height: 50px; border: 2px solid rgba(255,255,255,0.5); border-radius: 15px; position: relative; }
.hero-scroll span::after { content: ''; position: absolute; top: 8px; left: 50%; width: 4px; height: 10px; margin-left: -2px; background: rgba(255,255,255,0.7); border-radius: 2px; animation: scroll-bounce 2s infinite; }

@keyframes scroll-bounce { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: 0.3; } }

/* === BUTTONS === */
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 2.1rem; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 999px; transition: all 0.25s; border: 2px solid transparent; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(201,168,76,0.4); }
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--green); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: var(--white); color: var(--green); }

/* === SECTIONS === */
.section { padding: 5rem 0; }
.section-white { background: var(--white); }
.section-cream, .history-timeline { background-color: var(--cream); background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
.section-dark { background: var(--green-dark); color: var(--cream); }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-eyebrow { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); font-weight: 600; margin-bottom: 0.5rem; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 0.75rem; }
.section-divider { width: 60px; height: 3px; background: var(--gold); margin: 0 auto; border-radius: 2px; }

/* === CARDS === */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; border-top: 3px solid var(--gold); color: var(--dark); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--dark); }
.card-icon { margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: center; }
.card-icon svg { width: 46px; height: 46px; color: var(--gold); transition: transform 0.3s, color 0.3s; }
.card:hover .card-icon svg { transform: translateY(-3px); color: var(--gold-dark); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p { color: var(--stone); font-size: 0.93rem; margin-bottom: 1rem; flex: 1; }
.card-link { font-weight: 600; color: var(--green); font-size: 0.88rem; }
.card:hover .card-link { color: var(--gold); }

/* Castle feature card (also used for park) */
.feature-img { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/10; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.feature-img:hover img { transform: scale(1.05); }
.feature-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.feature-media video { width: 100%; height: auto; }

/* === SPLIT (Highlight) === */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-content h2 { font-size: 2rem; margin-bottom: 1rem; }
.split-content p { color: var(--stone); margin-bottom: 1.5rem; font-size: 1.02rem; }
.split-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* === CTA === */
.cta { text-align: center; padding: 4rem 0; position: relative; z-index: 1; }
.cta h2 { font-size: 2rem; color: var(--white); margin-bottom: 0.75rem; }
.cta p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.section-green { background-color: var(--green-dark); background-image: url('assets/img/Poeke_kasteel_kasteel_03_1600.jpg'); background-size: cover; background-position: center; color: var(--white); position: relative; }
.section-green::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37,43,45,0.9) 0%, rgba(61,68,70,0.82) 100%); }
.section-green .cta { position: relative; z-index: 1; }

/* === PAGE HERO (subpages) === */
.page-hero { position: relative; min-height: 44vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--green-dark); overflow: hidden; margin-top: 74px; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center center; z-index: 0; transform: scale(1.12); will-change: transform; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.18) 45%, rgba(0,0,0,0.42) 100%); z-index: 1; }
.page-hero-content { position: relative; z-index: 2; padding: 4rem var(--pad); max-width: 780px; }
.page-hero h1 { font-size: 2.8rem; color: var(--white); letter-spacing: 0.01em; line-height: 1.12; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.page-hero h1::after { content: ''; display: block; width: 74px; height: 3px; margin: 1.2rem auto 0; background: var(--gold); border-radius: 2px; }
.page-hero-subtitle { font-size: 1.12rem; color: rgba(255,255,255,0.92); font-family: var(--font-serif); font-style: italic; margin-top: 1rem; text-shadow: 0 1px 14px rgba(0,0,0,0.4); }

/* === PAGE CONTENT === */
.page-content { padding: 5rem 0; background: var(--white); }
.page-body { max-width: 780px; margin: 0 auto; }
.page-body p { margin-bottom: 1.25rem; color: #4a4c4b; font-size: 1.02rem; line-height: 1.9; }
.page-body > p:first-child { font-size: 1.12rem; color: #424549; }
.page-body a:not(.btn) { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(61,68,70,0.35); transition: color 0.25s, text-decoration-color 0.25s; }
.page-body a:not(.btn):hover { color: var(--gold-dark); text-decoration-color: rgba(184,149,60,0.6); }
.page-body h2 { font-size: 1.9rem; margin-top: 3rem; margin-bottom: 1rem; }
.page-body h3 { font-size: 1.35rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.page-body img { border-radius: 8px; margin: 1.75rem 0; box-shadow: var(--shadow); }
.page-body blockquote { border-left: 3px solid var(--gold); padding: 1.25rem 1.75rem; margin: 2.25rem 0; background: var(--cream); font-family: var(--font-serif); font-style: italic; color: #585b59; font-size: 1.05rem; border-radius: 0 8px 8px 0; }
.page-body ul { padding-left: 0; margin: 1rem 0 1.5rem; list-style: none; }
.page-body ul li { position: relative; padding-left: 1.4rem; margin-bottom: 0.65rem; color: #50524f; }
.page-body ul li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; background: var(--gold); border-radius: 2px; transform: rotate(45deg); }

/* === TIMELINE === */
.history-timeline { padding: 5.5rem 0; background: var(--cream); }
.timeline-item { position: relative; padding-left: 3.5rem; margin-bottom: 4rem; }
.timeline-item::before { content: ''; position: absolute; left: 0; top: 8px; width: 18px; height: 18px; background: var(--green); border-radius: 50%; border: 4px solid var(--gold); box-shadow: 0 0 0 5px rgba(201,168,76,0.18); }
.timeline-item::after { content: ''; position: absolute; left: 7px; top: 27px; bottom: -4rem; width: 2px; background: var(--gold); opacity: 0.4; }
.timeline-item:last-child::after { display: none; }
.timeline-date { display: inline-block; background: var(--green); color: var(--gold); font-family: var(--font-serif); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.3rem 1rem; border-radius: 999px; margin-bottom: 0.75rem; }
.timeline-content { background: var(--white); padding: 1.75rem 2rem; border-radius: 8px; box-shadow: var(--shadow); border: 1px solid rgba(61,68,70,0.08); transition: box-shadow 0.3s; }
.timeline-content:hover { box-shadow: var(--shadow-lg); }
.timeline-content h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.timeline-content p { color: var(--stone); font-size: 0.95rem; line-height: 1.85; }
.timeline-media { margin-top: 1.25rem; border-radius: 8px; overflow: hidden; }
.timeline-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* === INFO GRID === */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; margin-top: 2.5rem; }
.info-card { background: var(--white); padding: 2rem 1.75rem; border-radius: 8px; border: 1px solid rgba(61,68,70,0.12); border-top: 3px solid var(--gold); box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.info-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.info-card p { color: var(--stone); font-size: 0.94rem; line-height: 1.8; }

/* === MAP === */
.map-container { margin-top: 2.5rem; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; padding-bottom: 56.25%; height: 0; }
.map-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* === GALLERY === */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 2.5rem 0 2rem; }
.filter-btn { background: var(--white); border: 1px solid rgba(61,68,70,0.18); color: var(--green); font-family: var(--font-serif); font-size: 0.9rem; letter-spacing: 0.04em; padding: 0.55rem 1.4rem; border-radius: 999px; cursor: pointer; transition: all 0.25s; }
.filter-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.filter-btn.active { background: var(--green); color: var(--gold); border-color: var(--green); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 2rem; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; transition: opacity 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-item.hidden { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.08); }
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: rgba(61,68,70,0.55); opacity: 0; transition: opacity 0.3s, box-shadow 0.3s; }
.gallery-item:hover::after { opacity: 1; box-shadow: inset 0 0 0 2px var(--gold); }
.gallery-item::before { content: ''; position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; z-index: 2; transform: translate(-50%, -50%) scale(0.85); opacity: 0; background: center / contain no-repeat; transition: opacity 0.3s, transform 0.3s; }
.gallery-item:hover::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gallery-item:not(.is-video)::before { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none'%3E%3Ccircle cx='28' cy='28' r='26' fill='%23252b2d' stroke='%23c9a84c' stroke-width='2'/%3E%3Cpath d='M28 20v16M20 28h16' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.gallery-item.is-video::before { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none'%3E%3Ccircle cx='28' cy='28' r='26' fill='%23252b2d' stroke='%23c9a84c' stroke-width='2'/%3E%3Cpath d='M23 20l14 8-14 8z' fill='%23c9a84c'/%3E%3C/svg%3E"); }

/* === GALLERY MOSAIC (varied tile heights) === */
.mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 168px; grid-auto-flow: dense; gap: 0.9rem; margin-top: 2rem; }
.mosaic .gallery-item { aspect-ratio: auto; }
.mosaic .gallery-item img { filter: sepia(0.32) saturate(0.82); transition: filter 0.45s ease, transform 0.4s ease; }
.mosaic .gallery-item:hover img { filter: sepia(0) saturate(1); }
.mosaic .gallery-item:nth-child(4n+1) { grid-row: span 2; }
.mosaic .gallery-item:nth-child(4n+3) { grid-column: span 2; }
.mosaic .gallery-item.is-video { grid-column: span 2; }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; align-items: start; }
.contact-card { background: var(--white); padding: 1.5rem 1.75rem; border-radius: 8px; border: 1px solid rgba(61,68,70,0.12); border-left: 3px solid var(--gold); margin-bottom: 1rem; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.contact-card p { color: var(--stone); font-size: 0.94rem; line-height: 1.8; }
.contact-mail-block { text-align: center; background: var(--green-dark); padding: 3rem 2.25rem; border-radius: 8px; color: var(--cream); }
.contact-mail-block h3 { color: var(--gold); font-size: 1.5rem; margin-bottom: 0.75rem; }
.contact-mail-block p { color: rgba(241,240,237,0.85); }
.contact-mail-block a { color: var(--gold); }
.mailto-big { font-size: 1.5rem; font-family: var(--font-serif); color: var(--gold); word-break: break-all; transition: color 0.25s; }
.mailto-big:hover { color: var(--white); }
.contact-cta { text-align: center; background: var(--green-dark); padding: 3rem 2.25rem; border-radius: 8px; color: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; }
.contact-cta h3 { color: var(--gold); font-size: 1.5rem; margin-bottom: 0.75rem; }
.contact-cta p { color: rgba(241,240,237,0.85); margin-bottom: 1.5rem; }

/* === FOOTER === */
.site-footer { background: var(--green-dark); color: var(--cream); padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-col h3 { color: var(--gold); font-size: 1.05rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(201,168,76,0.3); }
.footer-col p { color: rgba(241,240,237,0.7); font-size: 0.9rem; line-height: 1.6; }
.footer-menu li { margin-bottom: 0.4rem; }
.footer-menu a { color: rgba(241,240,237,0.7); font-size: 0.9rem; transition: color 0.25s; }
.footer-menu a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a { color: rgba(241,240,237,0.7); font-size: 0.85rem; }
.footer-social a:hover { color: var(--gold); }
.footer-links { border-top: 1px solid rgba(201,168,76,0.28); padding: 1.4rem 0 1.6rem; }
.footer-links p { color: rgba(241,240,237,0.55); font-size: 0.82rem; text-align: center; line-height: 2; }
.footer-links a { color: rgba(241,240,237,0.6); transition: color 0.25s; }
.footer-links a:hover { color: var(--gold); }
.footer-links span { color: rgba(201,168,76,0.6); }
.footer-bottom { background: rgba(0,0,0,0.2); padding: 1rem 0; text-align: center; font-size: 0.82rem; color: rgba(241,240,237,0.5); }

/* === 404 === */
.error-404 { text-align: center; padding: 6rem 0; margin-top: 74px; }
.error-404 h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.error-404 p { color: var(--stone); margin-bottom: 2rem; }

/* === LIGHTBOX === */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 2rem; animation: lb-fade 0.25s ease; }
.lightbox-content { position: relative; max-width: 94vw; max-height: 94vh; display: flex; flex-direction: column; align-items: center; animation: lb-pop 0.3s ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-media { display: flex; align-items: center; justify-content: center; }
.lightbox-media img { max-width: 88vw; max-height: 76vh; object-fit: contain; border-radius: 6px; }
.lightbox-media video { max-width: 88vw; max-height: 76vh; border-radius: 6px; }
.lightbox-caption { color: #d8d2c8; margin-top: 0.7rem; font-size: 0.95rem; font-family: var(--font-serif); font-style: italic; text-align: center; max-width: 70vw; }
.lightbox-counter { color: rgba(255,255,255,0.5); margin-top: 0.4rem; font-size: 0.78rem; letter-spacing: 0.12em; }
.lightbox-close { position: absolute; top: -46px; right: -10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff; font-size: 1.35rem; line-height: 1; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; transition: background 0.25s, color 0.25s; }
.lightbox-close:hover { background: var(--gold); color: var(--dark); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.25s, color 0.25s; z-index: 2; }
.lightbox-nav:hover { background: var(--gold); color: var(--dark); }
.lightbox-prev { left: -74px; }
.lightbox-next { right: -74px; }

/* === BACK TO TOP === */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; background: var(--gold); color: var(--dark); border: none; border-radius: 50%; font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999; box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold-dark); transform: translateY(-3px); }

/* === FADE IN === */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; order: 4; }
    .nav-lang { display: none; }
    .nav-lang-mobile { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 0.75rem 0 0.35rem; padding-top: 0.85rem; border-top: 1px solid rgba(255,255,255,0.1); }
    .nav-lang-mobile a { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: rgba(241,240,237,0.75); padding: 0.4rem 1rem; border-radius: 999px; transition: color 0.25s, background 0.25s; }
    .nav-lang-mobile a:hover { color: var(--white); }
    .nav-lang-mobile a.active { color: var(--gold); background: rgba(201,168,76,0.15); }
    .nav-wrapper { position: absolute; top: 100%; left: 0; right: 0; background: var(--green-dark); max-height: 0; overflow: hidden; transition: max-height 0.4s ease; flex-direction: column; align-items: center; }
    .nav-wrapper.open { max-height: 520px; overflow-y: auto; }
    .nav-menu { flex-direction: column; align-items: center; text-align: center; padding: 0.5rem 0; }
    .nav-menu a { display: block; width: 100%; text-align: center; padding: 0.75rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .page-hero { margin-top: 72px; }
    .hero-title { font-size: 2.2rem; }
    .hero-logo img { max-height: 80px; }
    .section { padding: 3.5rem 0; }
    .section-title h2 { font-size: 1.7rem; }
    .card-grid-4, .card-grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .page-hero { min-height: 36vh; }
    .page-hero h1 { font-size: 1.8rem; }
    .lightbox-media img, .lightbox-media video { max-width: 92vw; }
    .lightbox-caption { max-width: 88vw; }
    .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 0.7rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 300px; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 300px; }
    .mosaic { grid-auto-rows: 112px; }
}