/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: #f0f5ff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Color Variables ── */
:root {
    --navy: #17489C;
    --navy-dark: #0f3370;
    --red: #E01616;
    --light: #f0f5ff;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text: #475569;
    --text-muted: #475569;
    --border: rgba(23, 72, 156, 0.1);
}

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

/* ── Navbar ── */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar .logo img {
    height: 44px;
    width: auto;
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--navy);
    border-bottom-color: var(--navy);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.3s;
}

/* Mobile menu using checkbox hack */
.mobile-toggle { display: none; }
.mobile-toggle:checked ~ .nav-links {
    display: flex !important;
}
.mobile-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero (wide card with background image) ── */
.hero {
    position: relative;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    max-width: calc(1200px - 3rem);
    margin: 1.5rem auto 0;
    border-radius: 1rem;
    width: calc(100% - 3rem);
    overflow: hidden;
    background: var(--navy);
    background-size: cover;
    background-position: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 51, 112, 0.82) 0%, rgba(23, 72, 156, 0.7) 100%);
    z-index: 0;
}
.hero > * {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto;
}
.hero-sm {
    padding: 2.5rem 2rem;
}
.hero-sm h1 {
    font-size: 2rem;
}

/* ── Sections ── */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}
.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* ── Why Card (wide) ── */
.why-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid var(--border);
}
.why-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.why-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.why-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.why-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
}
.why-list li:last-child {
    border-bottom: none;
}
.why-list li strong {
    color: var(--navy);
}


/* ── Catalog Image Cards ── */
.catalog-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.catalog-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--border);
}
.catalog-card:hover {
    box-shadow: 0 12px 32px rgba(23, 72, 156, 0.2);
}
.catalog-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.3s ease;
}
.catalog-card:hover .catalog-card-img {
    transform: scale(1.05);
}
.catalog-card-overlay {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 140px;
    justify-content: flex-end;
}
.catalog-card-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 0.25rem;
}
.catalog-card-title {
    font-size: 1.35rem;
    font-weight: 700;
}
.catalog-card-desc {
    font-size: 0.875rem;
    opacity: 0.85;
}
.catalog-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: rgba(255,255,255,0.15);
    padding: 0.45rem 1rem;
    border-radius: 0.5rem;
    width: fit-content;
    transition: background 0.2s;
}
.catalog-card:hover .catalog-card-action {
    background: var(--red);
}

/* ── About Page ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}
.about-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}
.about-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* ── Feature / Info Blocks ── */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.feature h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ── Contact Grid ── */
.contact-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
}
.contact-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}
.contact-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.contact-card a {
    color: var(--navy);
    font-weight: 500;
    transition: color 0.2s;
}
.contact-card a:hover {
    color: var(--red);
}

/* Contact form */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(23, 72, 156, 0.1);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--navy);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.btn:hover {
    background: var(--red);
}

/* Map embed */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 2rem;
}
.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* ── Overlay (CSS-only with :target) ── */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.overlay:target {
    opacity: 1;
    pointer-events: auto;
}
.overlay-content {
    width: 92vw;
    height: 90vh;
    max-width: 1400px;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.overlay:target .overlay-content {
    transform: scale(1);
}
.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--navy);
    color: white;
}
.overlay-title {
    font-weight: 600;
    font-size: 1rem;
}
.overlay-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
    transition: background 0.2s;
}
.overlay-close:hover {
    background: var(--red);
}
.overlay iframe {
    flex: 1;
    width: 100%;
    border: none;
}

/* ── Banner ── */
.banner {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    max-width: calc(1200px - 3rem);
    margin: 0 auto 2rem;
    width: calc(100% - 3rem);
}
.banner img {
    height: 28px;
    width: auto;
}
.banner p {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.banner a {
    color: var(--navy);
    font-weight: 600;
}
.banner a:hover {
    color: var(--red);
}

/* ── Footer ── */
.footer {
    margin-top: auto;
    background: #0c1f3f;
    color: var(--text);
    padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
    max-width: calc(1200px - 3rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}
.footer h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.footer p, .footer a {
    font-size: 0.875rem;
    color: white;
    line-height: 1.8;
}
.footer a:hover {
    color: white;
}
.footer-nav {
    list-style: none;
}
.footer-nav li { margin-bottom: 0.4rem; }
.footer-bottom {
    max-width: calc(1200px - 3rem);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}
.footer-bottom a {
    margin-left: 1rem;
}
.footer .logo-footer img {
    height: 36px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        gap: 0.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .nav-links a {
        padding: 0.6rem 0;
        border-bottom: none;
    }
        .hero { padding: 2rem 1.25rem; margin: 1rem auto 0; width: calc(100% - 2rem); }
    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: 0.95rem; }
        .catalog-cards { grid-template-columns: 1fr; gap: 1rem; }
    .catalog-card { min-height: 240px; }
    .features { grid-template-columns: 1fr; gap: 1rem; }
    .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
            .section { padding: 2rem 1rem; }
    .section-title { font-size: 1.25rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .footer-bottom a { margin-left: 0; }
    .overlay-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    .banner {
        flex-direction: column;
        text-align: center;
        width: calc(100% - 2rem);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    }
