/* ============================================
   Creative Archiever Learning — Stylesheet
   Deep Navy (#1a2744) + Warm Gold (#c8a45a)
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2c2c2c;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: #1a2744;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #1a2744;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    border-radius: 4px;
    font-size: 14px;
}
.skip-link:focus {
    top: 16px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    padding: 14px 32px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #c8a45a;
    color: #1a2744;
    border-color: #c8a45a;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #b8943f;
    border-color: #b8943f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 164, 90, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #1a2744;
    border-color: #1a2744;
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: #1a2744;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline-light:hover, .btn-outline-light:focus {
    background-color: #ffffff;
    color: #1a2744;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    flex-shrink: 0;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(26, 39, 68, 0.08);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(26, 39, 68, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 17px;
    color: #1a2744;
    letter-spacing: -0.01em;
}
.logo-icon {
    color: #c8a45a;
}

.logo-light {
    color: #ffffff;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.primary-nav a {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1a2744;
    transition: color 0.2s ease;
    position: relative;
}
.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c8a45a;
    transition: width 0.3s ease;
}
.primary-nav a:hover::after,
.primary-nav a:focus::after {
    width: 100%;
}
.primary-nav a:hover {
    color: #c8a45a;
}

.nav-cta {
    background-color: #1a2744;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-transform: uppercase !important;
    letter-spacing: 0.04em;
    font-size: 13px !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}
.nav-cta::after {
    display: none;
}
.nav-cta:hover {
    background-color: #c8a45a;
    color: #1a2744 !important;
    transform: translateY(-1px);
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a2744;
    position: relative;
    transition: background-color 0.3s ease;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #1a2744;
    transition: transform 0.3s ease;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* --- Hero --- */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c8a45a;
    margin-bottom: 20px;
}

.hero-headline {
    font-size: clamp(42px, 5.5vw, 72px);
    font-weight: 900;
    line-height: 1.08;
    color: #1a2744;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 24px;
}

.proof-stat {
    display: flex;
    flex-direction: column;
}
.proof-number {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a2744;
}
.proof-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}

.proof-divider {
    width: 1px;
    height: 40px;
    background-color: #ddd;
}

.hero-image-wrap {
    position: relative;
}

.hero-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(26, 39, 68, 0.15);
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-color: #c8a45a;
    border-radius: 4px;
    z-index: -1;
    opacity: 0.5;
}

/* --- Section Shared --- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c8a45a;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    color: #1a2744;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.section-title--light {
    color: #ffffff;
}

.section-desc {
    font-size: 17px;
    color: #666;
    line-height: 1.7;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background-color: #ffffff;
}

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

.service-card {
    padding: 40px 32px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #ffffff;
}
.service-card:hover {
    border-color: #c8a45a;
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(26, 39, 68, 0.1);
}

.service-icon {
    color: #c8a45a;
    margin-bottom: 20px;
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a2744;
}

.service-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background-color: #1a2744;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}
.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 55%;
    border-radius: 8px;
    overflow: hidden;
    border: 6px solid #1a2744;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}
.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background-color: #c8a45a;
    color: #1a2744;
    padding: 16px 20px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(200, 164, 90, 0.4);
}
.about-badge .badge-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}
.about-badge .badge-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.about-content {
    padding: 20px 0;
}

.about-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.value-check {
    color: #c8a45a;
    flex-shrink: 0;
}

/* --- Gallery --- */
.gallery {
    padding: 100px 0;
    background-color: #f8f7f4;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 39, 68, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay span {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

/* --- CTA Band --- */
.cta-band {
    padding: 80px 0;
    background-color: #c8a45a;
}

.cta-inner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.cta-headline {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: #1a2744;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.cta-text {
    font-size: 17px;
    color: rgba(26, 39, 68, 0.75);
    margin-bottom: 36px;
    line-height: 1.7;
}

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

/* --- Testimonials --- */
.testimonials {
    padding: 100px 0;
    background-color: #ffffff;
}

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

.testimonial-card {
    background-color: #f8f7f4;
    padding: 40px 32px;
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(26, 39, 68, 0.08);
}

.testimonial-quote {
    color: #c8a45a;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.author-name {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a2744;
}
.author-location {
    font-size: 13px;
    color: #999;
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background-color: #1a2744;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    color: #c8a45a;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item .contact-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
    font-size: 15px;
    color: #ffffff;
}
.contact-item a:hover {
    color: #c8a45a;
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* --- Contact Form --- */
.contact-form-wrap {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 48px 40px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a2744;
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1a2744;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #2c2c2c;
    background-color: #fafafa;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c8a45a;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(200, 164, 90, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    font-size: 13px;
    color: #999;
    margin-top: 12px;
    text-align: center;
}

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    color: #2e7d32;
    font-weight: 700;
    font-size: 14px;
    margin-top: 16px;
}
.form-success.visible {
    display: flex;
}
.form-success svg {
    flex-shrink: 0;
    color: #4caf50;
}

/* --- Footer --- */
.site-footer {
    background-color: #111b30;
    padding: 64px 0 0;
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c8a45a;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: #c8a45a;
}

.footer-contact p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 4px;
}
.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}
.footer-contact a:hover {
    color: #c8a45a;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        gap: 48px;
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .primary-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-bottom: 1px solid rgba(26, 39, 68, 0.08);
        padding: 24px;
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        box-shadow: 0 16px 32px rgba(26, 39, 68, 0.1);
    }
    .primary-nav.open {
        transform: translateY(0);
        opacity: 1;
    }
    .primary-nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .nav-cta {
        display: inline-block;
        margin-top: 8px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0 60px;
    }
    .hero-image-wrap {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-proof {
        gap: 16px;
    }

    .services {
        padding: 64px 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about {
        padding: 64px 0;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-images {
        max-width: 480px;
    }
    .about-img-secondary {
        right: -16px;
        bottom: -24px;
    }
    .about-values {
        grid-template-columns: 1fr;
    }

    .gallery {
        padding: 64px 0;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cta-band {
        padding: 56px 0;
    }
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .cta-actions .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .testimonials {
        padding: 64px 0;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .contact {
        padding: 64px 0;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .contact-form-wrap {
        padding: 32px 24px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-headline {
        font-size: 36px;
    }
    .section-title {
        font-size: 28px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
