/* Nada Al-Rehab content pages (about, how to book, blog), the home FAQ and the footer additions */

/* hero tagline */
.nhero__tagline { color: #E2C48F; font-weight: 700; font-size: clamp(1rem, 0.9rem + 0.6vw, 1.375rem); margin-block-start: -0.25rem; }

/* page head shared by the content pages */
.cpage { max-width: 56rem; padding-block: 2rem 3.5rem; }
.cpage__head { display: grid; gap: 0.5rem; text-align: center; justify-items: center; margin-block-end: 2rem; }
.cpage__eyebrow { color: var(--gold-ink); font-weight: 700; font-size: 0.9375rem; }
.cpage__title { font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem); font-weight: 800; color: var(--ink); }
.cpage__title::after { content: ""; display: block; width: 3.5rem; height: 2px; margin: 0.875rem auto 0; background: var(--gold); }
.cpage__lead { max-width: 38rem; color: rgb(42 17 23 / 0.72); font-size: 1.0625rem; line-height: 1.8; }
.cpage__body { display: grid; gap: 1rem; font-size: 1.0625rem; line-height: 1.95; color: rgb(42 17 23 / 0.86); }
.cpage__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-block-start: 2rem; }

/* license and registration */
.cpage__facts { display: grid; gap: 0.75rem; margin: 2rem 0 0; }
.cpage__facts div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.cpage__facts dt { font-weight: 700; color: rgb(42 17 23 / 0.72); }
.cpage__facts dd { margin: 0; font-weight: 800; font-size: 1.125rem; color: var(--brand); font-variant-numeric: tabular-nums; }
@media (min-width: 48rem) { .cpage__facts { grid-template-columns: 1fr 1fr; } }

/* booking steps */
.hsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.875rem; counter-reset: none; }
.hsteps__item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.125rem 1.25rem; border: 1px solid var(--line); border-radius: 1.125rem; background: #fff; }
.hsteps__num { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.125rem; box-shadow: 0 0 0 4px var(--gold-soft); }
.hsteps__item h2 { font-size: 1.125rem; font-weight: 800; margin-block-end: 0.25rem; }
.hsteps__item p { color: rgb(42 17 23 / 0.75); line-height: 1.75; }
@media (min-width: 48rem) { .hsteps { grid-template-columns: 1fr 1fr; } }
.notice { margin-block-start: 1.5rem; padding: 1.25rem 1.5rem; border-radius: 1.125rem; background: var(--gold-soft); border-inline-start: 4px solid var(--gold); display: grid; gap: 0.5rem; }
.notice h2 { font-size: 1.0625rem; font-weight: 800; color: var(--brand); }
.notice p { line-height: 1.8; }

/* blog */
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-card { display: grid; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 1.25rem; background: #fff; text-decoration: none; color: inherit; transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.post-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--gold-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms var(--ease-out); }
.post-card__body { display: grid; gap: 0.375rem; padding: 1.125rem 1.25rem 1.25rem; }
.post-card__date { color: var(--gold-ink); font-size: 0.875rem; font-weight: 700; }
.post-card__title { font-size: 1.25rem; font-weight: 800; }
.post-card__sub { color: rgb(42 17 23 / 0.72); line-height: 1.7; }
.post-card__go { display: inline-flex; align-items: center; gap: 0.375rem; margin-block-start: 0.5rem; color: var(--brand); font-weight: 800; }
@media (hover: hover) { .post-card:hover { border-color: var(--gold); box-shadow: 0 18px 36px -22px rgb(60 20 20 / 0.45); } .post-card:hover img { transform: scale(1.04); } }
.post__cover { width: 100%; height: auto; border-radius: 1.25rem; margin-block-end: 1.5rem; outline: 1px solid var(--line); outline-offset: 6px; }
.post__lang { margin-block-end: 1rem; padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--gold-soft); font-weight: 700; }
.post__body { display: grid; gap: 1rem; font-size: 1.0625rem; line-height: 2; color: rgb(42 17 23 / 0.88); text-align: start; }
.post__body h2 { margin-block-start: 1rem; font-size: 1.3125rem; font-weight: 800; color: var(--brand); }
.post__body blockquote { margin: 0; padding: 1rem 1.25rem; border-inline-start: 4px solid var(--gold); border-radius: 0.75rem; background: var(--gold-soft); font-weight: 700; }
.post__body ul { margin: 0; padding-inline-start: 1.25rem; display: grid; gap: 0.5rem; }
.post .crumbs { margin-block-end: 1rem; }

/* FAQ on the home page */
.faq { max-width: 56rem; }
.faq__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.75rem; margin-block-end: 1.25rem; }
.faq__head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); font-weight: 800; }
.faq__list { display: grid; gap: 0.625rem; }
.faq__item { border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.faq__item[open] { border-color: var(--gold); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: 0.875rem 1.25rem; font-weight: 800; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { flex: none; color: var(--brand); transition: transform 200ms var(--ease-out); }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__item summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 1rem; }
.faq__item p { padding: 0 1.25rem 1.125rem; color: rgb(42 17 23 / 0.78); line-height: 1.85; }
@media (prefers-reduced-motion: reduce) { .faq__item summary svg, .post-card, .post-card__media img { transition: none; } }

/* footer: license, registration and links */
.footer__ids { margin: 1rem 0 0; display: grid; gap: 0.25rem; font-size: 0.875rem; }
.footer__ids div { display: flex; gap: 0.5rem; }
.footer__ids dt { color: rgb(234 223 208 / 0.75); }
.footer__ids dd { margin: 0; font-weight: 700; color: #E2C48F; }
.footer__links { display: grid; gap: 0.5rem; align-content: start; }
.footer__links a { text-decoration: none; color: inherit; }
.footer__links a:hover { color: #E2C48F; }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
/* the article image is a tall poster: shown whole, never taller than most of a screen */
.post__cover { display: block; width: auto; max-width: 100%; max-height: min(70vh, 34rem); margin-inline: auto; object-fit: contain; }
.post-card__media img { object-fit: contain; }

/* cart button in the header, with the number of stays in the cart */
.cart-link { position: relative; display: grid; place-items: center; width: 44px; height: 40px; border: 1px solid rgb(184 149 90 / 0.6); border-radius: 999px; color: #fff; text-decoration: none; }
.cart-link:hover { border-color: var(--gold); background: rgb(255 255 255 / 0.06); }
.cart-count { position: absolute; inset-block-start: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 999px; background: var(--gold); color: var(--wine-deep); font-size: 0.75rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.cart-count--inline { position: static; display: inline-grid; margin-inline-start: 0.375rem; vertical-align: middle; }
.cart-count[hidden] { display: none; }

/* "add another service" */
.add-another { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; margin-block-start: 0.625rem; }

/* the note on the hotels page after adding a stay */
.added-note { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-block-end: 1rem; padding: 0.875rem 1rem; border-radius: 0.875rem; background: var(--gold-soft); border: 1px solid var(--gold); font-weight: 700; }
.added-note svg { color: #1f7a4d; flex: none; }
.added-note a { margin-inline-start: auto; color: var(--brand); font-weight: 800; }

/* the cart page */
.cartp__loading .room--skeleton { height: 8rem; }
.cartp__empty { display: grid; justify-items: center; gap: 1rem; padding: 2rem 1rem; text-align: center; color: rgb(42 17 23 / 0.75); }
.cartp__body { display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .cartp__body { grid-template-columns: 1fr 20rem; align-items: start; } }
.cartp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.cartp__item { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.125rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.cartp__name { font-size: 1.0625rem; font-weight: 800; }
.cartp__meta { margin-block-start: 0.25rem; color: rgb(42 17 23 / 0.72); font-size: 0.9375rem; }
.cartp__dates { margin-block-start: 0.25rem; color: var(--gold-ink); font-weight: 700; font-size: 0.9375rem; }
.cartp__side { display: grid; justify-items: end; align-content: space-between; gap: 0.5rem; flex: none; }
.cartp__amount { font-size: 1.125rem; white-space: nowrap; }
.cartp__remove { min-height: 36px; color: #b42318; font-weight: 700; background: none; border: 0; cursor: pointer; padding: 0; }
.cartp__sum { display: grid; gap: 0.5rem; padding: 1.125rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
@media (min-width: 56rem) { .cartp__sum { position: sticky; inset-block-start: 6rem; } }
.cartp__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-block-end: 0.5rem; font-weight: 800; }
.cartp__total small { font-weight: 600; color: rgb(42 17 23 / 0.6); }
.cartp__total strong { font-size: 1.375rem; }
@media (max-width: 30rem) { .site-header .cart-link { width: 40px; } }
