/* ==========================================================================
   The home page (welcome.blade.php, components/public/home/*): eight short sections, white and ivory
   (.section-fade of custom.css) in turn. Tokens, buttons, the arch and the passe-partout come from custom.css.
   Fluid sizes only (rem, %, clamp, vw), logical properties: Arabic pages mirror with no extra rule except the arrows.
   ========================================================================== */

.home-container {
    width: min(100% - 2 * var(--gutter), var(--content-max));
    margin-inline: auto;
}

.home-section {
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

/* --- Shared type ---------------------------------------------------------------------------------------------- */
.home-script {
    margin: 0 0 0.15em;
    font-family: var(--font-script);
    font-size: clamp(2.2rem, 1.7rem + 2vw, 3.1rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--gold);
    text-align: center;
}

.home-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.6rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: var(--heading);
    text-align: center;
}

.home-eyebrow {
    margin: 0 0 0.6rem;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-deep-ivory);
}

.home-heading {
    margin-block-end: clamp(2.25rem, 5vw, 3.75rem);
    text-align: center;
}

/* The gold cedar between two hairlines that fade out at both ends. */
.home-cedar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-block: 0.9rem 0;
    color: var(--gold);
}

.home-cedar::before,
.home-cedar::after {
    content: "";
    inline-size: clamp(2.5rem, 8vw, 4.5rem);
    block-size: 1px;
    background: linear-gradient(to right, transparent, var(--gold));
}

.home-cedar::after {
    background: linear-gradient(to left, transparent, var(--gold));
}

.home-cedar svg {
    inline-size: 2.1rem;
    block-size: auto;
    fill: currentColor;
}

.home-cedar--start {
    justify-content: flex-start;
}

.home-cedar--start::before {
    display: none;
}

/* A quiet text link with a gold hairline under it and an arrow (mirrored on Arabic pages). */
.home-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45em;
    padding-block-end: 0.15em;
    border-block-end: 1px solid var(--gold-line);
    font-family: var(--font-serif);
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: var(--heading);
    text-decoration: none;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.home-link:hover,
.home-link:focus-visible {
    border-color: var(--heading);
    color: var(--heading);
    text-decoration: none;
}

.home-link__arrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.85em;
}

/* When a link wraps on a narrow column (320 px), the arrow follows its last word instead of flying to the far end:
   the text and the arrow flow in one inline box. */
.home-link {
    display: inline-block;
    max-inline-size: 100%;
}

.home-link__arrow {
    display: inline;
    margin-inline-start: 0.45em;
}

/* Arabic pages: the arrow points the reading way with the left arrow drawn in its place (a transform would need a box,
   and a box may break away from the last word). */
[dir="rtl"] .home-link__arrow,
[dir="rtl"] .home-invitation .btn-brand .home-link__arrow {
    margin-inline-start: 0.4rem;
    font-size: 0;
    transform: none;
}

[dir="rtl"] .home-link__arrow::after {
    content: "\2190";
    font-size: 0.95rem;
}

[dir="rtl"] .home-link__arrow {
    transform: scaleX(-1);
}

.home-more {
    margin: 1.75rem 0 0;
}

.home-more--center {
    text-align: center;
}

/* --- I. The threshold ------------------------------------------------------------------------------------------- */
.home-hero {
    padding-block: clamp(1.75rem, 4vw, 4rem) clamp(3rem, 6vw, 5rem);
    background: var(--white);
}

.home-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
}

.home-hero__script {
    margin: 0;
    font-family: var(--font-script);
    font-size: clamp(2.9rem, 2.1rem + 3.4vw, 4.75rem);
    font-weight: 400;
    line-height: 1.05;
    color: var(--gold);
    cursor: default;
    user-select: none;
}

.home-hero__title {
    margin: 0.2rem 0 0;
    text-wrap: balance;
    font-family: var(--font-serif);
    font-size: clamp(1.55rem, 1.05rem + 2.1vw, 2.7rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--heading);
}

.home-hero__cedar {
    margin-block-start: 1rem;
}

/* On phones and tablets the arch takes the whole width of the page between the gutters (up to 24rem), whatever the
   height of the screen: the same picture, in the same proportions, on every device. */
.home-hero__media {
    inline-size: min(100%, 24rem);
    margin-block: 1.75rem 0.5rem;
}

.home-hero__arch {
    margin: 0.55rem;
}

.home-hero__lead {
    margin: 1.75rem 0 0;
    max-inline-size: 34rem;
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
    font-weight: 300;
    line-height: 1.7;
    color: var(--ink-soft);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.1rem 2rem;
    margin-block-start: 1.75rem;
}

.home-hero__status {
    margin-block-start: 1.5rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

/* From 62em the header's utility line already says whether we are open: the hero does not say it twice. */
@media (min-width: 62em) {
    .home-hero__status {
        display: none;
    }
}

/* The footer's "Good to know" line repeats the facts card of this page (section VI): said once, here. */
.page-home .site-footer__good {
    display: none;
}

@media (min-width: 62em) {
    .home-hero {
        padding-block: clamp(3rem, 5vw, 5rem) clamp(4rem, 7vw, 6.5rem);
    }

    .home-hero__inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        column-gap: clamp(3rem, 6vw, 6rem);
        align-content: center;
        justify-items: start;
        text-align: start;
    }

    .home-hero__inner > * {
        grid-column: 1;
    }

    .home-hero__media {
        grid-column: 2;
        grid-row: 1 / span 7;
        align-self: center;
        justify-self: center;
        /* the drawing at the same scale as before its side margins were trimmed (22rem for 360 units) */
        inline-size: min(100%, 20.3rem);
        margin: 0;
    }

    .home-hero__script {
        margin-inline-start: -0.08em;
    }

    .home-hero__cedar {
        justify-content: flex-start;
    }

    .home-hero__cedar::before {
        display: none;
    }

    .home-hero__actions {
        justify-content: flex-start;
    }
}

/* --- II. Welcome ------------------------------------------------------------------------------------------------ */
.home-welcome__inner {
    max-inline-size: 46rem;
    text-align: center;
}

.home-welcome__text {
    margin-block-start: 2rem;
}

.home-welcome__text p {
    margin: 0 0 1.1em;
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 1.1rem + 0.35vw, 1.35rem);
    font-weight: 500;
    line-height: 1.6;
    color: var(--ink);
}

.home-welcome .home-more {
    margin-block-start: 1rem;
}

/* --- III. The four movements ------------------------------------------------------------------------------------ */
.home-courses__list {
    display: grid;
    /* One column as wide as the page (not "auto"): a long word wraps instead of widening it past a phone screen. */
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(3.5rem, 8vw, 6rem);
}

.home-course {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.home-course__media {
    max-inline-size: 34rem;
    inline-size: calc(100% - 1.2rem);
    justify-self: center;
}

.home-course__body {
    max-inline-size: 30rem;
    inline-size: 100%;
    justify-self: center;
}

.home-course__numeral {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1;
    letter-spacing: 0.08em;
    color: var(--gold);
}

.home-course__title {
    margin: 0.55rem 0 0;
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 1.25rem + 0.6vw, 1.75rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--heading);
}

.home-course__arabic {
    margin: 0.35rem 0 0;
    font-family: "Noto Kufi Arabic", "Kufi Fallback", serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gold-deep);
    /* The word is dir="rtl" and shown on left-to-right pages only: its "end" is the start of the page line, so it
       aligns with the title above it. */
    text-align: end;
}

.home-course__text {
    margin: 0.9rem 0 0;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--ink-soft);
}

.home-course__note {
    margin: 0.3rem 0 0;
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--gold-deep);
}

.home-course .home-more {
    margin-block-start: 1.4rem;
}

@media (min-width: 48em) {
    .home-course {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        column-gap: clamp(2.5rem, 6vw, 5rem);
    }

    .home-course__media,
    .home-course__body {
        justify-self: stretch;
    }

    .home-course:nth-child(even) .home-course__media {
        order: 2;
    }
}

/* --- Printed menu lines: name, dotted leader, price ------------------------------------------------------------- */
.dish-lines {
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
}

.dish-line {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding-block: 0.4rem;
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 500;
    line-height: 1.35;
    font-variant-numeric: lining-nums;
}

.dish-line__name {
    flex: 0 1 auto;
    min-inline-size: 0;
    color: var(--ink);
    text-decoration: none;
}

a.dish-line__name {
    background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
    transition: background-size 0.3s ease, color 0.3s ease;
}

a.dish-line__name:hover,
a.dish-line__name:focus-visible {
    color: var(--heading);
    text-decoration: none;
    background-size: 100% 1px;
}

.dish-line__leader {
    flex: 1 1 1.5rem;
    min-inline-size: 1.5rem;
    border-block-end: 1px dotted var(--gold);
    transform: translateY(-0.3em);
}

.dish-line__price {
    flex: none;
    color: var(--gold-deep);
    white-space: nowrap;
}

.section-fade .dish-line__price {
    color: var(--gold-deep-ivory);
}

/* --- The typographic placeholder (no photo yet) ----------------------------------------------------------------- */
.home-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    inline-size: 100%;
    block-size: 100%;
    padding: 1rem;
    background:
        radial-gradient(ellipse at 50% 40%, var(--card) 0%, var(--ivory) 75%);
    text-align: center;
}

.home-placeholder__initial {
    font-family: var(--font-script);
    font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
    line-height: 1;
    color: var(--gold);
}

.home-placeholder__word {
    font-family: "Noto Kufi Arabic", "Kufi Fallback", serif;
    font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
    font-weight: 300;
    line-height: 1.4;
    color: var(--gold);
}

.home-placeholder__cedar {
    margin: 0;
}

.home-placeholder__cedar svg {
    inline-size: 1.5rem;
}

.home-placeholder__cedar::before,
.home-placeholder__cedar::after {
    inline-size: 1.75rem;
}

.home-placeholder__name {
    margin-block-start: 0.4rem;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-deep-ivory);
}

/* --- IV. The signature ------------------------------------------------------------------------------------------ */
.home-signature__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    padding-block: clamp(2.5rem, 5vw, 4rem);
    border-block: 3px double var(--gold);
}

.home-signature__body {
    text-align: center;
}

.home-signature__title {
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.home-signature__text {
    margin: 1rem auto 0;
    max-inline-size: 30rem;
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 1.1rem + 0.35vw, 1.35rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.55;
    color: var(--ink);
}

/* Arabic has no italic: a slanted Arabic face is a fake. */
[dir="rtl"] .home-signature__text {
    font-style: normal;
}

.home-signature .dish-lines {
    max-inline-size: 26rem;
    margin-inline: auto;
    text-align: start;
}

.home-signature__media {
    justify-self: center;
    inline-size: min(64vw, 17rem);
}

@media (min-width: 48em) {
    .home-signature__inner {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
        column-gap: clamp(2.5rem, 6vw, 5rem);
        padding-inline: clamp(1rem, 4vw, 4rem);
    }

    .home-signature__body,
    .home-signature__title {
        text-align: start;
    }

    .home-signature__text,
    .home-signature .dish-lines {
        margin-inline: 0;
    }
}

/* --- V. The four doors ------------------------------------------------------------------------------------------ */
.home-doors__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-door {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    column-gap: 1.5rem;
    align-items: start;
    align-content: start;
}

.home-door__arch {
    display: grid;
    place-items: center;
    margin: 0.35rem;
    outline-offset: 0.3rem;
    background: radial-gradient(ellipse at 50% 35%, var(--card) 0%, var(--ivory) 80%);
}

/* The Arabic word of the door, in gold, until its photograph is taken (one word per door, so no two arches match). */
.home-door__mark {
    padding-block-start: 0.4em;
    font-family: "Noto Kufi Arabic", "Kufi Fallback", serif;
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.4;
    white-space: nowrap;
    color: var(--gold);
}

.home-door__name {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--heading);
}

.home-door__text {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--ink-soft);
}

.home-door__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.9rem 0 0;
}

.home-door__delivery {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gold-deep);
    text-decoration: underline;
    text-decoration-color: var(--gold-line);
    text-underline-offset: 0.25em;
}

.home-door__delivery:hover,
.home-door__delivery:focus-visible {
    color: var(--heading);
}

.home-door__external {
    margin-inline-start: 0.3em;
}

@media (min-width: 40em) {
    .home-doors__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: clamp(2rem, 5vw, 4rem);
        row-gap: 3rem;
    }
}

@media (min-width: 62em) {
    .home-doors__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: clamp(1.5rem, 3vw, 2.75rem);
    }

    .home-door {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .home-door__arch {
        inline-size: min(100%, 9rem);
        margin: 0.5rem 0.5rem 1.6rem;
        outline-offset: 0.45rem;
    }

    .home-door__mark {
        font-size: clamp(1.4rem, 0.9rem + 0.9vw, 1.8rem);
    }

    .home-door__links {
        align-items: center;
    }
}

/* --- VI. For every guest: a menu card of facts ------------------------------------------------------------------ */
.home-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: clamp(2.5rem, 6vw, 5rem);
    max-inline-size: 60rem;
    margin: 0 auto;
}

.home-facts__row {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    padding-block: 0.6rem;
}

/* The dotted leader, between the label and the fact. */
.home-facts__row::before {
    content: "";
    order: 2;
    flex: 1 1 1.5rem;
    min-inline-size: 1.5rem;
    border-block-end: 1px dotted var(--gold);
    transform: translateY(-0.3em);
}

.home-facts__label {
    order: 1;
    flex: none;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--heading);
}

.home-facts__text {
    order: 3;
    flex: 0 1 auto;
    max-inline-size: 62%;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.55;
    color: var(--ink);
    text-align: end;
}

.home-facts__text a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 0.25em;
}

.home-facts__text a:hover,
.home-facts__text a:focus-visible {
    color: var(--heading);
}

@media (min-width: 62em) {
    .home-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* A narrow card (phones): the label and its leader on one line, the fact under them, so a long label never squeezes
   the fact into one word per line or pushes it off the screen. Measured on the card itself (cqi), not the screen. */
.home-facts-wrap {
    container-type: inline-size;
}

@container (max-width: 32rem) {
    .home-facts__row {
        flex-wrap: wrap;
        row-gap: 0.15rem;
    }

    .home-facts__label {
        flex: 0 1 auto;
        min-inline-size: 0;
    }

    .home-facts__text {
        flex: 1 0 100%;
        max-inline-size: 100%;
    }
}

/* --- VII. Your table: the invitation card ----------------------------------------------------------------------- */
.home-invitation {
    background: var(--white);
}

.invitation-card {
    max-inline-size: 44rem;
    margin-inline: auto;
    padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3.5rem);
    border: 1px solid var(--gold);
    outline: 1px solid var(--gold-line);
    outline-offset: -0.55rem;
    background: var(--card);
    text-align: center;
}

.invitation-form {
    display: grid;
    /* One column as wide as the page (not "auto"): a long word wraps instead of widening it past a phone screen. */
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    margin-block-start: 2rem;
}

.invitation-form__group {
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.invitation-form__label {
    display: block;
    inline-size: 100%;
    margin: 0 0 0.75rem;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.invitation-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.invitation-chip {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-block-size: 2.75rem;
    margin: 0;
    padding: 0.45em 1.25em;
    border: 1px solid var(--gold-line);
    border-radius: 2px;
    background: var(--white);
    font-family: var(--font-serif);
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.invitation-chip input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.invitation-chip:hover {
    border-color: var(--heading);
}

.invitation-chip:has(input:checked) {
    border-color: var(--heading);
    background: var(--ivory);
    color: var(--heading);
}

.invitation-chip:has(input:focus-visible) {
    outline: 1px solid var(--heading);
    outline-offset: 0.2rem;
}

.invitation-chip.is-closed {
    border-style: dashed;
    color: var(--ink-soft);
    opacity: 0.6;
    cursor: not-allowed;
}

.invitation-chip.is-closed input {
    cursor: not-allowed;
}

.invitation-chip__closed {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.invitation-chip[hidden],
.invitation-form__other[hidden] {
    display: none;
}

.invitation-form__other {
    display: block;
    margin: 0.9rem auto 0;
    max-inline-size: 15rem;
}

.invitation-form:has([data-day-other]:not(:checked)) .invitation-form__other {
    display: none;
}

.invitation-form__date {
    inline-size: 100%;
    min-block-size: 2.75rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--gold-line);
    border-radius: 2px;
    background: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    color: var(--ink);
}

.invitation-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--gold-line);
    border-radius: 2px;
    background: var(--white);
}

.invitation-stepper__button {
    inline-size: 2.75rem;
    min-block-size: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--heading);
    cursor: pointer;
}

.invitation-stepper__button:hover,
.invitation-stepper__button:focus-visible {
    background: var(--ivory);
}

.invitation-stepper__input {
    inline-size: 3.5rem;
    padding: 0;
    border: 0;
    border-inline: 1px solid var(--gold-faint);
    background: transparent;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    font-variant-numeric: lining-nums;
    text-align: center;
    color: var(--ink);
    appearance: textfield;
    -moz-appearance: textfield;
}

.invitation-stepper__input::-webkit-outer-spin-button,
.invitation-stepper__input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.invitation-form__submit {
    margin: 0.25rem 0 0;
}

.home-invitation .btn-brand .home-link__arrow {
    font-size: 0.9em;
}

/* --- VIII. Find us ---------------------------------------------------------------------------------------------- */
.home-find__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
}

.home-find .home-title {
    text-align: start;
}

.home-find__address {
    margin: 1.5rem 0 0;
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.45rem);
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
}

.home-find__directions {
    margin: 0.6rem 0 0;
}

.home-find__heading {
    margin: 2rem 0 0.7rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-deep-ivory);
}

.home-find__hours .hours-list__days {
    color: var(--gold-deep-ivory);
}

.home-find__hours .hours-list__time {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ink);
}

.home-find__text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--ink);
}

.home-find__payment {
    margin-block-end: 0;
}

.home-find__map .map-embed {
    block-size: 100%;
    min-block-size: 22rem;
}

@media (min-width: 62em) {
    .home-find__inner {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        column-gap: clamp(3rem, 6vw, 5rem);
        align-items: stretch;
    }
}

/* --- Motion: rare, below the fold only, and only for those who welcome it --------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .home-section .home-container {
            animation: home-rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 35%;
        }
    }
}

@keyframes home-rise {
    from {
        opacity: 0;
        transform: translateY(0.75rem);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Door icon: a fine gold line drawing in a hairline circle, in place of the empty arch until the photos exist. */
.home-door__icon {
    display: grid;
    place-items: center;
    width: clamp(4.5rem, 9vw, 5.5rem);
    aspect-ratio: 1;
    margin: 0 auto 1.25rem;
    border: 1px solid rgba(200, 169, 126, 0.6);
    border-radius: 50%;
    color: var(--gold, #c8a97e);
}

.home-door__icon svg {
    width: 55%;
    height: auto;
}

/* Hero: the photo framed by the Lebanese arch drawing (components/public/home/arch.blade.php, drawn on 360x600, shown through viewBox 14 0 332 600).
   The photo fills the inner opening of the arch, just inside its beaded ring: centre x 180, radius 92, springing at y 232, foot at y 540. */
.home-hero__frame {
    /* Everything inside the arch is sized from the arch itself (cqi), so it scales as one picture on every screen. */
    container-type: inline-size;
    position: relative;
    width: 100%;
    /* the drawing's viewBox (14 0 332 600): its empty side margins are trimmed, so the arch reaches the gutters */
    aspect-ratio: 332 / 600;
    margin-inline: auto;
    /* five quick taps on the arch open the staff login: no double-tap zoom, no text selection while tapping */
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.home-hero__photo {
    position: absolute;
    inset-inline-start: 24.4%;
    top: 23.3%;
    width: 51.2%;
    height: 66.7%;
    overflow: hidden;
    border-radius: 999px 999px 0 0;
    background: var(--ivory, #f8f1e4);
}

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

.home-hero__ornament {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Livre d'or: a centred invitation, script title, the Google rating in gold, one quiet button. */
.home-guestbook__inner {
    display: grid;
    /* One column as wide as the page (not "auto"): a long word wraps instead of widening it past a phone screen. */
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
}

.home-guestbook__script {
    margin: 0;
    font-family: var(--font-script);
    font-size: clamp(2.4rem, 1.8rem + 2.5vw, 3.6rem);
    line-height: 1.1;
    color: var(--gold);
}

.home-guestbook__rating {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.6rem;
    margin: 1.25rem 0 0;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--heading);
}

.home-guestbook__stars {
    letter-spacing: 0.15em;
    color: var(--gold);
}

.home-guestbook__text {
    max-inline-size: 32rem;
    margin: 1rem 0 0;
    color: var(--ink-soft);
}

.home-guestbook__button {
    margin-block-start: 1.75rem;
}

/* Inside the arch: ivory, the round logo in the rounded top, the greeting in the page language, the cedar.
   The opening sits fully inside the drawing (between the shafts, under the carved ring), so nothing covers the arch. */
.home-hero__inside {
    position: absolute;
    inset-inline-start: 25.93%;
    top: 25.5%;
    width: 48.14%;
    height: 64%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 0.2em;
    padding-block: 7% 9%;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(#fffaf2, #f3e6d3);
    font-size: 4.66cqi;
    overflow: hidden;
}

.home-hero__logo {
    display: block;
    width: 74%;
}

.home-hero__logo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    /* the black line logo, recoloured to the gold of the arch (#a0712c family) */
    filter: invert(46%) sepia(52%) saturate(620%) hue-rotate(3deg) brightness(90%) contrast(88%);
}

.home-hero__greeting {
    margin: 0;
    font-family: var(--font-script);
    font-size: 2.4em;
    line-height: 1.1;
    color: #a0712c;
    text-align: center;
}

.home-hero__greeting:lang(ar) {
    font-family: "Aref Ruqaa", "Amiri", serif;
    font-size: 1.9em;
}

/* "Willkommen", the longest greeting, was a hair wider than the opening (its W swash clipped). */
.home-hero__greeting:lang(de) {
    font-size: 2.2em;
}

.home-hero__greeting-cedar {
    width: 2.6em;
    height: auto;
}

/* "كبر البحر بحبك": a word of affection in Arabic calligraphy, with its translation in small parentheses. */
.home-hero__love {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15em;
    margin: 0.5em 0 0;
    padding-inline: 0.5em;
    text-align: center;
}

.home-hero__love-ar {
    display: block;
    width: 72%;
}

/* The calligraphy is an image drawn by hand (no font to wait for: no empty squares while the page loads). */
.home-hero__love-ar img {
    display: block;
    width: 100%;
    height: auto;
}

.home-hero__love-tr {
    font-family: var(--font-serif);
    font-size: 0.82em;
    font-style: italic;
    color: var(--ink-soft);
}

/* Synchronised appearance: everything inside the arch fades in together once its images and the script font are ready
   (an inline script in hero.blade.php adds .is-ready; without JavaScript, or after 0.6 s at most, it simply shows). */
.js .home-hero__inside > * {
    opacity: 0;
    transition: opacity 0.45s ease;
}

.js .home-hero__inside.is-ready > * {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .js .home-hero__inside > * {
        transition: none;
    }
}

/* The translation of the calligraphy, centred under the arch. */
.home-hero__love-tr {
    max-inline-size: 22rem;
    margin: 0.75rem auto 0;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.45;
    text-align: center;
    color: var(--ink-soft);
    text-wrap: balance;
}

/* The pronunciation of the calligraphy, before its translation. */
.home-hero__love-say {
    white-space: nowrap;
    color: var(--heading, #8a4b0f);
}

/* Phones and tablets (below 62em): the whole arch on the first screen, above the bottom bar (Book · Call · Directions,
   shown from the start). The columns are shorter than on a computer: the drawing ends at 470 of its 600 units
   (shafts 138 units instead of 268, the bases moved up by 130), so the arch keeps the full width of the page on most
   phones. On a short screen it narrows just enough to end above the bar, never cut: --arch-top is the distance from
   the top of the page to the arch, measured by the inline script of hero.blade.php (without JavaScript: 17rem, the
   usual distance on a phone). It never gets narrower than 11rem: on a very small screen with long lines above it
   (German title, language and Christmas lines on a 320x540 phone) its base may then pass under the bar. */
@media (max-width: 61.99em) {
    .home-hero {
        padding-block-start: 1rem;
    }

    /* "Fayrouz" is already on this screen twice (the header's wordmark, the logo in the arch): its script line gives
       its room to the arch (Simon's choice B, 22 November 2026). */
    .home-hero__script {
        display: none;
    }

    .home-hero__title {
        margin-block-start: 0.25rem;
    }

    .home-hero__cedar {
        margin-block-start: 0.6rem;
    }

    .home-hero__media {
        inline-size: min(100%, 24rem, max(11rem, (100vh - var(--arch-top, 17rem) - var(--dock-h) - env(safe-area-inset-bottom, 0px) - 1rem) * 332 / 470));
        inline-size: min(100%, 24rem, max(11rem, (100svh - var(--arch-top, 17rem) - var(--dock-h) - env(safe-area-inset-bottom, 0px) - 1rem) * 332 / 470));
        margin-block-start: 1rem;
    }

    .home-hero__frame {
        aspect-ratio: 332 / 470;
    }

    /* SVG user units: the shafts start under the capitals at 270 and now end at 408; the bases follow them up. */
    .home-hero__ornament .arch-shafts {
        transform-origin: 0 270px;
        transform: scaleY(calc(138 / 268));
    }

    .home-hero__ornament .arch-bases {
        transform: translateY(-130px);
    }

    /* The ivory opening: from under the carved ring (153) to the foot of the shorter shafts (408), of 470. */
    .home-hero__inside {
        top: calc(153 / 470 * 100%);
        height: calc((408 - 153) / 470 * 100%);
        padding-block: 2.5% 3.5%;
    }

    /* The logo as large as on a computer (74% of the opening); the calligraphy a little smaller to make room. */
    .home-hero__logo {
        width: 74%;
    }

    /* The keystone already carries the cedar: the smaller opening keeps the logo, the greeting and the calligraphy. */
    .home-hero__greeting-cedar {
        display: none;
    }

    .home-hero__love {
        margin-block-start: 0.2em;
    }

    .home-hero__love-ar {
        width: 48%;
    }
}
