/* ============================================================
   AVERO STUDIOS — tab.css
   ============================================================ */

/* Load the new font stack once for every page that uses tab.css */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=Caveat:wght@400;500;600;700&display=swap");

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
    --teal-dark: #243B35;
    --teal: #6B8E7B;
    --teal-light: #B7C9B1;
    --cream: #F1E9D2;
    --ink: #243B35;
    --deep: #243B35;
    --muted: #6B8E7B;
    --accent: #6B8E7B;
    --accent-light: #B7C9B1;
    --paper: #F1E9D2;
    --border: rgba(36, 59, 53, 0.12);

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
    --font-quote: "Caveat", "Segoe Script", cursive;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius-pill: 999px;

    --loc-card-w: 240px;
    --loc-card-img-h: 150px;

    --bottom-bar-h: 108px;
}

/* ============================================================
   2. RESET + SCROLL FIX
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background-color: #243B35;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 100px;
}

body {
    overscroll-behavior-y: none;
}

/* ============================================================
   3. PRELOAD LOCK
   ============================================================ */
html.preload-hero #top,
html.preload-hero #bottom,
html.preload-hero .wedding-order-button {
    display: none !important;
}

/* ============================================================
   4. BASE BODY
   ============================================================ */
body {
    background-color: var(--teal-light);
    margin: 0;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 120px;
    position: relative;
    font-family: var(--font-body);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(
        to bottom,
        rgba(241, 233, 210, 1) 0%,
        rgba(241, 233, 210, 0.9) 30%,
        rgba(241, 233, 210, 0.5) 65%,
        rgba(241, 233, 210, 0) 100%
    );
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(
        to top,
        rgba(241, 233, 210, 1) 0%,
        rgba(241, 233, 210, 0.9) 30%,
        rgba(241, 233, 210, 0.5) 65%,
        rgba(241, 233, 210, 0) 100%
    );
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

body.show-top-fade::before   { opacity: 1; }
body.show-bottom-fade::after { opacity: 1; }

/* ============================================================
   5. #top
   ============================================================ */
#top {
    background-color: rgba(241, 233, 210, 0.95);
    position: fixed;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    width: min(980px, calc(100% - 40px));
    padding: 8px 12px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    border-radius: 12px;
    border: 1px solid rgba(36, 59, 53, 0.10);
    box-shadow: 0 6px 20px rgba(36, 59, 53, 0.10);
    opacity: 1;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

#top h1 { margin-right: auto; }

#top img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
}

#top .title,
#top p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--teal-dark);
    line-height: 1.2;
}

/* ============================================================
   6. #bottom
   ============================================================ */
#bottom {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: min(980px, calc(100% - 40px));
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 1000;
    background: rgba(241, 233, 210, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(36, 59, 53, 0.10);
    box-shadow: 0 8px 30px rgba(36, 59, 53, 0.14);
    opacity: 1;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

#bottom input {
    width: 100%;
    max-width: 720px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(36, 59, 53, 0.18);
    box-shadow: 0 2px 10px rgba(36, 59, 53, 0.10);
    font-size: 15px;
    background: var(--cream);
    color: var(--teal-dark);
    text-align: center;
    font-family: var(--font-body);
}

body.hero-nav-hidden #top,
body.hero-nav-hidden #bottom {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-20px);
}

/* ============================================================
   7. .cat buttons
   ============================================================ */
.cat {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: 4px;
    width: 100%;
    overflow: hidden;
    scrollbar-width: none;
}

.cat::-webkit-scrollbar { display: none; }

.cat button {
    flex: 1 1 0;
    min-width: 0;
    background: var(--teal-light);
    border: 1px solid rgba(36, 59, 53, 0.15);
    border-radius: 999px;
    padding: 7px 4px;
    font-size: 13px;
    color: var(--teal-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(36, 59, 53, 0.10);
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
}

.cat button:hover {
    box-shadow: 0 6px 18px rgba(36, 59, 53, 0.14);
    transform: translateY(-2px);
}

.cat button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(36, 59, 53, 0.10);
}

/* ============================================================
   8. CATEGORY PAGE BASE
   ============================================================ */
body.category-page {
    margin: 0;
    padding: 0;
    background: var(--teal-dark);
    color: var(--cream);
    overflow-x: clip;
}

/* ============================================================
   9. CATEGORY HERO
   ============================================================ */
.category-hero {
    position: relative;
    min-height: min(640px, 90svh);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 110px clamp(20px, 6vw, 100px) 140px;
    background: var(--teal-dark);
    isolation: isolate;
}

.category-hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: var(--teal-dark);
}

.category-hero-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.category-hero-slideshow img.active { opacity: 1; }

.category-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.92),
        rgba(0, 0, 0, 0.68) 45%,
        rgba(0, 0, 0, 0.38)
    );
    z-index: 1;
}

.category-hero-content {
    position: relative;
    z-index: 3;
    width: min(640px, 100%);
}

.category-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--teal-light);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.category-hero-kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--teal-light);
}

.category-hero h2 {
    margin: 0;
    color: var(--cream);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.4rem, 6vw, 5.4rem);
    line-height: .98;
    letter-spacing: -.025em;
}

.category-hero-quote {
    max-width: 480px;
    margin: 18px 0 24px;
    color: rgba(241, 233, 210, 0.85);
    font-family: var(--font-quote);
    font-style: normal;
    font-weight: 500;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    line-height: 1.4;
}

.category-points {
    max-width: 580px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-points li {
    color: var(--cream);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(0.92rem, 1.5vw, 1.05rem);
    line-height: 1.35;
}

.category-points li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 8px 2px 0;
    border-radius: 50%;
    background: var(--teal-light);
}

/* ============================================================
   10. HERO OVERLAY
   ============================================================ */
.hero-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 14px clamp(16px, 4vw, 60px);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 4;
    background: linear-gradient(180deg, rgba(36, 59, 53, 0.55), transparent);
    box-sizing: border-box;
}

.hero-overlay-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.hero-overlay-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    gap: 2px;
}

.hero-overlay-sign {
    display: block;
    width: 150px;
    height: 66px;
    object-fit: contain;
}

.hero-overlay-name {
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-overlay-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.hero-overlay-cats .cat-button {
    padding: 9px 14px;
    border: 1px solid rgba(241, 233, 210, 0.48);
    border-radius: var(--radius-pill);
    background: rgba(241, 233, 210, 0.12);
    color: var(--cream);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    backdrop-filter: blur(9px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-overlay-cats .cat-button:hover,
.hero-overlay-cats .cat-button:focus-visible {
    background: var(--teal);
    border-color: var(--teal-light);
    transform: translateY(-2px);
    outline: 0;
}

/* ============================================================
   11. CONTENT WRAPPER
   ============================================================ */
.category-page #content {
    position: relative;
    background: var(--cream);
    padding: 0;
    width: 100%;
    margin: 0;
}

#content { width: 100%; margin: 0; }
#content #cards { width: 100%; margin: 0; padding: 0; }

/* ============================================================
   12. CATEGORY INFO
   ============================================================ */
.category-info {
    width: min(1120px, calc(100% - 40px));
    margin: 32px auto 0;
    padding: 36px 40px 40px;
    background: rgba(241, 233, 210, 0.55);
    border: 1px solid rgba(36, 59, 53, 0.10);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(36, 59, 53, 0.06);
}

.category-info-title {
    display: inline-block;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--teal);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.15;
    color: var(--teal-dark);
    letter-spacing: -.01em;
}

.category-info-text {
    max-width: 740px;
    margin: 0 0 14px;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    color: var(--teal-dark);
    opacity: 0.9;
}

.category-info-text:last-of-type { margin-bottom: 0; }

.category-info-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}

.category-info-list li {
    position: relative;
    padding-left: 20px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    color: var(--teal-dark);
    opacity: 0.92;
}

.category-info-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
}

/* ============================================================
   13. GALLERY
   ============================================================ */
.home-gallery {
    padding: 40px 20px 48px;
    background: var(--cream);
    color: var(--teal-dark);
}

.home-gallery-heading {
    width: min(1120px, 100%);
    margin: 0 auto 24px;
}

.home-gallery-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.8rem, 3.6vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -.02em;
    color: #224230;
}

.home-gallery-sub {
    color: var(--teal);
    font-family: var(--font-quote);
    font-style: normal;
    font-weight: 500;
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.45;
    margin: 0;
}

.home-gallery .category-hero-kicker { color: var(--teal-dark); }
.home-gallery .category-hero-kicker::before { background: var(--teal); }

/* ============================================================
   14. ORDER BUTTON
   ============================================================ */
.wedding-order-button {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 999;
    width: min(260px, calc(100% - 48px));
    padding: 10px 22px;
    border: 2px solid var(--teal);
    border-radius: var(--radius-pill);
    background: var(--teal-dark);
    color: var(--teal-light);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    box-shadow: 0 7px 18px rgba(36, 59, 53, .28);
    cursor: pointer;
    transition: background .18s ease, box-shadow .18s ease,
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.wedding-order-button:hover {
    background: var(--teal);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 10px 22px rgba(36, 59, 53, .34);
}

.wedding-order-button:focus-visible {
    outline: 3px solid var(--teal-light);
    outline-offset: 3px;
}

.wedding-order-button:disabled {
    opacity: .6;
    cursor: wait;
    transform: translateX(-50%);
}

/* ============================================================
   15. CARDS GRID
   ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 0;
    align-items: start;
}

.card {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--teal-dark);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(36, 59, 53, 0.22);
}

.card-image {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background: var(--teal-dark);
}

.card-image img {
    position: absolute !important;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: opacity 0.7s ease-in-out;
    user-select: none;
    -webkit-user-drag: none;
}

.card-image img.active { opacity: 1; }

.card-image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: linear-gradient(
        to top,
        rgba(36, 59, 53, 0.55) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

.card .card-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    margin: 0;
    padding: 40px 14px 14px;
    text-align: center;
    background: linear-gradient(to top, rgba(36, 59, 53, 0.86), transparent);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(36, 59, 53, 0.55);
    pointer-events: none;
    z-index: 2;
}

/* ============================================================
   16. CARD REVEAL
   ============================================================ */
body:not(.cards-ready) .cards-grid {
    opacity: 0;
    pointer-events: none;
}

body.cards-ready .cards-grid {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s ease;
}

/* ============================================================
   17. GLOW
   ============================================================ */
.glow {
    --glow-line-color: var(--teal-light);
    --glow-line-thickness: 2px;
    --glow-line-length: 20;
    --glow-blur-color: var(--teal);
    --glow-blur-size: 8px;
    --animation-speed: 1200ms;
    --container-offset: 18px;
    position: relative;
    overflow: visible;
}

.glow-container {
    pointer-events: none;
    position: absolute;
    inset: calc(var(--container-offset) / -2);
    width: calc(100% + var(--container-offset));
    height: calc(100% + var(--container-offset));
    opacity: 0;
}

.glow-blur,
.glow-line {
    width: calc(100% - var(--container-offset));
    height: calc(100% - var(--container-offset));
    x: calc(var(--container-offset) / 2);
    y: calc(var(--container-offset) / 2);
    rx: 999px;
    fill: transparent;
    stroke: var(--glow-line-color);
    stroke-width: 2px;
    stroke-dasharray: var(--glow-line-length) calc(50 - var(--glow-line-length));
}

.glow-line { stroke-width: var(--glow-line-thickness); }

.glow-blur {
    filter: blur(var(--glow-blur-size));
    stroke: var(--glow-blur-color);
    stroke-width: var(--glow-blur-size);
}

.glow:is(:hover, :focus-visible) .glow-blur,
.glow:is(:hover, :focus-visible) .glow-line {
    stroke-dashoffset: -80px;
    transition: stroke-dashoffset var(--animation-speed) ease-in,
                stroke-dasharray var(--animation-speed) ease-in;
}

.glow:is(:hover, :focus-visible) .glow-container {
    animation: glow-visibility var(--animation-speed) ease-in;
}

.glow.category-current {
    background: var(--teal-dark);
    border-color: var(--teal-light);
    color: var(--cream);
    box-shadow: 0 0 14px rgba(183, 201, 177, 0.32);
}

@keyframes glow-visibility {
    0%, 100% { opacity: 0; }
    25%, 75% { opacity: 1; }
}

/* ============================================================
   18. PROFILE / LOGIN MENU
   ============================================================ */
.profile-menu-wrapper { position: relative; }

#top #profile-menu-container,
#top .profile-menu-wrapper,
#top #login-button-container {
    order: 999;
    margin-left: auto;
    margin-right: 8px;
}

.profile-trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--teal-light);
    background: var(--teal-light);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 160px;
    background: var(--cream);
    border: 1px solid rgba(36, 59, 53, 0.18);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(36, 59, 53, 0.20);
    overflow: hidden;
    z-index: 1001;
    display: none;
}

.profile-dropdown.active { display: block; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--teal-dark);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    transition: background 0.15s ease;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
}

.dropdown-item:hover { background: var(--teal-light); }

.dropdown-divider {
    width: 100%;
    height: 1px;
    background: rgba(36, 59, 53, 0.12);
    padding: 0;
    margin: 4px 0;
}

.logout-btn { color: var(--teal-dark); }

.header-login-btn {
    padding: 7px 16px;
    background: var(--teal-dark);
    color: var(--cream);
    border-radius: 999px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.header-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(36, 59, 53, 0.30);
}

/* ============================================================
   19. UTILITY
   ============================================================ */
.Nocopy {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* ============================================================
   20. TRADEMARK FOOTER
   ============================================================ */
.trademark-footer {
    position: relative;
    z-index: 5;
    padding: 20px 16px 28px;
    background: var(--teal-dark);
    color: var(--teal-light);
    text-align: center;
    font-family: var(--font-body);
    border-top: 1px solid rgba(183, 201, 177, 0.15);
}

.trademark-footer-line {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    letter-spacing: 0.2px;
    color: rgba(183, 201, 177, 0.7);
}

.trademark-footer a {
    color: rgba(183, 201, 177, 0.9);
    text-decoration: none;
    text-underline-offset: 3px;
}

.trademark-footer a:hover {
    color: var(--cream);
    text-decoration: underline;
}

body.at-footer #bottom {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

body.at-footer .wedding-order-button {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

/* ============================================================
   21. CATEGORY PAGE — TABLET
   ============================================================ */
@media (max-width: 1200px) {
    .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .category-hero { padding: 100px 4vw 130px; }
    .category-info { width: min(920px, calc(100% - 36px)); }
}

@media (max-width: 800px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding: 0 12px;
    }
}

/* ============================================================
   22. CATEGORY PAGE — PHONE
   ============================================================ */
@media (max-width: 700px) {
    :root {
        --bottom-bar-h: 96px;
    }

    body::before,
    body::after { height: 90px; }

    .category-hero {
        min-height: 500px;
        padding: 88px 18px 100px;
    }

    .category-hero h2 {
        font-size: clamp(1.9rem, 8.5vw, 2.6rem);
    }

    .category-hero-quote {
        margin: 12px 0 18px;
        font-size: 1.05rem;
        line-height: 1.4;
    }

    .category-points { gap: 6px 14px; }
    .category-points li { font-size: 0.88rem; line-height: 1.4; }

    .hero-overlay-top {
        padding: 10px 14px;
        gap: 10px;
    }
    .hero-overlay-logo { width: 34px; height: 34px; }
    .hero-overlay-sign { width: 90px; height: 42px; }
    .hero-overlay-name { font-size: 10px; }

    #top {
        padding: 7px 10px;
        gap: 8px;
        width: calc(100% - 20px);
        top: 8px;
    }
    #top img { width: 38px; height: 38px; }
    #top .title,
    #top p { font-size: 11px; }

    #bottom {
        width: calc(100% - 20px);
        padding: 8px;
        gap: 5px;
        bottom: 12px;
        border-radius: 10px;
    }
    #bottom input {
        padding: 7px 10px;
        font-size: 14px;
        border-radius: 6px;
    }
    .cat { gap: 5px; margin-top: 2px; }
    .cat button {
        padding: 6px 3px;
        font-size: 11px;
    }

    .category-info {
        width: calc(100% - 24px);
        margin: 20px auto 0;
        padding: 24px 20px 28px;
        border-radius: 10px;
    }
    .category-info-title {
        font-size: clamp(1.15rem, 4.8vw, 1.55rem);
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    .category-info-text {
        font-size: 13.5px;
        line-height: 1.7;
        margin-bottom: 12px;
    }
    .category-info-list {
        gap: 8px 16px;
        margin-top: 16px;
    }
    .category-info-list li {
        font-size: 12.5px;
        padding-left: 16px;
    }
    .category-info-list li::before {
        width: 6px;
        height: 6px;
    }

    /* ---- Phone gallery: horizontal infinite card rail ---- */
    .home-gallery {
        min-height: 0;
        padding: 8px 0 16px;
        display: block;
    }

    .home-gallery-heading {
        width: auto;
        max-width: none;
        margin: 0 0 10px;
        padding: 0 16px;
    }
    .home-gallery-heading h2 { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
    .home-gallery-sub { font-size: 1rem; }

    #cards.cards-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 14px !important;

        width: 100% !important;
        padding: 4px 16px 22px !important;
        box-sizing: border-box !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;

        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;
        scroll-padding-right: 16px;

        overscroll-behavior-x: contain;
        overscroll-behavior-y: auto;

        touch-action: pan-x pan-y;
        scrollbar-width: none;

        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid-auto-flow: row !important;
        height: auto !important;
        min-height: 0 !important;
    }

    #cards.cards-grid::-webkit-scrollbar { display: none; }

    #cards .card {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 82vw !important;

        height: min(calc(82vw * 4 / 3), calc(100vh - 240px)) !important;
        height: min(calc(82vw * 4 / 3), calc(100svh - 240px)) !important;

        aspect-ratio: 3 / 4;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        margin: 0 !important;
    }

    #cards .card-image {
        width: 100% !important;
        height: 100% !important;
    }

    #cards .card-image img {
        transition: none !important;
    }

    #cards .card .card-name {
        font-size: 15px !important;
        padding: 32px 12px 12px !important;
    }

    /* ---- Fade in/out based on horizontal scroll position ---- */
    @supports (animation-timeline: view()) {
        #cards .card {
            animation: card-scroll-fade linear both;
            animation-timeline: view(inline);
            animation-range: cover 0% cover 100%;
        }

        @keyframes card-scroll-fade {
            0%   { opacity: 0.25; transform: scale(0.94); }
            25%  { opacity: 1;    transform: scale(1); }
            75%  { opacity: 1;    transform: scale(1); }
            100% { opacity: 0.25; transform: scale(0.94); }
        }
    }

    .trademark-footer {
        padding: 28px 16px calc(var(--bottom-bar-h) + 18px);
    }
    .trademark-footer-line { font-size: 11.5px; margin-bottom: 5px; }
    .trademark-footer-muted { font-size: 10.5px; }

    .wedding-order-button {
        bottom: 12px;
        width: min(220px, calc(100% - 36px));
        padding: 9px 18px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    :root { --bottom-bar-h: 90px; }

    .hero-overlay-cats {
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
        margin-top: 14px;
    }
    .hero-overlay-cats .cat-button {
        width: 100%;
        text-align: center;
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    :root { --bottom-bar-h: 84px; }

    .category-hero {
        min-height: 460px;
        padding: 78px 14px 88px;
    }

    .category-hero h2 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
    .category-hero-quote { font-size: 0.98rem; }
    .category-points li { font-size: 0.82rem; }

    .category-info {
        padding: 20px 16px 22px;
        margin-top: 16px;
    }
    .category-info-text { font-size: 13px; }

    .home-gallery { padding: 8px 0 12px; }

    .wedding-order-button {
        width: min(200px, calc(100% - 32px));
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* ============================================================
   23. ORDER PAGE — BASE
   ============================================================ */
body.order-page {
    background:
        radial-gradient(circle at 12% 18%, rgba(183, 201, 177, 0.55), transparent 28%),
        linear-gradient(135deg, var(--cream) 0%, var(--teal-light) 52%, var(--teal) 100%);
    color: var(--teal-dark);
    font-family: var(--font-body);
    padding-bottom: 200px;
    overflow-x: clip;
}

body.order-page::before,
body.order-page::after { display: none; }

.order-page #content {
    width: min(1120px, calc(100% - 40px));
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    min-width: 0;
}

.order-title {
    padding: 16px 0 24px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--teal);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.order-title h2 {
    margin: 0;
    font-size: clamp(26px, 4.6vw, 46px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--teal-dark);
    font-family: var(--font-display);
}

/* ============================================================
   24. ORDER PAGE — FORM LAYOUT
   ============================================================ */
.order-form {
    display: grid;
    gap: 18px;
    padding-bottom: 16px;
    min-width: 0;
}

.order-section,
.order-summary {
    box-sizing: border-box;
    padding: clamp(18px, 3.5vw, 30px);
    background: rgba(241, 233, 210, 0.82);
    border: 1px solid rgba(36, 59, 53, 0.12);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(36, 59, 53, 0.10);
    min-width: 0;
    overflow: hidden;
}

.section-heading { margin-bottom: 18px; }

.section-heading h2,
.order-summary h2 {
    margin: 0;
    font-size: clamp(21px, 2.8vw, 30px);
    font-weight: 500;
    letter-spacing: -.015em;
    color: var(--teal-dark);
    font-family: var(--font-display);
}

.section-heading > p:last-child,
.order-summary p:last-child {
    margin: 6px 0 0;
    color: var(--teal);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
}

/* ============================================================
   25. ORDER PAGE — PACKAGES
   ============================================================ */
.package-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.package-card {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.package-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    left: 10px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.package-card-content {
    display: block;
    height: 100%;
    box-sizing: border-box;
    padding: 16px;
    background: var(--cream);
    border: 1px solid rgba(36, 59, 53, 0.15);
    border-radius: 6px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.package-card:hover .package-card-content,
.package-card:has(input:focus-visible) .package-card-content {
    border-color: var(--teal);
    box-shadow: 0 8px 20px rgba(36, 59, 53, 0.12);
    transform: translateY(-2px);
}

.package-card:has(input:checked) .package-card-content {
    background: var(--cream);
    border-color: var(--teal-dark);
    box-shadow: 0 8px 20px rgba(36, 59, 53, 0.14);
}

.package-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-body);
    color: var(--teal-dark);
}

.package-card-top strong { font-size: 15px; line-height: 1.3; font-weight: 600; }

.package-price {
    flex: 0 0 auto;
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.package-details {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    color: var(--teal-dark);
    font-family: var(--font-body);
    font-size: 12.5px;
    line-height: 1.4;
}

.package-details span {
    padding-left: 12px;
    border-left: 2px solid var(--teal);
}

.package-editor {
    margin: 18px 0 0;
    padding: 16px;
    border: 1px solid rgba(36, 59, 53, 0.15);
    border-radius: 6px;
}

.package-editor legend {
    padding: 0 8px;
    color: var(--teal-dark);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
}

.editor-note {
    margin: 0 0 14px;
    color: var(--teal);
    font-family: var(--font-body);
    font-size: 12.5px;
}

.studio-note,
.additional-charge-note {
    grid-column: 2;
    margin: -4px 0 0;
    color: var(--teal);
    font-family: var(--font-body);
    font-size: 12.5px;
    line-height: 1.4;
}

.order-fields input,
.order-fields select,
.order-fields textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    color: var(--teal-dark);
    background: var(--cream);
    border: 1px solid rgba(36, 59, 53, 0.18);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 13.5px;
}

.package-editor:disabled { opacity: 0.72; }
.package-editor:disabled input,
.package-editor:disabled textarea { background: var(--teal-light); }

/* ============================================================
   26. ORDER PAGE — LOCATION CAROUSEL
   ============================================================ */
.location-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.location-palette {
    display: flex;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    padding: 4px 2px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.location-palette::-webkit-scrollbar { display: none; }

.location-palette.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.location-palette.dragging .location-card { pointer-events: none; }

.empty-state {
    align-self: center;
    width: 100%;
    margin: 0;
    padding: 16px;
    color: var(--teal);
    font-family: var(--font-body);
    font-size: 13px;
    text-align: center;
}

.carousel-arrow {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(36, 59, 53, 0.18);
    background: rgba(241, 233, 210, 0.95);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-dark);
    transition: background 160ms ease, border-color 160ms ease, transform 120ms ease, opacity 160ms ease;
    z-index: 5;
}

.carousel-arrow:hover:not(:disabled) {
    background: var(--cream);
    border-color: var(--teal);
    color: var(--teal);
    transform: scale(1.06);
}

.carousel-arrow:active:not(:disabled) { transform: scale(0.94); }
.carousel-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.carousel-arrow svg { display: block; }

@media (max-width: 500px) {
    .carousel-arrow {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }
}

/* ============================================================
   27. ORDER PAGE — LOCATION CARD
   ============================================================ */
@media (max-width: 1100px) { :root { --loc-card-w: 220px; --loc-card-img-h: 140px; } }
@media (max-width: 800px)  { :root { --loc-card-w: 205px; --loc-card-img-h: 130px; } }
@media (max-width: 600px)  { :root { --loc-card-w: 190px; --loc-card-img-h: 118px; } }
@media (max-width: 420px)  { :root { --loc-card-w: 78vw;   --loc-card-img-h: 140px; } }

.location-card {
    position: relative;
    cursor: pointer;
    user-select: none;
    flex: 0 0 var(--loc-card-w);
    width: var(--loc-card-w);
    max-width: var(--loc-card-w);
    scroll-snap-align: start;
    overflow: hidden;
    background: var(--cream);
    border: 1px solid rgba(36, 59, 53, 0.15);
    border-radius: 8px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.location-card:hover {
    border-color: var(--teal);
    box-shadow: 0 8px 20px rgba(36, 59, 53, 0.12);
    transform: translateY(-2px);
}

.location-card.selected {
    background-color: var(--teal-dark) !important;
    color: #ffffff !important;
    border-color: var(--teal-dark) !important;
}

.location-card.selected h3,
.location-card.selected p,
.location-card.selected .location-cost,
.location-card.selected .location-description,
.location-card.selected .location-card-content {
    color: #ffffff !important;
}

.location-card[data-active="0"] {
    opacity: 0.55;
    pointer-events: none;
    position: relative;
}

.location-card[data-active="0"]::after {
    content: "Unavailable";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--teal-dark);
    background: rgba(255, 255, 255, 0.85);
    border-radius: inherit;
    z-index: 10;
}

.location-slideshow {
    position: relative;
    width: 100%;
    height: var(--loc-card-img-h);
    background: var(--teal-light);
    overflow: hidden;
}

.location-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.location-slideshow img.active,
.location-slideshow img:first-child { opacity: 1; }

.location-card-content {
    padding: 12px 12px 14px;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.location-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--teal-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.location-cost {
    margin: 0;
    font-weight: 600;
    font-size: 12.5px;
    color: var(--teal);
    text-transform: capitalize;
}

.location-description {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--teal-dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.location-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.location-select input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   28. ORDER PAGE — CALENDAR
   ============================================================ */
.Avero-calendar {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.Avero-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.Avero-calendar-title {
    margin: 0;
    text-align: center;
    flex: 1;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -.01em;
}

.Avero-calendar-nav {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.Avero-calendar-nav:hover:not(:disabled) { background: rgba(0, 0, 0, 0.08); }
.Avero-calendar-nav:disabled { opacity: 0.25; cursor: not-allowed; }

.Avero-calendar-weekdays,
.Avero-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.Avero-calendar-weekdays { margin-bottom: 4px; }

.Avero-calendar-weekday {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.65;
}

.Avero-calendar-day {
    position: relative;
    min-height: 52px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 6px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.Avero-calendar-day:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.Avero-calendar-day.empty {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

.Avero-calendar-day.past,
.Avero-calendar-day.unavailable,
.Avero-calendar-day.booked {
    opacity: 0.55;
    cursor: not-allowed;
}

.Avero-calendar-day.selected {
    background: var(--teal-dark) !important;
    border-color: var(--teal-dark) !important;
    color: #ffffff !important;
    opacity: 1;
}

.Avero-calendar-number {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}

.Avero-calendar-badge {
    font-family: var(--font-body);
    font-size: 0.58rem;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    color: #33aa69;
}

.Avero-calendar-day.selected .Avero-calendar-badge { color: #ffffff; }

.Avero-calendar-loading { padding: 24px 12px; text-align: center; }
.Avero-calendar-error { padding: 16px; text-align: center; color: #33aa69; }

@media (max-width: 600px) {
    .Avero-calendar-grid,
    .Avero-calendar-weekdays { gap: 3px; }
    .Avero-calendar-day {
        min-height: 44px;
        border-radius: 7px;
        padding: 5px 2px;
    }
    .Avero-calendar-number { font-size: 0.8rem; }
    .Avero-calendar-badge { font-size: 0.5rem; }
    .Avero-calendar-weekday { font-size: 0.65rem; }
}

.date-choice-status,
.order-save-status {
    margin-top: 10px;
    min-height: 22px;
    font-weight: 600;
    font-size: 13px;
}

.date-choice-status[data-status-type="loading"],
.order-save-status[data-status-type="loading"] { color: var(--teal); }

.date-choice-status[data-status-type="error"],
.order-save-status[data-status-type="error"]   { color: #b91c1c; }

.date-choice-status[data-status-type="success"],
.order-save-status[data-status-type="success"] { color: #065f46; }

/* ============================================================
   29. ORDER PAGE — FIELDS + DURATION PICKER
   ============================================================ */
.order-fields {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 12px 18px;
}

.order-fields label {
    color: var(--teal-dark);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
}

.order-fields textarea { resize: vertical; }

.duration-picker {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    border: 0;
}

.duration-picker legend {
    margin-bottom: 8px;
    padding: 0;
    color: var(--teal-dark);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
}

.duration-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.duration-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.duration-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    top: 0;
    left: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.duration-option span {
    display: block;
    min-width: 80px;
    padding: 10px 14px;
    color: var(--teal-dark);
    background: var(--cream);
    border: 1px solid rgba(36, 59, 53, 0.15);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 13.5px;
    text-align: center;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.duration-option:hover span,
.duration-option:has(input:focus-visible) span { border-color: var(--teal); }

.duration-option:has(input:checked) span {
    color: var(--cream);
    background: var(--teal);
    border-color: var(--teal-dark);
}

.order-fields select:focus,
.order-fields textarea:focus {
    outline: 2px solid rgba(107, 142, 123, 0.45);
    outline-offset: 2px;
    border-color: var(--teal);
}

/* ============================================================
   30. ORDER PAGE — SUMMARY + SUBMIT
   ============================================================ */
.order-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: var(--teal-dark);
    color: var(--cream);
}

.order-summary .eyebrow { color: var(--teal-light); }

.order-summary h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(22px, 3.6vw, 36px);
    letter-spacing: -.02em;
    color: var(--cream);
}

.order-summary p:last-child { color: var(--teal-light); }

.order-submit {
    flex: 0 0 auto;
    padding: 12px 20px;
    color: var(--teal-dark);
    background: var(--teal-light);
    border: 0;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.order-submit:hover,
.order-submit:focus-visible {
    background: var(--cream);
    transform: translateY(-2px);
}

/* ============================================================
   31. ORDER PAGE — MEDIA QUERIES
   ============================================================ */
@media (max-width: 650px) {
    body.order-page { padding-bottom: 140px; }

    .order-page #content { width: min(100% - 20px, 1120px); }

    .order-title { padding: 10px 0 16px; }
    .order-title h2 { font-size: clamp(20px, 6.5vw, 28px); }

    .order-form { gap: 14px; }

    .order-section,
    .order-summary {
        padding: 16px;
        border-radius: 6px;
    }

    .section-heading { margin-bottom: 14px; }

    .package-list { grid-template-columns: 1fr; gap: 10px; }

    .order-fields {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .additional-charge-note,
    .studio-note { grid-column: 1; }

    .order-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-submit { width: 100%; }
}

/* ============================================================
   32. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ============================================================
   33. PROCESS SECTION
   ============================================================ */
.process-section {
    width: min(1120px, calc(100% - 40px));
    margin: 32px auto 0;
    padding: 40px 40px 48px;
    background: rgba(241, 233, 210, 0.55);
    border: 1px solid rgba(36, 59, 53, 0.10);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(36, 59, 53, 0.06);
}

.process-section-title {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -.015em;
    color: var(--teal-dark);
}

.process-section-sub {
    margin: 0 0 28px;
    font-family: var(--font-quote);
    font-style: normal;
    font-weight: 500;
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: var(--teal);
    max-width: 620px;
    line-height: 1.45;
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.process-step {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 22px;
    align-items: start;
    padding: 22px;
    background: var(--cream);
    border: 1px solid rgba(36, 59, 53, 0.12);
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.process-step:hover {
    transform: translateY(-3px);
    border-color: var(--teal);
    box-shadow: 0 14px 30px rgba(36, 59, 53, 0.10);
}

.process-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--teal-dark);
    color: var(--cream);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 26px;
    border-radius: 14px;
    flex-shrink: 0;
}

.process-step-body h3 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 18px;
    letter-spacing: -.005em;
    color: var(--teal-dark);
    line-height: 1.3;
}

.process-step-body p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.65;
    color: var(--teal-dark);
    opacity: 0.85;
}

/* ============================================================
   34. FEATURE CARDS GRID
   ============================================================ */
.feature-section {
    width: min(1120px, calc(100% - 40px));
    margin: 24px auto 0;
    padding: 40px 40px 48px;
    background: rgba(241, 233, 210, 0.55);
    border: 1px solid rgba(36, 59, 53, 0.10);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(36, 59, 53, 0.06);
}

.feature-section-title {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -.015em;
    color: var(--teal-dark);
}

.feature-section-sub {
    margin: 0 0 28px;
    font-family: var(--font-quote);
    font-style: normal;
    font-weight: 500;
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: var(--teal);
    max-width: 620px;
    line-height: 1.45;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    position: relative;
    padding: 24px 22px 22px;
    background: var(--cream);
    border: 1px solid rgba(36, 59, 53, 0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal-dark), var(--teal), var(--teal-light));
    opacity: 0.9;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--teal);
    box-shadow: 0 16px 32px rgba(36, 59, 53, 0.12);
}

.feature-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    background: var(--teal-light);
    color: var(--teal-dark);
    border-radius: 12px;
    font-size: 20px;
    line-height: 1;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -.005em;
    color: var(--teal-dark);
    line-height: 1.3;
}

.feature-card p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--teal-dark);
    opacity: 0.85;
}

/* Tablet */
@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

/* Phone */
@media (max-width: 700px) {
    .process-section,
    .feature-section {
        width: calc(100% - 24px);
        margin-top: 18px;
        padding: 22px 20px 16px;
        border-radius: 10px;
    }

    .process-section-title,
    .feature-section-title {
        font-size: clamp(1.2rem, 5vw, 1.55rem);
    }

    .process-section-sub,
    .feature-section-sub {
        font-size: 1.05rem;
        margin-bottom: 20px;
    }

    .process-list { gap: 10px; }

    .process-step {
        grid-template-columns: 50px 1fr;
        gap: 14px;
        padding: 14px;
        border-radius: 10px;
    }

    .process-step-number {
        width: 50px;
        height: 50px;
        font-size: 19px;
        border-radius: 10px;
    }

    .process-step-body h3 { font-size: 15px; }
    .process-step-body p { font-size: 12.5px; line-height: 1.6; }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-card {
        padding: 18px 16px 16px;
        border-radius: 10px;
    }

    .feature-card-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
        margin-bottom: 10px;
    }

    .feature-card h3 { font-size: 15px; }
    .feature-card p { font-size: 12.5px; }
}

/* ============================================================
   FIX — last category button was being clipped ("wall")
   ============================================================ */

/* 1. Bottom bar: replace tab.css's overflow:hidden with a
      horizontal scroller so the buttons can be reached. */
#bottom .cat {
    overflow-x: auto;
    overflow-y: visible;
    justify-content: flex-start;
    scrollbar-width: thin;
    scrollbar-color: var(--teal) transparent;
    padding: 2px 2px 8px;
}
#bottom .cat::-webkit-scrollbar { height: 4px; }
#bottom .cat::-webkit-scrollbar-track { background: transparent; }
#bottom .cat::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: 2px;
}
#bottom .cat button {
    flex: 0 0 auto;            /* don't shrink — size to content */
    white-space: nowrap;
}

/* 2. Hero category row: same treatment so the last one
      is never sliced off at the hero edge. */
.hero-overlay-cats {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(241, 233, 210, 0.5) transparent;
    padding-bottom: 8px;
}
.hero-overlay-cats::-webkit-scrollbar { height: 4px; }
.hero-overlay-cats::-webkit-scrollbar-track { background: transparent; }
.hero-overlay-cats::-webkit-scrollbar-thumb {
    background: rgba(241, 233, 210, 0.5);
    border-radius: 2px;
}