/* ============================================================
   SkapaCraft - Shared Stylesheet
   "Aura" direction: light theme, green primary (#10B981),
   violet secondary (#8B5CF6) used sparingly, glass surfaces,
   Inter throughout (self-hosted, see @font-face below).
   ============================================================ */

@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');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/inter-v18-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/inter-v18-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/inter-v18-latin-800.woff2') format('woff2');
}

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

:root {
    --bg:         #FFFFFF;
    --bg-2:       #F3F4F6;
    --surface:    rgba(255, 255, 255, .7);
    --primary:    #0D9668;
    --primary-dim:rgba(13, 150, 104, .1);
    --secondary:  #7C3AED;
    --secondary-dim: rgba(124, 58, 237, .12);
    --ink:        #1F2937;
    --white:      #FFFFFF;
    --muted:      #52606D;
    --muted-2:    #6B7280;
    --border:     #E2E5EA;
    --border-2:   #CBD2DA;
    --red:        #EF4444;

    /* Dark "bookend" surfaces: hero + closing CTAs only, not the whole site */
    --hero-bg:        #0A0E17;
    --hero-bg-2:      #0F1524;
    --hero-ink:       #F5F7FA;
    --hero-muted:     #8B93A7;
    --hero-border:    rgba(255, 255, 255, .09);
    --hero-primary:   #34D399;
    --hero-primary-dim: rgba(52, 211, 153, .12);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 4px;
    --radius-lg: 14px;
    --radius-pill: 9999px;
    --t: 150ms ease;
    --max: 1080px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-weight: 400;
    -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(255, 255, 255, .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    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: 30px; height: auto; }

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

.nav-link {
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .01em;
    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(--primary); background: var(--bg-2); }
.nav-link[aria-current="page"] { color: var(--primary); background: var(--primary-dim); }

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

/* -- MOBILE NAV TOGGLE -- */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle:focus-visible { outline: 2px solid var(--primary); 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: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(16,24,40,.08);
        display: none;
    }
    .header-nav.is-open { display: flex; z-index: 101; }
    .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;
    font-family: var(--font);
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn svg { flex-shrink: 0; }

/* Primary CTA: solid black, per the Aura button-primary spec */
.btn-copper,
.btn-primary {
    background: #000;
    color: #fff;
    font-weight: 500;
}
.btn-copper:hover,
.btn-primary:hover { background: #171717; transform: translateY(-1px); }
.btn-copper:active,
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    color: var(--muted);
    border-color: var(--border-2);
}
.btn-outline:hover { color: var(--primary); background: var(--bg-2); border-color: var(--primary); }

.btn-ghost {
    background: var(--bg-2);
    color: var(--ink);
    border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: var(--border); border-color: var(--primary); color: var(--primary); }

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

/* Buttons for use on the dark hero/CTA surfaces */
.btn-invert { background: var(--hero-ink); color: var(--hero-bg); font-weight: 600; }
.btn-invert:hover { background: #fff; transform: translateY(-1px); }
.btn-invert:active { transform: translateY(0); }
.btn-outline-dark { background: transparent; color: var(--hero-ink); border-color: var(--hero-border); }
.btn-outline-dark:hover { background: rgba(255,255,255,.06); color: var(--hero-primary); border-color: var(--hero-primary); }

/* -- DARK CTA (bookend surface, used sparingly: hero + closing sections) -- */
.dark-cta { background: var(--hero-bg); color: var(--hero-ink); padding: 80px 0; text-align: center; }
.dark-cta h2 { color: var(--hero-ink); }
.dark-cta p { color: var(--hero-muted); }

/* -- CARDS (glass) -- */
.card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    transition: transform var(--t), box-shadow var(--t);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(16,24,40,.08);
}
.card.accent-secondary .card-icon { background: var(--secondary-dim); color: var(--secondary); }

.card-icon {
    width: 38px; height: 38px;
    border-radius: 6px;
    background: var(--primary-dim);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 19px; height: 19px; }

/* -- FOOTER (dark, matches the hero/CTA bookend surfaces) -- */
footer.site-footer {
    background: var(--hero-bg);
    color: var(--hero-ink);
    padding: 56px 0 36px;
}

.footer-logo-lockup { display: flex; align-items: center; gap: .6rem; }
.footer-logo-lockup img { width: 26px; height: 26px; display: block; }
.footer-logo-lockup span { font-weight: 600; font-size: 1rem; color: var(--hero-ink); letter-spacing: -.01em; }

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

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

.footer-col h3 {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--hero-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(--hero-muted);
    text-decoration: none;
    transition: color var(--t);
}
.footer-col ul a:hover { color: var(--hero-primary); }

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

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

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

.footer-links a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--hero-muted);
    text-decoration: none;
    font-size: .8rem;
    transition: color var(--t);
}
.footer-links a:hover { color: var(--hero-primary); }
.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;
    }
}
