:root {
    --bg: #fcf8f4;
    --bg-accent: #eef1ed;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #fffdfa;
    --surface-soft: #f6efe9;
    --section-tint-strong: rgba(252, 242, 247, 0.96);
    --section-tint-soft: rgba(246, 228, 237, 0.90);
    --section-tint-muted: rgba(240, 217, 228, 0.78);
    --section-tint-border: rgba(155, 109, 124, 0.16);
    --brand: #9b6d7c;
    --brand-rgb: 155, 109, 124;
    --brand-deep: #4b3741;
    --brand-2: #b99b67;
    --brand-3: #e6ced6;
    --text: #32292d;
    --muted: #78686f;
    --line: rgba(50, 41, 45, 0.10);
    --line-strong: rgba(155, 109, 124, 0.16);
    --success: #5f7b6c;
    --warning: #8c6330;
    --danger: #973a34;
    --sage: #8fa294;
    --sage-rgb: 143, 162, 148;
    --shadow-soft: 0 16px 40px rgba(45, 37, 41, 0.08);
    --shadow-medium: 0 24px 60px rgba(45, 37, 41, 0.12);
    --shadow-strong: 0 30px 80px rgba(28, 21, 25, 0.20);
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --button-radius: 18px;
    --control-height: 54px;
    --heading-font: 'Cormorant Garamond', serif;
    --body-font: 'Manrope', sans-serif;
    --header-height: 94px;
    --transition: 0.28s ease;

    /* Backward-compatible aliases */
    --soft-pink: #e6ced6;
    --pale-pink: #f8eef2;
    --cream: #fcf8f4;
    --gold: #b99b67;
    --bright-gold: #c7a571;
    --dark-grey: #4b3741;
    --white: #ffffff;
    --sage-soft: #edf1ed;
    --sage-mist: #dde5df;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(var(--sage-rgb), 0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(230, 206, 214, 0.18), transparent 30%),
        linear-gradient(180deg, #fffdfa 0%, #fcf8f4 52%, #f4ede7 100%);
    overflow-x: hidden;
}

body.lightbox-open,
body.nav-open {
    overflow: hidden;
}

::selection {
    background: rgba(183, 146, 99, 0.26);
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

svg {
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4 {
    font-family: var(--heading-font);
    color: var(--brand-deep);
    line-height: 1.06;
    letter-spacing: -0.02em;
}

h1,
.h1 {
    font-size: clamp(3rem, 5.3vw, 5.5rem);
    margin-bottom: 0.24em;
}

h2,
.h2 {
    font-size: clamp(2.2rem, 3.4vw, 3.55rem);
    margin-bottom: 0.3em;
}

h3,
.h3 {
    font-size: clamp(1.35rem, 2vw, 2rem);
    margin-bottom: 0.4em;
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

small,
.text-small {
    font-size: 0.92rem;
}

.text-muted,
.member-muted,
.payment-muted,
.res-note {
    color: var(--muted);
}

a {
    color: var(--brand-deep);
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition), transform var(--transition);
}

.section-text,
.section-richtext,
.section-copy,
.contact-details {
    white-space: pre-line;
}

.content-section {
    position: relative;
    padding: 110px 0;
}

.alt-bg {
    background: linear-gradient(180deg, rgba(252, 244, 247, 0.66), rgba(246, 228, 237, 0.82));
}

.page-safe-top {
    padding-top: 150px;
}

.page-safe-spacer {
    height: var(--header-height);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-heading.align-left {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.section-eyebrow,
.hero-eyebrow,
.footer-eyebrow,
.member-topline,
.payment-topline,
.payment-chip,
.member-chip,
.res-pill,
.gallery-tab,
.status-pill,
.contact-chip,
.flash-message,
.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(var(--brand-rgb), 0.12);
    background: rgba(250, 241, 246, 0.82);
    backdrop-filter: blur(14px);
    color: var(--brand-deep);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-intro,
.hero-subtitle,
.auth-subtitle,
.gallery-page-subtitle,
.contact-page-subtitle {
    color: var(--muted);
    font-size: clamp(1rem, 1.2vw, 1.08rem);
    max-width: 720px;
}

.centered-copy {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.glass-card,
.section-panel,
.service-item,
.gallery-card,
.contact-info-card,
.contact-form-card,
.auth-card,
.profile-card,
.footer-card,
.info-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.section-panel,
.contact-info-card,
.contact-form-card,
.auth-card,
.profile-card,
.info-card {
    border-radius: var(--radius-xl);
    padding: 32px;
}

.surface-card {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.cta-button,
.ghost-link,
.res-button,
.res-link,
.member-btn,
.member-btn-secondary,
.payment-cta,
.payment-choice,
.album-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--control-height);
    padding: 14px 22px;
    border-radius: var(--button-radius);
    border: 1px solid transparent;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition);
    cursor: pointer;
}

.cta-button,
.member-btn,
.payment-cta,
.res-button.primary,
.album-btn,
.payment-choice.active {
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
    color: #fff;
    box-shadow: 0 16px 34px rgba(var(--brand-rgb), 0.24);
}

.cta-button:hover,
.member-btn:hover,
.payment-cta:hover,
.res-button.primary:hover,
.album-btn:hover,
.payment-choice.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(var(--brand-rgb), 0.30);
    color: #fff;
}

.ghost-link,
.member-btn-secondary,
.res-button.secondary,
.res-link,
.payment-choice {
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand-deep);
    border-color: rgba(var(--brand-rgb), 0.18);
    box-shadow: 0 8px 24px rgba(31, 37, 34, 0.06);
}

.ghost-link:hover,
.member-btn-secondary:hover,
.res-button.secondary:hover,
.res-link:hover,
.payment-choice:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--brand-rgb), 0.28);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    color: var(--brand-deep);
}

.res-button.danger {
    background: linear-gradient(135deg, #973a34 0%, #7a2f2a 100%);
    color: #fff;
}

button[disabled],
.res-button[disabled],
.payment-cta[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.18);
}

/* Header */
#main-header {
    position: fixed;
    top: 18px;
    left: 0;
    width: 100%;
    z-index: 1100;
    transition: transform var(--transition), top var(--transition);
}

#main-header.scrolled {
    top: 10px;
}

#main-header .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    min-height: 88px;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(255, 252, 248, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(20px);
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    height: 102px;
    width: auto;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-width: 0;
}

.account-menu-wrap {
    min-width: 0;
}

.main-nav {
    justify-self: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--brand);
    background: rgba(var(--brand-rgb), 0.10);
}

#mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(var(--brand-rgb), 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.84);
    cursor: pointer;
}

#mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 3px 0;
    background: var(--brand);
    transition: transform var(--transition), opacity var(--transition);
}

#mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.account-menu-wrap,
.account-guest-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-guest-links {
    flex-wrap: nowrap;
    width: 100%;
    justify-content: flex-end;
}

.account-guest-links .cta-button,
.account-guest-links .ghost-link {
    white-space: nowrap;
}

.account-guest-link {
    flex-shrink: 0;
}

.account-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.98rem;
    line-height: 1;
    flex-shrink: 0;
}

.account-link-label {
    display: inline;
}

.account-menu-wrap {
    position: relative;
}

.account-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 6px 10px 6px 6px;
    border: 1px solid rgba(var(--brand-rgb), 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 22px rgba(31, 37, 34, 0.10);
    color: var(--brand);
    font-weight: 700;
    cursor: pointer;
}

.account-menu-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.16), rgba(183, 146, 99, 0.18));
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.account-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-menu-label {
    white-space: nowrap;
}

.account-menu-caret {
    opacity: 0.7;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 280px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(18px);
    display: none;
}

.account-dropdown.is-open {
    display: block;
}

.account-dropdown-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--brand);
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.account-dropdown-link:hover {
    background: rgba(var(--brand-rgb), 0.06);
}

.account-logout-form {
    margin: 0;
}

/* Messages */
.flash-wrap {
    position: fixed;
    top: 96px;
    left: 0;
    right: 0;
    z-index: 1200;
    pointer-events: none;
}

.flash-stack {
    display: grid;
    gap: 12px;
}

.flash-message {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 15px 18px;
    border-radius: 20px;
    border: 1px solid rgba(var(--brand-rgb), 0.14);
    background: rgba(255, 253, 251, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(48, 40, 34, 0.12);
    color: var(--text);
    text-transform: none;
    letter-spacing: 0;
    pointer-events: auto;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.flash-message.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.flash-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(var(--brand-rgb), 0.08);
    color: var(--brand-deep);
    font-size: 1rem;
}

.flash-body {
    font-weight: 700;
    line-height: 1.55;
}

.flash-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}

.flash-close:hover {
    background: rgba(20, 20, 20, 0.06);
}

.flash-message.flash-success {
    border-color: rgba(20, 120, 60, 0.18);
}

.flash-message.flash-success .flash-icon {
    background: rgba(20, 120, 60, 0.12);
    color: #166534;
}

.flash-message.flash-error {
    border-color: rgba(179, 38, 30, 0.18);
}

.flash-message.flash-error .flash-icon {
    background: rgba(179, 38, 30, 0.12);
    color: #8f2117;
}

.flash-message.flash-warning {
    border-color: rgba(180, 83, 9, 0.22);
}

.flash-message.flash-warning .flash-icon {
    background: rgba(180, 83, 9, 0.14);
    color: #9a3412;
}

.flash-message.flash-info {
    border-color: rgba(var(--brand-rgb), 0.18);
}

/* Hero */
#hero,
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 20px);
    padding: 168px 0 88px;
    background-color: #d9d4d3;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

#hero::before,
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(112deg, rgba(32, 24, 29, 0.88) 0%, rgba(75, 55, 65, 0.76) 42%, rgba(92, 106, 97, 0.28) 100%),
        linear-gradient(180deg, rgba(230, 206, 214, 0.10), rgba(var(--sage-rgb), 0.08));
}

#hero::after,
.hero-section::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    right: -120px;
    bottom: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(183, 146, 99, 0.24), transparent 64%);
}

.hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
    gap: 28px;
    align-items: end;
}

.hero-shell--single {
    grid-template-columns: minmax(0, 820px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 34px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(12px);
    color: #fff;
    box-shadow: var(--shadow-strong);
}

.hero-content h1 {
    color: #fff;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.hero-content p,
.hero-content .hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.hero-eyebrow {
    margin-bottom: 18px;
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.hero-actions .ghost-link {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(245, 236, 240, 0.10));
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.hero-actions .ghost-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.hero-aside {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
}

.hero-stat-card {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    color: #fff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.hero-stat-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-family: var(--heading-font);
}

.hero-stat-card span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
}

/* Shared section patterns */
.section-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: start;
}

.section-shell--stacked {
    display: block;
}

.section-body {
    display: grid;
    gap: 18px;
}

.section-panel {
    min-height: 100%;
}

.section-panel .cta-button,
.section-panel .ghost-link {
    margin-top: 10px;
}

.content-section .section-panel,
.content-section .service-item,
.content-section .gallery-preview-card,
.content-section .testimonial-card {
    background: linear-gradient(180deg, var(--section-tint-strong), var(--section-tint-soft));
    border: 1px solid var(--section-tint-border);
}

.service-meta,
.gallery-meta,
.contact-meta,
.profile-meta {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Services */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.service-item {
    position: relative;
    padding: 30px 28px;
    border-radius: 30px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%);
    pointer-events: none;
}

.service-item:hover,
.gallery-card:hover,
.contact-info-card:hover,
.info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.service-item h3 {
    margin-bottom: 12px;
}

.service-icon-wrap {
    width: 66px;
    height: 66px;
    margin-bottom: 18px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.12), rgba(183, 146, 99, 0.14));
    color: var(--brand-deep);
    font-size: 1.3rem;
}

.service-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Generic gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.gallery-item {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.gallery-item img,
.gallery-thumb {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.gallery-item:hover img,
.gallery-card:hover .gallery-thumb,
.gallery-card:hover .gallery-preview-image {
    transform: scale(1.04);
}

.gallery-item-caption,
.gallery-card-info {
    padding: 20px 22px 22px;
}

.gallery-card {
    overflow: hidden;
    border-radius: 28px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-card-info h3 {
    margin-bottom: 8px;
}

.gallery-thumb-wrap {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #edf1ed, #fbf7f4);
}

.gallery-thumb-wrap::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 40%;
    background: linear-gradient(180deg, transparent, rgba(22, 29, 26, 0.18));
    pointer-events: none;
}

.gallery-thumb-placeholder {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.gallery-clickable {
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.gallery-preview-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(180deg, var(--section-tint-strong), var(--section-tint-soft));
    border: 1px solid var(--section-tint-border);
    box-shadow: var(--shadow-soft);
}

.gallery-preview-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.gallery-preview-body {
    padding: 20px 22px 22px;
}

.gallery-preview-body h3 {
    margin-bottom: 6px;
}

/* Testimonials */
.testimonial-slider {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 52px 18px;
    overflow: hidden;
}

.testimonial-slider .swiper-wrapper {
    align-items: stretch;
}

.testimonial-slider .swiper-slide {
    display: flex;
    height: auto;
}

.swiper-slide {
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
}

.testimonial-card {
    min-height: 100%;
    padding: 34px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(252, 244, 248, 0.98), rgba(244, 224, 234, 0.92));
    border: 1px solid rgba(155, 109, 124, 0.15);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.testimonial-quote {
    position: relative;
    color: var(--text);
    font-size: 1.08rem;
    font-style: italic;
    padding: 12px 0;
}

.testimonial-quote::before,
.testimonial-quote::after {
    position: absolute;
    font-family: var(--heading-font);
    font-size: 4rem;
    line-height: 1;
    color: rgba(183, 146, 99, 0.24);
}

.testimonial-quote::before {
    content: '“';
    top: -18px;
    left: -8px;
}

.testimonial-quote::after {
    content: '”';
    right: -4px;
    bottom: -44px;
}

.customer-name {
    margin-top: 18px;
    color: var(--brand);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.swiper-pagination {
    position: relative;
    bottom: 0 !important;
    margin-top: 18px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(var(--brand-rgb), 0.18);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--brand-2);
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--brand-deep);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1.4rem;
    font-weight: 900;
}

/* Contact */
.contact-page-shell {
    display: grid;
    gap: 28px;
}

.contact-page-header {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 26px;
    align-items: start;
}

.contact-info-column {
    display: grid;
    gap: 18px;
}

.contact-info-card,
.contact-form-card {
    overflow: hidden;
}

.contact-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.12), rgba(183, 146, 99, 0.14));
    color: var(--brand);
}

.contact-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.contact-form-modern,
.auth-form {
    display: grid;
    gap: 18px;
}

.contact-form-row,
.profile-form-row,
.auth-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-field,
.auth-field,
.profile-field {
    display: grid;
    gap: 8px;
}

.contact-field label,
.auth-field label,
.profile-field label {
    color: var(--brand);
    font-size: 0.93rem;
    font-weight: 800;
}

.contact-field input,
.contact-field textarea,
.contact-field select,
.auth-field input,
.auth-field textarea,
.auth-field select,
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.profile-field input,
.profile-field textarea,
.profile-field select,
.res-form input,
.res-form textarea,
.res-form select {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--brand-rgb), 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.contact-field textarea,
.auth-field textarea,
.profile-field textarea,
.res-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus,
.auth-field input:focus,
.auth-field textarea:focus,
.auth-field select:focus,
.profile-field input:focus,
.profile-field textarea:focus,
.profile-field select:focus,
.res-form input:focus,
.res-form textarea:focus,
.res-form select:focus {
    outline: none;
    border-color: rgba(var(--brand-rgb), 0.36);
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.08);
    background: #fff;
}

/* Auth and profile */
.auth-card {
    max-width: 620px;
    margin: 0 auto;
}

.auth-link,
.auth-switch a {
    font-weight: 700;
}

.auth-button {
    width: 100%;
    border: none;
}

.profile-summary-card {
    text-align: center;
}

.profile-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px 16px;
}

.profile-grid > div:nth-child(odd) {
    color: var(--brand);
    font-weight: 800;
}

/* Footer */
footer {
    position: relative;
    margin-top: 28px;
    padding: 34px 0 18px;
    color: rgba(255, 255, 255, 0.86);
    background:
        radial-gradient(circle at top right, rgba(183, 146, 99, 0.16), transparent 30%),
        linear-gradient(135deg, #3c2d35 0%, #5a434e 58%, #4d5e54 100%);
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 26%);
    pointer-events: none;
}

.footer-shell {
    position: relative;
    z-index: 1;
    border-radius: 34px;
    padding: 34px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(180px, 1fr));
    gap: 28px;
    margin-bottom: 30px;
}

.footer-brand {
    max-width: 380px;
}

.footer-logo {
    width: 250px;
    max-width: 100%;
    margin-bottom: 18px;
}

.footer-col h4 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 1.5rem;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.86);
}

.footer-col a:hover,
.social-icons a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.88);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

/* Reveal animations */
.fade-in-hidden {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Basic lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(18, 25, 22, 0.82);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity var(--transition);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: min(92vw, 1180px);
    max-height: 86vh;
    border-radius: 26px;
    box-shadow: var(--shadow-strong);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

/* Gallery modal */
.custom-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.custom-lightbox.d-none {
    display: none;
}

.custom-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 25, 22, 0.84);
    backdrop-filter: blur(14px);
}

.custom-lightbox-content {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: 92vh;
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 246, 240, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-strong);
    padding: 24px;
}

.custom-lightbox-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(var(--brand-rgb), 0.08);
    color: var(--brand);
    font-size: 1.65rem;
    cursor: pointer;
}

.custom-lightbox-img-wrapper {
    min-height: 320px;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px;
    background: #e9f0ea;
}

.custom-lightbox-img-wrapper img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.custom-lightbox-caption {
    margin-top: 18px;
}

.custom-lightbox-caption strong {
    display: block;
    margin-bottom: 6px;
    color: var(--brand);
    font-size: 1.2rem;
}

.custom-lightbox-caption small {
    color: var(--muted);
}

.album-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

/* Utilities for internal dashboards/pages */
.page-intro-card {
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-soft);
}

.status-pill.success,
.payment-chip.success,
.member-chip.success,
.res-pill.success {
    color: var(--success);
    border-color: rgba(45, 106, 79, 0.16);
    background: rgba(45, 106, 79, 0.09);
}

.status-pill.warning,
.payment-chip.warning,
.member-chip.warning,
.res-pill.warning {
    color: var(--warning);
    border-color: rgba(162, 97, 45, 0.16);
    background: rgba(162, 97, 45, 0.10);
}

.status-pill.danger,
.member-chip.danger,
.res-pill.danger {
    color: var(--danger);
    border-color: rgba(166, 62, 53, 0.16);
    background: rgba(166, 62, 53, 0.10);
}

/* Responsive */
@media (max-width: 1180px) {
    .hero-shell,
    .section-shell,
    .contact-page-grid,
    .footer-content,
    .member-hero,
    .member-grid,
    .payment-grid,
    .profile-edit-shell,
    .res-grid,
    .res-grid-manager-detail {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        max-width: none;
    }
}

@media (max-width: 900px) {
    .container {
        width: min(100% - 32px, 1200px);
    }

    .content-section {
        padding: 88px 0;
    }

    .page-safe-top {
        padding-top: 134px;
    }

    #main-header .container {
        grid-template-columns: auto auto 1fr;
    }

    #mobile-menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 16px;
        right: 16px;
        padding: 14px;
        border-radius: 28px;
        background: rgba(255, 252, 248, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.75);
        box-shadow: var(--shadow-medium);
        backdrop-filter: blur(18px);
    }

    .main-nav.mobile-nav-active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .main-nav a {
        justify-content: flex-start;
        padding: 0 16px;
    }

    .header-right {
        justify-self: end;
    }

    .header-right {
        min-width: 0;
    }

    .account-guest-links {
        gap: 8px;
    }

    .account-guest-links .cta-button,
    .account-guest-links .ghost-link {
        min-height: 44px;
        padding: 12px 14px;
        font-size: 0.82rem;
        width: auto;
        flex-shrink: 1;
    }

    .flash-wrap {
        top: 86px;
    }

    .testimonial-slider {
        padding: 0 20px 16px;
    }

    .contact-form-row,
    .profile-form-row,
    .auth-row,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-grid > div:nth-child(odd) {
        margin-top: 6px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .page-safe-top {
        padding-top: 122px;
    }

    #hero,
    .hero-section {
        min-height: auto;
        padding: 140px 0 68px;
    }

    .hero-content,
    .section-panel,
    .contact-info-card,
    .contact-form-card,
    .auth-card,
    .profile-card,
    .testimonial-card,
    .footer-shell,
    .service-item,
    .gallery-card-info,
    .gallery-preview-body,
    .page-intro-card {
        padding: 24px;
    }

    .brand-logo {
        height: 84px;
    }

    .account-menu-label {
        display: none;
    }

    .account-dropdown {
        min-width: min(280px, calc(100vw - 32px));
    }

    .custom-lightbox,
    .lightbox {
        padding: 16px;
    }

    .gallery-thumb-wrap,
    .gallery-thumb-placeholder,
    .gallery-preview-image {
        min-height: 220px;
        height: 220px;
    }

    .gallery-item img,
    .gallery-thumb {
        min-height: 220px;
    }
}

@media (max-width: 560px) {
    html {
        font-size: 14px;
    }

    #main-header {
        top: 10px;
    }

    #main-header .container {
        padding: 10px 12px;
        gap: 12px;
    }

    .container {
        width: calc(100% - 24px);
    }

    .hero-actions,
    .album-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .account-guest-links {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        width: 100%;
        min-width: 0;
    }

    .hero-actions .cta-button,
    .hero-actions .ghost-link,
    .album-btn,
    .cta-button,
    .ghost-link {
        width: 100%;
    }

    .account-guest-links .cta-button,
    .account-guest-links .ghost-link {
        width: auto !important;
        min-width: 0;
        min-height: 40px;
        padding: 10px 10px;
        font-size: 0.76rem;
        letter-spacing: 0;
        flex: 0 1 auto;
        white-space: nowrap;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }

    .lightbox-close,
    .custom-lightbox-close {
        top: 12px;
        right: 12px;
    }
}


/* Guest account buttons: desktop icon + text, mobile icon only */
@media (max-width: 768px) {
    .account-guest-links {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        width: auto;
        min-width: 0;
    }

    .account-guest-links > a.account-guest-link {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        flex: 0 0 44px !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        font-size: 0 !important;
        line-height: 1 !important;
    }

    .account-guest-links > a.account-guest-link .account-link-icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 1rem !important;
        margin: 0 !important;
    }

    .account-guest-links > a.account-guest-link .account-link-icon i {
        font-size: 1rem !important;
        line-height: 1 !important;
    }

    .account-guest-links > a.account-guest-link .account-link-label {
        display: none !important;
    }
}

/* Fix section and gallery image rendering */
.section-visual-card {
    margin-top: 22px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: linear-gradient(135deg, #edf1ed, #fbf7f4);
    border: 1px solid rgba(var(--brand-rgb), 0.08);
}

.section-visual-centered {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.section-side-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
}

.service-item-button {
    margin-top: 16px;
    align-self: flex-start;
}

.gallery-item {
    aspect-ratio: 4 / 5;
    min-height: 0;
    background: linear-gradient(135deg, #edf1ed, #fbf7f4);
}

.gallery-item img,
.gallery-thumb,
.gallery-preview-image {
    display: block;
    width: 100%;
    object-position: center center;
}

.gallery-item img {
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.gallery-thumb-wrap,
.gallery-thumb-placeholder {
    height: 260px;
    min-height: 260px;
}

.gallery-thumb {
    height: 260px;
    min-height: 260px;
    object-fit: cover;
}

.gallery-preview-image {
    height: 280px;
    min-height: 280px;
    object-fit: cover;
}

@media (max-width: 760px) {
    .section-side-image {
        aspect-ratio: 4 / 3;
    }

    .gallery-thumb-wrap,
    .gallery-thumb-placeholder,
    .gallery-thumb,
    .gallery-preview-image {
        height: 220px;
        min-height: 220px;
    }
}

.newsletter-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    border: 1px solid rgba(var(--brand-rgb), 0.16);
    border-radius: 16px;
    padding: 12px 14px;
    font: inherit;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
}

.newsletter-form .cta-button {
    width: 100%;
    justify-content: center;
}

/* Admin-controlled section photo layouts
   The photo is now always constrained to a designed slot. It no longer grows
   with long text, so section photos stay elegant instead of becoming enormous. */
.section-items-after-intro {
    margin-top: 34px;
}

.section-panel--centered {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.section-card-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.section-card-actions--centered {
    justify-content: center;
}

.section-media-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.82fr);
    grid-template-areas: "copy photo";
    gap: clamp(22px, 4vw, 48px);
    align-items: center;
    width: 100%;
    padding: clamp(22px, 3vw, 40px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        radial-gradient(circle at 0% 0%, rgba(var(--sage-rgb), 0.18), transparent 36%),
        linear-gradient(135deg, rgba(255, 253, 250, 0.98), rgba(248, 238, 242, 0.94));
    border: 1px solid rgba(var(--brand-rgb), 0.12);
    box-shadow: var(--shadow-medium);
}

.section-media-card::before {
    content: '';
    position: absolute;
    inset: 16px;
    border-radius: calc(var(--radius-xl) - 12px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    pointer-events: none;
    z-index: 1;
}

.section-media-copy {
    position: relative;
    z-index: 2;
    grid-area: copy;
    max-width: 680px;
}

.section-media-copy .section-eyebrow {
    margin-bottom: 18px;
}

.section-media-copy h2 {
    margin-bottom: 16px;
}

.section-media-copy .section-intro,
.section-media-copy .section-copy,
.section-media-copy .section-richtext,
.section-media-copy .contact-details {
    max-width: 620px;
}

.section-media-photo {
    position: relative;
    z-index: 2;
    grid-area: photo;
    align-self: center;
    width: 100%;
    margin: 0;
    min-width: 0;
    min-height: 0;
    height: auto;
    max-height: clamp(260px, 32vw, 420px);
    aspect-ratio: 4 / 3;
    border-radius: calc(var(--radius-xl) - 10px);
    overflow: hidden;
    background: linear-gradient(135deg, #edf1ed, #fbf7f4);
    box-shadow: 0 18px 38px rgba(45, 37, 41, 0.13);
}

.section-media-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 62%, rgba(42, 32, 37, 0.13));
    pointer-events: none;
}

.section-media-photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.section-media-card--right {
    grid-template-areas: "copy photo";
}

.section-media-card--left {
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.08fr);
    grid-template-areas: "photo copy";
}

.section-media-card--top,
.section-media-card--bottom {
    grid-template-columns: minmax(0, 1fr);
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.section-media-card--top {
    grid-template-areas:
        "photo"
        "copy";
}

.section-media-card--bottom {
    grid-template-areas:
        "copy"
        "photo";
}

.section-media-card--top .section-media-photo,
.section-media-card--bottom .section-media-photo {
    aspect-ratio: 16 / 7;
    max-height: clamp(240px, 34vw, 390px);
}

.section-media-card--top .section-media-copy,
.section-media-card--bottom .section-media-copy {
    max-width: 760px;
}

.section-media-card--background {
    min-height: clamp(340px, 42vw, 500px);
    grid-template-columns: minmax(0, 720px);
    grid-template-areas: "copy";
    align-items: end;
    padding: clamp(24px, 5vw, 52px);
    background: var(--brand-deep);
}

.section-media-card--background::before {
    border-color: rgba(255, 255, 255, 0.22);
}

.section-media-background-photo,
.section-media-background-photo img,
.section-media-scrim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.section-media-background-photo {
    z-index: 0;
    margin: 0;
}

.section-media-background-photo img {
    display: block;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    filter: saturate(0.96);
}

.section-media-scrim {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(35, 27, 32, 0.76), rgba(35, 27, 32, 0.44) 54%, rgba(35, 27, 32, 0.14)),
        linear-gradient(180deg, rgba(35, 27, 32, 0.08), rgba(35, 27, 32, 0.48));
}

.section-media-copy--on-image {
    grid-area: copy;
    padding: clamp(22px, 3vw, 34px);
    border-radius: calc(var(--radius-xl) - 10px);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.section-media-card--background h2,
.section-media-card--background .section-media-copy h2 {
    color: #fff;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.section-media-card--background .section-intro,
.section-media-card--background .section-copy,
.section-media-card--background .section-richtext,
.section-media-card--background .contact-details {
    color: rgba(255, 255, 255, 0.88);
}

.section-media-card--background .section-eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.gallery-grid--with-feature {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-item--section-feature {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
}

.gallery-feature-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(42, 32, 37, 0.54);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
    font-size: 0.86rem;
}

@media (max-width: 900px) {
    .section-media-card,
    .section-media-card--left,
    .section-media-card--right {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "copy"
            "photo";
    }

    .section-media-card--top {
        grid-template-areas:
            "photo"
            "copy";
    }

    .section-media-card--background {
        grid-template-areas: "copy";
    }

    .section-media-copy {
        max-width: 100%;
    }

    .section-media-photo,
    .section-media-card--top .section-media-photo,
    .section-media-card--bottom .section-media-photo {
        aspect-ratio: 16 / 10;
        max-height: 380px;
    }
}

@media (max-width: 760px) {
    .section-media-card {
        padding: 18px;
        border-radius: 28px;
    }

    .section-media-card::before {
        inset: 10px;
        border-radius: 22px;
    }

    .section-media-copy {
        padding: 6px;
    }

    .section-media-copy--on-image {
        padding: 20px;
    }

    .section-media-card--background {
        min-height: 440px;
        align-items: end;
    }

    .section-media-scrim {
        background:
            linear-gradient(180deg, rgba(35, 27, 32, 0.20), rgba(35, 27, 32, 0.78)),
            linear-gradient(90deg, rgba(35, 27, 32, 0.48), rgba(35, 27, 32, 0.38));
    }

    .gallery-item--section-feature {
        grid-column: span 1;
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 560px) {
    .section-media-photo,
    .section-media-card--top .section-media-photo,
    .section-media-card--bottom .section-media-photo {
        aspect-ratio: 4 / 3;
        max-height: 300px;
    }
}

/* Mobile classic navigation toggle: animated arrow instead of the old round hamburger */
.mobile-arrow-toggle#mobile-menu-toggle {
    gap: 9px;
    width: auto;
    min-width: 84px;
    height: 44px;
    padding: 0 14px 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(var(--brand-rgb), 0.14);
    background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,248,250,.58));
    box-shadow: 0 14px 32px rgba(45, 37, 41, .08);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.mobile-arrow-toggle#mobile-menu-toggle span {
    margin: 0;
    flex: 0 0 auto;
}

.mobile-arrow-stem,
.mobile-arrow-head {
    position: absolute;
    left: 16px;
    display: block;
    height: 2px !important;
    border-radius: 999px;
    background: var(--brand) !important;
    transition: transform .34s ease, width .34s ease, opacity .24s ease, left .34s ease;
}

.mobile-arrow-stem {
    width: 22px !important;
    transform: translateX(0);
}

.mobile-arrow-head {
    width: 10px !important;
    transform-origin: right center;
}

.mobile-arrow-head-top {
    transform: translate(12px, -4px) rotate(45deg);
}

.mobile-arrow-head-bottom {
    transform: translate(12px, 4px) rotate(-45deg);
}

.mobile-menu-label {
    position: relative !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    margin-left: 33px !important;
    background: transparent !important;
    color: var(--brand-deep);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1;
    transition: transform .28s ease, opacity .28s ease;
}

.mobile-arrow-toggle#mobile-menu-toggle.active .mobile-arrow-stem {
    transform: translateX(3px) rotate(180deg);
}

.mobile-arrow-toggle#mobile-menu-toggle.active .mobile-arrow-head-top {
    transform: translate(0, -4px) rotate(135deg);
}

.mobile-arrow-toggle#mobile-menu-toggle.active .mobile-arrow-head-bottom {
    transform: translate(0, 4px) rotate(-135deg);
}

.mobile-arrow-toggle#mobile-menu-toggle.active .mobile-menu-label {
    transform: translateX(2px);
}

@media (max-width: 900px) {
    .main-nav {
        display: block;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px) scale(.98);
        transform-origin: top center;
        transition: opacity .28s ease, transform .32s cubic-bezier(.2,.8,.2,1);
    }

    .main-nav.mobile-nav-active {
        display: block;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 560px) {
    .mobile-arrow-toggle#mobile-menu-toggle {
        min-width: 48px;
        width: 48px;
        padding: 0;
        border-radius: 16px;
    }

    .mobile-arrow-stem,
    .mobile-arrow-head {
        left: 13px;
    }

    .mobile-menu-label {
        opacity: 0;
        width: 0 !important;
        margin-left: 0 !important;
    }
}
.mobile-arrow-toggle#mobile-menu-toggle.active .mobile-arrow-head,
.mobile-arrow-toggle#mobile-menu-toggle .mobile-arrow-head,
.mobile-arrow-toggle#mobile-menu-toggle .mobile-arrow-stem {
    opacity: 1 !important;
}
.mobile-arrow-toggle#mobile-menu-toggle { position: relative; }


/* Bloom rich text editor output */
.section-richtext,
.section-copy,
.contact-details,
.service-description,
.testimonial-quote,
.richtext-inline,
.hero-subtitle,
.section-intro {
    white-space: normal;
}

.richtext-inline > p:first-child,
.section-richtext > p:first-child,
.section-copy > p:first-child,
.contact-details > p:first-child,
.service-description > p:first-child,
.testimonial-quote > p:first-child {
    margin-top: 0;
}

.richtext-inline > p:last-child,
.section-richtext > p:last-child,
.section-copy > p:last-child,
.contact-details > p:last-child,
.service-description > p:last-child,
.testimonial-quote > p:last-child {
    margin-bottom: 0;
}

.section-richtext h1,
.section-richtext h2,
.section-richtext h3,
.section-richtext h4,
.section-copy h1,
.section-copy h2,
.section-copy h3,
.section-copy h4,
.contact-details h1,
.contact-details h2,
.contact-details h3,
.contact-details h4,
.testimonial-quote h1,
.testimonial-quote h2,
.testimonial-quote h3,
.testimonial-quote h4 {
    margin-top: 1.15em;
    margin-bottom: 0.45em;
}

.section-richtext ul,
.section-richtext ol,
.section-copy ul,
.section-copy ol,
.contact-details ul,
.contact-details ol,
.service-description ul,
.service-description ol,
.testimonial-quote ul,
.testimonial-quote ol {
    margin: 0 0 1.1rem 1.25rem;
    padding-left: 1rem;
}

.section-richtext li,
.section-copy li,
.contact-details li,
.service-description li,
.testimonial-quote li {
    margin-bottom: 0.35rem;
}

.section-richtext blockquote,
.section-copy blockquote,
.contact-details blockquote,
.service-description blockquote,
.testimonial-quote blockquote,
.richtext-note {
    margin: 1.15rem 0;
    padding: 1rem 1.15rem;
    border-left: 4px solid var(--brand);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(250, 241, 246, 0.78);
    color: var(--brand-deep);
    font-style: italic;
}

.richtext-note {
    border: 1px solid rgba(var(--brand-rgb), 0.18);
    border-left: 5px solid var(--brand);
    border-radius: var(--radius-sm);
    font-style: normal;
}

.section-richtext table,
.section-copy table,
.contact-details table,
.service-description table,
.testimonial-quote table {
    width: 100%;
    margin: 1.1rem 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.12);
}

.section-richtext th,
.section-richtext td,
.section-copy th,
.section-copy td,
.contact-details th,
.contact-details td,
.service-description th,
.service-description td,
.testimonial-quote th,
.testimonial-quote td {
    padding: 0.78rem 0.9rem;
    border: 1px solid rgba(var(--brand-rgb), 0.14);
    text-align: left;
    vertical-align: top;
}

.section-richtext th,
.section-copy th,
.contact-details th,
.service-description th,
.testimonial-quote th {
    background: rgba(246, 228, 237, 0.72);
    color: var(--brand-deep);
    font-weight: 800;
}

.section-richtext img,
.section-copy img,
.contact-details img,
.service-description img,
.testimonial-quote img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.15rem auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.section-richtext a,
.section-copy a,
.contact-details a,
.service-description a,
.testimonial-quote a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.section-richtext iframe,
.section-copy iframe,
.contact-details iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 320px;
    margin: 1.25rem auto;
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.section-media-card .section-richtext img,
.section-media-card .section-copy img,
.section-media-card .contact-details img {
    max-height: 420px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .section-richtext table,
    .section-copy table,
    .contact-details table,
    .service-description table,
    .testimonial-quote table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


/* SEO landing pages */
.seo-landing-shell { max-width: 980px; }
.seo-breadcrumb { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; justify-content: center; margin-bottom: 22px; color: rgba(var(--text-rgb), 0.68); font-size: 0.92rem; }
.seo-breadcrumb a { color: var(--brand); font-weight: 800; }
.seo-landing-hero { text-align: center; max-width: 880px; margin: 0 auto; }
.seo-landing-hero h1 { max-width: 820px; margin-left: auto; margin-right: auto; }
.seo-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-top: 28px; }
.seo-grid-section { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.seo-content-stack { display: grid; gap: 18px; }
.seo-text-card h2 { margin-top: 0; }
.seo-side-card { position: sticky; top: 110px; padding: 28px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.88); box-shadow: var(--shadow-soft); border: 1px solid rgba(var(--brand-rgb), 0.12); }
.seo-check-list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 12px; }
.seo-check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.seo-check-list i { color: var(--brand); margin-top: 3px; }
.seo-full-button { width: 100%; justify-content: center; }
.seo-benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.seo-faq-list { display: grid; gap: 14px; max-width: 920px; margin-left: auto; margin-right: auto; }
.seo-faq-item { border-radius: var(--radius-md); background: rgba(255,255,255,0.9); border: 1px solid rgba(var(--brand-rgb), 0.12); box-shadow: var(--shadow-soft); padding: 18px 20px; }
.seo-faq-item summary { cursor: pointer; color: var(--brand-deep); font-weight: 800; }
.seo-faq-item p { margin: 12px 0 0; }
.seo-internal-links { margin-top: 42px; text-align: center; }
.seo-link-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.seo-link-pills a { padding: 0.75rem 1rem; border-radius: 999px; background: rgba(var(--brand-rgb), 0.08); color: var(--brand-deep); font-weight: 800; border: 1px solid rgba(var(--brand-rgb), 0.12); }
.seo-link-pills a:hover { background: var(--brand); color: #fff; }
@media (max-width: 980px) {
    .seo-grid-section { grid-template-columns: 1fr; }
    .seo-side-card { position: static; }
    .seo-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .seo-benefit-grid { grid-template-columns: 1fr; }
}
