/* ApexWellnessHub - shared styles
   Design tokens are also mirrored into the Tailwind CDN config in each page. */

:root {
    --white: #FFFFFF;
    --cream: #FAF9F5;
    --sage: #EEF3EE;
    --emerald-900: #0B4636;
    --emerald-700: #136B53;
    --emerald-500: #2E9C77;
    --teal-600: #1B7A87;
    --teal-300: #9FD4D6;
    --slate-700: #3C4642;
    --slate-400: #8C968F;
    --gold: #C9A86A;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--slate-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-top: 15px;
}

::selection {
    background: var(--teal-300);
    color: var(--emerald-900);
}

.font-display {
    font-family: 'Fraunces', serif;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--emerald-500);
    outline-offset: 3px;
}

/* Nav underline-grow hover */
.nav-link {
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1.5px;
    background: var(--emerald-500);
    transition: width .3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

header {
    box-shadow: 0 10px 30px -28px rgba(11, 70, 54, .45);
}

/* Organic blob shape used behind the homepage hero imagery */
.blob-shape {
    border-radius: 62% 38% 55% 45% / 48% 45% 55% 52%;
    filter: blur(.2px);
    opacity: .88;
}

.hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 18%, rgba(159, 212, 214, .32), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(238, 243, 238, .25));
    pointer-events: none;
}

/* Curved section divider */
.curve-divider {
    display: block;
    width: 100%;
    height: auto;
}

/* Editorial drop-cap, used sparingly */
.drop-cap::first-letter {
    font-family: 'Fraunces', serif;
    font-size: 3.4rem;
    line-height: 0.8;
    float: left;
    padding-right: .5rem;
    padding-top: .3rem;
    color: var(--emerald-700);
}

/* Soft photo frame used on editorial cards */
.photo-frame {
    box-shadow: 0 1px 2px rgba(11, 70, 54, 0.04), 0 18px 40px -16px rgba(11, 70, 54, 0.18);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

a.photo-frame:hover,
.photo-frame:hover {
    box-shadow: 0 2px 4px rgba(11, 70, 54, 0.05), 0 26px 56px -22px rgba(11, 70, 54, 0.28);
}

.btn-primary,
button[type="submit"] {
    box-shadow: 0 14px 24px -18px rgba(11, 70, 54, .55);
    transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.btn-primary:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px -18px rgba(11, 70, 54, .72);
}

.btn-link {
    transition: color .25s ease, gap .25s ease;
}

.btn-link:hover {
    color: var(--emerald-700);
    gap: .75rem;
}

/* Rotated tag badge */
.tag-badge {
    transform: rotate(-3deg);
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}

#mobile-menu.open {
    max-height: 480px;
}

#mobile-menu a {
    padding: .45rem 0;
}

/* Marquee-style ticker on fitness page */
.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 28s linear infinite;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ticker-track {
        animation: none;
    }
}

/* Number stamp used on the Mind & Body page (the only place sequence is meaningful) */
.stamp {
    font-family: 'Fraunces', serif;
    font-variant-numeric: oldstyle-nums;
}

input,
textarea {
    transition: border-color .25s ease, box-shadow .25s ease;
}

input:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(46, 156, 119, .12);
}

@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    .tag-badge {
        transform: none;
    }

    h1,
    h2,
    h3 {
        text-wrap: balance;
    }
}

@media (max-width: 640px) {
    .hero-shell .grid.grid-cols-3 {
        grid-template-columns: 1fr;
    }

    footer {
        text-align: left;
    }
}

/* Hide scrollbar for entire website */

*{
    scrollbar-width:none;
    -ms-overflow-style:none;
}

*::-webkit-scrollbar{
    width:0;
    height:0;
    display:none;
}

.wellness-swal-popup {
    border-radius: 1.25rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}