/* ============================================
   BASE VARIABLES
   ============================================ */
:root {
    --navy: #001B44;
    --sun: #F9C440;
    --sea: #3AB0D6;
    --sky: #8FD1F0;
    --sand: #EADBC8;

    --text-main: #1f2933;
    --text-muted: #6b7280;
    --bg-page: #FAFBFD;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
}

/* Global container */
.site-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: linear-gradient(
        135deg,
        var(--navy) 0%,
        #002760 35%,
        #014b7b 65%,
        var(--navy) 100%
    );
    color: #f9fafb;
    border-bottom: 3px solid var(--sun);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1.5rem;
}

/* Branding */
.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
}

.brand-mark {
    height: 54px;
    width: auto;
    border-radius: 999px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.brand-tagline {
    font-size: 0.8rem;
    color: rgba(249,250,251,0.75);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.9rem;
}

.main-nav a {
    position: relative;
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 0.15rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.15rem;
    width: 0;
    height: 2px;
    background: var(--sun);
    transition: width 0.18s ease-out;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
}

.main-nav a:hover {
    color: #fff;
}

/* Responsive header */
@media (max-width: 768px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-mark {
        height: 46px;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.6rem 1rem;
    }
}

/* ============================================
   GLOBAL SECTIONS / TYPOGRAPHY
   ============================================ */

.section {
    padding: 3rem 0;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}

.section p {
    max-width: 750px;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ============================================
   INTRO SECTION (TEXT + IMAGE + BUTTONS)
   ============================================ */

.intro-grid {
    grid-template-columns: 1fr 300px;
    align-items: center;
}

.intro-image-wrap {
    display: flex;
    justify-content: center;
}

.intro-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    object-fit: cover;
}

/* Intro button row */
.intro-buttons {
    margin-top: 1.6rem;
    display: flex;
    gap: 1rem;
}

/* Optional outline button */
.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-outline:hover {
    color: #fff;
    background: var(--navy);
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .intro-image-wrap {
        margin-top: 1.5rem;
    }

    .intro-buttons {
        flex-direction: column;
        width: 100%;
    }

    .intro-buttons .btn,
    .intro-buttons .btn-outline {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   CARD BLOCKS
   ============================================ */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem 1.4rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.09);
    border-top: 4px solid var(--sun);
    transition: transform .12s ease-out, box-shadow .12s ease-out;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.7rem;
    font-size: 1.25rem;
    color: var(--navy);
}

/* Tag labels */
.tag {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    background: var(--sea);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 5px;
    margin-bottom: 0.6rem;
}

/* ============================================
   LINKS
   ============================================ */
a.text-link,
a.text-link:visited {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--sun);
    padding-bottom: 2px;
}

a.text-link:hover {
    color: var(--sun);
    border-color: var(--sea);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    background: var(--navy);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border: none;
    transition: background .2s ease;
}

.btn:hover {
    background: var(--sea);
}

/* ============================================
   FOOTER (NEW LAYOUT)
   ============================================ */

.site-footer {
    background: var(--navy);
    color: #e5e7eb;
    padding-top: 2.5rem;
    margin-top: 4rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 2rem;
}

/* Footer link groups */
footer .footer-links {
    min-width: 160px;
    display: flex;
    flex-direction: column;
}

footer .footer-links h4 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--sun);
}

footer .footer-links a {
    color: #e5e7eb;
    text-decoration: none;
    margin: 0.3rem 0;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

footer .footer-links a:hover {
    color: var(--sky);
}

/* Right-aligned, flipped small logo */
.footer-right {
    margin-left: auto;
    display: flex;
    align-items: flex-start;
}

.footer-logo {
    height: 140px;
    width: auto;
    border-radius: 999px;
    transform: scaleX(-1);
}

/* Bottom bar */
.footer-bottom {
    background: #000f28;
    padding: 0.9rem 0;
    font-size: 0.85rem;
    text-align: center;
    color: #9ca3af;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right {
        margin-left: 0;
        margin-top: 1rem;
    }
}
