:root {
    --primary: #5D4037;
    --secondary: #8D6E63;
    --bg: #FDFBF7;
    --accent: #D7CCC8;
    --text: #3E2723;
    --muted: #6d6d6d;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 12px 30px rgba(62, 39, 35, 0.12);
    --container: 1200px;
    --header-h: 78px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0 0 0.75rem;
    line-height: 1.2;
    font-family: 'Playfair Display', Georgia, serif;
}

p {
    margin: 0 0 1rem;
}

.container {
    width: min(var(--container), 92vw);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    background: var(--primary);
    color: var(--white);
    padding: 0.7rem 1rem;
    border-radius: 8px;
    z-index: 3000;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    backdrop-filter: blur(10px);
    background: rgba(253, 251, 247, 0.95);
    border-bottom: 1px solid rgba(62, 39, 35, 0.1);
}

.nav {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    text-decoration: none;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
}

.logo span {
    color: var(--secondary);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
}

.nav-links a:hover,
.footer-links a:hover,
.contact-list a:hover {
    color: var(--secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 999px;
    padding: 0.78rem 1.2rem;
    text-decoration: none;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.22s ease, background-color 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--secondary);
}

.btn-cta {
    white-space: nowrap;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(62, 39, 35, 0.25);
}

.btn-secondary:hover {
    color: var(--white);
    border-color: var(--secondary);
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--secondary) 55%, white);
    outline-offset: 2px;
}

.hero {
    min-height: min(88vh, 760px);
    padding: calc(var(--header-h) + 3rem) 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(125deg, rgba(253, 251, 247, 0.9), rgba(215, 204, 200, 0.55));
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 690px;
}

.hero-subtitle {
    display: inline-block;
    margin-bottom: 0.85rem;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--secondary);
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.hero p {
    max-width: 65ch;
    color: #4e4e4e;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.section {
    padding: 5rem 0;
}

.section-white {
    background: var(--white);
}

.section-dark {
    background: var(--primary);
    color: var(--white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header p {
    color: var(--muted);
    margin: 0;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.media-card,
.content-card,
.card {
    border-radius: var(--radius);
}

.media-card {
    overflow: hidden;
    box-shadow: var(--shadow);
}

.content-card {
    background: rgba(255, 255, 255, 0.06);
    padding: 1.4rem;
}

.signature {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
}

.signature span {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--muted);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    background: var(--white);
    padding: 1.2rem;
    border: 1px solid rgba(62, 39, 35, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgba(141, 110, 99, 0.6);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(141, 110, 99, 0.16);
    color: var(--primary);
    margin-bottom: 0.9rem;
}

.service-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.gallery-link {
    border-radius: 12px;
    overflow: hidden;
    display: block;
    min-height: 200px;
    border: 1px solid rgba(62, 39, 35, 0.15);
}

.gallery-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-link:hover img {
    transform: scale(1.05);
}

.contact-card {
    background: rgba(255, 255, 255, 0.08);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.4rem;
}

.contact-list li {
    margin-bottom: 0.55rem;
}

.map-frame {
    width: 100%;
    min-height: 260px;
    border: 0;
    border-radius: 10px;
}

.contact-form {
    display: grid;
    gap: 0.5rem;
}

.contact-form label {
    font-size: 0.9rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.form-status,
.form-hint {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

.form-status[data-state='ok'] {
    color: #d1f9df;
}

.form-status[data-state='error'] {
    color: #ffe0df;
}

.site-footer {
    background: #3E2723;
    color: rgba(255, 255, 255, 0.82);
    padding: 1rem 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    text-decoration: none;
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    width: min(900px, 94vw);
    background: var(--white);
    border: 1px solid rgba(62, 39, 35, 0.18);
    box-shadow: var(--shadow);
    padding: 0.9rem;
    border-radius: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 2500;
}

.cookie-banner:not([hidden]) {
    display: flex;
}

.cookie-banner p {
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 0.6rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.84);
    display: grid;
    place-items: center;
    z-index: 2600;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-content {
    margin: 0;
    width: min(1000px, 100%);
}

.lightbox-content img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.lightbox-content figcaption {
    color: #fff;
    text-align: center;
    margin-top: 0.6rem;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
}

.reveal-ready {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .cards-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .nav-links {
        display: none;
    }

    .btn-cta {
        padding: 0.68rem 1rem;
        font-size: 0.9rem;
    }

    .cards-grid,
    .gallery-grid,
    .cookie-banner,
    .footer-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .cookie-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
