/*
Theme Name: DreamBMW Ace v1
Description: DreamBMW M-Performance replica theme (header + hero tuned)
Author: Eduard Gabrielyan & Ace
Version: 1.0
*/

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

html, body { height: 100%; }

body {
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #050814;
    color: #f5f7fb;
    line-height: 1.4;
}

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

button, input, select, textarea { font-family: inherit; border-radius: 0 !important; }

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(245,247,251,0.96);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: #050814;
}
.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* LEFT: big logo only */
.site-logo-wrap {
    display: flex;
    align-items: center;
}
.site-logo {
    display: inline-flex;
    align-items: center;
}
.site-logo-img {
    width: 220px;  /* noticeably larger */
    height: auto;
}

/* CENTER: nav */
.main-nav {
    flex: 1;
}
.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.main-nav li a { opacity: .8; }
.main-nav li a:hover { opacity: 1; }

/* RIGHT: FIND + toggle */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-cta {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 0;
    border: 1px solid transparent;
    background: linear-gradient(90deg,#81C4FF,#16588E,#E7222E);
    color: #fff;
}

/* toggle (visual only – always dark for now to keep it simple) */
.theme-toggle {
    width: 36px;
    height: 16px;
    border: 1px solid currentColor;
    background: transparent;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding: 0;
}
.theme-toggle-track {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,#81C4FF,#16588E,#E7222E);
    opacity: .4;
}
.theme-toggle-knob {
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    background: #050814;
    color: #f5f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    transform: translateX(21px); /* fixed to "night" */
}

/* ===========================
   HERO
   =========================== */
.site-main { padding-top: 72px; }

.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #050814;
    color: #fff;
}
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    width: 120%;
    min-height: 100%;
    transform: translate(-50%,-50%);
    object-fit: cover;
    z-index: -2;
    opacity: .9;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,rgba(5,8,20,0.2) 0%,rgba(5,8,20,0.7) 55%,rgba(5,8,20,0.96) 100%);
    z-index: -1;
}

/* gradient bar at bottom edge only */
.hero-swipe {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,#81C4FF,#16588E,#E7222E);
}

.hero-inner { max-width: 640px; margin: 0 auto 32px; }
.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: .9;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hero-title span { display: block; }
.hero-title-main {
    font-size: 72px;
    background: linear-gradient(90deg,#81C4FF,#16588E,#E7222E);
    -webkit-background-clip: text;
    color: transparent;
}
.hero-subtitle { margin-top: 16px; font-size: 13px; opacity: .95; }

/* hero buttons – NO outer frame */
.hero-actions-wrapper { margin-top: 32px; }
.hero-actions {
    display: inline-flex;
    gap: 12px;
}
.btn-primary,
.btn-outline {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 13px 24px;
    border-radius: 0;
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(90deg,#81C4FF,#16588E,#E7222E);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.8);
}

/* Dummy rest so layout doesn't break */
.section { padding: 96px 0; }
.section-engineered { background:#fff; color:#050814; }
