/* ===== About page ===== */
/* Sections are added one at a time; responsive and reduced-motion rules go at the bottom. */

/* ===== Page banner ===== */
.page-banner {
    --seal-size: clamp(84px, 11vw, 150px);
    position: relative; z-index: 1; /* the seal hangs over the next section */
    isolation: isolate;
    display: flex; align-items: center;
    min-height: clamp(320px, 31vw, 480px);
    padding: 48px 0 56px;
}

/* Photo: clipped here so the seal can overflow the section */
.page-banner-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-banner-media img {
    position: absolute; left: 0; top: -12%;
    width: 100%; height: 124%; /* spare height for the parallax */
    object-fit: cover; object-position: 65% center;
    scale: 1.12;
    transition: scale 2.4s var(--ease-out);
    will-change: translate;
}
.page-banner.is-loaded .page-banner-media img { scale: 1; }

.page-banner-overlay {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(18, 21, 16, 0.85) 0%, rgba(18, 21, 16, 0.55) 40%, rgba(18, 21, 16, 0.1) 75%),
        linear-gradient(0deg, rgba(18, 21, 16, 0.6) 0%, rgba(18, 21, 16, 0) 35%);
}

/* Gold bar along the bottom edge, drawn from the left */
.page-banner::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
    background: linear-gradient(90deg, #b89a5e 0%, var(--color-gold) 45%, var(--color-gold-light) 75%, var(--color-gold) 100%);
    box-shadow: 0 0 18px rgba(217, 192, 138, 0.25);
    transform: scaleX(0); transform-origin: left;
    transition: transform 1.4s var(--ease-out) 0.5s;
}
.page-banner.is-loaded::after { transform: scaleX(1); }

.page-banner-content { will-change: opacity, transform; }

/* Breadcrumb */
.breadcrumb { margin-bottom: 18px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; }
.breadcrumb li {
    font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(237, 228, 211, 0.75);
}
.breadcrumb li + li::before { content: "/"; margin: 0 12px; color: var(--color-gold); opacity: 0.7; }
.breadcrumb a { transition: color 0.3s ease; }
.breadcrumb a:hover { color: var(--color-gold); }
.breadcrumb [aria-current="page"] { color: var(--color-gold); }

/* Eyebrow */
.page-banner-eyebrow {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 14px;
    font-size: 0.85rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--color-gold);
}
.page-banner-eyebrow::before { content: ""; flex: none; width: 40px; height: 1px; background: var(--color-gold); }

/* Title (same type as the home hero): each line slides up out of a mask once the photo is ready */
.page-banner-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 6.2rem);
    font-weight: 600; line-height: 1.02; letter-spacing: -0.01em;
    color: var(--color-cream);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.page-banner-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.page-banner-title .line > span { display: inline-block; transform: translateY(110%); }
.page-banner.is-loaded .page-banner-title .line > span { animation: bannerLineUp 1.1s var(--ease-out) 0.35s forwards; }
.page-banner-title em {
    font-style: italic; font-weight: 500;
    padding-right: 0.06em; /* keeps the italic's last letter inside the gradient */
    background: linear-gradient(100deg, #b89a5e 0%, var(--color-gold) 30%, #f6e7c1 50%, var(--color-gold) 70%, #b89a5e 100%);
    background-size: 250% 100%; background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--color-gold);
}
.page-banner.is-loaded .page-banner-title em { animation: bannerShimmer 6s ease-in-out 1.6s infinite; }

/* Wax seal: straddles the gold bar and "stamps" down when revealed */
.page-banner-seal {
    position: absolute; z-index: 1; /* above the gold bar (::after paints later) */
    left: clamp(16px, 13vw, 200px); bottom: calc(var(--seal-size) * -0.45);
    width: var(--seal-size); height: auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
}
.page-banner-seal.reveal {
    transform: scale(1.6) rotate(-25deg);
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.page-banner-seal.reveal.is-visible { transform: rotate(-8deg); }

@media (hover: hover) {
    .page-banner-seal.reveal.is-visible:hover { transform: rotate(4deg) scale(1.05); }
}

@keyframes bannerLineUp  { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes bannerShimmer {
    0%   { background-position: 100% 0; }
    50%  { background-position: 0% 0; }
    100% { background-position: 100% 0; }
}

/* ===== Our Story ===== */
.story { padding: clamp(110px, 11vw, 150px) 0 clamp(72px, 9vw, 120px); } /* extra top space clears the banner's seal */
.story-grid {
    display: grid; align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(40px, 5vw, 80px);
}

.story-title { margin-bottom: 26px; text-transform: uppercase; }
.story-text { max-width: 34em; }
.story-text p {
    font-size: 0.95rem; font-weight: 300; line-height: 1.85;
    color: rgba(237, 228, 211, 0.72);
}
.story-text p + p { margin-top: 18px; }

/* Photo with a gold offset frame behind it */
.story-media {
    --frame-offset: 18px;
    position: relative; isolation: isolate;
    margin: 0 var(--frame-offset) var(--frame-offset) 0; /* room for the frame inside the column */
}
.story-media::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    border: 1px solid var(--color-gold);
    opacity: 0;
    transition: opacity 0.8s ease 0.6s, transform 1.2s var(--ease-out) 0.6s;
}
.story-media.is-visible::before { opacity: 1; transform: translate(var(--frame-offset), var(--frame-offset)); }

.story-photo { display: block; overflow: hidden; background: var(--color-bg-soft); }
.story-photo img {
    width: 100%; height: auto; aspect-ratio: 640 / 420; object-fit: cover;
    transform: scale(1.15);
    transition: transform 1.6s var(--ease-out);
}
.story-media.is-visible .story-photo img { transform: scale(1); }

/* Entrance: a curtain slides off left-to-right (not clip-path: a fully clipped
   element never counts as intersecting, so the reveal would never fire) */
.story-media.reveal { opacity: 1; transform: none; will-change: auto; }
.story-media::after {
    content: ""; position: absolute; inset: -1px; z-index: 1;
    background: var(--color-bg);
    transform-origin: right;
    transition: transform 1.3s var(--ease-out);
    pointer-events: none;
}
.story-media.is-visible::after { transform: scaleX(0); }

@media (hover: hover) {
    .story-media.is-visible:hover::before { transform: translate(calc(var(--frame-offset) + 6px), calc(var(--frame-offset) + 6px)); transition-delay: 0s; }
    .story-media.is-visible:hover .story-photo img { transform: scale(1.04); }
}

/* ===== Book a Table (the form panel itself is styled by booking.css) ===== */
.get-started {
    padding: clamp(72px, 9vw, 120px) 0;
    border-top: 1px solid rgba(217, 192, 138, 0.08);
}
.get-started-grid {
    display: grid; align-items: center;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(40px, 6vw, 96px);
}

.get-started-title { margin-bottom: 24px; text-transform: uppercase; }
.get-started-text {
    max-width: 30em;
    font-size: 1rem; font-weight: 300; line-height: 1.85;
    color: rgba(237, 228, 211, 0.72);
}

.get-started-list { margin-top: 28px; }
.get-started-list li {
    display: flex; align-items: center; gap: 14px;
    font-size: 0.95rem; font-weight: 400;
    color: var(--color-cream);
}
.get-started-list li + li { margin-top: 14px; }
.get-started-check {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid rgba(217, 192, 138, 0.5);
    background: rgba(217, 192, 138, 0.08);
    font-size: 0.7rem; color: var(--color-gold);
}

/* Raised card on this page's plain background */
.get-started .booking-panel {
    background: var(--color-bg-soft);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .get-started-grid { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
    .get-started-content, .get-started .booking-panel { width: 100%; max-width: 640px; margin: 0 auto; }
    .page-banner { min-height: clamp(280px, 45vw, 400px); }
    .story-grid { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
    .story-content { width: 100%; max-width: 640px; margin: 0 auto; }
    /* centred with its frame space, so the photo lines up with the text column */
    .story-media { justify-self: center; width: min(100% - var(--frame-offset), 640px - var(--frame-offset)); }
}

@media (max-width: 767px) {
    .story { padding-top: 96px; }
    .story-media { --frame-offset: 12px; }
    .story-content { text-align: center; }
    .story-text { margin: 0 auto; }
    .get-started-content { text-align: center; }
    .get-started-text { margin: 0 auto; }
    .get-started-list { display: inline-flex; flex-direction: column; text-align: left; } /* centred block, checks stay aligned */
    .page-banner { min-height: 300px; padding: 40px 0 64px; }
    .page-banner-media img { object-position: 70% center; }
    .page-banner-overlay {
        background:
            linear-gradient(90deg, rgba(18, 21, 16, 0.88) 0%, rgba(18, 21, 16, 0.6) 60%, rgba(18, 21, 16, 0.35) 100%),
            linear-gradient(0deg, rgba(18, 21, 16, 0.6) 0%, rgba(18, 21, 16, 0) 40%);
    }
    .page-banner-seal { left: auto; right: 16px; }
}

@media (max-width: 575px) {
    .page-banner { --seal-size: 76px; min-height: 260px; }
    .page-banner-title { font-size: clamp(2.6rem, 12vw, 3.4rem); line-height: 1.04; }
    .page-banner-eyebrow { font-size: 0.7rem; letter-spacing: 0.24em; gap: 10px; }
    .page-banner-eyebrow::before { width: 28px; }
    .breadcrumb { margin-bottom: 14px; }
    .breadcrumb li { font-size: 0.72rem; }
    .breadcrumb li + li::before { margin: 0 8px; }
    .story-title { font-size: 1.6rem; margin-bottom: 18px; }
    .story-text p { font-size: 0.92rem; line-height: 1.75; }
    .story-media { --frame-offset: 10px; }
    .get-started-title { font-size: 1.6rem; margin-bottom: 18px; }
    .get-started-text { font-size: 0.92rem; line-height: 1.75; }
    .get-started-list li { font-size: 0.9rem; }
}

@media (max-width: 359px) {
    .page-banner { padding: 32px 0 56px; }
    .page-banner-eyebrow { letter-spacing: 0.18em; }
    .story-media { --frame-offset: 0px; }
    .story-media::before { display: none; }
}

/* Short landscape phones */
@media (max-width: 991px) and (max-height: 500px) and (orientation: landscape) {
    .page-banner { min-height: 240px; }
}

/* ===== Reduced motion: everything in its final state ===== */
@media (prefers-reduced-motion: reduce) {
    .page-banner-media img { scale: 1; }
    .page-banner::after { transform: scaleX(1); }
    .page-banner-title .line > span { transform: none; }
    .page-banner-seal.reveal,
    .page-banner-seal.reveal.is-visible:hover { transform: rotate(-8deg); }
    .story-media::after { display: none; }
    .story-photo img, .story-media.is-visible:hover .story-photo img { transform: none; }
    .story-media::before,
    .story-media.is-visible:hover::before { opacity: 1; transform: translate(var(--frame-offset), var(--frame-offset)); }
}
