/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #f59e0b; color: #141e6e; padding: 8px 16px; z-index: 9999; font-weight: 700; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ========== SECTION UTILITIES ========== */
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 100px 0; } }

.section__eyebrow { display: flex; align-items: center; gap: 12px; }
.section__eyebrow-line { display: block; width: 32px; height: 2px; background: #f59e0b; border-radius: 2px; }
.section__eyebrow-text { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #b45309; }
.section__title { line-height: 1.15; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 50px; font-size: 0.95rem; font-weight: 700;
    text-decoration: none; border: 2px solid transparent; transition: all 0.25s ease;
    white-space: nowrap;
}
.btn--gold { background: #f59e0b; color: #141e6e; border-color: #f59e0b; }
.btn--gold:hover { background: #d97706; border-color: #d97706; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.35); }
.btn--navy { background: #141e6e; color: #ffffff; border-color: #141e6e; }
.btn--navy:hover { background: #1a2794; border-color: #1a2794; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,30,110,0.35); }
.btn--outline { background: transparent; color: #141e6e; border-color: #141e6e; }
.btn--outline:hover { background: #141e6e; color: #ffffff; transform: translateY(-2px); }
.btn--outline-dark { background: transparent; color: #141e6e; border-color: #141e6e; }
.btn--outline-dark:hover { background: #141e6e; color: #ffffff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #f59e0b; border-color: #f59e0b; }
.btn--ghost:hover { background: #f59e0b; color: #141e6e; transform: translateY(-2px); }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

/* ========== NAVBAR ========== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(254,243,219,0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(20,30,110,0.08);
    transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(20,30,110,0.1); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__logo-icon { flex-shrink: 0; }
.nav__links { gap: 8px; }
.nav__link {
    font-size: 0.9rem; font-weight: 600; color: #1a2794; text-decoration: none;
    padding: 8px 4px; position: relative; transition: color 0.2s;
}
.nav__link::after {
    content: ''; position: absolute; bottom: 4px; left: 4px; right: 4px;
    height: 2px; background: #f59e0b; border-radius: 2px;
    transform: scaleX(0); transition: transform 0.25s ease;
}
.nav__link:hover { color: #b45309; }
.nav__link:hover::after { transform: scaleX(1); }

/* Burger */
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav__burger .bar { display: block; width: 24px; height: 2.5px; background: #141e6e; border-radius: 2px; transition: all 0.3s ease; }
.nav__burger[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Menu */
.nav__mobile { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200; }
.nav__mobile-overlay {
    position: absolute; inset: 0; background: rgba(20,30,110,0.5);
    backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s;
}
.nav__mobile.open .nav__mobile-overlay { opacity: 1; }
.nav__mobile-panel {
    position: absolute; top: 0; right: 0; width: 280px; height: 100%;
    background: #fef3c7; padding: 80px 24px 32px; display: flex; flex-direction: column; gap: 8px;
    transform: translateX(100%); transition: transform 0.3s ease;
}
.nav__mobile.open .nav__mobile-panel { transform: translateX(0); }
.nav__mobile-link {
    font-size: 1.1rem; font-weight: 700; color: #141e6e; text-decoration: none;
    padding: 12px 0; border-bottom: 1px solid rgba(20,30,110,0.1); transition: color 0.2s;
}
.nav__mobile-link:hover { color: #b45309; }
.nav__mobile-cta { margin-top: 16px; text-align: center; }

@media (max-width: 767px) {
    .nav__burger { display: flex; }
    .nav__links { display: none; }
}

/* ========== HERO ========== */
.hero {
    position: relative; min-height: 100vh;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 40%, #fcd34d 100%);
    overflow: hidden; padding-top: 80px;
}
.hero__bg-pattern { position: absolute; inset: 0; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #1a2794; }
.hero__eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; flex-shrink: 0; }
.hero__headline { line-height: 1.08; }
.hero__sub { color: #1a2794; }
.hero__actions { gap: 12px; }
.hero__stats { gap: 24px; }
.hero__stat-label { font-size: 0.8rem; }
.hero__wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.hero__wave svg { width: 100%; height: 80px; }
.hero__img-main { width: 100%; aspect-ratio: 600/750; object-fit: cover; }
.hero__img-float--top { width: 176px; }
.hero__img-float--bot { width: 160px; }
.hero__img-float img, .hero__img-main img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1023px) {
    .hero__images { display: none; }
    .hero { min-height: auto; padding: 120px 0 80px; }
}

/* ========== ABOUT ========== */
.about { background: #fef3c7; }
.about__grid { gap: 48px; }
.about__img-main { width: 100%; aspect-ratio: 600/500; object-fit: cover; }
.about__img-accent { width: 192px; aspect-ratio: 200/250; object-fit: cover; }

/* ========== SERVICES ========== */
.services { background: #f0f3ff; position: relative; overflow: hidden; }
.services__bg { position: absolute; inset: 0; pointer-events: none; }
.services__inner { position: relative; z-index: 1; }

/* ========== CARDS ========== */
.card {
    background: #ffffff; border-radius: 20px; padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(20,30,110,0.06); border: 1px solid rgba(20,30,110,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(20,30,110,0.12); }
.card__icon-wrap {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
}
.card__title { line-height: 1.2; }
.card__text { line-height: 1.7; }

/* ========== GALLERY ========== */
.gallery { background: #ffffff; }
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 16px;
}
.gallery__item {
    position: relative; border-radius: 16px; overflow: hidden; cursor: pointer;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20,30,110,0.7) 0%, transparent 60%);
    display: flex; align-items: flex-end; padding: 20px;
    opacity: 0; transition: opacity 0.3s ease;
}
.gallery__item:hover .gallery__item-overlay { opacity: 1; }
.gallery__item-overlay span { color: #ffffff; font-weight: 700; font-size: 0.95rem; }

@media (max-width: 767px) {
    .gallery__grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 180px); }
    .gallery__item--wide { grid-column: span 2; grid-row: span 1; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .gallery__grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 200px); }
    .gallery__item--wide { grid-column: span 2; }
}

/* ========== COMMUNITY ========== */
.community { background: #fef3c7; }
.community__card { box-shadow: 0 8px 40px rgba(20,30,110,0.1); }
.community__images { position: relative; }
.community__images img { position: absolute; inset: 0; }
.community__images-overlay { background: linear-gradient(135deg, rgba(20,30,110,0.15) 0%, rgba(20,30,110,0.4) 100%); }

/* ========== CTA ========== */
.cta { background: #ffffff; padding: 80px 0; }
.cta__inner { position: relative; }
.cta__decoration { position: absolute; top: -40px; right: -20px; opacity: 0.5; }
.cta__inner h2 { line-height: 1.1; }

/* ========== CONTACT ========== */
.contact { background: #f0f3ff; }
.contact-card {
    display: flex; align-items: flex-start; gap: 16px;
    background: #ffffff; border-radius: 16px; padding: 20px 24px;
    box-shadow: 0 4px 16px rgba(20,30,110,0.06); border: 1px solid rgba(20,30,110,0.05);
}
.contact-card__icon {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
}
.contact-card h3 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #1a2794; margin-bottom: 4px; }

/* ========== FORM ========== */
.contact-form {
    background: #ffffff; border-radius: 24px; padding: 36px;
    box-shadow: 0 8px 32px rgba(20,30,110,0.08); border: 1px solid rgba(20,30,110,0.06);
}
.form-group { display: flex; flex-direction: column; }
.form-label { font-size: 0.85rem; font-weight: 700; color: #1a2794; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.form-input {
    width: 100%; padding: 14px 16px; border: 2px solid #d9e0ff; border-radius: 12px;
    font-size: 0.95rem; font-family: inherit; color: #141e6e; background: #f8f9ff;
    transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-input:focus { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.15); background: #ffffff; }
.form-input::placeholder { color: #9aadff; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23141e6e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-success {
    display: flex; align-items: center; gap: 12px; margin-top: 16px;
    padding: 16px 20px; border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0;
    color: #166534; font-weight: 600;
}
.form-success.hidden { display: none; }

.map-wrap { box-shadow: 0 4px 20px rgba(20,30,110,0.08); }

/* ========== FOOTER ========== */
.footer { background: #0c1142; padding: 60px 0 32px; }
.footer__logo { text-decoration: none; }
.footer__heading { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer__link { color: #ffffff80; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer__link:hover { color: #f59e0b; }
.footer__bottom { color: #ffffff40; font-size: 0.8rem; }

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
