/* ============================================================
   ARIA DESTINATIONS — JOURNEYS STYLING (v3.2)
   Quiet Luxury design system unified with main landing page
   ============================================================ */

/* ------- Design Tokens ------- */
:root {
    /* Palette */
    --clr-bg:           #0c0d14;
    --clr-bg-elevated:  #161625;
    --clr-bg-card:      #1c1c2e;
    --clr-surface:      #222238;
    --clr-accent:       #c5a059;
    --clr-accent-light: #dfc89a;
    --clr-accent-dark:  #a8874e;
    --clr-text:         #e8e8ef;
    --clr-text-muted:   #8e8ea0;
    --clr-border:       rgba(255, 255, 255, 0.07);
    --clr-border-accent:rgba(197, 160, 89, 0.25);
    --clr-white:        #ffffff;
    --clr-success:      #4ade80;

    /* Typography */
    --ff-heading: 'Playfair Display', Georgia, serif;
    --ff-body:    'Inter', -apple-system, sans-serif;

    --fs-h1:      clamp(2.2rem, 5vw, 3.5rem);
    --fs-h2:      clamp(1.75rem, 4vw, 2.75rem);
    --fs-h3:      clamp(1.25rem, 2.5vw, 1.5rem);
    --fs-body:    1rem;
    --fs-small:   0.875rem;
    --fs-eyebrow: 0.75rem;

    /* Spacing */
    --section-py: clamp(56px, 8vw, 100px);
    --gap:        clamp(20px, 3vw, 40px);

    /* Motion */
    --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
    --dur:        0.4s;
    --dur-slow:   0.7s;

    /* Backwards compatibility aliases */
    --bg:         var(--clr-bg);
    --panel:      var(--clr-bg-card);
    --gold:       var(--clr-accent);
    --muted:      var(--clr-text-muted);
    --line:       var(--clr-border);
}

/* ------- Reset & Base ------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height, 96px) + 24px);
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--ff-body);
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

a:hover {
    color: var(--clr-accent);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Accessible focus outlines */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--clr-accent);
    outline-offset: 3px;
}

/* Headings & Text */
h1, h2, h3, h4 {
    font-family: var(--ff-heading);
    font-weight: 500;
    line-height: 1.15;
    color: var(--clr-white);
    text-wrap: balance;
}

h1 {
    font-size: var(--fs-h1);
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

h2 {
    font-size: var(--fs-h2);
    margin-bottom: 16px;
}

h3 {
    font-size: var(--fs-h3);
}

p {
    color: var(--clr-text-muted);
    line-height: 1.7;
    text-wrap: pretty;
}

.eyebrow {
    font-family: var(--ff-body);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--clr-accent);
    margin-bottom: 14px;
    display: block;
}

.intro {
    font-size: 1.05rem;
    max-width: 580px;
    color: var(--clr-text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.small {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
}

/* Layout container */
.wrap {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

/* ------- Buttons ------- */
.button,
button:not(.burger):not(.gallery-dots button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    font-family: var(--ff-body);
    font-size: var(--fs-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: var(--clr-accent);
    color: var(--clr-bg);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    text-align: center;
    min-height: 46px;
    text-decoration: none;
    white-space: normal;
}

.button:hover,
button:not(.burger):not(.gallery-dots button):hover {
    background: var(--clr-accent-light);
    color: var(--clr-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.3);
}

.text-button {
    background: transparent !important;
    color: var(--clr-accent) !important;
    padding: 8px 0 !important;
    min-height: auto !important;
    font-size: 0.825rem !important;
    letter-spacing: 1px !important;
    box-shadow: none !important;
    transform: none !important;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 16px;
    border: none !important;
    font-weight: 600;
}

.text-button:hover {
    color: var(--clr-accent-light) !important;
    text-decoration: underline;
}

/* ------- Hero Section ------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    padding-top: clamp(24px, 4vw, 48px);
    padding-bottom: var(--section-py);
    align-items: start;
}

.story {
    min-width: 0;
}

.story > .button {
    margin-top: 4px;
    margin-bottom: 28px;
}

/* ------- Journey Photo Gallery ------- */
.journey-gallery {
    margin: 24px 0;
    position: relative;
    min-width: 0;
}

.gallery-slides {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--clr-border);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    touch-action: pan-y;
    user-select: none;
    background: var(--clr-bg-card);
}

.gallery-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gallery-slide:hover img {
    transform: scale(1.03);
}

.gallery-caption {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    padding: 12px 18px;
    background: rgba(15, 15, 26, 0.9);
    border-top: 1px solid var(--clr-border);
    min-height: 44px;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    margin: 0;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    gap: 12px;
}

.gallery-controls button {
    min-width: 44px;
    min-height: 44px;
    padding: 0 !important;
    background: var(--clr-surface) !important;
    color: var(--clr-white) !important;
    border: 1px solid var(--clr-border) !important;
    font-size: 1.1rem;
}

.gallery-controls button:hover {
    border-color: var(--clr-accent) !important;
    color: var(--clr-accent) !important;
    background: var(--clr-bg-card) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

.gallery-count {
    font-family: var(--ff-body);
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    letter-spacing: 1px;
    min-width: 44px;
    text-align: center;
}

.gallery-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

.gallery-dots button {
    background: transparent !important;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.gallery-dots span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: all var(--dur) var(--ease);
}

.gallery-dots [aria-pressed="true"] span {
    background: var(--clr-accent);
    width: 10px;
    height: 10px;
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.5);
}

/* ------- Advisor Mini Badge ------- */
.advisor-mini {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding: 16px 20px;
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.advisor-mini img {
    border-radius: 50%;
    border: 1px solid var(--clr-border-accent);
    object-fit: cover;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.advisor-mini p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--clr-text-muted);
}

.advisor-mini strong {
    color: var(--clr-white);
    font-size: 0.95rem;
}

.advisor-mini span {
    font-size: 0.78rem;
    color: var(--clr-text-muted);
}

/* ------- Sidebar Plan Card ------- */
aside#plan {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    padding: clamp(24px, 4vw, 36px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: calc(var(--header-height, 96px) + 20px);
    min-width: 0;
}

aside#plan .eyebrow {
    margin-bottom: 8px;
}

aside#plan h2 {
    font-size: 1.85rem;
    margin-bottom: 8px;
}

aside#plan > p {
    font-size: 0.9rem;
    margin-bottom: 24px;
    color: var(--clr-text-muted);
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

legend {
    font-family: var(--ff-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--clr-accent);
    margin-bottom: 18px;
    padding: 0;
}

label {
    display: block;
    font-family: var(--ff-body);
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--clr-text);
    margin-bottom: 16px;
}

label span {
    color: var(--clr-text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

input, select {
    width: 100%;
    padding: 12px 16px;
    margin-top: 6px;
    font-family: var(--ff-body);
    font-size: 0.95rem;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 0;
    color: var(--clr-white);
    min-height: 48px;
    min-width: 0;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    -webkit-appearance: none;
    appearance: none;
    color-scheme: dark;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a96e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.18);
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--clr-text);
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 16px;
    user-select: none;
}

.check input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: var(--clr-accent);
    cursor: pointer;
}

.price {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border-accent);
    border-radius: 0;
    padding: 20px;
    margin: 24px 0;
}

.price > span {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--clr-accent);
    display: block;
}

.price strong {
    display: block;
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    color: var(--clr-white);
    margin: 6px 0 8px;
    font-weight: 500;
}

.price p {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
    margin: 0;
}

.summary {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-left: 3px solid var(--clr-accent);
    border-radius: 0;
    padding: 18px 20px;
    margin: 18px 0;
    font-family: var(--ff-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--clr-text);
    white-space: pre-line;
}

fieldset > button {
    width: 100%;
    margin-top: 6px;
}

#status {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--clr-accent);
    text-align: center;
}

#durationNote:empty,
#status:empty {
    display: none;
}

/* ------- Collection Section ------- */
.collection {
    padding: var(--section-py) 0;
    border-top: 1px solid var(--clr-border);
}

.collection > p {
    max-width: 680px;
    font-size: 1.05rem;
    margin-bottom: 24px;
    color: var(--clr-text-muted);
}

.filter-label {
    display: block;
    max-width: 360px;
    margin: 32px 0 12px;
    font-family: var(--ff-body);
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--clr-text-muted);
}

#resultCount {
    font-size: 0.8rem;
    color: var(--clr-accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 28px;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.trip-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.trip-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--clr-border-accent);
}

.trip-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    max-height: 260px;
    object-fit: cover;
    display: block;
    transition: transform var(--dur-slow) var(--ease);
}

.trip-card:hover img {
    transform: scale(1.05);
}

.trip-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.trip-content .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.trip-content h3 {
    font-size: 1.35rem;
    margin: 0 0 8px;
    color: var(--clr-white);
    line-height: 1.25;
}

.trip-content .trip-facts {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--clr-accent-light);
    margin-bottom: 12px;
}

.trip-content > p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--clr-text-muted);
    margin-bottom: 16px;
}

.trip-content .trip-price {
    font-family: var(--ff-heading);
    font-size: 1.25rem;
    color: var(--clr-white);
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--clr-border);
    margin-bottom: 4px;
}

.trip-content .small {
    margin-bottom: 16px;
    font-size: 0.75rem;
}

.select-trip {
    width: 100%;
    font-size: 0.8rem !important;
    padding: 12px 18px !important;
    background: transparent !important;
    color: var(--clr-accent) !important;
    border: 1px solid var(--clr-border-accent) !important;
}

.select-trip:hover {
    background: var(--clr-accent) !important;
    color: var(--clr-bg) !important;
    border-color: var(--clr-accent) !important;
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.25) !important;
}

.image-download {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    margin-top: 12px;
    align-self: flex-start;
}

/* ------- Details (3 Steps) Section ------- */
.details {
    padding: var(--section-py) 0;
    border-top: 1px solid var(--clr-border);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 36px;
}

.cards article {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    padding: clamp(24px, 3vw, 36px);
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.cards article:hover {
    transform: translateY(-4px);
    border-color: var(--clr-border-accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.cards .number {
    font-family: var(--ff-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--clr-accent);
    opacity: 0.5;
    display: block;
    line-height: 1;
    margin-bottom: 16px;
}

.cards h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--clr-white);
}

.cards p {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ------- Meet John Section ------- */
.john {
    padding: var(--section-py) 0;
    border-top: 1px solid var(--clr-border);
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.john > img {
    width: 220px;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--clr-border-accent);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.john > div {
    max-width: 640px;
}

.john h2 {
    font-size: var(--fs-h2);
    margin-bottom: 16px;
}

.john p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--clr-text-muted);
    margin-bottom: 24px;
}

.john a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--ff-body);
    font-size: var(--fs-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: transparent;
    color: var(--clr-accent);
    border: 1px solid var(--clr-border-accent);
    border-radius: 0;
    transition: all var(--dur) var(--ease);
}

.john a:hover {
    background: var(--clr-accent);
    color: var(--clr-bg);
    border-color: var(--clr-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.3);
}

/* ------- FAQ Section ------- */
.faq {
    padding: var(--section-py) 0;
    border-top: 1px solid var(--clr-border);
    max-width: 800px;
}

.faq h2 {
    margin-bottom: 32px;
}

details {
    padding: 20px 0;
    border-bottom: 1px solid var(--clr-border);
    transition: border-color var(--dur) var(--ease);
}

details:hover {
    border-color: var(--clr-border-accent);
}

summary {
    font-family: var(--ff-heading);
    font-size: 1.15rem;
    color: var(--clr-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    transition: color var(--dur) var(--ease);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-family: var(--ff-body);
    font-size: 1.35rem;
    color: var(--clr-accent);
    font-weight: 300;
    transition: transform var(--dur) var(--ease);
}

details[open] summary::after {
    content: '−';
}

summary:hover {
    color: var(--clr-accent-light);
}

details p {
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
}

details a {
    color: var(--clr-accent);
    text-decoration: underline;
}

details a:hover {
    color: var(--clr-accent-light);
}

/* ------- Footer ------- */
footer {
    padding: 48px 0;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    border-top: 1px solid var(--clr-border);
    text-align: center;
    line-height: 1.8;
}

footer a {
    color: var(--clr-text-muted);
}

footer a:hover {
    color: var(--clr-accent);
}

/* ------- Hub Page (journeys/index.html) ------- */
.hub {
    padding-top: clamp(32px, 5vw, 56px);
    padding-bottom: var(--section-py);
}

.hub > .eyebrow {
    margin-bottom: 14px;
}

.hub > h1 {
    font-size: var(--fs-h1);
    margin-bottom: 12px;
}

.hub > p:not(.small) {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.hub-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.hub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--clr-border-accent);
}

.hub-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform var(--dur-slow) var(--ease);
}

.hub-card:hover img {
    transform: scale(1.05);
}

.hub-card h2 {
    font-family: var(--ff-heading);
    font-size: 1.6rem;
    color: var(--clr-white);
    margin: 24px 24px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color var(--dur) var(--ease);
}

.hub-card:hover h2 {
    color: var(--clr-accent-light);
}

.hub-card p {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    margin: 0 24px 24px;
    line-height: 1.6;
}

.hub .small {
    text-align: center;
    margin-top: 24px;
    color: var(--clr-text-muted);
    opacity: 0.7;
}

/* ------- Utilities & Skip ------- */
.skip {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 200;
    background: var(--clr-accent);
    color: var(--clr-bg);
    padding: 10px 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.skip:focus {
    top: 16px;
}

[hidden] {
    display: none !important;
}

.mobile-cta {
    display: none;
}

/* ------- Responsive Breakpoints ------- */
@media (max-width: 1000px) {
    .offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    aside#plan {
        position: static;
    }
}

@media (max-width: 700px) {
    .hero {
        padding-top: 20px;
    }

    .offer-grid {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hub-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .john {
        grid-template-columns: 100px 1fr;
        gap: 24px;
    }

    .john > img {
        width: 100px;
        height: 130px;
    }

    .gallery-slide img {
        aspect-ratio: 16 / 10;
        height: auto;
        max-height: 280px;
    }

    .mobile-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 25;
        background: var(--clr-accent);
        color: var(--clr-bg);
        border: none;
        border-radius: 0;
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.6);
        padding: 16px 24px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        justify-content: center;
        align-items: center;
        min-height: 52px;
        text-decoration: none;
    }

    body:has(#plan:focus-within) .mobile-cta {
        display: none;
    }

    body:has(#contact:not([hidden])) .mobile-cta {
        display: none;
    }

    footer {
        padding-bottom: 110px;
    }
}

@media (max-width: 480px) {
    .row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .john {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .john > img {
        width: 120px;
        height: 140px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Keep the selection visible after focus and hover move away. */
.check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 18px;
    padding: 0;
    border: 1px solid var(--clr-text-muted);
    background: var(--clr-surface);
}

.check input[type="checkbox"]:checked {
    border-color: var(--clr-accent);
    background-color: var(--clr-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m4 9 3 3 7-7' fill='none' stroke='%230c0d14' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}

.check input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--clr-accent);
    outline-offset: 3px;
}

.region-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 16px;
}
.region-tab {
    padding: 9px 14px;
    border: 1px solid var(--clr-border);
    background: transparent;
    color: var(--clr-text-muted);
    cursor: pointer;
}
.region-tab[aria-pressed="true"] {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}
.region-tab:focus-visible {
    outline: 2px solid var(--clr-accent);
    outline-offset: 3px;
}
