/* ==========================================================================
   Information pages laid out in bands (receptions, catering, practical info & access, FAQ, legal notice, privacy):
   loaded by components/public/info-page.blade.php with :bands="true".
   The intro (heading + "In short") is white; the sections alternate plain white bands and ivory .section-fade bands
   that dissolve into the white (custom.css), so no edge is ever visible. rem/em/%/clamp only, flow and grid layout,
   logical properties: the Arabic pages mirror by themselves.
   ========================================================================== */

.info-page--bands {
    padding-block: 0;
}

.info-band {
    padding-block: clamp(2.75rem, 6vw, 4.75rem);
}

.info-band--intro {
    padding-block: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem);
    text-align: center;
}

.info-band__inner {
    width: min(100% - 2 * var(--gutter), 46rem);
    margin-inline: auto;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.85;
}

.info-page--wide .info-band:not(.info-band--intro) .info-band__inner {
    width: min(100% - 2 * var(--gutter), 66rem);
}

.info-band__inner--center {
    text-align: center;
}

/* Anchored sections and answers stop below the sticky header. */
.info-page--bands [id] {
    scroll-margin-top: 6rem;
}

.info-band__inner a:not([class]) {
    color: var(--gold-deep-ivory);
    text-decoration: underline;
    text-decoration-color: var(--gold-line);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.info-band__inner a:not([class]):hover,
.info-band__inner a:not([class]):focus-visible {
    color: var(--heading);
    text-decoration-color: currentColor;
}

.info-band__inner p {
    margin: 0 0 0.85rem;
}

.info-band__inner p:last-child {
    margin-block-end: 0;
}

/* --- The heading of a band: serif, amber-brown, a short gold hairline beneath ---------------------------------- */
.info-band__title {
    margin: 0 0 1.1rem;
    color: var(--heading);
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 1.35rem + 0.9vw, 2.1rem);
    font-weight: 500;
    line-height: 1.2;
}

.info-band__title::after {
    content: "";
    display: block;
    width: 2.75rem;
    height: 1px;
    margin-block-start: 0.7rem;
    background: var(--gold);
}

.info-band__inner--center .info-band__title::after {
    margin-inline: auto;
}

.info-band__note {
    color: var(--ink-soft);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.55;
}

.info-band__inner .info-band__more {
    margin-block-start: 1.5rem;
}

/* --- "In short": the answer first, between two gold hairlines ------------------------------------------------- */
.info-essential {
    max-width: 42rem;
    margin: clamp(1.25rem, 3vw, 2rem) auto 0;
    padding-block: 1.25rem 1.4rem;
    border-block: 1px solid var(--gold-line);
}

.info-essential__label {
    margin: 0 0 0.6rem;
    color: var(--gold-deep);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    line-height: 1.5;
    text-transform: uppercase;
}

.info-essential__text {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.35rem);
    font-variant-numeric: lining-nums;
    font-weight: 500;
    line-height: 1.6;
}

/* --- Occasions: quiet cards on the ivory band ------------------------------------------------------------------ */
/* Flex rather than grid, so that a card left alone on the last row widens to fill it instead of leaving a half-empty row. */
.info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-card {
    flex: 1 1 min(100%, 13rem);
    padding: 1.4rem 1.35rem 1.5rem;
    border: 1px solid var(--gold-faint);
    border-block-start-color: var(--gold);
    background: var(--card);
}

.info-card__title {
    margin: 0 0 0.5rem;
    color: var(--heading);
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.25;
}

.info-card__text {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Dishes of the menu, printed like the menu: dotted leaders, old-style prices ------------------------------- */
.info-dishes {
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-dish + .info-dish {
    margin-block-start: 1.1rem;
}

.info-dish__row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.info-dish__name {
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.3;
}

.info-band__inner .info-dish__name a {
    color: inherit;
    text-decoration: none;
}

.info-band__inner .info-dish__name a:hover,
.info-band__inner .info-dish__name a:focus-visible {
    color: var(--heading);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 0.2em;
}

.info-dish__leader {
    flex: 1 1 1.5rem;
    min-width: 1.5rem;
    border-block-end: 1px dotted var(--gold);
    transform: translateY(-0.3em);
}

.info-dish__price {
    flex: none;
    color: var(--gold-deep-ivory);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-variant-numeric: oldstyle-nums;
    font-weight: 600;
    white-space: nowrap;
}

.info-dish__description {
    display: block;
    margin-block-start: 0.2rem;
    font-size: 0.9rem;
    line-height: 1.65;
}

/* --- Address and hours beside the map; two blocks side by side ------------------------------------------------- */
.info-split {
    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(2rem, 5vw, 3.5rem);
    align-items: start;
}

@media (min-width: 52em) {
    .info-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    }
}

.info-split__text {
    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(1.75rem, 4vw, 2.5rem);
}

.info-split__media {
    min-width: 0;
}

.info-pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.info-block__links {
    margin-block-start: 0.5rem;
}

.info-block__status {
    margin-block-start: 0.9rem;
    color: var(--ink);
    font-size: 0.9rem;
}

.info-page--bands .info-address {
    margin: 0 0 0.6rem;
    color: var(--ink);
    font-style: normal;
}

.info-page--bands .payment-marks {
    margin-block: 1rem 1.5rem;
}

/* --- The next doors: a quiet line of descriptive links ---------------------------------------------------------- */
.info-doors__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.info-doors__lead {
    display: block;
    color: var(--ink-soft);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.4;
}

.info-doors__list a {
    display: inline-block;
    margin-block-start: 0.35rem;
    padding-block: 0.3rem;
    color: var(--heading);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    background: linear-gradient(var(--gold), var(--gold)) center bottom / 2rem 1px no-repeat;
    transition: background-size 0.3s ease;
}

.info-doors__list a:hover,
.info-doors__list a:focus-visible {
    background-size: 100% 1px;
}

/* --- FAQ: an index of the topics, then one band per topic ------------------------------------------------------ */
.faq-index {
    padding-block: 0 clamp(1rem, 3vw, 2rem);
}

.faq-index__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.faq-index__list a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.35em 1.1em;
    border: 1px solid var(--gold-line);
    border-radius: 2px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.faq-index__list a:hover,
.faq-index__list a:focus-visible {
    border-color: var(--gold-deep);
    color: var(--heading);
}

.faq-topic .faq__question {
    font-weight: 500;
}

.faq-topic .faq__answer {
    color: var(--ink-soft);
}

.faq-topic .faq__item:target > .faq__question {
    color: var(--ink);
}

/* --- Legal notice and privacy policy: short, plain, a little smaller ------------------------------------------- */
.info-band--legal .info-band__inner {
    font-size: 0.93rem;
    line-height: 1.8;
}

.info-band--legal .info-section h2 {
    font-size: clamp(1.3rem, 1.2rem + 0.4vw, 1.55rem);
    font-weight: 500;
}

.info-band--legal .info-section strong {
    color: var(--ink);
    font-weight: 500;
}

/* --- Arabic: the Naskh serif, no italics, no letter-spacing ----------------------------------------------------- */
[dir="rtl"] .info-band__title,
[dir="rtl"] .info-essential__text,
[dir="rtl"] .info-card__title,
[dir="rtl"] .info-dish__name,
[dir="rtl"] .info-band__note,
[dir="rtl"] .info-doors__lead,
[dir="rtl"] .info-doors__list a,
[dir="rtl"] .faq-index__list a {
    font-family: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
    font-style: normal;
    letter-spacing: 0;
}

[dir="rtl"] .info-essential__label {
    letter-spacing: 0;
}

@media (prefers-reduced-motion: reduce) {
    .info-doors__list a,
    .info-band__inner a:not([class]) {
        transition: none;
    }
}

/* ==========================================================================
   Keeping the layout on every width (320 px phones to wide screens)
   ========================================================================== */

/* Headings break into balanced lines, paragraphs avoid a lone last word ("270 / m"). */
.info-page--bands .info-page__title,
.info-band__title,
.info-card__title,
.info-doors__lead,
.info-doors__list a {
    text-wrap: balance;
}

.info-band__inner :is(p, li, dd),
.info-essential__text {
    text-wrap: pretty;
}

/* A number, a phone or a registration code is never cut across two lines; a long e-mail may break rather than
   push the column wider than the screen. */
.info-band__inner a[href^="tel:"],
.info-nowrap {
    white-space: nowrap;
}

.info-nowrap .legal-todo {
    white-space: normal;
}

.info-band__inner a[href^="mailto:"] {
    overflow-wrap: anywhere;
}

/* Facts (order, getting here, on site): flex rather than an auto-fit grid, so that three facts sit on one row as soon
   as they fit and a fact left alone on the last row takes the whole row instead of half of it. */
.info-page--bands .info-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem clamp(1.25rem, 3vw, 2rem);
}

.info-page--bands .info-facts > div {
    flex: 1 1 min(100%, 12rem);
    min-width: 0;
}

/* The next doors: each door is a two-row subgrid, so on one line the questions share a row and the links share the
   next one: a question written on two lines no longer pushes its link below its neighbours. */
.info-doors__list {
    align-items: stretch;
}

.info-doors__list > li {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 0;
    justify-items: center;
    min-width: 0;
}

.info-doors__lead {
    align-self: end;
}

.info-doors__list a {
    align-self: start;
    max-width: 100%;
}

/* FAQ topics: narrower side padding on small phones, so the short topics share a row instead of standing alone. */
.faq-index__list a {
    padding-inline: clamp(0.7em, 0.2em + 2.4vw, 1.1em);
    font-size: clamp(0.82rem, 0.7rem + 0.6vw, 0.95rem);
}
