/*
Theme Name: Brefect Custom
Theme URI: https://brefect.com/
Author: Brefect
Author URI: https://brefect.com/
Description: Custom, performance-focused WordPress theme foundation for Brefect.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: brefect
License: GPL-2.0-or-later
*/

:root {
    --brefect-bg: #070a12;
    --brefect-surface: #0d1220;
    --brefect-text: #f7f9fc;
    --brefect-muted: #a8b0c0;
    --brefect-accent: #4f7cff;
    --brefect-border: rgba(255,255,255,.10);
    --brefect-container: 1240px;
    --brefect-radius: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--brefect-bg);
    color: var(--brefect-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

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

.brefect-container {
    width: min(calc(100% - 40px), var(--brefect-container));
    margin-inline: auto;
}

.brefect-skip-link {
    position: fixed;
    left: 16px;
    top: -100px;
    z-index: 99999;
    padding: 10px 14px;
    background: #fff;
    color: #000;
}

.brefect-skip-link:focus {
    top: 16px;
}

.brefect-header {
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid var(--brefect-border);
}

.brefect-header__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brefect-logo {
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.brefect-nav ul {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.brefect-nav a {
    text-decoration: none;
    color: var(--brefect-muted);
}

.brefect-nav a:hover,
.brefect-nav a:focus-visible {
    color: var(--brefect-text);
}

.brefect-main {
    min-height: 60vh;
}

.brefect-hero {
    padding: clamp(90px, 13vw, 180px) 0;
}

.brefect-eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--brefect-accent);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.brefect-hero h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(3.2rem, 8vw, 7.5rem);
    line-height: .94;
    letter-spacing: -.065em;
}

.brefect-hero p {
    max-width: 720px;
    margin: 28px 0 0;
    color: var(--brefect-muted);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.brefect-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 32px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--brefect-accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, opacity .2s ease;
}

.brefect-button:hover {
    transform: translateY(-2px);
    opacity: .92;
}

.brefect-footer {
    padding: 40px 0;
    border-top: 1px solid var(--brefect-border);
    color: var(--brefect-muted);
}

@media (max-width: 800px) {
    .brefect-nav {
        display: none;
    }

    .brefect-container {
        width: min(calc(100% - 28px), var(--brefect-container));
    }

    .brefect-hero h1 {
        font-size: clamp(2.9rem, 15vw, 5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
