/* ===== Variables ===== */
:root {
    --navy: #1a2744;
    --navy-light: #243456;
    --gold: #b8923e;
    --gold-light: #d4ad5a;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #eef0f2;
    --gray-600: #5a6270;
    --gray-800: #2d3239;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background: var(--navy);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
}

.logo-icon {
    font-size: 1.6rem;
    color: var(--gold);
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    color: var(--white);
    padding: 160px 0 100px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slideshow-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    padding: 0;
}

.dot.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.3);
}

.dot:hover {
    border-color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(26, 39, 68, 0.88) 0%,
        rgba(36, 52, 86, 0.82) 50%,
        rgba(26, 39, 68, 0.90) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ===== Hero photo (clickable) ===== */
.hero-photo-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-bottom: 28px;
}

.hero-photo {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 4px solid var(--gold);
    filter: grayscale(100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: filter 0.4s, transform 0.4s, border-color 0.4s;
    animation: photo-glow 3s ease-in-out infinite;
}

@keyframes photo-glow {
    0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(184, 146, 62, 0); }
    50% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px 6px rgba(184, 146, 62, 0.35); }
}

.hero-photo-wrapper:hover .hero-photo {
    filter: grayscale(50%);
    transform: scale(1.04);
    border-color: var(--gold-light);
}

.hero-photo-hint {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
    font-style: italic;
}

.hero-photo-wrapper:hover .hero-photo-hint {
    color: var(--gold-light);
}

/* ===== Bio panel ===== */
.bio-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.4s ease, margin 0.4s ease, padding 0.4s ease;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    padding: 0 28px;
    backdrop-filter: blur(8px);
    border: 1px solid transparent;
}

.bio-panel.open {
    max-height: 500px;
    opacity: 1;
    margin: 20px auto 24px;
    padding: 24px 28px;
    border-color: rgba(184, 146, 62, 0.3);
}

.bio-panel p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.7;
}

.bio-panel p:last-child {
    margin-bottom: 0;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 6px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.hero-batonnier {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 16px;
    font-style: italic;
    letter-spacing: 0.5px;
}

.hero-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
}

.btn:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* ===== Urgency banner ===== */
@keyframes urgency-pulse {
    0%, 100% { background-color: #b8923e; }
    50% { background-color: #d4ad5a; }
}

.urgency-banner {
    background: var(--gold);
    color: var(--white);
    padding: 14px 0;
    animation: urgency-pulse 3s ease-in-out infinite;
}

.urgency-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.urgency-text {
    font-size: 0.95rem;
}

.urgency-btn {
    display: inline-block;
    background: var(--white);
    color: var(--navy);
    padding: 8px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.urgency-btn:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
}

/* ===== Sections ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 48px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--gold);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ===== Fade-in animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Cards grid ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== Card with background image ===== */
.card {
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s, transform 0.3s;
    overflow: hidden;
}

.card-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    padding: 0;
}

.card-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 39, 68, 0.82);
    transition: background 0.3s;
}

.card-bg:hover .card-bg-overlay {
    background: rgba(26, 39, 68, 0.72);
}

.card-inner {
    position: relative;
    z-index: 1;
    padding: 32px 24px;
}

.card-clickable {
    cursor: pointer;
    user-select: none;
}

.card-clickable:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--gold-light);
}

.card-bg h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 8px;
}

.card-bg p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ===== Card detail (expandable) ===== */
.card-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    text-align: left;
    margin-top: 0;
}

.card.expanded .card-detail {
    max-height: 600px;
    opacity: 1;
    margin-top: 20px;
}

.card-bg .card-detail h4 {
    color: var(--gold-light);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 8px;
    margin-top: 16px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.card-detail h4:first-child {
    margin-top: 0;
}

.card-detail ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
}

.card-bg .card-detail li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.card-detail li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

.card-toggle {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--gold-light);
    font-weight: 600;
    transition: color 0.2s;
}

.card-clickable:hover .card-toggle {
    color: var(--white);
}

/* ===== Cabinet ===== */
.cabinet-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cabinet-text p {
    margin-bottom: 16px;
    color: var(--gray-600);
    font-size: 1.05rem;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.contact-card h3 {
    color: var(--navy);
    margin-bottom: 16px;
    font-size: 1.15rem;
}

.contact-card p {
    color: var(--gray-600);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.phone-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.phone-link:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.email-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
}

.email-link:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* ===== Map ===== */
.map-container {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: 0;
    display: block;
}

/* ===== Footer ===== */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 32px 0;
    font-size: 0.9rem;
}

.footer-note {
    margin-top: 8px;
    font-size: 0.75rem;
    opacity: 0.4;
}

/* ===== Back to top ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    pointer-events: none;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--navy-light);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .navbar {
        background: var(--navy);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        padding: 120px 0 70px;
        min-height: auto;
    }

    .hero-photo {
        width: 180px;
        height: 180px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .bio-panel {
        max-width: 100%;
    }

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

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

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}
