/* 
  File: public/css/training.css
  Purpose: Private stylesheet mapped specifically to the Training Page architecture.
  Relies on global var(--color-gold), var(--color-dark-bg), etc from app.css.
*/

/* Core Reusable */
.mt-6 { margin-top: 1.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }

/* Section 1: Hero */
.training-hero {
    position: relative;
    height: clamp(520px, 72vh, 700px);
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 1.5rem;
}

.hero-bg-anim {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Soft particle simmer / gradient overlay */
    background: linear-gradient(120deg, var(--color-dark-bg), var(--color-dark-surface), var(--color-dark-bg));
    background-size: 200% 200%;
    animation: gradientShimmer 15s ease infinite;
    opacity: 0.8;
}

@keyframes gradientShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

/* Page Load Animation (Section 1 Request) */
.fade-up-on-load {
    opacity: 0;
    animation: fadeUpTraining 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUpTraining {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-family: var(--font-body);
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1;
}

.scroll-indicator .chevron {
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23C9A96E" xmlns="http://www.w3.org/2000/svg"><path stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Section 2: Navbar */
.course-navigator {
    position: sticky;
    top: 0; /* Adjust depending on main site header height */
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--color-dark-bg) 70%, transparent);
    border-bottom: 1px solid var(--color-dark-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    padding: 0 1.5rem;
    position: relative;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for clean horizontal scroll on mobile */
}
.nav-container::-webkit-scrollbar { display: none; }

.tab-btn {
    background: none;
    border: none;
    padding: 1.25rem 0;
    color: var(--color-dark-muted);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    color: var(--color-gold);
}

.tab-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: transform 0.3s ease, width 0.3s ease;
    width: 0;
}

/* Section 3: Courses */
.courses-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.difficulty-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(201, 169, 110, 0.1);
    color: var(--color-gold);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 50px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-dark-text);
}

.course-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
}

.course-visual .img-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--color-dark-surface);
    border-radius: 4px;
    border: 1px solid var(--color-dark-border);
    overflow: hidden;
    position: relative;
}

.course-visual .img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-visual:hover .img-placeholder img {
    transform: scale(1.05); /* Hover Zoom Requirement */
}

/* Animated Checklist */
.staggered-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.staggered-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--color-dark-muted);
    opacity: 0;
    transform: translateX(15px);
}

/* Visibility class triggered by intersection observer */
.scroll-reveal.is-visible .staggered-list li {
    animation: slideInRight 0.5s forwards ease-out;
}

@keyframes slideInRight {
    to { opacity: 1; transform: translateX(0); }
}

.staggered-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23C9A96E" xmlns="http://www.w3.org/2000/svg"><path stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"/></svg>');
    background-size: contain;
}

/* Highlights Bar */
.course-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem;
    border-radius: 4px;
    margin-top: 3rem;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
}

.highlight-item svg {
    width: 32px;
    height: 32px;
}

.highlight-item span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Section 4: Trust Section */
.trust-section {
    max-width: 1200px;
    margin: 4rem auto 8rem auto;
    padding: 0 1.5rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.trust-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(30px);
}

.trust-card svg {
    width: 40px;
    height: 40px;
    margin-bottom: 1.5rem;
}

.trust-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

.trust-card p {
    font-size: 0.85rem;
    color: var(--color-dark-muted);
    line-height: 1.5;
}

.scroll-reveal.is-visible .trust-card {
    animation: fadeUpTraining 0.6s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Lift Effect */
.trust-card:hover {
    transform: translateY(-6px) !important; /* overrides transform for lift state */
    box-shadow: 0 12px 30px rgba(201, 169, 110, 0.08);
}

/* Reveal transition timings */
.trust-grid .trust-card:nth-child(1) { animation-delay: 0.1s; }
.trust-grid .trust-card:nth-child(2) { animation-delay: 0.2s; }
.trust-grid .trust-card:nth-child(3) { animation-delay: 0.3s; }
.trust-grid .trust-card:nth-child(4) { animation-delay: 0.4s; }

/* Section 5: Contact Strip */
.contact-strip-inner {
    padding: 5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-details {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-dark-text);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-gold);
}

/* General Scroll Reveal Defaults */
.scroll-reveal {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateY(30px);
}

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

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsiveness */
@media (max-width: 1024px) {
    .trust-grid { gap: 1rem; }
    .course-highlights { grid-template-columns: repeat(3, 1fr); padding: 1.5rem; gap: 0.5rem; }
    .highlight-item { padding: 0.5rem; }
}

@media (max-width: 768px) {
    .course-split { grid-template-columns: 1fr; gap: 2rem; }
    .course-visual .img-placeholder { aspect-ratio: 16/9; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .course-highlights { grid-template-columns: 1fr; }
    .contact-details { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 480px) {
    .trust-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    .nav-container { padding-right: 2rem; } /* Gives space to scroll */
}