/* ==========================================================================
   Irton Manor — In-between page chrome ("Modern Heritage")
   Shared header + contact layout for the Reviews and Contact templates.
   Depends on theme.css for the --im-* tokens and .im-wrap/.im-section.
   ========================================================================== */

.im-page-head { padding: 56px 0 10px; text-align: center; }
.im-page-head__eyebrow {
    text-transform: uppercase; letter-spacing: .16em; font-size: 12px;
    font-weight: 600; color: var(--im-brass); margin: 0 0 12px;
}
.im-page-head__title {
    font-family: var(--im-serif); font-weight: 500;
    font-size: clamp(30px, 4.4vw, 48px); color: var(--im-green);
    margin: 0; letter-spacing: -.01em; line-height: 1.1;
}
.im-page-head__lede {
    max-width: 60ch; margin: 16px auto 0; font-size: 17px;
    line-height: 1.6; color: var(--im-muted);
}

/* ---- Reviews page ------------------------------------------------------- */
.im-reviews-page { padding-top: 10px; }

/* ---- Contact page ------------------------------------------------------- */
.im-contact__grid {
    display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start;
}
.im-contact__aside {
    background: var(--im-warm-white); border: 1px solid var(--im-stone);
    border-radius: 18px; padding: 24px; position: sticky; top: 96px;
}
.im-contact__aside-title {
    font-family: var(--im-serif); font-weight: 500; font-size: 20px;
    color: var(--im-green); margin: 0 0 14px;
}
.im-contact__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.im-contact__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--im-ink); }
.im-contact__list .material-symbols-outlined { color: var(--im-green); font-size: 22px; flex: none; }
.im-contact__list a { color: var(--im-green); text-decoration: none; }
.im-contact__list a:hover { text-decoration: underline; }
.im-contact__note { margin: 18px 0 0; font-size: 13.5px; color: var(--im-muted); line-height: 1.55; }

/* ---- Our story ---------------------------------------------------------- */
.im-story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.im-story__grid--solo { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.im-story__media { border-radius: 18px; overflow: hidden; border: 1px solid var(--im-stone); }
.im-story__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.im-story__body p { color: #43483d; line-height: 1.7; margin: 0 0 16px; }
.im-story__body .im-btn { margin-top: 8px; }

/* ---- The area (grouped sections, equal-height cards) --------------------
   Even interior spacing via a flex `gap`; cards stay EQUAL HEIGHT per row
   (align-items:stretch, the default) with the "Visit website" link pinned to the
   bottom (margin-top:auto). Big top margin on each section heading spaces the
   categories clearly apart. */
/* Scoped under .im-area to beat the global `.im-main h2 { margin: 0 }` reset in
   theme.css (higher specificity), so the section spacing actually applies. */
.im-area .im-area__section { font-family: var(--im-serif); font-weight: 500; font-size: 25px; color: var(--im-green); margin: 76px 0 28px; }
.im-area .im-area__section:first-child { margin-top: 4px; }
.im-area__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.im-area__item {
    display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1px solid var(--im-stone);
    border-radius: 18px; padding: 32px; box-shadow: 0 12px 30px rgba(28,50,22,.05);
    color: inherit; text-decoration: none;
}
a.im-area__item { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.im-area__item:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(28,50,22,.10); border-color: var(--im-sage); }
.im-area__icon { font-size: 38px; line-height: 1; color: var(--im-brass); margin: 0; }
.im-area .im-area__name { font-family: var(--im-serif); font-weight: 500; font-size: 20px; line-height: 1.3; color: var(--im-green); margin: 0; }
.im-area__detail { color: var(--im-muted); font-size: 14.5px; line-height: 1.7; margin: 0; }
.im-area__go { margin: auto 0 0; font-size: 13px; font-weight: 600; color: var(--im-brass); }
.im-area__extra { margin-top: 44px; }

/* ---- FAQ ---------------------------------------------------------------- */
.im-faq__wrap { max-width: 760px; margin: 0 auto; }
.im-faq__item { background: #fff; border: 1px solid var(--im-stone); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.im-faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; padding: 18px 22px; font-family: var(--im-serif); font-size: 18px; color: var(--im-green); list-style: none; }
.im-faq__q::-webkit-details-marker { display: none; }
.im-faq__chev { transition: transform .2s ease; color: var(--im-brass); }
.im-faq__item[open] .im-faq__chev { transform: rotate(180deg); }
.im-faq__a { padding: 0 22px 20px; }
.im-faq__a p { margin: 0; color: #43483d; line-height: 1.6; }

/* ---- Gallery ------------------------------------------------------------ */
.im-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.im-gallery__cell { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--im-stone); aspect-ratio: 4 / 3; line-height: 0; }
.im-gallery__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.im-gallery__cell:hover .im-gallery__img { transform: scale(1.04); }
.im-gallery__empty { text-align: center; color: var(--im-muted); }

/* ---- Legal / statement pages ------------------------------------------- */
.im-legal__body { max-width: 720px; margin: 0 auto; }
.im-legal__body p { color: #43483d; line-height: 1.7; margin: 0 0 16px; }
.im-legal__body :is(h2, h3) { font-family: var(--im-serif); color: var(--im-green); }

@media (max-width: 820px) {
    .im-contact__grid { grid-template-columns: 1fr; }
    .im-contact__aside { position: static; }
    .im-page-head { padding-top: 40px; }
    .im-story__grid { grid-template-columns: 1fr; }
}

/* ---- Availability & booking page --------------------------------------- */
.im-avail .im-center { margin-bottom: 34px; }
.im-avail__stay { border: 1px solid var(--im-stone); border-radius: 18px; padding: 26px; margin-top: 22px; background: #fff; }
.im-avail__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.im-avail__head h2 { font-size: 24px; margin: 0; }
.im-avail__cal { margin-top: 6px; }
.im-avail__empty { text-align: center; color: var(--im-muted); }
@media (max-width: 640px) {
    .im-avail__stay { padding: 18px; }
    .im-avail__head { gap: 12px; }
}
