/* Restaurant demonstration (fictitious "Le Mas Salin", /exemples/restaurant/), after the user's brochure
   (2026-10-28). Loaded after demo.css, by this demo only. Contrasts: white on terracotta 5.7:1,
   terracotta on cream 5.3:1, peach on night blue 8.1:1, white on night blue 15:1. */

.demo--restaurant {
    --mas-accent: #A94A22;
    --mas-peach: #F2B08C;
    --mas-navy: #13283F;
    --mas-cream: #FAF5EF;
    --mas-sand: #F6ECE2;
    --mas-text: #2B2F36;
    --mas-muted: #5B6470;
    --mas-serif: Georgia, "Times New Roman", serif;
    color: var(--mas-text);
    background: var(--mas-cream);
}

.mas-icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mas-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mas-accent);
}

.mas-title {
    margin-top: 6px;
    font-family: var(--mas-serif);
    font-size: clamp(1.7rem, 5.5vw, 2.4rem);
    line-height: 1.15;
    color: var(--mas-navy);
}

/* ---- Buttons ------------------------------------------------------------------- */
.mas-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 24px;
    border: 2px solid var(--mas-accent);
    border-radius: 999px;
    background: var(--mas-accent);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
}

.mas-button:hover,
.mas-button:focus-visible {
    filter: brightness(1.1);
}

.mas-button--light {
    border-color: rgba(255, 255, 255, 0.85);
    background: transparent;
}

.mas-button--outline {
    background: transparent;
    color: var(--mas-accent);
}

/* ---- Header -------------------------------------------------------------------- */
.mas-header {
    background: var(--mas-cream);
    border-bottom: 1px solid #EADFD3;
}

.mas-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding-block: 12px;
}

.mas-header .mas-button {
    min-height: 44px;
    padding-inline: 18px;
}

.mas-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mas-navy);
    text-decoration: none;
}

.mas-logo__mark {
    width: 44px;
    height: 34px;
    fill: none;
    stroke: var(--mas-accent);
    stroke-width: 1.8;
    stroke-linecap: round;
}

.mas-logo__mark path:nth-child(n+3) {
    stroke: var(--mas-navy);
}

.mas-logo__name {
    display: block;
    font-family: var(--mas-serif);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
}

.mas-logo__tag {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mas-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
    font-size: 0.85rem;
}

.mas-nav a {
    padding-block: 4px;
    text-decoration: none;
    color: inherit;
}

.mas-nav a[aria-current="page"],
.mas-nav a:hover,
.mas-nav a:focus-visible {
    box-shadow: inset 0 -2px 0 var(--mas-accent);
}

@media (max-width: 899px) {
    .mas-header .mas-nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 4px 12px;
    }
}

@media (max-width: 479px) {
    /* The hero repeats this button right below: keep the header on two lines only. */
    .mas-header .mas-button {
        display: none;
    }
}

/* ---- Hero ---------------------------------------------------------------------- */
.mas-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #FFFFFF;
    background: var(--mas-navy);
}

.mas-hero__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
}

/* The photo comes from the brochure with its text removed: the dark side keeps the text readable. */
.mas-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to right, rgba(12, 28, 48, 0.72), rgba(12, 28, 48, 0.35) 55%, rgba(12, 28, 48, 0) 80%);
}

.mas-hero .wrap {
    position: relative;
    padding-block: 64px 40px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.mas-hero .mas-eyebrow {
    color: var(--mas-peach);
}

.mas-hero h1 {
    margin-top: 10px;
    font-family: var(--mas-serif);
    font-size: clamp(2.6rem, 10vw, 4.6rem);
    line-height: 1.02;
}

.mas-hero__lead {
    margin-top: 12px;
    max-width: 26rem;
    font-size: clamp(1.05rem, 3.6vw, 1.3rem);
}

@media (min-width: 600px) {
    .mas-hero__lead {
        max-width: none;
    }

    .mas-hero__line {
        display: block;
    }
}

.mas-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.mas-hero__place {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    max-width: 16rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.mas-hero__script {
    margin-top: 18px;
    font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive;
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    line-height: 1.2;
    color: #FFFFFF;
    transform: rotate(-8deg);
    transform-origin: left;
}

@media (max-width: 767px) {
    .mas-hero::before {
        background: linear-gradient(to bottom, rgba(12, 28, 48, 0.75), rgba(12, 28, 48, 0.45));
    }
}

@media (min-width: 768px) {
    .mas-hero {
        min-height: min(42vw, 620px);
    }

    .mas-hero .wrap {
        padding-block: 88px 56px;
    }

    .mas-hero__script {
        position: absolute;
        right: 0;
        bottom: 48px;
        margin: 0;
        transform-origin: right;
    }
}

/* ---- Features ------------------------------------------------------------------ */
.mas-features {
    background: #FFFFFF;
}

.mas-features ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
    margin-block: 0;
    padding-block: 36px;
    padding-inline: 0;
    list-style: none;
    text-align: center;
}

.mas-features svg {
    width: 52px;
    height: 36px;
    margin-inline: auto;
    fill: none;
    stroke: var(--mas-accent);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mas-features h2 {
    margin-top: 10px;
    font-size: 0.98rem;
    color: var(--mas-navy);
}

.mas-features p {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--mas-muted);
}

@media (min-width: 900px) {
    .mas-features ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mas-features li + li {
        border-left: 1px solid #EADFD3;
    }

    .mas-features li {
        padding-inline: 18px;
    }
}

/* ---- Split sections (cuisine, menu) --------------------------------------------- */
.mas-split {
    display: grid;
}

.mas-split__text {
    padding: 48px 16px;
}

.mas-split__text > p:not(.mas-eyebrow) {
    margin-top: 14px;
    max-width: 30rem;
    color: var(--mas-muted);
}

.mas-split__text .mas-button {
    margin-top: 24px;
}

.mas-split__img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    max-height: 420px;
    object-fit: cover;
}

@media (min-width: 900px) {
    .mas-split {
        grid-template-columns: 1fr 1fr;
    }

    .mas-split--dark {
        grid-template-columns: 1.6fr 1fr;
    }

    .mas-split__text {
        padding: 56px 40px 56px max(16px, calc((100vw - 1120px) / 2));
    }

    .mas-split__img {
        max-height: none;
    }
}

.mas-split--dark {
    background: var(--mas-navy);
    color: #FFFFFF;
}

.mas-split--dark .mas-eyebrow {
    color: var(--mas-peach);
}

.mas-split--dark .mas-title {
    color: #FFFFFF;
}

.mas-menu {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.mas-menu li {
    display: grid;
    grid-template-columns: 96px 1fr;
    column-gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--mas-text);
}

.mas-menu img {
    grid-row: span 2;
    width: 96px;
    height: 60px;
    object-fit: contain;
}

.mas-menu h3 {
    font-size: 0.95rem;
    color: var(--mas-navy);
}

.mas-menu p {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--mas-muted);
}

@media (min-width: 600px) {
    .mas-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mas-menu li {
        display: block;
    }

    .mas-menu img {
        margin: 0 auto 10px;
    }
}

.mas-more {
    margin-top: 24px;
}

.mas-more summary {
    list-style: none;
}

.mas-more summary::-webkit-details-marker {
    display: none;
}

.mas-more p {
    margin-top: 14px;
    max-width: 30rem;
    font-size: 0.88rem;
    color: #DCE3EA;
}

/* ---- Booking ------------------------------------------------------------------- */
.mas-booking {
    padding-block: 56px;
    background: var(--mas-sand);
}

.mas-booking .wrap {
    display: grid;
    gap: 28px;
    align-items: center;
}

.mas-booking__text > p:not(.mas-eyebrow) {
    margin-top: 14px;
    max-width: 26rem;
    color: var(--mas-muted);
}

.mas-booking__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 18px 40px -28px rgba(19, 40, 63, 0.6);
}

.mas-field {
    display: grid;
    gap: 2px;
    padding: 8px 12px;
    border: 1px solid #E4DCD3;
    border-radius: 8px;
}

.mas-field label {
    font-size: 0.72rem;
    color: var(--mas-muted);
}

.mas-field input,
.mas-field select {
    min-height: 32px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--mas-navy);
}

.mas-field:focus-within {
    border-color: var(--mas-accent);
    box-shadow: 0 0 0 2px rgba(169, 74, 34, 0.25);
}

.mas-field input:focus,
.mas-field select:focus {
    outline: none;
}

.mas-field--wide {
    grid-column: 1 / -1;
}

.mas-booking__form .mas-button {
    border-radius: 8px;
}

.mas-booking__note,
.mas-booking__status {
    font-size: 0.8rem;
    text-align: center;
    color: var(--mas-muted);
}

.mas-booking__status {
    padding: 10px;
    border-radius: 8px;
    background: var(--mas-sand);
    font-weight: 600;
    color: var(--mas-navy);
}

@media (min-width: 900px) {
    .mas-booking .wrap {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

/* ---- Gallery ------------------------------------------------------------------- */
.mas-gallery {
    padding-block: 48px;
    background: var(--mas-cream);
}

.mas-gallery__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.mas-gallery__arrows {
    display: flex;
    gap: 10px;
}

.mas-gallery__arrows[hidden] {
    display: none;
}

.mas-gallery__arrows button {
    width: 44px;
    height: 44px;
    border: 1px solid #D8CDC1;
    border-radius: 50%;
    background: #FFFFFF;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--mas-navy);
    cursor: pointer;
}

.mas-gallery__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 12px;
    margin: 24px 0 0;
    padding: 0 max(16px, calc((100vw - 1120px) / 2)) 8px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(16px, calc((100vw - 1120px) / 2));
}

.mas-gallery__track li {
    scroll-snap-align: start;
}

.mas-gallery__track img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    object-fit: cover;
}

.mas-gallery__track:focus-visible {
    outline: 2px solid var(--mas-accent);
    outline-offset: 2px;
}

/* ---- Practical information ------------------------------------------------------- */
.mas-infos {
    padding-block: 44px;
    background: var(--mas-navy);
    color: #FFFFFF;
}

.mas-infos .mas-eyebrow {
    color: var(--mas-peach);
}

.mas-infos__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    margin-top: 22px;
}

.mas-infos__grid > div {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 10px;
    align-content: start;
}

.mas-infos__grid .mas-icon {
    grid-row: span 2;
    width: 24px;
    height: 24px;
}

.mas-infos h3 {
    font-size: 0.9rem;
}

.mas-infos p {
    font-size: 0.82rem;
    color: #C7D0DA;
}

.mas-infos__map {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 380px;
    border-radius: 10px;
}

@media (min-width: 900px) {
    .mas-infos__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) 1.4fr;
        align-items: start;
    }

    .mas-infos__map {
        grid-column: auto;
    }
}

/* ---- Footer -------------------------------------------------------------------- */
.mas-footer {
    padding-block: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--mas-navy);
    color: #FFFFFF;
}

.mas-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}

.mas-footer .mas-logo {
    color: #FFFFFF;
}

.mas-footer .mas-logo__mark path:nth-child(n+3) {
    stroke: #FFFFFF;
}

.mas-footer .mas-logo__mark {
    stroke: var(--mas-peach);
}

.mas-footer .mas-nav {
    font-size: 0.8rem;
}

.mas-footer__social {
    display: flex;
    gap: 14px;
}

.demo--restaurant .demo-footer {
    background: #0C1C2D;
}
