/* ============================================================
   SkapaCraft - Shared Stylesheet
   Design tokens shared with the landing page (index.html):
   Inter font, navy background, copper accent.
   ============================================================ */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/inter-v18-latin-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/inter-v18-latin-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/inter-v18-latin-500.woff2') format('woff2');
}

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

:root {
    --bg:        #0f172a;
    --bg-2:      #131f3a;
    --surface:   #16213f;
    --copper:    #67DAB8;
    --copper-dim:rgba(103, 218, 184, .10);
    --white:     #FFFFFF;
    --muted:     #9AA3B5;
    --muted-2:   #707070;
    --border:    #232f4d;
    --border-2:  #2b3a5e;
    --red:       #EF4444;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 10px;
    --radius-lg: 18px;
    --t: 200ms ease;
    --max: 1080px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--white);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap;
}

/* -- HEADER -- */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, .85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo img { max-width: 34px; height: auto; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    font-size: .8125rem;
    font-weight: 400;
    letter-spacing: .02em;
    color: var(--muted);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: color var(--t), background var(--t);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.04); }
.nav-link[aria-current="page"] { color: var(--copper); background: var(--copper-dim); }

.lang-switch { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.lang-switch a {
    font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 6px;
}
.lang-switch a[aria-current="true"] { color: var(--copper); }
.lang-switch a:hover { color: var(--white); }

/* -- MOBILE NAV TOGGLE -- */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    background: transparent;
    color: var(--white);
    cursor: pointer;
}
.nav-toggle:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; }
    .header-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 32px 20px;
        background: rgba(15, 23, 42, .97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(0,0,0,.3);
        display: none;
    }
    .header-nav.is-open { display: flex; }
    .header-nav .nav-link { padding: 11px 12px; font-size: .9375rem; }
    .header-nav .lang-switch { margin: 6px 0 0 12px; }
}

/* -- BUTTONS -- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-size: .8125rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--t);
    border: 1px solid transparent;
    outline: none;
    white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.btn svg { flex-shrink: 0; }

.btn-copper {
    background: var(--copper);
    color: var(--bg);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,.2), 0 4px 16px rgba(103,218,184,.18);
}
.btn-copper:hover { background: #7de6c6; transform: translateY(-1px); }
.btn-copper:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    color: var(--muted);
    border-color: var(--border-2);
}
.btn-outline:hover { color: var(--white); background: rgba(255,255,255,.04); }

.btn-ghost {
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.75);
    border: 1px solid rgba(255,255,255,.12);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }

.btn-lg { padding: 13px 28px; font-size: .9375rem; }

/* -- FOOTER -- */
footer.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 56px 0 36px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}
@media (max-width: 680px) { .footer-top { grid-template-columns: 1fr; gap: 36px; } }

.footer-brand p {
    font-size: .8125rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 260px;
    margin-top: 14px;
}

.footer-col h3 {
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul a {
    font-size: .8125rem;
    color: var(--muted);
    text-decoration: none;
    transition: color var(--t);
}
.footer-col ul a:hover { color: var(--copper); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: .775rem;
    color: var(--muted-2);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    text-decoration: none;
    font-size: .8rem;
    transition: color var(--t);
}
.footer-links a:hover { color: var(--copper); }
.footer-links svg { width: 14px; height: 14px; }

/* -- REDUCED MOTION -- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
