@import url('https://fonts.googleapis.com/css2?family=Allison&family=Bebas+Neue&family=Dancing+Script:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Passion+One:wght@400;700;900&family=Petit+Formal+Script&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Tiny5&display=swap');

body {
    background-color: var(--gnc-cream);
}

.core-values-hero {
    position: relative;
    background-color: var(--gnc-cream);
    background-image: url('/assets/images/Section Header.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    border-bottom: 1px solid var(--gnc-border);
}

.core-values-hero-inner {
    padding: 40px 15px 44px;
    max-width: 1200px;
    margin: 0 auto;
}

.core-values-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
        letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gnc-gold);
    margin-bottom: 14px;
}

.core-values-hero h1 {
    font-family: 'Noto Serif', serif;
    font-weight: 700;
    color: var(--gnc-green-light);
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 8px;
}

.core-values-hero p {
    font-family: 'Inter', sans-serif;
    color: var(--gnc-text-gray);
    font-size: 14px;
    margin: 0;
}

.core-values-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d3a63a;
    margin-bottom: 14px;
}

.core-values-breadcrumb i {
    font-size: 10px;
    color: #d3a63a;
    opacity: 0.8;
}

/* =============================================================
   CORE VALUES SECTION (improved)
   The hero/header above is untouched.
   ============================================================= */
.core-values-main {
    position: relative;
    padding: 70px 15px 90px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
/* soft glow behind the cards */
.core-values-main::before {
    content: '';
    position: absolute;
    left: 50%; top: 52%;
    width: 760px; height: 420px;
    max-width: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(234, 186, 59, .16), transparent 68%);
    pointer-events: none;
    z-index: 0;
}
.core-values-main > * { position: relative; z-index: 1; }

.section-title {
    margin-bottom: 90px;
}

.section-title h2 {
    font-family: 'Noto Serif', serif;
    font-weight: 800;
    color: var(--gnc-green-light);
    font-size: clamp(28px, 4vw, 38px);
    position: relative;
    display: inline-block;
    margin: 0;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%) scaleX(.4);
    width: 70px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--gnc-gold);
    transition: transform .8s cubic-bezier(.22, 1, .36, 1) .3s;
}
.section-title.is-visible h2::after { transform: translateX(-50%) scaleX(1); }

.cards-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

/* Base Card Styling */
.value-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 280px;
    position: relative;
    padding: 82px 24px 52px;
    border-top: 4px solid var(--theme-color);
    border-bottom: 4px solid var(--theme-color);
    min-height: 350px;
    overflow: visible;
    box-shadow: 0 12px 30px rgba(9, 64, 36, .08);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease;
}

/* the dip that holds the icon */
.value-card::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 65px;
    background-color: #ffffff;
    border: 4px solid var(--theme-color);
    border-top: none;
    border-radius: 0 0 130px 130px;
    z-index: 1;
}



.value-card .icon-wrapper {
    position: absolute;
    top: -49px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 20px var(--theme-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s ease;
}
.value-card .icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--theme-color);
    opacity: 0;
}

.value-card h3 {
    position: relative;
    font-family: 'Noto Serif', serif;
    font-weight: 800;
    font-size: 29px;
    color: var(--theme-color);
    margin-bottom: 22px;
}
.value-card h3::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -10px;
    width: 34px; height: 3px;
    border-radius: 2px;
    background: var(--theme-color);
    transform: translateX(-50%);
    transition: width .45s cubic-bezier(.22, 1, .36, 1);
}

.value-card p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #202020;
    line-height: 1.55;
    margin: 0;
}

/* Hover / focus */
.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 46px var(--theme-glow);
}
.value-card:hover .icon-wrapper {
    transform: translateX(-50%) translateY(-4px) scale(1.08) rotate(-6deg);
    box-shadow: 0 0 30px var(--theme-glow);
}
.value-card:hover .icon-wrapper::before { animation: cvRing 1.2s ease-out infinite; }
.value-card:hover h3::after { width: 70px; }
.value-card:hover::after { opacity: .11; transform: translateY(-6px) scale(1.06); }
@keyframes cvRing {
    0%   { opacity: .9; transform: scale(1); }
    100% { opacity: 0;  transform: scale(1.45); }
}

/* Theme Colors configuration */
.theme-gold {
    --theme-color: #d3a63a;
    --theme-glow: rgba(211, 166, 58, 0.35);
}

.theme-green {
    --theme-color: #1F5E2C;
    --theme-glow: rgba(31, 94, 44, 0.35);
}

.theme-red {
    --theme-color: #c1272d;
    --theme-glow: rgba(193, 39, 45, 0.35);
}

/* Motto strip under the cards */
.cv-motto {
    margin-top: 80px;
    padding: 1.6rem 1.5rem;
    background: linear-gradient(135deg, #094024, #062d19);
    border-bottom: 4px solid var(--gnc-gold);
    box-shadow: 0 16px 34px rgba(9, 64, 36, .22);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.cv-motto-word {
    font-family: 'Bebas Neue', 'Noto Serif', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    letter-spacing: .12em;
    color: var(--gnc-gold);
}
.cv-motto-dot {
    width: 9px; height: 9px;
    background: #fff;
    transform: rotate(45deg);
    opacity: .85;
}

/* =============================================================
   SCROLL ANIMATIONS (same class names as before)
   ============================================================= */

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow .45s ease;
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}
/* once visible, cards can lift on hover */
.value-card.reveal-scale.is-visible:hover { transform: translateY(-10px); }

@media (max-width: 767px) {
    .core-values-main { padding: 50px 15px 70px; }
    .section-title { margin-bottom: 80px; }
    .cards-container { gap: 70px; }
    .cv-motto { margin-top: 70px; gap: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-up, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
    .value-card, .value-card * { transition: none !important; }
    .value-card:hover .icon-wrapper::before { animation: none !important; }
}


/* =============================================================
   OPENING TRANSITION (same wipe as the Contact Us / History pages)
   6 green panels slide up and reveal the page. Pure CSS; the whole
   layer is also hidden at the end so it can never block the page.
   ============================================================= */
.cv-open {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; pointer-events: none;
    animation: cvOpenGone 0s linear 1.7s forwards;
}
.cv-open > i {
    flex: 1; margin-right: -1px;
    background: #0b4228;
    animation: cvOpenWipe .85s cubic-bezier(.76, 0, .24, 1) forwards;
    animation-delay: calc(.35s + var(--n, 0) * .07s);
}
.cv-open > i:nth-child(even) { background: #083320; }
.cv-open-label {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
    color: #d3a63a; text-align: center;
    animation: cvOpenLabel 1.1s ease forwards;
}
.cv-open-label img { width: 64px; height: 64px; object-fit: contain; }
.cv-open-label span {
    font-family: 'Noto Serif', serif; font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: .02em;
}
@keyframes cvOpenWipe { to { transform: translateY(-101%); } }
@keyframes cvOpenGone { to { visibility: hidden; } }
@keyframes cvOpenLabel {
    0%   { opacity: 0; transform: translateY(14px); }
    30%  { opacity: 1; transform: none; }
    70%  { opacity: 1; transform: none; }
    100% { opacity: 0; transform: translateY(-14px); }
}

/* Hold the hero's entrance until the wipe has finished. These replace the
   inline transition-delay values (0 / .1s / .2s) with the wipe wait added. */
.core-values-hero .core-values-breadcrumb.reveal-up { transition-delay: .95s !important; }
.core-values-hero h1.reveal-up                      { transition-delay: 1.05s !important; }
.core-values-hero p.reveal-up                       { transition-delay: 1.15s !important; }

@media (prefers-reduced-motion: reduce) {
    .cv-open { display: none; }
    .core-values-hero .reveal-up { transition-delay: 0s !important; }
}

@media (max-width: 768px) {
    .core-values-hero {
        background-position: center;
    }
    .core-values-hero-inner {
        padding: 32px 18px 36px;
        text-align: center;
    }
    .core-values-hero h1,
    .core-values-hero p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}
