/* =============================================
   LE MONT BOIS - Main Stylesheet
   Palette: warm pastels, wood tones, soft greens
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Pastel palette */
    --color-cream:       #FDF6EE;
    --color-cream-dark:  #F5EBDD;
    --color-sand:        #E8D5BE;
    --color-wood:        #C4A77D;
    --color-wood-dark:   #8B6F47;
    --color-brown:       #5C3D2E;
    --color-brown-dark:  #3A2518;

    --color-sage:        #B5C9B3;
    --color-sage-light:  #D4E4D2;
    --color-sage-dark:   #7A9B77;

    --color-rose:        #E8C4C4;
    --color-rose-light:  #F5E0E0;

    --color-white:       #FFFFFF;
    --color-text:        #3A2518;
    --color-text-light:  #6B5443;
    --color-text-muted:  #9B8776;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Nunito', 'Segoe UI', system-ui, sans-serif;

    /* Spacing */
    --section-py: 6rem;
    --container-max: 1140px;
    --container-px: 1.25rem;

    /* Transitions */
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;

    /* Borders & Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(58, 37, 24, 0.06);
    --shadow-md: 0 4px 20px rgba(58, 37, 24, 0.08);
    --shadow-lg: 0 8px 40px rgba(58, 37, 24, 0.12);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-wood-dark);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover,
a:focus-visible {
    color: var(--color-sage-dark);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 3px solid var(--color-sage);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

::selection {
    background-color: var(--color-sage-light);
    color: var(--color-brown-dark);
}

/* ---------- Utilities ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-px);
    padding-right: var(--container-px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.2;
}

.btn--primary {
    background-color: var(--color-wood-dark);
    color: var(--color-white);
    border-color: var(--color-wood-dark);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background-color: var(--color-brown);
    border-color: var(--color-brown);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-wood-dark);
    border-color: var(--color-wood-dark);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background-color: var(--color-wood-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--full {
    width: 100%;
}

/* ---------- Section Headers ---------- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.section-header--left {
    text-align: left;
    margin: 0 0 2rem;
}

.section-header__label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-sage-dark);
    margin-bottom: 0.75rem;
}

.section-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-brown-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-header__desc {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(253, 246, 238, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow var(--transition);
}

.header--scrolled {
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-brown-dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav__logo:hover {
    color: var(--color-wood-dark);
}

.nav__logo-icon {
    font-size: 0.7rem;
    color: var(--color-sage-dark);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav__link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.nav__link:hover,
.nav__link:focus-visible,
.nav__link.active {
    color: var(--color-brown-dark);
    background-color: rgba(200, 180, 155, 0.15);
}

.nav__link--cta {
    background-color: var(--color-wood-dark);
    color: var(--color-white) !important;
    margin-left: 0.5rem;
}

.nav__link--cta:hover,
.nav__link--cta:focus-visible {
    background-color: var(--color-brown) !important;
    color: var(--color-white) !important;
}

/* Mobile toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-brown-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--color-cream) 0%,
        var(--color-cream-dark) 40%,
        var(--color-sage-light) 100%
    );
}

.hero__bg {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        radial-gradient(circle at 20% 50%, var(--color-wood) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, var(--color-wood) 1px, transparent 1px),
        radial-gradient(circle at 60% 80%, var(--color-wood) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px, 100px 100px;
}

.hero__content {
    position: relative;
    text-align: center;
    padding: 8rem 1rem 4rem;
    max-width: 800px;
}

.hero__tagline {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-sage-dark);
    margin-bottom: 1.5rem;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 700;
    color: var(--color-brown-dark);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero__subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--color-text-light);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    animation: hero-scroll-bounce 2s infinite ease-in-out;
}

.hero__scroll-text {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-wood), transparent);
}

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

/* =============================================
   VALUES BANNER
   ============================================= */
.values {
    background-color: var(--color-white);
    padding: 3.5rem 0;
    border-top: 1px solid rgba(200, 180, 155, 0.2);
    border-bottom: 1px solid rgba(200, 180, 155, 0.2);
}

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

.values__item {
    text-align: center;
    padding: 1rem;
}

.values__icon {
    display: block;
    font-size: 1.75rem;
    color: var(--color-sage-dark);
    margin-bottom: 0.75rem;
}

.values__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-brown-dark);
    margin-bottom: 0.5rem;
}

.values__text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* =============================================
   VIDEO SECTION
   ============================================= */
.video-section {
    padding: var(--section-py) 0;
    background-color: var(--color-cream);
}

.video-section__wrapper {
    max-width: 820px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-section__placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--color-cream-dark) 0%, var(--color-sand) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    transition: all var(--transition);
}

.video-section__placeholder:hover {
    background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-wood) 100%);
}

.video-section__placeholder:hover .video-section__play {
    transform: scale(1.1);
    background-color: var(--color-brown);
}

.video-section__play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--color-wood-dark);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 1.75rem;
    padding-left: 4px;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
}

.video-section__play-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
}

/* Iframe when video is loaded */
.video-section__wrapper iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
    padding: var(--section-py) 0;
    background-color: var(--color-white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Portrait columns */
.about__portrait-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.about__portrait-col--left {
    justify-self: center;
}

.about__portrait-col--right {
    justify-self: center;
}

.about__portrait-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition), box-shadow var(--transition);
}

.about__portrait-frame:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.about__portrait-placeholder {
    width: 220px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-cream-dark) 50%, var(--color-rose-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-wood-dark);
    opacity: 0.6;
}

.about__portrait-img {
    width: 220px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.about__portrait-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-brown-dark);
    text-align: center;
}

/* Text column */
.about__text-col {
    position: relative;
    text-align: center;
}

.about__badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    background-color: var(--color-wood-dark);
    color: var(--color-white);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.about__badge-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.about__badge-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.about__text {
    font-size: 1.02rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
    text-align: left;
}

.about__text strong {
    color: var(--color-brown-dark);
}

.about__list {
    list-style: none;
    margin-top: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.about__list li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.95rem;
    color: var(--color-text-light);
    text-align: left;
}

.about__list li::before {
    content: '\2714';
    position: absolute;
    left: 0;
    color: var(--color-sage-dark);
    font-weight: 700;
}

/* =============================================
   REALISATIONS
   ============================================= */
.realisations {
    padding: var(--section-py) 0;
    background-color: var(--color-cream);
}

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

.realisation-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.realisation-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.realisation-card__image {
    position: relative;
    overflow: hidden;
}

.realisation-card__placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(
        135deg,
        var(--color-cream-dark) 0%,
        var(--color-sand) 50%,
        var(--color-sage-light) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-wood);
    opacity: 0.5;
    transition: transform var(--transition-slow);
}

.realisation-card:hover .realisation-card__placeholder {
    transform: scale(1.05);
}

.realisation-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.realisation-card:hover .realisation-card__img {
    transform: scale(1.05);
}

.realisation-card__tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: var(--color-wood-dark);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
}

.realisation-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.realisation-card__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-brown-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.realisation-card__desc {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
    padding: var(--section-py) 0;
    background-color: var(--color-white);
}

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

.testimonial {
    background-color: var(--color-cream);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: none;
    position: relative;
    transition: all var(--transition);
}

.testimonial:hover {
    box-shadow: var(--shadow-md);
}

.testimonial::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--color-sage);
    position: absolute;
    top: 0.5rem;
    left: 1.25rem;
    line-height: 1;
    opacity: 0.6;
}

.testimonial__text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
}

.testimonial__author {
    display: flex;
    flex-direction: column;
    font-style: normal;
}

.testimonial__name {
    font-weight: 700;
    color: var(--color-brown-dark);
    font-size: 0.9rem;
}

.testimonial__context {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
    padding: var(--section-py) 0;
    background: linear-gradient(
        135deg,
        var(--color-cream) 0%,
        var(--color-sage-light) 100%
    );
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: start;
}

.contact__text {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.contact__details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact__detail-icon {
    font-size: 1.25rem;
    color: var(--color-sage-dark);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.contact__detail a {
    color: var(--color-wood-dark);
    font-weight: 600;
}

.contact__detail a:hover {
    color: var(--color-brown);
}

/* Form */
.contact__form-wrapper {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-brown-dark);
    margin-bottom: 0.4rem;
}

.form-optional {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background-color: var(--color-cream);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.7;
}

.form-input:hover {
    border-color: var(--color-sand);
}

.form-input:focus {
    border-color: var(--color-sage);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(181, 201, 179, 0.25);
}

.form-input.is-invalid {
    border-color: #D98080;
    background-color: #FFF5F5;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238B6F47' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-feedback {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    display: none;
}

.form-feedback--success {
    display: block;
    background-color: var(--color-sage-light);
    color: var(--color-sage-dark);
}

.form-feedback--error {
    display: block;
    background-color: var(--color-rose-light);
    color: #994444;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background-color: var(--color-brown-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 2rem;
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
}

.footer__tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer__nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__nav a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer__nav a:hover {
    color: var(--color-white);
}

.footer__copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.5rem;
}

/* =============================================
   REALISATIONS CTA
   ============================================= */
.realisations__cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* =============================================
   GALLERY MODAL
   ============================================= */
.gallery {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.gallery.is-open {
    opacity: 1;
    visibility: visible;
}

.gallery__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(20, 12, 6, 0.92);
}

.gallery__close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    z-index: 10;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color var(--transition), transform var(--transition);
}

.gallery__close:hover,
.gallery__close:focus-visible {
    color: var(--color-white);
    transform: scale(1.15);
}

/* Main viewer area */
.gallery__main {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 3.5rem 3rem 1rem;
    z-index: 1;
}

.gallery__viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
}

.gallery__image {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    user-select: none;
    transition: opacity 0.2s ease;
}

.gallery__image.is-loading {
    opacity: 0.3;
}

.gallery__caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-style: italic;
}

.gallery__caption:empty {
    display: none;
}

/* Navigation arrows */
.gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}

.gallery__nav:hover,
.gallery__nav:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.08);
}

.gallery__nav--prev {
    left: 1rem;
}

.gallery__nav--next {
    right: 1rem;
}

/* Thumbnail strip */
.gallery__thumbs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.gallery__thumbs::-webkit-scrollbar {
    height: 4px;
}

.gallery__thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.gallery__thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all var(--transition);
}

.gallery__thumb:hover {
    opacity: 0.8;
}

.gallery__thumb.is-active {
    border-color: var(--color-white);
    opacity: 1;
}

.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
    .about__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .about__text-col {
        grid-column: 1 / -1;
        order: -1;
    }

    .about__portrait-col--left,
    .about__portrait-col--right {
        justify-self: center;
    }

    .about__portrait-placeholder,
    .about__portrait-img {
        width: 200px;
    }

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

    .realisations__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 4rem;
    }

    /* Gallery mobile */
    .gallery__main {
        padding: 3rem 0.5rem 0.5rem;
    }

    .gallery__nav {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .gallery__nav--prev {
        left: 0.25rem;
    }

    .gallery__nav--next {
        right: 0.25rem;
    }

    .gallery__image {
        max-height: calc(100vh - 180px);
    }

    .gallery__thumb {
        width: 48px;
        height: 48px;
    }

    /* Mobile navigation */
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-cream);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 2rem 2rem;
        gap: 0.25rem;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
        z-index: 999;
    }

    .nav__menu.is-open {
        right: 0;
    }

    .nav__link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .nav__link--cta {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
    }

    /* Toggle animation */
    .nav__toggle.is-active .nav__toggle-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav__toggle.is-active .nav__toggle-line:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.is-active .nav__toggle-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .values__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero__scroll {
        display: none;
    }

    .contact__form {
        grid-template-columns: 1fr;
    }

    .contact__form-wrapper {
        padding: 1.5rem;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .realisations__grid {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .about__portrait-placeholder,
    .about__portrait-img {
        width: 160px;
    }

    .about__badge {
        width: 90px;
        height: 90px;
    }

    .about__badge-number {
        font-size: 1.2rem;
    }

    .about__badge-text {
        font-size: 0.6rem;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero__scroll {
        animation: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
