/* layout.css — public site header, footer, shared */

:root {
    --utl-navy: #0f2540;
    --utl-primary: #1a3a5c;
    --utl-red: #c0392b;
    --utl-blue: #2980b9;
    --utl-text: #2d3748;
    --utl-muted: #718096;
    --utl-line: #e6edf4;
    --utl-bg: #f5f7fa;
    --header-h: 78px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    color: var(--utl-text);
    background: #fff;
    line-height: 1.6;
}

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

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

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-topbar {
    background: var(--utl-navy);
    color: #fff;
    font-size: .8rem;
}

.site-topbar-inner {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.site-topbar a { opacity: .9; }
.site-topbar a:hover { opacity: 1; color: #fff; }
.site-topbar i { margin-right: 6px; color: var(--utl-red); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--utl-line);
}

.site-header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 54px;        /* hard cap — never taller than header */
    overflow: hidden;
    flex-shrink: 0;
}

.site-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--utl-primary);
    color: #fff;
    font-weight: 800;
    font-size: .78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .04em;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-logo-text strong {
    font-size: .95rem;
    color: var(--utl-navy);
}

.site-logo-text small {
    font-size: .68rem;
    color: var(--utl-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Uploaded logo image — strictly contained inside the header */
.site-logo-img {
    display: block;
    height: 44px;          /* fixed height — matches header proportion */
    width: auto;           /* maintain natural aspect ratio */
    max-width: 180px;      /* safety cap on very wide logos */
    object-fit: contain;
    object-position: left center;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--utl-line);
    background: #fff;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--utl-navy);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav > a,
.nav-drop > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--utl-primary);
    border-radius: 8px;
}

.site-nav > a:hover,
.nav-drop > a:hover,
.site-nav > a.active {
    color: var(--utl-red);
}

.btn-nav-cta {
    background: var(--utl-red) !important;
    color: #fff !important;
    margin-left: 8px;
}

.nav-drop { position: relative; }

.nav-drop-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 560px;
    background: #fff;
    border: 1px solid var(--utl-line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 37, 64, .12);
    padding: 18px;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
    display: grid;
}

.nav-drop-group span {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--utl-blue);
    margin-bottom: 6px;
}

.nav-drop-group a {
    display: block;
    padding: 5px 0;
    font-size: .85rem;
    color: var(--utl-text);
}

.nav-drop-group a:hover { color: var(--utl-red); }

.site-footer {
    background: var(--utl-navy);
    color: #d5deea;
    padding-top: 48px;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
}

.footer-brand {
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.site-footer h4 {
    color: #fff;
    margin: 0 0 12px;
    font-size: .9rem;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li { margin-bottom: 8px; font-size: .88rem; }
.site-footer a:hover { color: #fff; }

.footer-copy {
    border-top: 1px solid rgba(255,255,255,.1);
    text-align: center;
    padding: 16px;
    font-size: .78rem;
    color: #8aa0b8;
}

.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
    z-index: 40;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding: 11px 20px;
    font-weight: 600;
    font-size: .9rem;
    border: 0;
    cursor: pointer;
}

.btn-red { background: var(--utl-red); color: #fff; }
.btn-navy { background: var(--utl-primary); color: #fff; }
.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.45);
}

.section {
    padding: 64px 0;
}

.section-head {
    margin-bottom: 28px;
}

.section-head h2 {
    margin: 0 0 6px;
    color: var(--utl-navy);
    font-size: 1.7rem;
}

.section-head p {
    margin: 0;
    color: var(--utl-muted);
}

@media (max-width: 991px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--utl-line);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 20px;
        gap: 4px;
    }

    .site-nav.open { display: flex; }

    .nav-drop-menu {
        position: static;
        min-width: 0;
        display: none;
        grid-template-columns: 1fr;
        box-shadow: none;
        border: 0;
        padding: 8px 8px 0 12px;
    }

    .nav-drop.open .nav-drop-menu { display: grid; }

    .btn-nav-cta { margin: 8px 0 0; justify-content: center; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575px) {
    .site-topbar-inner { font-size: .72rem; }
    .site-logo-text small { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 44px 0; }
}
