/* ============================================
   Covenant Academy — Template #51
   Palette: Deep Navy #1e2a3a, Warm Cream #faf7f0, Rich Emerald #047857
   Fonts: Cormorant Garamond (headings) + Mulish (body)
   Prefix: ca-
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ca-navy: #1e2a3a;
    --ca-cream: #faf7f0;
    --ca-emerald: #047857;
    --ca-emerald-dark: #065f46;
    --ca-emerald-light: #059669;
    --ca-gray-100: #f3f4f6;
    --ca-gray-200: #e5e7eb;
    --ca-gray-500: #6b7280;
    --ca-gray-700: #374151;
    --ca-white: #ffffff;
    --ca-shadow: 0 4px 24px rgba(30, 42, 58, 0.08);
    --ca-shadow-lg: 0 12px 40px rgba(30, 42, 58, 0.12);
    --ca-radius: 12px;
    --ca-transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Mulish', sans-serif;
    color: var(--ca-navy);
    background: var(--ca-cream);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--ca-emerald);
    text-decoration: none;
    transition: color var(--ca-transition);
}

a:hover {
    color: var(--ca-emerald-dark);
}

ul {
    list-style: none;
}

.ca-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ca-text-center {
    text-align: center;
}

.ca-section {
    padding: 100px 0;
}

.ca-section-label {
    display: inline-block;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ca-emerald);
    margin-bottom: 12px;
}

.ca-section h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: var(--ca-navy);
}

.ca-section-desc {
    font-size: 1.1rem;
    color: var(--ca-gray-500);
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

/* --- Scroll Reveal --- */
.ca-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- Demo Banner --- */
.ca-demo-banner {
    background: var(--ca-navy);
    color: var(--ca-white);
    text-align: center;
    padding: 10px 16px;
    font-size: 0.85rem;
    position: relative;
    z-index: 1001;
}

.ca-demo-banner a {
    color: var(--ca-emerald-light);
    font-weight: 600;
    text-decoration: underline;
}

.ca-demo-banner a:hover {
    color: var(--ca-white);
}

/* --- Navigation --- */
.ca-nav {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--ca-transition), box-shadow var(--ca-transition), top var(--ca-transition);
}

.ca-nav.scrolled {
    background: rgba(30, 42, 58, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    top: 0;
}

.ca-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.ca-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ca-white);
    letter-spacing: 0.5px;
}

.ca-logo span {
    font-weight: 400;
    opacity: 0.8;
}

.ca-logo:hover {
    color: var(--ca-white);
}

.ca-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.ca-nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color var(--ca-transition);
}

.ca-nav-links a:hover {
    color: var(--ca-white);
}

.ca-nav-cta {
    background: var(--ca-emerald);
    color: var(--ca-white) !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: background var(--ca-transition) !important;
}

.ca-nav-cta:hover {
    background: var(--ca-emerald-dark) !important;
}

/* Hamburger */
.ca-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.ca-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ca-white);
    border-radius: 2px;
    transition: transform var(--ca-transition), opacity var(--ca-transition);
}

/* Mobile Panel */
.ca-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ca-transition), visibility var(--ca-transition);
}

.ca-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ca-mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: var(--ca-navy);
    z-index: 1101;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 80px 32px 32px;
    overflow-y: auto;
}

.ca-mobile-panel.active {
    transform: translateX(0);
}

.ca-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--ca-white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.ca-mobile-links li {
    margin-bottom: 8px;
}

.ca-mobile-links a {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color var(--ca-transition), padding-left var(--ca-transition);
}

.ca-mobile-links a:hover {
    color: var(--ca-white);
    padding-left: 8px;
}

.ca-mobile-links .ca-nav-cta {
    display: inline-block;
    margin-top: 16px;
    border-bottom: none;
}

/* --- Buttons --- */
.ca-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-family: 'Mulish', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all var(--ca-transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.ca-btn-primary {
    background: var(--ca-emerald);
    color: var(--ca-white);
    border-color: var(--ca-emerald);
}

.ca-btn-primary:hover {
    background: var(--ca-emerald-dark);
    border-color: var(--ca-emerald-dark);
    color: var(--ca-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.3);
}

.ca-btn-outline {
    background: transparent;
    color: var(--ca-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.ca-btn-outline:hover {
    background: var(--ca-white);
    color: var(--ca-navy);
    border-color: var(--ca-white);
    transform: translateY(-2px);
}

.ca-btn-white {
    background: var(--ca-white);
    color: var(--ca-emerald);
    border-color: var(--ca-white);
}

.ca-btn-white:hover {
    background: var(--ca-cream);
    border-color: var(--ca-cream);
    color: var(--ca-emerald-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ca-btn-outline-white {
    background: transparent;
    color: var(--ca-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.ca-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--ca-white);
    color: var(--ca-white);
    transform: translateY(-2px);
}

/* --- Hero --- */
.ca-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ca-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ca-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ca-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 42, 58, 0.92) 0%,
        rgba(30, 42, 58, 0.75) 50%,
        rgba(4, 120, 87, 0.4) 100%
    );
    z-index: 1;
}

.ca-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.ca-hero h1 {
    font-size: 4rem;
    color: var(--ca-white);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.ca-hero h1 em {
    color: var(--ca-emerald-light);
    font-style: italic;
}

.ca-hero-sub {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ca-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Philosophy --- */
.ca-philosophy {
    background: var(--ca-white);
}

.ca-philosophy h2 {
    font-size: 2.8rem;
}

.ca-philosophy-text {
    font-size: 1.15rem;
    color: var(--ca-gray-700);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.9;
}

.ca-scripture {
    max-width: 580px;
    margin: 0 auto;
    padding: 32px 40px;
    background: var(--ca-cream);
    border-left: 4px solid var(--ca-emerald);
    border-radius: 0 var(--ca-radius) var(--ca-radius) 0;
    text-align: left;
}

.ca-scripture p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--ca-navy);
    line-height: 1.6;
    margin-bottom: 12px;
}

.ca-scripture cite {
    font-family: 'Mulish', sans-serif;
    font-size: 0.9rem;
    font-style: normal;
    color: var(--ca-emerald);
    font-weight: 600;
}

/* --- Programs --- */
.ca-programs {
    background: var(--ca-cream);
}

.ca-programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ca-program-card {
    background: var(--ca-white);
    border-radius: var(--ca-radius);
    overflow: hidden;
    box-shadow: var(--ca-shadow);
    transition: transform var(--ca-transition), box-shadow var(--ca-transition);
}

.ca-program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ca-shadow-lg);
}

.ca-program-img {
    height: 220px;
    overflow: hidden;
}

.ca-program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ca-program-card:hover .ca-program-img img {
    transform: scale(1.05);
}

.ca-program-body {
    padding: 28px;
}

.ca-program-body h3 {
    font-size: 1.6rem;
    margin-bottom: 4px;
    color: var(--ca-navy);
}

.ca-program-grades {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ca-emerald);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.ca-program-body > p {
    color: var(--ca-gray-700);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.ca-program-highlights {
    list-style: none;
}

.ca-program-highlights li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--ca-gray-700);
}

.ca-program-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background: var(--ca-emerald);
    border-radius: 50%;
}

/* --- Faculty --- */
.ca-faculty {
    background: var(--ca-white);
}

.ca-faculty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.ca-faculty-card {
    text-align: center;
}

.ca-faculty-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 24px;
    border: 4px solid var(--ca-cream);
    box-shadow: 0 8px 24px rgba(30, 42, 58, 0.1);
}

.ca-faculty-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ca-faculty-card h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: var(--ca-navy);
}

.ca-faculty-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ca-emerald);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.ca-faculty-bio {
    font-size: 0.95rem;
    color: var(--ca-gray-500);
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Campus Life --- */
.ca-campus {
    background: var(--ca-cream);
}

.ca-campus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ca-campus-item {
    position: relative;
    border-radius: var(--ca-radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.ca-campus-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ca-campus-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 42, 58, 0.9) 0%, rgba(30, 42, 58, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--ca-transition);
}

.ca-campus-item:hover .ca-campus-overlay {
    opacity: 1;
}

.ca-campus-item:hover img {
    transform: scale(1.08);
}

.ca-campus-overlay h4 {
    color: var(--ca-white);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.ca-campus-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* --- Admissions --- */
.ca-admissions {
    background: var(--ca-white);
}

.ca-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    counter-reset: step;
}

.ca-step {
    text-align: center;
    position: relative;
}

.ca-step-number {
    width: 56px;
    height: 56px;
    background: var(--ca-emerald);
    color: var(--ca-white);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(4, 120, 87, 0.25);
}

.ca-step h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--ca-navy);
}

.ca-step p {
    font-size: 0.92rem;
    color: var(--ca-gray-500);
    line-height: 1.7;
}

/* --- Testimonial --- */
.ca-testimonial {
    background: var(--ca-cream);
}

.ca-testimonial-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 960px;
    margin: 0 auto;
}

.ca-testimonial-photo {
    flex-shrink: 0;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--ca-shadow-lg);
}

.ca-testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ca-testimonial-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--ca-navy);
    line-height: 1.7;
    margin-bottom: 24px;
}

.ca-testimonial-quote footer {
    display: flex;
    flex-direction: column;
}

.ca-testimonial-quote strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--ca-navy);
}

.ca-testimonial-quote span {
    font-size: 0.9rem;
    color: var(--ca-emerald);
    font-weight: 500;
}

/* --- CTA --- */
.ca-cta {
    background: var(--ca-emerald);
    color: var(--ca-white);
}

.ca-cta h2 {
    color: var(--ca-white);
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.ca-cta > .ca-container > .ca-reveal > p:first-of-type {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.ca-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ca-cta-contact {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.ca-cta-contact a {
    color: var(--ca-white);
    font-weight: 600;
}

.ca-cta-contact a:hover {
    text-decoration: underline;
}

/* --- Footer --- */
.ca-footer {
    background: var(--ca-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.ca-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ca-footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ca-white);
    display: inline-block;
    margin-bottom: 16px;
}

.ca-footer-logo span {
    font-weight: 400;
    opacity: 0.8;
}

.ca-footer-logo:hover {
    color: var(--ca-white);
}

.ca-footer-col > p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.ca-footer-social {
    display: flex;
    gap: 12px;
}

.ca-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: background var(--ca-transition), color var(--ca-transition);
}

.ca-footer-social a:hover {
    background: var(--ca-emerald);
    color: var(--ca-white);
}

.ca-footer-col h4 {
    font-size: 1.1rem;
    color: var(--ca-white);
    margin-bottom: 20px;
}

.ca-footer-col ul li {
    margin-bottom: 10px;
}

.ca-footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--ca-transition), padding-left var(--ca-transition);
}

.ca-footer-col ul a:hover {
    color: var(--ca-white);
    padding-left: 4px;
}

.ca-footer-contact li {
    font-size: 0.9rem;
    line-height: 1.7;
}

.ca-footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* --- 1024px --- */
@media (max-width: 1024px) {
    .ca-hero h1 {
        font-size: 3.2rem;
    }

    .ca-section {
        padding: 80px 0;
    }

    .ca-section h2 {
        font-size: 2.4rem;
    }

    .ca-programs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .ca-campus-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ca-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .ca-footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 32px;
    }
}

/* --- 768px --- */
@media (max-width: 768px) {
    .ca-nav-links {
        display: none;
    }

    .ca-hamburger {
        display: flex;
    }

    .ca-hero h1 {
        font-size: 2.6rem;
    }

    .ca-hero-sub {
        font-size: 1.05rem;
    }

    .ca-section {
        padding: 64px 0;
    }

    .ca-section h2 {
        font-size: 2rem;
    }

    .ca-programs-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .ca-faculty-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 360px;
        margin: 0 auto;
    }

    .ca-campus-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .ca-steps {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 40px;
    }

    .ca-testimonial-inner {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .ca-testimonial-photo {
        width: 180px;
        height: 180px;
    }

    .ca-testimonial-quote p {
        font-size: 1.25rem;
    }

    .ca-testimonial-quote footer {
        align-items: center;
    }

    .ca-footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .ca-footer-social {
        justify-content: center;
    }

    .ca-cta h2 {
        font-size: 2.2rem;
    }

    .ca-scripture {
        padding: 24px;
    }

    .ca-scripture p {
        font-size: 1.2rem;
    }
}

/* --- 480px --- */
@media (max-width: 480px) {
    .ca-hero {
        min-height: 90vh;
    }

    .ca-hero h1 {
        font-size: 2rem;
    }

    .ca-hero-sub {
        font-size: 0.95rem;
    }

    .ca-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .ca-hero-actions .ca-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .ca-section {
        padding: 48px 0;
    }

    .ca-section h2 {
        font-size: 1.7rem;
    }

    .ca-section-desc {
        font-size: 0.95rem;
    }

    .ca-campus-grid {
        grid-template-columns: 1fr;
    }

    .ca-campus-item {
        aspect-ratio: 4 / 3;
    }

    .ca-campus-overlay {
        opacity: 1;
    }

    .ca-cta h2 {
        font-size: 1.8rem;
    }

    .ca-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .ca-cta-actions .ca-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .ca-philosophy-text {
        font-size: 1rem;
    }

    .ca-program-img {
        height: 180px;
    }

    .ca-testimonial-quote p {
        font-size: 1.1rem;
    }

    .ca-mobile-panel {
        width: 100%;
    }

    .ca-demo-banner {
        font-size: 0.78rem;
        padding: 8px 12px;
    }
}
