


/* ===================== 1. CSS VARIABLES ===================== */
:root {
    /* Brand colours */
    --off-white:      #fef7eb;
    --brand-yellow:   #faa812;
    --brand-purple:   #7f257b;
    --brand-blue:     #33afb5;
    --brand-orange:   #f77811;
    --brand-brown:    #6a1500;
    --brand-pink:     #ef1787;
    --brand-green:    #166b25;
    --color-white:    #ffffff;
    --color-card-bg:  #ffffff;

    /* Typography */
    --font-title-fredoka: 'Fredoka', sans-serif;
    --font-title-dangrek: 'Dangrek', sans-serif;
    --font-body:          'Cera Pro', 'Kantumruy Pro', sans-serif;
    --font-poppins:       'Poppins', sans-serif;

    /* Spacing scale */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.75rem;
    --space-lg:  3rem;
    --space-xl:  4.5rem;
    --space-2xl: 6rem;

    /* Cards */
    --radius-card:  28px;
    --radius-media: 18px;
    --shadow-card:  0 4px 24px rgba(106, 21, 0, 0.08);
    --shadow-hover: 0 16px 48px rgba(106, 21, 0, 0.16);

    /* Animation durations */
    --anim-float:  4s;
    --anim-reveal: 0.65s;
    --anim-hover:  0.3s;
}


/* ===================== 2. RESET & BASE ===================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

html, body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body {
    font-family: var(--font-poppins);
    background-color: var(--off-white);
    color: var(--brand-brown);
    line-height: 1.75;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

/* Subtle ambient gradient overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 10% 15%, rgba(250, 168, 18, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 90% 80%, rgba(51, 175, 181, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(239, 23, 135, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}


/* ===================== 3. LAYOUT HELPERS ===================== */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

/* Push footer to the bottom */
header + * {
    flex: 1;
}


/* ===================== 4. SITE HEADER / NAV ===================== */
header {
    background-color: var(--off-white);
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    padding: 10px 0 12px 0;
    box-shadow: 0 4px 12px rgba(106, 21, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 25px;
}

.header-row-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.logo img {
    height: 65px;
    width: auto;
}

/* Search bar */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar {
    position: absolute;
    right: 40px;
    display: flex;
    background: white;
    border: 2px solid var(--brand-yellow);
    border-radius: 20px;
    padding: 5px 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-bar.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.search-bar input {
    border: none;
    outline: none;
    width: 120px;
}

.search-bar button {
    background: var(--brand-yellow);
    border: none;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    cursor: pointer;
    font-weight: bold;
}

.search-icon img {
    width: 22px;
    cursor: pointer;
}

/* Nav icons */
.nav-scroll {
    display: flex;
    justify-content: space-between;
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-scroll a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 5px;
    transition: transform 0.2s ease;
}

.nav-scroll img {
    height: 24px;
    width: auto;
}

.nav-scroll a:hover {
    transform: scale(1.2);
}

/* Active dot indicator */
.nav-scroll a.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--brand-yellow);
    border-radius: 50%;
    animation: dotFade 0.3s ease forwards;
}

@keyframes dotFade {
    from { opacity: 0; transform: translate(-50%, 5px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}


/* ===================== 5. HERO SECTION ===================== */
.hero-section {
    text-align: center;
    padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
    position: relative;
    z-index: 1;
}

/* Coloured rule above hero */
.hero-section::before {
    content: '';
    display: block;
    height: 4px;
    width: 72px;
    background:#faa812;
    border-radius: 4px;
    margin: 0 auto clamp(1.5rem, 4vw, 2.25rem);
}

.hero-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: clamp(1rem, 3vw, 1.75rem);
    position: relative;
}

.hero-image-wrap img {
    width: clamp(180px, 45vw, 500px);
    height: auto;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    mix-blend-mode: multiply;
    animation: float var(--anim-float) ease-in-out infinite;
}

.hero-image-wrap::before,
.hero-image-wrap::after {
    content: '✦';
    position: absolute;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    animation: sparkle 2.5s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero-image-wrap::before {
    top: 8px;
    left: calc(50% - clamp(90px, 18vw, 175px));
    color: var(--brand-yellow);
    animation-delay: 0s;
}

.hero-image-wrap::after {
    bottom: 10px;
    right: calc(50% - clamp(90px, 18vw, 175px));
    color: var(--brand-pink);
    animation-delay: 1.2s;
}

.brand-name {
    font-family: var(--font-title-fredoka);
    font-size: clamp(2.8rem, 9vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.5px;
    background: #6a1500;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: clamp(0.5rem, 2vw, 0.875rem);
}

.tagline {
    font-family: var(--font-title-fredoka);
    font-size: clamp(1rem, 2.8vw, 1.45rem);
    font-weight: 500;
    color: var(--brand-brown);
    max-width: 520px;
    margin: 0 auto clamp(0.5rem, 1.5vw, 0.75rem);
    line-height: 1.45;
}

.supporting-text {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-weight: 300;
    color: var(--brand-purple);
    max-width: 440px;
    margin: 0 auto clamp(1.25rem, 3.5vw, 1.75rem);
    line-height: 1.6;
}

/* Pagination dots */
.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--space-xs);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(106, 21, 0, 0.18);
    cursor: pointer;
    transition: all var(--anim-hover) ease;
}

.dot.active {
    background: var(--brand-yellow);
    transform: scale(1.4);
    box-shadow: 0 0 0 3px rgba(250, 168, 18, 0.25);
}

.dot:focus-visible {
    outline: 2px solid var(--brand-pink);
    outline-offset: 4px;
}


/* ===================== 6. CARDS SECTION ===================== */
.cards-section {
    padding: var(--space-lg) 0 var(--space-2xl);
}

.section-label {
    text-align: center;
    font-family: var(--font-title-fredoka);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--brand-blue);
    margin-bottom: 0.4rem;
}

.section-title {
    text-align: center;
    font-family: var(--font-title-fredoka);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--brand-brown);
    margin-bottom: var(--space-md);
    line-height: 1.25;
}

.intro-paragraph {
    font-size: clamp(0.88rem, 2vw, 0.98rem);
    font-weight: 400;
    color: rgba(106, 21, 0, 0.68);
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto var(--space-lg);
    text-align: center;
    padding: 0 var(--space-xs);
}

.cards-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3.5vw, 2rem);
}

/* Card base */
.card {
    background: var(--color-card-bg);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition:
        transform var(--anim-hover) cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow var(--anim-hover) ease;
    opacity: 0;
    transform: translateY(40px);
}

/* Gradient border on hover */
.card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-card) + 2px);
    padding: 2px;
    background: #ffffff;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--anim-hover) ease;
    z-index: 0;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px) rotate(-0.3deg);
    box-shadow: var(--shadow-hover);
}

.card:hover::before { opacity: 1; }

/* Scroll-reveal: cards animate in when visible */
.card.visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity var(--anim-reveal) ease,
        transform var(--anim-reveal) cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow var(--anim-hover) ease;
}

.card:nth-child(1).visible { transition-delay: 0.00s; }
.card:nth-child(2).visible { transition-delay: 0.15s; }
.card:nth-child(3).visible { transition-delay: 0.30s; }

/* Card media */
.card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-media) var(--radius-media) 0 0;
    background: linear-gradient(135deg, #f0e8d6, #fde6c4);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover .card-media img { transform: scale(1.06); }

.card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-media video { transform: scale(1.03); }

.card-media iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Media tag badge */
.media-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: var(--font-title-fredoka);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 100px;
    color: white;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Audio toggle button */
.audio-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    backdrop-filter: blur(6px);
    transition:
        background 0.25s ease,
        transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
}

.audio-btn.is-on {
    opacity: 1;
    background: rgba(239, 23, 135, 0.80);
    pointer-events: auto;
}

.card-media:hover .audio-btn {
    opacity: 1;
    pointer-events: auto;
}

.audio-btn:hover {
    transform: scale(1.15);
    background: rgba(250, 168, 18, 0.90);
}

.audio-btn:focus-visible {
    outline: 2px solid var(--brand-yellow);
    outline-offset: 3px;
}

@keyframes idleRipple {
    0%   { box-shadow: 0 0 0 0  rgba(250, 168, 18, 0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(250, 168, 18, 0); }
    100% { box-shadow: 0 0 0 0  rgba(250, 168, 18, 0); }
}

.audio-btn.idle-ping {
    animation: idleRipple 0.7s ease-out;
}

/* Card body */
.card-body {
    padding: clamp(1.25rem, 3.5vw, 1.75rem) clamp(1.25rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2rem);
    position: relative;
    z-index: 1;
}

.card-headline {
    font-family: var(--font-title-fredoka);
    font-size: clamp(1.15rem, 2.8vw, 1.5rem);
    font-weight: 700;
    color: var(--brand-brown);
    margin-bottom: 0.6rem;
    line-height: 1.25;
}

.card-paragraph {
    font-size: clamp(0.875rem, 2vw, 0.95rem);
    font-weight: 400;
    color: rgba(106, 21, 0, 0.70);
    line-height: 1.8;
    margin-bottom: clamp(0.875rem, 2.5vw, 1.25rem);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-title-fredoka);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-blue);
    text-decoration: none;
    transition: gap var(--anim-hover) ease, color var(--anim-hover) ease;
}

.card-link:hover { gap: 12px; color: var(--brand-pink); }
.card-link .arrow { font-size: 1.1rem; transition: transform var(--anim-hover) ease; }
.card-link:hover .arrow { transform: translateX(4px); }

.card-link:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Bottom accent stripe */
.card-accent {
    display: none;
}

/* Explore more button */
.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-title-fredoka);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background:  #33afb5;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    box-shadow: 0 6px 24px rgba(239, 23, 135, 0.25);
    transition:
        transform var(--anim-hover) cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow var(--anim-hover) ease;
}

.explore-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 32px rgba(239, 23, 135, 0.35);
}

.explore-btn .arrow {
    font-size: 1.1rem;
    transition: transform var(--anim-hover) ease;
}

.explore-btn:hover .arrow { transform: translateX(4px); }

.explore-btn:focus-visible {
    outline: 2px solid var(--brand-pink);
    outline-offset: 4px;
}


/* ===================== 7. FOOTER ===================== */
.footer-main {
    background-color: var(--off-white);
    padding: 30px 5% 15px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    width: 100%;
    box-sizing: border-box;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-photo-box img {
    width: 100px;
    height: auto;
}

.footer-nav {
    display: flex;
    gap: 60px;
    flex-grow: 1;
    padding-left: 40px;
}

.nav-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-col a {
    text-decoration: none;
    color: var(--brand-brown);
    font-weight: 700;
    font-size: 1rem;
}

.footer-contact {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-contact h2 {
    font-family: var(--font-title-fredoka);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--brand-brown);
    margin-bottom: 5px;
}

.footer-contact h3 {
    font-family: var(--font-title-fredoka);
    font-size: 1.2rem;
    color: var(--brand-brown);
}

.footer-contact p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    max-width: 280px;
    line-height: 1.5;
    color: var(--brand-brown);
}

.social-row-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-row-icons img {
    width: 28px;
    height: 28px;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(106, 21, 0, 0.1);
    font-size: 0.75rem;
    color: var(--brand-brown);
}


/* ===================== 8. KEYFRAME ANIMATIONS ===================== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33%       { transform: translateY(-12px) rotate(0.8deg); }
    66%       { transform: translateY(-5px) rotate(-0.8deg); }
}

@keyframes sparkle {
    0%   { opacity: 0.4; transform: scale(0.8) rotate(0deg); }
    100% { opacity: 1.0; transform: scale(1.2) rotate(20deg); }
}


/* ===================== 9. RESPONSIVE — TABLET & MOBILE ===================== */
@media (min-width: 600px) {
    .cards-stack { gap: 1.75rem; }
}

@media (min-width: 768px) {
    .brand-name { letter-spacing: -1px; }
}

@media (min-width: 1024px) {
    .cards-stack { gap: 2rem; }
}

@media (max-width: 768px) {

    /* Header: stack vertically */
    .header-row-1 {
        flex-direction: column;
        gap: 15px;
        position: relative;
    }

    .logo {
        margin: 0 auto;
    }

    .search-container {
        justify-content: center;
        width: 100%;
    }

    /* Search bar: centred, full-width on mobile */
    .header-row-2 {
        position: relative;
        padding: 10px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .search-bar {
        position: absolute;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 92% !important;
        max-width: none !important;
        padding: 8px 15px !important;
        z-index: 999;
    }

    .search-bar input {
        font-size: 14px;
        width: 100%;
    }

    .search-bar button {
        padding: 4px 12px;
        font-size: 12px;
    }

    /* Nav icons */
    .nav-scroll {
        width: 95%;
        justify-content: space-around;
    }

    /* Footer: stack vertically */
    .footer-grid {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-nav {
        padding-left: 0;
        justify-content: center;
        gap: 40px;
    }

    .footer-contact {
        align-items: center;
        text-align: center;
    }

    .footer-contact p {
        margin: 0 auto 15px;
    }

    .social-row-icons {
        justify-content: center;
        margin-top: 15px;
    }

    .footer-photo-box {
        margin-bottom: 10px;
    }
}

@media (max-width: 400px) {
    .hero-image-wrap img { width: clamp(120px, 55vw, 180px); }
    .card-body { padding: 1.1rem 1.1rem 1.4rem; }
}
