/* ==========================================================================
   GOA NEARBY · EVENT PLANNER CLUSTER
   Design system: "Refined Coastal Editorial"
   Direction: deep sea-ink, warm sand, champagne gold horizon rules,
   editorial serif display, category-matched accents, quiet motion.
   Layers on top of Tailwind utility markup without replacing it.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
    --ep-ink: #061320;
    --ep-ink-2: #0b1e31;
    --ep-ink-3: #103049;
    --ep-sand: #f7f2e9;
    --ep-sand-2: #fbf8f2;
    --ep-sand-3: #efe7d8;
    --ep-gold: #b8902f;
    --ep-gold-bright: #d8b45c;
    --ep-gold-pale: #f0e2be;
    --ep-line: #e6ddcd;
    --ep-line-strong: #d6c9b2;
    --ep-text: #18222e;
    --ep-muted: #5d6a76;
    --ep-sea: #0f6f83;

    /* category accent — overridden per body[data-event] */
    --ep-accent: #b8902f;
    --ep-accent-2: #d8b45c;
    --ep-accent-wash: rgba(184, 144, 47, 0.12);
    --ep-accent-line: rgba(184, 144, 47, 0.35);

    --ep-r-lg: 24px;
    --ep-r-md: 18px;
    --ep-r-sm: 12px;

    --ep-shadow-1: 0 1px 2px rgba(6, 19, 32, 0.05), 0 10px 26px -14px rgba(6, 19, 32, 0.18);
    --ep-shadow-2: 0 2px 6px rgba(6, 19, 32, 0.06), 0 28px 54px -26px rgba(6, 19, 32, 0.34);

    --ep-font-display: "Fraunces", "Poppins", Georgia, serif;
    --ep-font-ui: "Outfit", "Poppins", system-ui, sans-serif;
    --ep-font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* Category accents — one calm hue per vertical, never a rainbow */
body[data-event="wedding"]      { --ep-accent: #a8434f; --ep-accent-2: #d98a92; --ep-accent-wash: rgba(168, 67, 79, 0.10); --ep-accent-line: rgba(168, 67, 79, 0.32); }
body[data-event="destination"]  { --ep-accent: #9c5a7d; --ep-accent-2: #cf9bbb; --ep-accent-wash: rgba(156, 90, 125, 0.10); --ep-accent-line: rgba(156, 90, 125, 0.32); }
body[data-event="birthday"]     { --ep-accent: #b1791f; --ep-accent-2: #e0b566; --ep-accent-wash: rgba(177, 121, 31, 0.10); --ep-accent-line: rgba(177, 121, 31, 0.32); }
body[data-event="party"]        { --ep-accent: #6b5a9e; --ep-accent-2: #a99bd0; --ep-accent-wash: rgba(107, 90, 158, 0.10); --ep-accent-line: rgba(107, 90, 158, 0.32); }
body[data-event="beach"]        { --ep-accent: #0f6f83; --ep-accent-2: #6db8c7; --ep-accent-wash: rgba(15, 111, 131, 0.10); --ep-accent-line: rgba(15, 111, 131, 0.32); }
body[data-event="corporate"]    { --ep-accent: #1f4e79; --ep-accent-2: #7aa3c6; --ep-accent-wash: rgba(31, 78, 121, 0.10); --ep-accent-line: rgba(31, 78, 121, 0.32); }
body[data-event="decor"]        { --ep-accent: #1d6b5e; --ep-accent-2: #7ebdb1; --ep-accent-wash: rgba(29, 107, 94, 0.10); --ep-accent-line: rgba(29, 107, 94, 0.32); }
body[data-event="venue"]        { --ep-accent: #2f6b4f; --ep-accent-2: #86b79b; --ep-accent-wash: rgba(47, 107, 79, 0.10); --ep-accent-line: rgba(47, 107, 79, 0.32); }
body[data-event="cost"]         { --ep-accent: #7a5a2e; --ep-accent-2: #c4a579; --ep-accent-wash: rgba(122, 90, 46, 0.10); --ep-accent-line: rgba(122, 90, 46, 0.32); }
body[data-event="north"]        { --ep-accent: #9a5a35; --ep-accent-2: #d6a682; --ep-accent-wash: rgba(154, 90, 53, 0.10); --ep-accent-line: rgba(154, 90, 53, 0.32); }
body[data-event="south"]        { --ep-accent: #2f6b4f; --ep-accent-2: #86b79b; --ep-accent-wash: rgba(47, 107, 79, 0.10); --ep-accent-line: rgba(47, 107, 79, 0.32); }
body[data-event="hub"]          { --ep-accent: #b8902f; --ep-accent-2: #d8b45c; --ep-accent-wash: rgba(184, 144, 47, 0.12); --ep-accent-line: rgba(184, 144, 47, 0.35); }

/* ---------- 2. Canvas & typography -------------------------------------- */
body.ep-scope {
    background-color: var(--ep-sand);
    color: var(--ep-text);
    font-family: var(--ep-font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.ep-scope h1,
body.ep-scope h2 {
    font-family: var(--ep-font-display);
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.08;
    font-variation-settings: "SOFT" 40, "WONK" 1;
}

body.ep-scope h3,
body.ep-scope h4 {
    font-family: var(--ep-font-ui);
    letter-spacing: -0.008em;
}

body.ep-scope p,
body.ep-scope li,
body.ep-scope td {
    font-family: var(--ep-font-body);
}

body.ep-scope ::selection {
    background: var(--ep-accent);
    color: #fff;
}

/* Editorial gold dash before every uppercase eyebrow label */
body.ep-scope span[class*="tracking-widest"][class*="uppercase"]::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 1px;
    margin-right: 10px;
    vertical-align: middle;
    background: linear-gradient(90deg, transparent, var(--ep-accent));
    opacity: 0.85;
}

/* ---------- 3. Section surfaces ----------------------------------------- */
body.ep-scope section.bg-white,
body.ep-scope div.bg-white.rounded-3xl {
    background-color: var(--ep-sand-2);
}

body.ep-scope section.bg-white {
    background-image: linear-gradient(180deg, #ffffff 0%, var(--ep-sand-2) 100%);
}

body.ep-scope section.bg-slate-50 {
    background-color: var(--ep-sand);
    background-image:
        radial-gradient(1100px 420px at 12% -10%, rgba(184, 144, 47, 0.07), transparent 60%),
        radial-gradient(900px 380px at 92% 110%, rgba(15, 111, 131, 0.06), transparent 62%);
}

body.ep-scope section.bg-slate-100 {
    background-color: var(--ep-sand-3);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 40%);
}

body.ep-scope section.bg-slate-900,
body.ep-scope section.bg-slate-800 {
    background-color: var(--ep-ink);
    background-image:
        radial-gradient(900px 480px at 15% 0%, rgba(216, 180, 92, 0.12), transparent 62%),
        radial-gradient(760px 420px at 88% 100%, rgba(15, 111, 131, 0.16), transparent 60%);
    color: #eef2f6;
}

body.ep-scope section {
    position: relative;
}

/* Hairline separators instead of heavy borders */
body.ep-scope section[class*="border-b"] {
    border-bottom-color: var(--ep-line) !important;
}

/* ---------- 4. Hero ----------------------------------------------------- */
body.ep-scope header[class*="071320"] {
    background-color: var(--ep-ink);
    background-image:
        radial-gradient(720px 420px at 8% -10%, rgba(216, 180, 92, 0.20), transparent 62%),
        radial-gradient(680px 480px at 96% 8%, rgba(15, 111, 131, 0.26), transparent 60%),
        radial-gradient(1200px 600px at 50% 118%, rgba(184, 144, 47, 0.14), transparent 70%),
        linear-gradient(180deg, #061320 0%, #07182a 58%, #081c2c 100%);
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(216, 180, 92, 0.22);
}

/* Fine grain over the hero for a printed, non-flat feel */
body.ep-scope header[class*="071320"]::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.14'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

body.ep-scope header[class*="071320"] h1 {
    text-wrap: balance;
}

/* Hero photo (pillar page) */
.ep-hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.ep-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    opacity: 0.30;
    filter: saturate(1.05) contrast(1.02);
    transform: scale(1.04);
}
.ep-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 19, 32, 0.72) 0%, rgba(6, 19, 32, 0.55) 42%, rgba(6, 19, 32, 0.92) 100%),
        radial-gradient(700px 400px at 78% 30%, rgba(184, 144, 47, 0.22), transparent 65%);
}

/* ---------- 4b. Global navbar depth ------------------------------------ */
body.ep-scope .ep-nav-scrolled {
    box-shadow: 0 18px 44px -20px rgba(6, 19, 32, 0.35) !important;
    border-color: rgba(184, 144, 47, 0.35) !important;
}

/* ---------- 5. Cards ---------------------------------------------------- */
body.ep-scope .ep-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--ep-line);
    border-radius: var(--ep-r-lg);
    box-shadow: var(--ep-shadow-1);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
                box-shadow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
                border-color 0.3s ease;
    overflow: hidden;
}

/* gold horizon rule that draws in on hover */
body.ep-scope .ep-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ep-accent), var(--ep-accent-2), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
    z-index: 2;
}

body.ep-scope .ep-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ep-shadow-2);
    border-color: var(--ep-accent-line);
}

body.ep-scope .ep-card:hover::before {
    transform: scaleX(1);
}

body.ep-scope .ep-card-soft {
    background: linear-gradient(180deg, #fffdf8 0%, var(--ep-sand-2) 100%);
    border: 1px solid var(--ep-line);
    border-radius: var(--ep-r-lg);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, var(--ep-shadow-1);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
}
body.ep-scope .ep-card-soft:hover {
    transform: translateY(-3px);
    border-color: var(--ep-accent-line);
    box-shadow: var(--ep-shadow-2);
}

/* Dark feature panel (comparison matrices) */
body.ep-scope .ep-panel-dark {
    position: relative;
    background-color: var(--ep-ink);
    background-image:
        radial-gradient(760px 380px at 12% 0%, rgba(216, 180, 92, 0.14), transparent 60%),
        radial-gradient(620px 360px at 90% 100%, rgba(15, 111, 131, 0.20), transparent 62%);
    border: 1px solid rgba(216, 180, 92, 0.22);
    border-radius: var(--ep-r-lg);
    box-shadow: 0 30px 60px -34px rgba(6, 19, 32, 0.7);
    overflow: hidden;
}
body.ep-scope .ep-panel-dark::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 180, 92, 0.75), transparent);
}

/* Number blocks (01 / 02 / 03) inside cards */
body.ep-scope .ep-card .rounded-2xl[class*="flex"][class*="items-center"][class*="justify-center"] {
    box-shadow: 0 6px 18px -8px var(--ep-accent-line), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* ---------- 6. Tables --------------------------------------------------- */
body.ep-scope table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-variant-numeric: tabular-nums;
}

body.ep-scope table thead th {
    font-family: var(--ep-font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7a5a2e;
    background: rgba(184, 144, 47, 0.08);
    border-bottom: 1px solid rgba(184, 144, 47, 0.28);
    padding: 0.85rem 0.9rem;
    text-align: left;
    white-space: nowrap;
}

/* Inside dark feature panels the header flips to champagne gold */
body.ep-scope .bg-slate-900 table thead th,
body.ep-scope .ep-panel-dark table thead th {
    color: var(--ep-gold-bright);
    background: rgba(216, 180, 92, 0.07);
    border-bottom-color: rgba(216, 180, 92, 0.28);
}

body.ep-scope table tbody tr {
    transition: background 0.25s ease;
}
body.ep-scope table tbody tr:hover {
    background: rgba(216, 180, 92, 0.06);
}
body.ep-scope table tbody td {
    border-bottom: 1px solid rgba(154, 168, 182, 0.16);
    vertical-align: top;
    line-height: 1.55;
}
body.ep-scope table tbody tr:last-child td {
    border-bottom: 0;
}

/* Tables sitting on light cards keep readable ink text */
body.ep-scope .ep-table-light thead th {
    color: #7a5a2e;
    background: rgba(184, 144, 47, 0.08);
    border-bottom-color: rgba(184, 144, 47, 0.25);
}
body.ep-scope .ep-table-light tbody td {
    color: var(--ep-text);
    border-bottom-color: var(--ep-line);
}

/* ---------- 7. Buttons -------------------------------------------------- */
body.ep-scope .ep-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    letter-spacing: 0.01em;
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, filter 0.3s ease;
}
body.ep-scope .ep-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg);
    transition: left 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    z-index: 3;
}
body.ep-scope .ep-btn:hover::after {
    left: 150%;
}
body.ep-scope .ep-btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.06);
    box-shadow: 0 18px 34px -18px rgba(6, 19, 32, 0.55);
}
body.ep-scope .ep-btn:active {
    transform: translateY(0) scale(0.985);
}

/* Gold CTA variant */
body.ep-scope .ep-btn-gold {
    background: linear-gradient(135deg, #caa24b 0%, #b8902f 48%, #9c7823 100%);
    color: #17120a;
    box-shadow: 0 14px 28px -16px rgba(184, 144, 47, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ---------- 8. FAQ accordion -------------------------------------------- */
body.ep-scope details.ep-faq,
body.ep-scope details[class*="group"][class*="rounded"] {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, var(--ep-sand-2) 100%);
    border: 1px solid var(--ep-line);
    border-radius: var(--ep-r-md);
    padding: 1.35rem 1.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 1px 2px rgba(6, 19, 32, 0.03);
}

body.ep-scope details.ep-faq::before,
body.ep-scope details[class*="group"][class*="rounded"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14%;
    bottom: 14%;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, transparent, var(--ep-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.ep-scope details[open].ep-faq,
body.ep-scope details[open][class*="group"][class*="rounded"] {
    border-color: var(--ep-accent-line);
    box-shadow: var(--ep-shadow-1);
    background: #fff;
}

body.ep-scope details[open]::before,
body.ep-scope details[open]::before {
    opacity: 1;
}

body.ep-scope details summary {
    list-style: none;
    letter-spacing: -0.005em;
}
body.ep-scope details summary::-webkit-details-marker { display: none; }

body.ep-scope details summary > span:last-child {
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s ease, color 0.3s ease;
}

body.ep-scope details[open] > summary > span:last-child {
    transform: rotate(180deg);
    background: var(--ep-accent-wash);
    color: var(--ep-accent);
    border-color: var(--ep-accent-line);
}

body.ep-scope details[open] > summary ~ div {
    animation: ep-sweep 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes ep-sweep {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 9. Reviews -------------------------------------------------- */
body.ep-scope .ep-review,
body.ep-scope .ep-card[class*="flex"] {
    position: relative;
}

/* Large editorial quote mark on review cards */
body.ep-scope .ep-card:has(> div > .text-amber-400)::after {
    content: "\201C";
    position: absolute;
    top: -6px;
    right: 18px;
    font-family: var(--ep-font-display);
    font-size: 5.5rem;
    line-height: 1;
    color: var(--ep-accent);
    opacity: 0.13;
    pointer-events: none;
}

body.ep-scope .text-amber-400 i.fa-star {
    filter: drop-shadow(0 1px 1px rgba(184, 144, 47, 0.35));
}

/* ---------- 10. Link arrows --------------------------------------------- */
body.ep-scope a[class*="group-hover:gap-3"] {
    letter-spacing: 0.01em;
    padding-bottom: 2px;
    background-image: linear-gradient(var(--ep-accent), var(--ep-accent));
    background-repeat: no-repeat;
    background-size: 0% 1px;
    background-position: 0 100%;
    transition: background-size 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), gap 0.3s ease;
}
body.ep-scope a[class*="group-hover:gap-3"]:hover {
    background-size: 100% 1px;
}

/* ---------- 11. Image cards & showcase ---------------------------------- */
body.ep-scope .ep-media-card {
    position: relative;
    border-radius: var(--ep-r-lg);
    overflow: hidden;
    border: 1px solid rgba(216, 180, 92, 0.20);
    background: var(--ep-ink-2);
    box-shadow: 0 34px 70px -40px rgba(0, 0, 0, 0.75);
}
body.ep-scope .ep-media-card img {
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
}
body.ep-scope .ep-media-card:hover img {
    transform: scale(1.06);
}

/* Pillar service tiles with photo headers */
.ep-service-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ep-line);
    border-radius: var(--ep-r-lg);
    overflow: hidden;
    box-shadow: var(--ep-shadow-1);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease, border-color 0.3s ease;
}
.ep-service-tile:hover {
    transform: translateY(-7px);
    box-shadow: var(--ep-shadow-2);
    border-color: var(--ep-accent-line);
}
.ep-service-tile__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ep-ink-2);
}
.ep-service-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ep-service-tile:hover .ep-service-tile__media img {
    transform: scale(1.07);
}
.ep-service-tile__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 19, 32, 0.05) 0%, rgba(6, 19, 32, 0.05) 45%, rgba(6, 19, 32, 0.72) 100%);
}
.ep-service-tile__icon {
    position: absolute;
    left: 18px;
    bottom: -22px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: #fff;
    box-shadow: 0 10px 24px -12px rgba(6, 19, 32, 0.45);
    z-index: 2;
}
.ep-service-tile__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-family: var(--ep-font-ui);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(6, 19, 32, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 10px;
    border-radius: 999px;
}
.ep-service-tile__body {
    padding: 2.25rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ep-service-tile__body h3 {
    font-family: var(--ep-font-display);
    font-weight: 700;
    font-size: 1.32rem;
    line-height: 1.22;
    color: var(--ep-text);
    margin-bottom: 0.6rem;
}
.ep-service-tile__body p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--ep-muted);
    margin-bottom: 1.2rem;
}
.ep-service-tile__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ep-font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ep-accent);
    transition: gap 0.3s ease;
}
.ep-service-tile:hover .ep-service-tile__link { gap: 14px; }

/* Gallery strip */
.ep-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.ep-strip a {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(216, 180, 92, 0.22);
    aspect-ratio: 4 / 3;
    display: block;
}
.ep-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
    opacity: 0.9;
}
.ep-strip a:hover img { transform: scale(1.08); opacity: 1; }
.ep-strip a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(6, 19, 32, 0.55));
}
@media (max-width: 640px) {
    .ep-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 12. Stat band ---------------------------------------------- */
.ep-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(216, 180, 92, 0.18);
    border: 1px solid rgba(216, 180, 92, 0.22);
    border-radius: var(--ep-r-md);
    overflow: hidden;
}
.ep-stats > div {
    background: rgba(6, 19, 32, 0.55);
    padding: 14px 12px;
    text-align: center;
    backdrop-filter: blur(6px);
}
.ep-stats .ep-stat-num {
    font-family: var(--ep-font-display);
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.1;
    color: var(--ep-gold-bright);
}
.ep-stats .ep-stat-label {
    font-family: var(--ep-font-ui);
    font-size: 0.66rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #9fb0c0;
    margin-top: 3px;
}

/* ---------- 13. Scroll reveal ------------------------------------------ */
.ep-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1),
                transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: opacity, transform;
}
.ep-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- 14. Reading progress --------------------------------------- */
#ep-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--ep-gold), var(--ep-gold-bright), var(--ep-accent));
    z-index: 9999;
    transition: width 0.12s linear;
    pointer-events: none;
}

/* ---------- 15. Mobile action bar & desktop float ---------------------- */
.ep-mobile-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(6, 19, 32, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(216, 180, 92, 0.28);
    gap: 10px;
}
.ep-mobile-bar a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 14px;
    font-family: var(--ep-font-ui);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}
.ep-mobile-bar a.ep-wa {
    background: linear-gradient(135deg, #1faa59, #128c4a);
    color: #fff;
    box-shadow: 0 12px 24px -14px rgba(18, 140, 74, 0.9);
}
.ep-mobile-bar a.ep-call {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.ep-float-wa {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 900;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(135deg, #22b866, #0f8a49);
    box-shadow: 0 16px 36px -14px rgba(15, 138, 73, 0.9);
    text-decoration: none;
    transition: transform 0.25s ease;
}
.ep-float-wa:hover { transform: translateY(-3px) scale(1.04); }

@media (max-width: 767px) {
    .ep-mobile-bar { display: flex; }
    body.ep-scope { padding-bottom: 74px; }
}
@media (min-width: 768px) {
    .ep-float-wa { display: flex; }
}

/* ---------- 16. Accessibility & motion --------------------------------- */
@media (prefers-reduced-motion: reduce) {
    body.ep-scope *,
    body.ep-scope *::before,
    body.ep-scope *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .ep-reveal { opacity: 1; transform: none; }
}

body.ep-scope a:focus-visible,
body.ep-scope summary:focus-visible {
    outline: 2px solid var(--ep-gold-bright);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- 17. Shared closing CTA ------------------------------------- */
.ep-cta {
    background-color: var(--ep-ink);
    background-image:
        radial-gradient(720px 420px at 12% 0%, rgba(216, 180, 92, 0.16), transparent 62%),
        radial-gradient(680px 420px at 92% 100%, rgba(15, 111, 131, 0.22), transparent 62%),
        linear-gradient(180deg, #061320 0%, #07182a 100%);
    border-top: 1px solid rgba(216, 180, 92, 0.24);
}

.ep-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 180, 92, 0.85), transparent);
}

.ep-cta__glow {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.ep-cta__glow--right {
    right: -80px;
    bottom: -120px;
    background: rgba(184, 144, 47, 0.20);
}
.ep-cta__glow--left {
    left: -100px;
    top: -120px;
    background: rgba(15, 111, 131, 0.22);
}

body.ep-scope .ep-cta__title {
    font-family: var(--ep-font-display);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

body.ep-scope .ep-cta__meta i {
    flex: 0 0 auto;
}

/* ---------- 18. Print --------------------------------------------------- */
@media print {
    .ep-mobile-bar, .ep-float-wa, #ep-progress { display: none !important; }
    body.ep-scope { background: #fff; }
}
