:root {
    --color-primary: #117a77;
    --color-primary-dark: #0b5553;
    --color-primary-light: #e6f4f3;
    --color-accent: #d97706;
    --color-ink: #1a2a2a;
    --color-ink-light: #4a5c5b;
    --color-muted: #7a8d8c;
    --color-bg: #ffffff;
    --color-bg-alt: #f3f8f7;
    --color-border: #d7e4e3;

    /* Infima / Docusaurus default stack (same as production). */
    --font-body: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-display: var(--font-body);
    /* Material UI default used on the original Hubloteurs cards. */
    --font-card: Roboto, Helvetica, Arial, sans-serif;

    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;

    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 8px 30px rgba(17, 122, 119, 0.1);
    --transition: 0.25s ease;
    --maxw: 1120px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 100%;
    font-weight: 400;
    line-height: 1.65;
    color: var(--color-ink);
    background: var(--color-bg);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.25;
    font-weight: 700;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-lg); }
.section { padding: var(--space-2xl) 0; }
.section__title { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: var(--space-lg); color: var(--color-primary-dark); position: relative; }
.section__title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--color-accent); margin-top: var(--space-sm); }
.section__title--center { text-align: center; }
.section__title--center::after { margin-left: auto; margin-right: auto; }
.section__actions { margin-top: var(--space-lg); display: flex; gap: var(--space-md); flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
}
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: 0 6px 18px rgba(17, 122, 119, 0.35); }
.btn--primary:hover { background: var(--color-primary-dark); text-decoration: none; transform: translateY(-2px); }
.btn--outline { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }
.btn--outline:hover { background: var(--color-primary); color: #fff; text-decoration: none; }
.btn--ghost { border-color: var(--color-primary); color: var(--color-primary-dark); background: rgba(255, 255, 255, 0.6); }
.btn--ghost:hover { background: #fff; color: var(--color-primary-dark); text-decoration: none; }
.btn--lg { padding: 0.95rem 2rem; font-size: 1.05rem; }

.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}
.header--scrolled { box-shadow: 0 4px 20px rgba(17, 122, 119, 0.1); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.header__logo { display: flex; align-items: center; }
.header__logo img { max-height: 42px; width: auto; }
.nav { display: flex; gap: var(--space-lg); align-items: center; }
.nav__link { color: var(--color-ink); font-weight: 500; }
.nav__link:hover { color: var(--color-primary); text-decoration: none; }
.nav__link--active { color: var(--color-primary); font-weight: 600; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--color-ink); transition: var(--transition); }

.hero {
    position: relative;
    min-height: 78vh;
    display: flex; align-items: center;
    color: #fff;
    overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.hero__bg--default {
    background:
        radial-gradient(ellipse 70% 60% at 70% 20%, rgba(217, 119, 6, 0.35), transparent 55%),
        linear-gradient(135deg, #0b5553 0%, #117a77 48%, #1a9a96 100%);
}
.hero__overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 42% 34% at 50% 42%, rgba(16, 22, 22, 0.38) 0%, rgba(16, 22, 22, 0.14) 50%, transparent 70%);
}
.hero__inner {
    position: relative;
    text-align: center;
    padding: var(--space-2xl) 0 5rem;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}
.hero__logo-title {
    margin: 0 auto var(--space-lg);
    line-height: 0;
}
.hero__logo {
    width: min(440px, 88vw);
    height: auto;
    margin: 0 auto;
    filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}
.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: var(--space-md);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 14px rgba(0, 0, 0, 0.45);
}
.hero__subtitle {
    font-size: clamp(1.08rem, 2vw, 1.32rem);
    max-width: 36rem;
    margin: 0 auto var(--space-xl);
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 14px rgba(0, 0, 0, 0.45);
}
.hero__actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }
.hero .btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
}
.hero .btn--ghost:hover { background: #fff; color: var(--color-primary-dark); }
.highlights { margin-top: var(--space-xl); position: relative; z-index: 5; padding-bottom: var(--space-xl); }
.highlights__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); align-items: stretch; }
.highlight {
    display: flex;
    flex-direction: column;
    text-align: center;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}
.highlight__visual {
    height: 170px;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.highlight__svg { height: 160px; width: auto; max-width: 100%; margin: 0 auto; display: block; }
.highlight__svg.highlight__svg--photo {
    height: auto;
    width: auto;
    max-width: 100%;
    max-height: 170px;
    object-fit: contain;
}
.highlight__title {
    color: var(--color-primary-dark);
    margin-bottom: var(--space-sm);
}
.highlight p { color: var(--color-ink-light); }

.page-header {
    position: relative;
    padding: var(--space-2xl) 0 var(--space-xl);
    background: linear-gradient(160deg, var(--color-primary-light) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--color-border);
}
.page-header__title { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--color-primary-dark); }
.page-header__intro { margin-top: var(--space-md); max-width: 640px; color: var(--color-ink-light); }

.gallery-block { margin: var(--space-lg) 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: var(--space-sm); }
.gallery__item { overflow: hidden; border-radius: var(--radius); position: relative; cursor: zoom-in; }
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(6) { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery__item:hover img { transform: scale(1.08); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-lg); margin: var(--space-lg) 0; }
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card__img { aspect-ratio: 5/3; object-fit: cover; width: 100%; }
.card__body { padding: var(--space-lg); }
.card__title { font-size: 1.15rem; margin-bottom: var(--space-sm); }

.block-image { margin: var(--space-lg) 0; }
.block-image a[data-lightbox] { display: block; cursor: zoom-in; }
.block-image figcaption { font-size: 0.9rem; color: var(--color-muted); margin-top: var(--space-sm); text-align: center; }
.block-quote { border-left: 4px solid var(--color-primary); padding-left: var(--space-lg); margin: var(--space-lg) 0; font-size: 1.15rem; font-style: italic; }
.block-quote cite { display: block; margin-top: var(--space-sm); font-size: 0.95rem; color: var(--color-muted); font-style: normal; }
.block-heading { color: var(--color-primary-dark); margin: var(--space-lg) 0 var(--space-sm); }

.prose { max-width: 860px; margin: 0 auto; }
.prose .gallery-block { max-width: none; }
.prose .gallery { max-width: none; }
.prose > * { margin-bottom: var(--space-lg); }
.prose__lead { font-size: 1.3rem; line-height: 1.6; color: var(--color-ink); font-weight: 500; }
.prose ul, .prose ol { margin: var(--space-md) 0 var(--space-md) 1.2rem; }
.prose li { margin-bottom: 0.4rem; color: var(--color-ink-light); }
.prose a { text-decoration: underline; font-weight: 500; }
.prose a.btn { color: #fff; text-decoration: none; }
.prose a.btn--outline { color: var(--color-primary); }
.prose a.btn--outline:hover { color: #fff; }
.prose h2:not(.block-heading):not(.pricing-card__title), .prose h3, .prose h4 { color: var(--color-primary-dark); margin: var(--space-xl) 0 var(--space-sm); }
.prose p { margin-bottom: var(--space-md); }

.pricing-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-xl);
}
.pricing-card__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-primary-dark);
    margin: 0 0 var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 3px solid var(--color-primary);
}
.pricing-card__text { color: var(--color-ink); }
.pricing-card__text p { margin-bottom: var(--space-md); }
.pricing-card__table { margin: var(--space-lg) 0; overflow-x: auto; }
.pricing-card table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}
.pricing-card th,
.pricing-card td {
    padding: 0.7rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.pricing-card thead th {
    color: var(--color-primary-dark);
    font-weight: 600;
    background: var(--color-bg-alt);
}
.pricing-card tbody th {
    font-weight: 600;
    color: var(--color-ink);
    white-space: nowrap;
}
.pricing-card tbody tr:last-child th,
.pricing-card tbody tr:last-child td { border-bottom: 0; }
.pricing-card tbody td { color: var(--color-primary-dark); font-weight: 600; }
.pricing-card tbody td:empty::after {
    content: "-";
    color: var(--color-muted);
    font-weight: 500;
}
.pricing-card__notes {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px dashed var(--color-border);
    color: var(--color-ink-light);
    font-size: 0.98rem;
}
.pricing-card__notes ul { margin: var(--space-sm) 0 var(--space-md) 1.1rem; }
.pricing-card__notes li { margin-bottom: 0.45rem; }

.richtext { font-size: 1.05rem; color: var(--color-ink-light); }
.richtext p { margin-bottom: var(--space-md); }
.richtext a { text-decoration: underline; }

.pave__inner { max-width: 760px; }
.pave--teal {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
}
.pave--teal .section__title { color: #fff; }
.pave--teal .richtext,
.pave--teal .richtext p { color: rgba(255, 255, 255, 0.94); }
.pave--teal .btn--primary {
    background: #fff;
    color: var(--color-primary-dark);
}
.pave--teal .btn--primary:hover { background: var(--color-accent); color: #fff; }

.hubloteurs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}
.hubloteur {
    display: flex;
    gap: var(--space-lg);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    align-items: center;
}
.hubloteur__photo {
    position: relative;
    flex: none;
    width: 148px;
    height: 148px;
    background: none;
}
.hubloteur__photo-crop {
    position: absolute;
    /* Keep the photo inside the scribble (was overflowing at the bottom). */
    width: 84%;
    height: 84%;
    top: 6.5%;
    left: 7.5%;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--color-bg-alt);
    z-index: 0;
}
.hubloteur__photo-crop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}
.hubloteur__photo-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
}
.hubloteur__photo--empty {
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
}
.hubloteur__name {
    font-family: var(--font-card);
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.167;
    letter-spacing: 0;
    color: var(--color-primary-dark);
    margin-bottom: 0.2rem;
}
.hubloteur__desc {
    font-family: var(--font-card);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.00938em;
    color: var(--color-ink-light);
}
.hubloteur__links { display: flex; gap: 0.55rem; margin-top: 0.7rem; }
.hubloteur__links a {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.hubloteur__links a:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.footer {
    background: linear-gradient(180deg, #ffffff, var(--color-primary-light));
    color: var(--color-ink-light);
    padding: var(--space-2xl) 0;
    margin-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
}
.footer__inner { text-align: center; display: flex; flex-direction: column; gap: var(--space-md); align-items: center; }
.footer__logo { height: 48px; width: auto; object-fit: contain; }
.footer__text { color: var(--color-ink); font-weight: 500; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); justify-content: center; }
.footer__links a { color: var(--color-primary); font-weight: 600; }
.footer__partner img { max-height: 52px; width: auto; }
.footer__copy { font-size: 0.85rem; color: var(--color-muted); }
.footer__copy a { color: var(--color-muted); text-decoration: underline; }

body.no-scroll { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(10, 22, 22, 0.93); padding: 5vh 4vw; }
.lightbox.is-open { display: flex; animation: lb-fade 0.18s ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.85rem; max-width: 92vw; max-height: 90vh; }
.lightbox__img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); background: #fff; }
.lightbox__caption { color: #fff; font-size: 0.95rem; text-align: center; opacity: 0.9; max-width: 60ch; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255, 255, 255, 0.14); color: #fff; border: none; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; transition: background 0.15s ease, transform 0.15s ease; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox__nav:active { transform: translateY(-50%) scale(0.94); }
.lightbox__close { top: 1.1rem; right: 1.3rem; width: 46px; height: 46px; font-size: 1.9rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 1.5rem; }
.lightbox__nav--prev { left: 1.3rem; }
.lightbox__nav--next { right: 1.3rem; }
.lightbox__nav[hidden] { display: none !important; }

@media (max-width: 900px) {
    .highlights__grid { grid-template-columns: 1fr; }
    .highlights { margin-top: var(--space-lg); }
    .hubloteurs { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
    .gallery__item:nth-child(1), .gallery__item:nth-child(6) { grid-column: span 2; }
    .gallery__item:nth-child(1) { grid-row: span 2; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .header__inner { height: 76px; }
    .header__logo img { max-height: 34px; }
    .hero { min-height: 88vh; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; text-align: center; }
    .nav {
        position: absolute; top: 76px; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: #fff; border-bottom: 1px solid var(--color-border);
        max-height: 0; overflow: hidden; transition: max-height var(--transition);
    }
    .nav--open { max-height: 400px; }
    .nav__link { padding: var(--space-md) var(--space-lg); width: 100%; border-top: 1px solid var(--color-border); }
    .nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle--open span:nth-child(2) { opacity: 0; }
    .nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hubloteur { flex-direction: column; text-align: center; }
    .hubloteur__links { justify-content: center; }
    .pricing-card { padding: var(--space-lg); }
}

@media (max-width: 600px) {
    .lightbox__nav { width: 44px; height: 44px; font-size: 1.25rem; }
    .lightbox__nav--prev { left: 0.5rem; }
    .lightbox__nav--next { right: 0.5rem; }
    .lightbox__close { top: 0.6rem; right: 0.6rem; width: 42px; height: 42px; }
    .lightbox__img { max-height: 74vh; }
}
