@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);
}

.logo-meaning-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);
}

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

.logo-meaning-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;
}

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

.logo-meaning-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;
}

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

/* Logo Meaning Main Content Layout */
.logo-meaning-content-section {
    padding: 60px 0 80px;
    background-color: var(--gnc-cream);
}

.logo-meaning-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.logo-display-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    min-width: 300px;
}

.logo-meaning-graphic {
    max-width: 450px;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}

.logo-display-wrapper::before {
    content: '';
    position: absolute;
    top: 15px; 
    left: 10px; 
    width: 130px; 
    height: 130px; 
    background-color: var(--gnc-gold, #EABA3B); 
    border-radius: 16px; 
    z-index: 1;
}

.logo-display-wrapper::after {
    content: '';
    position: absolute;
    bottom: 25px;
    right: 20px;
    width: 100px;
    height: 60px;
    background-image: radial-gradient(circle, #094024 4px, transparent 5px);
    background-size: 20px 20px; 
    z-index: 1;
}

.logo-info-wrapper {
    flex: 1.2;
    min-width: 300px;
}

/* 1. Added the gold underline to the Header */
.logo-info-wrapper h2 {
    font-family: 'Noto Serif', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gnc-green-light, #1b4d3e);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 12px;
}

.logo-info-wrapper h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 65px;
    height: 3px;
    background-color: #d3a63a;
}

.logo-info-wrapper > p {
    font-family: 'Inter', sans-serif;
    color: #4a4a4a;
    font-size: 0.95rem;
    margin-bottom: 35px;
}

/* Feature Item Rows - Increased padding for breathing room */
.meaning-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.meaning-item:last-child {
    border-bottom: none;
}

/* Icon Circle Box Styling - Strengthened shadows and gradients */
.icon-circle-box {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.icon-circle-box.crucifix-icon {
    background: radial-gradient(circle, #ffffff 30%, #f9f2dd 100%);
    box-shadow: 0 10px 25px rgba(211, 166, 58, 0.25);
}

.icon-circle-box.book-icon {
    background: radial-gradient(circle, #ffffff 30%, #e2efe8 100%);
    box-shadow: 0 10px 25px rgba(27, 77, 62, 0.25);
}

.icon-circle-box.sword-icon {
    background: radial-gradient(circle, #ffffff 30%, #f6e6e6 100%);
    box-shadow: 0 10px 25px rgba(168, 50, 50, 0.25);
}

/* Increased the SVG image size to match Figma */
.icon-circle-box img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.meaning-text h3 {
    font-family: 'Noto Serif', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px;
}

/* 2. FIXED COLOR TARGETING: Uses the icon class to target the heading next to it */
.icon-circle-box.crucifix-icon + .meaning-text h3 { color: var(--gnc-gold, #EABA3B); }
.icon-circle-box.book-icon + .meaning-text h3 { color: var(--gnc-green-light, #094024); }
.icon-circle-box.sword-icon + .meaning-text h3 { color: var(--gnc-red, #BA2A26); }

.meaning-text p {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #555555;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .logo-meaning-container {
        flex-direction: column;
        text-align: center;
    }
    .meaning-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .logo-info-wrapper h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* =============================================================
   SCROLL ANIMATIONS
   ============================================================= */

.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);
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}


/* =============================================================
   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.
   ============================================================= */
.lm-open {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; pointer-events: none;
    animation: lmOpenGone 0s linear 1.7s forwards;
}
.lm-open > i {
    flex: 1; margin-right: -1px;
    background: #0b4228;
    animation: lmOpenWipe .85s cubic-bezier(.76, 0, .24, 1) forwards;
    animation-delay: calc(.35s + var(--n, 0) * .07s);
}
.lm-open > i:nth-child(even) { background: #083320; }
.lm-open-label {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
    color: #d3a63a; text-align: center; padding: 0 1rem;
    animation: lmOpenLabel 1.1s ease forwards;
}
.lm-open-label img { width: 64px; height: 64px; object-fit: contain; }
.lm-open-label span {
    font-family: 'Noto Serif', serif; font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: .02em;
}
@keyframes lmOpenWipe { to { transform: translateY(-101%); } }
@keyframes lmOpenGone { to { visibility: hidden; } }
@keyframes lmOpenLabel {
    0%   { opacity: 0; transform: translateY(14px); }
    30%  { opacity: 1; transform: none; }
    70%  { opacity: 1; transform: none; }
    100% { opacity: 0; transform: translateY(-14px); }
}

/* While the wipe is playing (class set by a tiny script in <head> and removed
   after ~2.2s), hold every entrance until the wipe is done. These replace the
   inline transition-delay values. Scrolling later is not affected. */
.lm-wait .logo-meaning-breadcrumb.reveal-up { transition-delay: .95s !important; }
.lm-wait .logo-meaning-hero h1.reveal-up    { transition-delay: 1.05s !important; }
.lm-wait .logo-meaning-hero p.reveal-up     { transition-delay: 1.15s !important; }
.lm-wait .logo-display-wrapper.reveal-scale { transition-delay: 1.25s !important; }
.lm-wait .logo-info-wrapper h2.reveal-up    { transition-delay: 1.3s !important; }
.lm-wait .logo-info-wrapper > p.reveal-up   { transition-delay: 1.4s !important; }
.lm-wait .meaning-item:nth-of-type(1)       { transition-delay: 1.5s !important; }
.lm-wait .meaning-item:nth-of-type(2)       { transition-delay: 1.6s !important; }
.lm-wait .meaning-item:nth-of-type(3)       { transition-delay: 1.7s !important; }

/* =============================================================
   EXTRA ANIMATIONS
   ============================================================= */

/* Logo: gentle float + soft shadow */
.logo-meaning-graphic {
    filter: drop-shadow(0 18px 26px rgba(9, 64, 36, .22));
    animation: lmFloat 6s ease-in-out 2s infinite;
}
@keyframes lmFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* Gold square and dot grid drift slowly behind the logo */
.logo-display-wrapper::before { animation: lmDriftA 9s ease-in-out infinite alternate; }
.logo-display-wrapper::after  { animation: lmDriftB 7s ease-in-out infinite alternate; }
@keyframes lmDriftA { from { transform: translate(0, 0) rotate(0); }      to { transform: translate(14px, 10px) rotate(6deg); } }
@keyframes lmDriftB { from { transform: translate(0, 0); opacity: .6; }   to { transform: translate(-12px, -8px); opacity: 1; } }

/* "About the Logo" gold underline draws itself in */
.logo-info-wrapper h2::after {
    width: 0;
    transition: width .8s cubic-bezier(.22, 1, .36, 1) .5s;
}
.logo-info-wrapper h2.is-visible::after { width: 65px; }

/* Icons pop in when their row appears */
.icon-circle-box {
    opacity: 0; transform: scale(.55) rotate(-20deg);
    transition: opacity .5s ease, transform .7s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s ease;
    transition-delay: .3s;
}
.meaning-item.is-visible .icon-circle-box { opacity: 1; transform: none; }

/* Pulse ring around each icon */
.icon-circle-box::after {
    content: ''; position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid currentColor; opacity: 0; pointer-events: none;
}
.icon-circle-box.crucifix-icon { color: #d3a63a; }
.icon-circle-box.book-icon     { color: #1F5E2C; }
.icon-circle-box.sword-icon    { color: #BA2A26; }

/* Row hover: icon spins, text nudges */
.meaning-item { position: relative; }
.meaning-text { transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.meaning-item:hover .meaning-text { transform: translateX(8px); }

.meaning-item.is-visible:hover .icon-circle-box {
    transform: scale(1.1) rotate(-8deg);
    transition-delay: 0s;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}
.meaning-item:hover .icon-circle-box::after { animation: lmRing 1.2s ease-out infinite; }
@keyframes lmRing {
    0%   { opacity: .8; transform: scale(1); }
    100% { opacity: 0;  transform: scale(1.45); }
}

@media (max-width: 992px) {
    .meaning-item:hover .meaning-text { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lm-open { display: none; }
    .lm-wait .reveal-up, .lm-wait .reveal-scale { transition-delay: 0s !important; }
    .logo-meaning-graphic,
    .logo-display-wrapper::before,
    .logo-display-wrapper::after,
    .meaning-item:hover .icon-circle-box::after { animation: none !important; }
    .icon-circle-box { opacity: 1 !important; transform: none !important; transition: none !important; }
    .logo-info-wrapper h2::after { width: 65px !important; transition: none !important; }
    .meaning-text { transition: none !important; }
}

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