/* ========================
   1) THEME TOKENS (SHARED)
   ======================== */
:root {
    /* Background + Panels */
    --bg: #f4efe6;
    --panel: rgba(255, 250, 242, 0.78);
    --panel2: rgba(255, 255, 250, 0.9);
    --stroke: rgba(108, 83, 54, 0.2);

    /* Text */
    --text: rgba(31, 24, 19, 0.94);
    --muted: rgba(31, 24, 19, 0.72);
    --muted2: rgba(31, 24, 19, 0.56);

    /* Party Theme Accent Colors */
    --brand: #8f5f39;
    --brand2: #2f756b;
    --accent: #bc9354;

    /* Shadows + Radius */
    --shadow: 0 18px 60px rgba(44, 31, 22, 0.14);
    --radius: 18px;
    --radius2: 24px;
    --max: 1160px;
    --scroll-offset: 96px;
    --btn-height: 44px;
    --btn-padding-x: 16px;
    --btn-font-size: 14px;
}

/* Keep (harmless) — it matches your light tokens anyway */
@media (prefers-color-scheme: light) {
    :root {
        --bg: #f4efe6;
        --panel: rgba(255, 250, 242, 0.78);
        --panel2: rgba(255, 255, 250, 0.9);
        --stroke: rgba(108, 83, 54, 0.2);

        --text: rgba(31, 24, 19, 0.94);
        --muted: rgba(31, 24, 19, 0.72);
        --muted2: rgba(31, 24, 19, 0.56);

        --shadow: 0 18px 60px rgba(44, 31, 22, 0.14);
    }
}

/* ===============
   2) RESET / BASE
   =============== */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--scroll-offset) + env(safe-area-inset-top));
}

[id],
[data-scroll-id] {
    scroll-margin-top: calc(var(--scroll-offset) + env(safe-area-inset-top) + 4px);
}

body {
    margin: 0;
    font-family: "Avenir Next", "Nunito Sans", "Trebuchet MS", sans-serif;
    color: var(--text);
    line-height: 1.55;
    letter-spacing: 0.01em;
    background: radial-gradient(1200px 560px at -8% -10%, rgba(188, 147, 84, 0.12), transparent 58%),
        radial-gradient(1000px 540px at 108% -8%, rgba(63, 126, 116, 0.1), transparent 60%),
        linear-gradient(180deg, #f9f5ee 0%, var(--bg) 42%, #f3eee5 100%);
    background-attachment: scroll;
}

a {
    color: inherit;
    transition: color 0.2s ease;
}

h1,
h2,
h3 {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
    color: rgba(24, 18, 13, 0.96);
}

.wrap {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

/* ===================
   3) TOP NAV (SHARED)
   =================== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(255, 250, 242, 0.8);
    border-bottom: 1px solid var(--stroke);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    /* using the stronger About value */
    letter-spacing: 0.2px;
}

.logo {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 50%;
    background: url("images/logo/logo.png") center / contain no-repeat;
}

.navlinks {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--muted);
}

.navlinks a {
    position: relative;
    /* needed for gradient underline */
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 12px;
}

.navlinks a:hover {
    background: var(--panel);
    color: var(--text);
}

/* Active link: gradient underline + glow (from about.css) */
.navlinks a.active::before,
.navlinks a[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(171, 121, 79, 0.35), rgba(63, 126, 116, 0.25));
    filter: blur(8px);
    opacity: 0.5;
}

.navlinks a.active::after,
.navlinks a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;

    /* Underline sits INSIDE the link, near bottom */
    bottom: 7.5px;
    height: 2.5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand2));
}

/* Stop the fade overlay from covering the first chip */
@media (max-width: 820px) {

    /* Remove the nav-level fades (these cause the “faded Packages” look) */
    .nav::before,
    .nav::after {
        display: none;
    }

    /* Add fades to the scroll container instead */
    .navChips {
        position: relative;
    }

    .navChips::before,
    .navChips::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 18px;
        pointer-events: none;
        z-index: 1;
    }

    .navChips::before {
        left: 0;
        background: linear-gradient(to right, var(--bg), rgba(244, 239, 230, 0));
    }

    .navChips::after {
        right: 0;
        background: linear-gradient(to left, var(--bg), rgba(244, 239, 230, 0));
    }

    /* Ensure chips sit above the fades */
    .chipLink {
        position: relative;
        z-index: 2;
    }
}

/* ===================
   4) BUTTONS (SHARED)
   =================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--btn-height);
    padding: 0 var(--btn-padding-x);
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, var(--panel2), var(--panel));
    box-shadow: 0 10px 35px rgba(44, 31, 22, 0.14);
    color: var(--text);
    -webkit-text-fill-color: var(--text);
    /* iOS Safari */
    text-decoration: none;
    font-weight: 650;
    font-size: var(--btn-font-size);
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(171, 121, 79, 0.55);
    box-shadow: 0 14px 45px rgba(171, 121, 79, 0.22);
}

.btn:active {
    transform: translateY(0);
}

.btn.primary {
    border-color: rgba(188, 147, 84, 0.55);
    background: linear-gradient(135deg, rgba(188, 147, 84, 0.2), rgba(188, 147, 84, 0.06));
    color: rgba(24, 18, 13, 0.96);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid rgba(63, 126, 116, 0.55);
    outline-offset: 3px;
}

/* ========================
   5) SECTION BASE (SHARED)
   ======================== */
section {
    padding: 34px 0;
}

.sectionHead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.sectionHead h2 {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 32px);
    letter-spacing: -0.3px;
}

.sectionHead p {
    margin: 0;
    color: var(--muted);
    max-width: 72ch;
}

.hint {
    margin: 6px 0 12px;
    color: var(--muted);
}

/* ================
   6) HERO (SHARED)
   ================ */
.hero {
    padding: 54px 0 26px;
}

.heroGrid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    align-items: stretch;
}

@media (max-width: 960px) {
    .heroGrid {
        grid-template-columns: 1fr;
    }
}

.heroCard {
    border: 1px solid var(--stroke);
    border-radius: var(--radius2);
    background: linear-gradient(180deg, var(--panel2), var(--panel));
    box-shadow: var(--shadow);
    padding: 24px;
    overflow: hidden;
    position: relative;
}

.pill {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.52);
    color: var(--muted);
    font-size: 13px;
}

.hero h1 {
    margin: 12px 0 10px;
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.6px;
}

.hero p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 16px;
    max-width: 62ch;
}

.heroActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.jump {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.58);
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
}

.chip:hover {
    border-color: rgba(188, 147, 84, 0.42);
    color: var(--text);
}

.heroMini {
    display: grid;
    gap: 12px;
}

.miniBox {
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel2), var(--panel));
    padding: 16px;
    box-shadow: 0 12px 40px rgba(44, 31, 22, 0.12);
}

.miniTitle {
    font-weight: 700;
    margin: 0 0 6px;
}

.miniText {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.miniList {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.miniList li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    margin-top: 6px;
    background: var(--brand2);
    box-shadow: 0 0 18px rgba(63, 126, 116, 0.55);
    flex: 0 0 9px;
}

/* ================
   7) TABS (SHARED)
   ================ */
.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}

.tabBtn {
    appearance: none;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.6);
    color: var(--muted);
    min-height: var(--btn-height);
    padding: 0 var(--btn-padding-x);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 650;
    font-size: var(--btn-font-size);
    line-height: 1;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.tabBtn:hover {
    border-color: rgba(171, 121, 79, 0.45);
    transform: translateY(-1px);
}

.tabBtn[aria-selected="true"] {
    color: var(--text);
    border-color: rgba(171, 121, 79, 0.65);
    background: linear-gradient(135deg, rgba(171, 121, 79, 0.22), rgba(63, 126, 116, 0.14));
}

main img[data-modal-image="true"] {
    cursor: pointer;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(16, 12, 8, 0.78);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.image-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.image-modal__panel {
    position: relative;
    display: inline-grid;
    gap: 10px;
    justify-items: stretch;
    width: fit-content;
    max-width: min(1100px, 92vw);
}

.image-modal__img {
    width: 100%;
    max-width: 100%;
    max-height: 78vh;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    background: rgba(255, 255, 255, 0.06);
    object-fit: contain;
    display: block;
}

.image-modal__caption {
    margin: 0 auto;
    width: min(820px, 100%);
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.45;
    justify-self: center;
}

.image-modal__close {
    --close-size: clamp(30px, 4vw, 34px);
    position: absolute;
    top: 0;
    right: 0;
    width: var(--close-size);
    height: var(--close-size);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.98);
    font-size: clamp(16px, 2.8vw, 20px);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
    z-index: 3;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.image-modal__close:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.14));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}

@media (max-width: 560px) {
    .image-modal__close {
        top: 8px;
        right: 8px;
    }
}

body.modal-open {
    overflow: hidden;
}

/* =========================
   8) CARDS / GRIDS (SHARED)
   ========================= */
.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 980px) {
    .grid3 {
        grid-template-columns: 1fr;
    }
}

.card {
    border: 1px solid var(--stroke);
    border-radius: var(--radius2);
    background: linear-gradient(180deg, var(--panel2), var(--panel));
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.cardMedia {
    aspect-ratio: 16/10;
    background: radial-gradient(900px 400px at 20% 10%, rgba(188, 147, 84, 0.24), transparent 45%),
        radial-gradient(700px 380px at 90% 20%, rgba(188, 147, 84, 0.16), transparent 48%), rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--stroke);
    position: relative;
}

.cardMedia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.04) contrast(1.02);
    transition:
        transform 0.4s ease,
        filter 0.4s ease;
}

.badge {
    position: absolute;
    left: 14px;
    top: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(108, 83, 54, 0.14);
    color: var(--text);
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.cardBody {
    padding: 16px 16px 14px;
    display: grid;
    gap: 10px;
}

.cardTop {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.card h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.2px;
}

.price {
    font-weight: 800;
    color: rgba(188, 147, 84, 0.95);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.sub {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.list li {
    display: flex;
    gap: 10px;
}

.check {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(171, 121, 79, 0.6);
    background: rgba(171, 121, 79, 0.14);
    flex: 0 0 18px;
    margin-top: 2px;
    position: relative;
}

.check:after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(63, 126, 116, 0.7), transparent 55%);
    opacity: 0.7;
    border-radius: 6px;
}

.cardFoot {
    margin-top: auto;
    padding: 14px 16px 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.35);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(171, 121, 79, 0.36);
    box-shadow: 0 24px 64px rgba(44, 31, 22, 0.15);
}

.card:hover .cardMedia img {
    transform: scale(1.035);
    filter: saturate(1.08) contrast(1.03);
}

@media (max-width: 980px) {
    .grid3 {
        gap: 1.1rem !important;
    }
}

/* ===================
   9) CALLOUT (SHARED)
   =================== */
.callout {
    border: 1px solid rgba(171, 121, 79, 0.22);
    border-radius: var(--radius2);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-top: 1.1rem !important;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.callout strong {
    font-size: 16px;
}

.callout p {
    margin: 6px 0 0;
    color: var(--muted);
    max-width: 90ch;
}

.callout .btn {
    margin-top: 0.26rem;
}

/* =====================================
   10) PROMO (EVENT DECOR SERVICES PAGE)
   ===================================== */
.promo {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 14px;
    align-items: stretch;
}

@media (max-width: 960px) {
    .promo {
        grid-template-columns: 1fr;
    }
}

.promoSide {
    border-radius: var(--radius2);
}

.promoActions {
    margin-top: 12px;
}

/* =======================================
   11) GALLERY (EVENT DECOR SERVICES PAGE)
   ======================================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
}

.g {
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 14px 50px rgba(44, 31, 22, 0.16);
    min-height: 160px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.g img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}

.g:hover {
    transform: translateY(-4px);
    border-color: rgba(63, 126, 116, 0.32);
    box-shadow: 0 24px 68px rgba(44, 31, 22, 0.15);
}

.g:hover img {
    transform: scale(1.04);
    filter: saturate(1.04);
}

.g1 {
    grid-column: span 7;
    min-height: 240px;
}

.g2 {
    grid-column: span 5;
    min-height: 240px;
}

.g3 {
    grid-column: span 4;
}

.g4 {
    grid-column: span 4;
}

.g5 {
    grid-column: span 4;
}

@media (max-width: 960px) {

    .g1,
    .g2,
    .g3,
    .g4,
    .g5 {
        grid-column: span 12;
    }

    .g {
        min-height: 220px;
    }
}

/* ===============================================
   12) CONTACT / FORMS (EVENT DECOR SERVICES PAGE)
   ================================================ */
.contactGrid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 14px;
    align-items: start;
}

@media (max-width: 960px) {
    .contactGrid {
        grid-template-columns: 1fr;
    }
}

.contactSide {
    border-radius: var(--radius2);
}

.contactActions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form {
    border: 1px solid var(--stroke);
    border-radius: var(--radius2);
    background: linear-gradient(180deg, var(--panel2), var(--panel));
    box-shadow: var(--shadow);
    padding: 16px;
}

label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 6px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.62);
    color: var(--text);
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(188, 147, 84, 0.55);
    box-shadow: 0 0 0 3px rgba(188, 147, 84, 0.14);
    background: rgba(255, 255, 255, 0.86);
}

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 560px) {
    .row2 {
        grid-template-columns: 1fr;
    }
}

.mt10 {
    margin-top: 10px;
}

.formActions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.formNote {
    color: var(--muted2);
    font-size: 13px;
}

.finePrint {
    margin: 12px 0 0;
    color: var(--muted2);
    font-size: 13px;
}

/* =======================
   13) ABOUT PAGE SECTIONS
   ======================= */
.heroNote {
    margin-top: 18px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.55);
    color: var(--muted);
    font-size: 13px;
}

.heroSide {
    display: grid;
    gap: 14px;
}

.sideCard {
    border: 1px solid var(--stroke);
    border-radius: var(--radius2);
    background: linear-gradient(180deg, var(--panel2), var(--panel));
    box-shadow: var(--shadow);
    padding: 18px;
}

.sideCard h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.sideCard p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/*
.sideCard.soft {
    background: linear-gradient(180deg, var(--panel2), var(--panel));
    border: 1px solid var(--stroke);
}
*/

/* Remove pink/purple accents */
.sideCard.soft.no-accent {
    background: linear-gradient(180deg, var(--panel2), var(--panel)) !important;
    border-color: var(--stroke) !important;
}

/* Kill the purple/pink glow overlay */
.sideCard.soft.no-accent::before {
    content: none !important;
}

.sideList {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.sideList li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* Story */
.storyGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

@media (max-width: 900px) {
    .storyGrid {
        grid-template-columns: 1fr;
    }
}

.storyCard {
    border: 1px solid var(--stroke);
    border-radius: var(--radius2);
    background: linear-gradient(180deg, var(--panel2), var(--panel));
    box-shadow: var(--shadow);
    padding: 20px;
}

.storyCard h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.storyCard p {
    margin: 0 0 12px;
    color: var(--muted);
}

/* Values */
.valueGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 16px;
}

@media (max-width: 1000px) {
    .valueGrid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .valueGrid {
        grid-template-columns: 1fr;
    }
}

.valueCard {
    border: 1px solid var(--stroke);
    border-radius: var(--radius2);
    background: linear-gradient(180deg, var(--panel2), var(--panel));
    box-shadow: var(--shadow);
    padding: 18px;
}

.valueCard .icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, rgba(171, 121, 79, 0.14), rgba(63, 126, 116, 0.1));
    border: 1px solid rgba(171, 121, 79, 0.22);
    margin-bottom: 12px;
}

.valueCard h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.valueCard p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Process */
.processGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 16px;
}

@media (max-width: 1000px) {
    .processGrid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .processGrid {
        grid-template-columns: 1fr;
    }
}

.step {
    border: 1px solid var(--stroke);
    border-radius: var(--radius2);
    background: linear-gradient(180deg, var(--panel2), var(--panel));
    box-shadow: var(--shadow);
    padding: 18px;
}

.stepNum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(171, 121, 79, 0.14), rgba(63, 126, 116, 0.1));
    border: 1px solid rgba(171, 121, 79, 0.22);
    font-weight: 900;
    margin-bottom: 12px;
}

.step h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Stats */
.stats {
    padding-top: 10px;
}

.statsCard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    border: 1px solid rgba(171, 121, 79, 0.22);
    border-radius: var(--radius2);
    background: linear-gradient(135deg, rgba(171, 121, 79, 0.18), rgba(63, 126, 116, 0.12));
    box-shadow: var(--shadow);
    padding: 18px;
}

@media (max-width: 900px) {
    .statsCard {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .image-modal__close {
        top: 0;
        right: 0;
    }
}

@media (max-width: 520px) {
    .statsCard {
        grid-template-columns: 1fr;
    }
}

.stat {
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(108, 83, 54, 0.14);
    background: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 24px;
    letter-spacing: -0.4px;
}

.stat span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

/* CTA */
.ctaCard {
    border: 1px solid rgba(171, 121, 79, 0.25);
    border-radius: var(--radius2);
    background: linear-gradient(135deg, rgba(171, 121, 79, 0.18), rgba(63, 126, 116, 0.12));
    box-shadow: var(--shadow);
    padding: 26px;
    text-align: center;
}

.ctaCard h2 {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.6vw, 34px);
    letter-spacing: -0.4px;
}

.ctaCard p {
    margin: 0 auto;
    max-width: 80ch;
    color: var(--muted);
}

.ctaActions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

/* Featured sections overlay (About page) */
.sideCard.soft,
.statsCard,
.ctaCard {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(108, 83, 54, 0.14);
    box-shadow: 0 18px 70px rgba(17, 24, 39, 0.08);
}

.sideCard.soft::before,
.statsCard::before,
.ctaCard::before {
    content: "";
    position: absolute;
    inset: -60px;
    background: radial-gradient(900px 320px at 15% 20%, rgba(171, 121, 79, 0.22), transparent 62%),
        radial-gradient(900px 320px at 85% 15%, rgba(63, 126, 116, 0.18), transparent 66%),
        radial-gradient(900px 320px at 50% 110%, rgba(171, 121, 79, 0.1), transparent 72%);
    opacity: 0.95;
    pointer-events: none;
}

.sideCard.soft > *,
.statsCard > *,
.ctaCard > * {
    position: relative;
    z-index: 1;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.heroCard,
.heroMini .miniBox,
.card,
.callout,
.g,
.form,
.storyCard,
.valueCard,
.step,
.statsCard,
.ctaCard {
    animation: riseIn 0.55s ease both;
}

.heroMini .miniBox:nth-child(2),
.grid3 .card:nth-child(2),
.valueGrid .valueCard:nth-child(2),
.processGrid .step:nth-child(2) {
    animation-delay: 0.05s;
}

.grid3 .card:nth-child(3),
.valueGrid .valueCard:nth-child(3),
.processGrid .step:nth-child(3) {
    animation-delay: 0.1s;
}

.valueGrid .valueCard:nth-child(4),
.processGrid .step:nth-child(4) {
    animation-delay: 0.15s;
}

/* ===================
   14) FOOTER (SHARED)
   =================== */
footer {
    padding: 26px 0 40px;
    color: var(--muted2);
    border-top: 1px solid var(--stroke);
    margin-top: 30px;
}

.foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.footLinks {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footLinks a {
    color: inherit;
    text-decoration: none;
}

.footLinks a:hover {
    text-decoration: underline;
}

/* =====================
   15) LEGAL PAGES
   ===================== */
.legalHero {
    padding: 46px 0 20px;
}

.legalHero h1 {
    margin-bottom: 8px;
}

.legalMeta {
    margin: 0;
    color: var(--muted2);
    font-size: 13px;
}

.legalLayout {
    display: grid;
    grid-template-columns: minmax(255px, 0.35fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.legalAside {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 12px;
}

.legalAside .miniBox {
    padding: 14px;
}

.legalToc {
    display: grid;
    gap: 8px;
}

.legalToc a {
    text-decoration: none;
    color: var(--muted);
    padding: 9px 10px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.44);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.legalToc a:hover {
    color: var(--text);
    border-color: rgba(171, 121, 79, 0.42);
    background: rgba(255, 255, 255, 0.72);
}

.legalBody {
    display: grid;
    gap: 12px;
}

.legalCard {
    border: 1px solid var(--stroke);
    border-radius: var(--radius2);
    background: linear-gradient(180deg, var(--panel2), var(--panel));
    box-shadow: var(--shadow);
    padding: 20px;
}

.legalCard h2 {
    margin: 0 0 8px;
    font-size: clamp(20px, 2vw, 26px);
}

.legalCard p {
    margin: 0 0 10px;
    color: var(--muted);
}

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

.legalCard ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 8px;
}

.legalCard ul + p {
    margin-top: 10px;
}

.legalCard li::marker {
    color: var(--brand2);
}

.legalCallout {
    border: 1px solid rgba(171, 121, 79, 0.34);
    background: linear-gradient(135deg, rgba(171, 121, 79, 0.18), rgba(63, 126, 116, 0.12));
}

@media (max-width: 1000px) {
    .legalLayout {
        grid-template-columns: 1fr;
    }

    .legalAside {
        position: static;
    }
}

/* ====================================
   16) OPTIONAL LIGHT-SURFACE SOFTENING
   ==================================== */
@media (prefers-color-scheme: light) {

    .heroCard,
    .miniBox,
    .card,
    .form,
    .callout {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7));
        backdrop-filter: blur(10px);
        border-color: rgba(108, 83, 54, 0.14);
    }

    .topbar {
        background: rgba(255, 250, 242, 0.86);
    }

    .dot {
        box-shadow: 0 0 14px rgba(63, 126, 116, 0.35);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ==================================================
   17) PAGE-SPECIFIC TWEAKS (OPTIONAL)
   - If different section padding per page is needed.
   ================================================== */
/*
body[data-page="about"] section { padding: 44px 0; }
body[data-page="services"] section { padding: 34px 0; }
*/
