/* /css/components.css */
/* =========================================================
   Start of Shared Component Styles
   ========================================================= */

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #080808;
    --bg-soft: #111111;
    --panel: #161616;
    --panel-2: #1d1d1d;
    --paper: #f2f1ec;
    --paper-2: #e4e2db;
    --text: #f7f6f2;
    --muted: rgba(247, 246, 242, 0.74);
    --muted-2: rgba(247, 246, 242, 0.56);
    --ink: #111111;
    --ink-soft: rgba(17, 17, 17, 0.72);
    --line: rgba(255, 255, 255, 0.1);
    --line-dark: rgba(17, 17, 17, 0.12);
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 34px;
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    --container: 1240px;
    --header-height: 86px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 18%),
        linear-gradient(180deg, #060606 0%, #101010 100%);
    color: var(--text);
    line-height: 1.6;
}

body.nav-is-open {
    overflow: hidden;
}

::selection {
    background: rgba(255, 255, 255, 0.9);
    color: #101010;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

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

button {
    border: 0;
    background: none;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 200;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    color: #101010;
}

.skip-link:focus {
    top: 1rem;
}

:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(8, 8, 8, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-shell {
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img,
.footer-logo {
    width: clamp(172px, 17vw, 235px);
    height: auto;
}

.nav-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
}

.nav-link,
.nav-mobile-link {
    --magnetic-x: 0px;
    --magnetic-y: 0px;
    --hover-raise: 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 0.95rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-mobile-link:hover,
.nav-mobile-link:focus-visible,
.nav-link.is-current,
.nav-mobile-link.is-current {
    background: var(--paper);
    color: var(--ink);
    transform: translateY(-2px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.nav-phone {
    padding: 0.72rem 0.95rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.22s ease;
}

.nav-phone:hover,
.nav-phone:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    transform: translateY(-2px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 50px;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover,
.btn:focus-visible,
.nav-link:hover,
.nav-link:focus-visible,
.nav-mobile-link:hover,
.nav-mobile-link:focus-visible {
    transform: translateY(-2px);
}

.btn-solid {
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 14px 30px rgba(255, 255, 255, 0.09);
}

.btn-solid:hover,
.btn-solid:focus-visible {
    background: #ffffff;
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost--dark {
    color: var(--ink);
    border-color: rgba(17, 17, 17, 0.18);
    background: rgba(17, 17, 17, 0.02);
}

.btn-ghost--dark:hover,
.btn-ghost--dark:focus-visible {
    background: rgba(17, 17, 17, 0.08);
    border-color: rgba(17, 17, 17, 0.24);
}

.btn-full,
.btn-nav {
    width: auto;
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #ffffff;
}

.nav-mobile {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.96);
}

.nav-mobile.is-open {
    display: block;
}

.nav-mobile-inner {
    display: grid;
    gap: 0.65rem;
    padding: 1rem 0 1.25rem;
}

.nav-mobile-actions {
    display: grid;
    gap: 0.75rem;
    padding-top: 0.7rem;
}

.site-footer {
    position: relative;
    padding: 2.5rem 0 2.25rem;
    background: linear-gradient(180deg, #0b0b0b 0%, #070707 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-cta-band {
    display: grid;
    grid-template-columns: 1.3fr auto;
    gap: 1.4rem;
    align-items: center;
    padding: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
}

.footer-cta-band h2 {
    margin: 0.4rem 0 0;
    font-size: clamp(1.5rem, 2.6vw, 2.35rem);
    line-height: 1.1;
}

.footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.8rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 0.8fr 1fr;
    gap: 1.5rem;
}

.footer-column {
    padding-top: 0.5rem;
}

.footer-copy,
.footer-note,
.footer-links a,
.footer-bottom {
    color: var(--muted);
}

.footer-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--text);
}

.footer-links {
    display: grid;
    gap: 0.7rem;
}

.footer-links a {
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #ffffff;
}

.footer-brand-column {
    padding-right: 1.4rem;
}

.footer-logo-link {
    display: inline-flex;
    margin-bottom: 1rem;
}

.footer-copy {
    margin: 0 0 0.9rem;
}

.footer-note {
    margin: 0;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    justify-content: space-between;
}

.footer-credit {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.dev-credit {
    color: #ffffff;
    transition: color 0.2s ease;
}

.dev-credit:hover,
.dev-credit:focus-visible {
    color: #ffcc00;
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 120;
}

.cookie-banner__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 900px;
    margin-inline: auto;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(14, 14, 14, 0.96);
    box-shadow: var(--shadow);
}

.cookie-banner__content strong {
    display: block;
    margin-bottom: 0.15rem;
}

.cookie-banner__content span {
    color: var(--muted);
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
}

.cookie-banner__link {
    color: #ffffff;
    text-decoration: underline;
}

.btn-small {
    min-height: 42px;
    padding-inline: 1rem;
}

@media (max-width: 1100px) {
    .nav-phone,
    .nav-desktop,
    .btn-nav {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

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

    .footer-brand-column {
        padding-right: 0;
    }
}

@media (max-width: 820px) {
    .footer-cta-band,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-cta-actions {
        justify-content: flex-start;
    }

    .cookie-banner__content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 1.25rem), var(--container));
    }

    .site-header {
        backdrop-filter: blur(12px);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner {
        left: 0.625rem;
        right: 0.625rem;
        bottom: 0.625rem;
    }
}

/* =========================================================
   End of Shared Component Styles
   ========================================================= */
