/* ==================================
   1. HEADER
   ================================== */

.header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999;

    background-color: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 1px 0 var(--color-border);

    transition: transform 220ms ease, box-shadow 220ms ease;
    will-change: transform;
}

.header.is-hidden {
    transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
    .header {
        transition: none;
    }
}

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

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-weight: var(--fw-bold);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: var(--color-text) !important;
    text-decoration: none !important;
}

.logo .logo-line-2 {
    color: var(--color-primary);
}

.logo .logo-mark {
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--color-primary);
    margin-bottom: 4px;
    border-radius: 2px;
}

.nav-list {
    display: flex;
    justify-content: end;
    align-items: center;
    list-style-type: none;
    gap: var(--space-xl);
    font-size: var(--fs-small);
    margin: 0;
    padding: 0;
}

.nav-list a {
    transition: 0.2s all;
    color: var(--color-text);
    font-weight: var(--fw-regular);
    text-decoration: none;
}

.nav-list a:hover {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: var(--space-s);
}

.nav-toggle .bar {
    display: block;
    width: 26px;
    height: 2px;
    margin: 6px 0;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-active .bar:nth-child(2) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active .bar:nth-child(3) {
    opacity: 0;
}

.nav-toggle.is-active .bar:nth-child(4) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        border-bottom: 1px solid var(--color-border);

        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;

        transition: transform 200ms ease, opacity 200ms ease;
    }

    .nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-l);
        padding: var(--space-xl);
    }
}

/* ==================================
   2. MOBILE STICKY CTA
   ================================== */

.mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    display: none;
    padding: var(--space-s) var(--space-m);
    padding-bottom: calc(var(--space-s) + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-top: 1px solid var(--color-border);
}

.mobile-sticky-cta a {
    display: block;
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: block;
    }

    body {
        padding-bottom: 74px;
    }
}

/* ==================================
   3. FOOTER
   ================================== */

footer {
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.62);
}

.footer-cta {
    background: var(--color-bg);
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}

.footer-body {
    background: var(--gradient-1);
    padding-top: var(--space-section);
    padding-bottom: var(--space-l);
}

.footer-address,
.footer-nav p.footer-address {
    font-size: var(--fs-small);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
    align-items: start;
    gap: var(--space-xxl);
}

@media (max-width: 1024px) {
    .footer-inner { grid-template-columns: repeat(3, 1fr); }
    .footer-info { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .footer-inner { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
    .footer-cta { padding-top: var(--space-xxl); padding-bottom: var(--space-xxl); }
}

.footer .footer-copyright {
    font-size: var(--fs-xs);
    margin: 2rem 0 1rem 0;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: start;
    align-items: start;
    flex-direction: column;
    color: #ffffff;
    gap: var(--space-xxs);
}

.footer-nav h4 {
    margin-top: 0;
    font-size: var(--fs-body);
    color: #ffffff;
}

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

.footer-nav ul li {
    margin: 0 !important;
}

.footer-nav a {
    font-size: var(--fs-small) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-nav a:hover {
    color: #ffffff !important;
}

.copyright-container {
    margin-top: var(--space-xxl);
}

.copyright-container hr {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-nav p {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.55);
}

.footer-logo {
    color: #ffffff;
    font-weight: var(--fw-bold);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.footer-logo .logo-mark {
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--color-secondary);
    margin-bottom: 4px;
    border-radius: 2px;
}

.footer-info {
    max-width: 300px;
}
