/* ===== Umbrosa Automobiles — 2026 theme ===== */
:root {
  --bg: #07090f;
  --bg-2: #0d111b;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.1);
  --text: #eef1f7;
  --muted: #9aa3b5;
  --accent: #ff7a18;
  --accent-2: #ffb347;
  --accent-grad: linear-gradient(135deg, #ff7a18, #ffb347);
  --good: #22c55e;
  --radius: 20px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

[data-theme="light"] {
  --bg: #f5f6fa;
  --bg-2: #ffffff;
  --surface: rgba(10, 15, 30, 0.04);
  --surface-2: rgba(10, 15, 30, 0.08);
  --border: rgba(10, 15, 30, 0.12);
  --text: #0e1220;
  --muted: #5a6478;
  --shadow: 0 20px 50px rgba(20, 30, 60, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% -5%, rgba(255, 122, 24, 0.18), transparent 70%),
    radial-gradient(700px 500px at -10% 30%, rgba(80, 90, 255, 0.14), transparent 70%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
.container { width: min(1240px, 92%); margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: var(--accent-grad); color: #1a0e00; box-shadow: 0 8px 28px rgba(255, 122, 24, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 122, 24, 0.5); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ===== Top bar + Header ===== */
.topbar { background: var(--accent-grad); color: #1a0e00; font-size: 0.82rem; font-weight: 600; text-align: center; padding: 8px 12px; }
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; letter-spacing: 0.04em; }
.logo img { width: 38px; height: 38px; }
.logo span { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 6px; margin-left: 20px; }
.nav-links a { padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-box { position: relative; }
.search-box input {
  width: 240px; padding: 10px 16px 10px 40px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 0.9rem; outline: none; transition: 0.2s;
}
.search-box input:focus { border-color: var(--accent); width: 280px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  display: grid; place-items: center; font-size: 1.1rem; transition: 0.2s;
}
.icon-btn:hover { background: var(--surface-2); }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--accent-grad); color: #1a0e00; font-size: 0.72rem; font-weight: 800; display: grid; place-items: center;
}
.menu-toggle { display: none; }

/* ===== Hero ===== */
.hero { padding: 70px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 0.82rem; color: var(--muted); margin-bottom: 20px;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 22px 0 30px; color: var(--muted); font-size: 1.1rem; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.stats { display: flex; gap: 36px; margin-top: 44px; }
.stats b { display: block; font-size: 1.7rem; font-weight: 800; }
.stats span { color: var(--muted); font-size: 0.85rem; }
.hero-visual {
  position: relative; border-radius: 32px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow); aspect-ratio: 12 / 7; background: var(--bg-2);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; animation: float 7s ease-in-out infinite; }
.hero-tag {
  position: absolute; left: 18px; bottom: 18px; padding: 12px 18px; border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--border);
}
.hero-tag small { color: var(--muted); display: block; font-size: 0.75rem; }
.hero-tag b { font-size: 1.1rem; }
@keyframes float { 0%, 100% { transform: scale(1.02) translateY(0); } 50% { transform: scale(1.05) translateY(-8px); } }

/* ===== Marquee ===== */
.marquee { margin: 40px 0 10px; border-block: 1px solid var(--border); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: scroll 28s linear infinite; color: var(--muted); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.85rem; }
.marquee-track span::after { content: "✦"; margin-left: 60px; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
section { padding: 64px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; gap: 20px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.1; }
.sec-head p { color: var(--muted); margin-top: 8px; }
.link-arrow { color: var(--accent-2); font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

/* Bento categories */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 18px; }
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--bg-2); transition: transform 0.3s, border-color 0.3s;
}
.tile:hover { transform: translateY(-5px); border-color: var(--accent); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.tile:hover img { transform: scale(1.07); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 60%); }
.tile div { position: absolute; z-index: 2; left: 20px; bottom: 18px; color: #fff; }
.tile h3 { font-size: 1.25rem; }
.tile small { opacity: 0.8; }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile.wide { grid-column: span 2; }

/* ===== Product cards ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); cursor: pointer; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.06); }
.badge { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: var(--accent-grad); color: #1a0e00; }
.badge.new { background: #22c55e; color: #052e14; }
.badge.ev { background: #14b8a6; color: #032b27; }
.wish {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.45); color: #fff; backdrop-filter: blur(8px); font-size: 1rem; transition: 0.2s;
}
.wish:hover, .wish.on { background: #ef4444; transform: scale(1.1); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-label { font-size: 0.74rem; color: var(--accent-2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.card h3 { font-size: 1.08rem; line-height: 1.3; }
.rating { color: #fbbf24; font-size: 0.85rem; }
.rating span { color: var(--muted); margin-left: 6px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.specs span { font-size: 0.74rem; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; }
.price b { font-size: 1.25rem; }
.price s { color: var(--muted); font-size: 0.85rem; margin-left: 6px; }
.add-btn { padding: 10px 16px; border-radius: 12px; background: var(--accent-grad); color: #1a0e00; font-weight: 700; font-size: 0.85rem; transition: 0.2s; }
.add-btn:hover { transform: scale(1.06); }

/* Perks */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.perk { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.perk .ico { font-size: 1.7rem; margin-bottom: 12px; }
.perk h4 { margin-bottom: 4px; }
.perk p { color: var(--muted); font-size: 0.9rem; }

/* Banner */
.banner {
  border-radius: 32px; padding: 56px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #1a1030, #2b1405 60%, #7a3a0a); border: 1px solid var(--border); color: #fff;
}
.banner h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); max-width: 560px; line-height: 1.1; }
.banner p { margin: 14px 0 26px; opacity: 0.8; max-width: 480px; }
.banner img { position: absolute; right: -40px; bottom: -30px; width: 52%; opacity: 0.95; border-radius: 24px; }

/* Newsletter */
.news { text-align: center; }
.news form { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.news input { padding: 14px 20px; border-radius: 999px; width: min(380px, 100%); background: var(--surface); border: 1px solid var(--border); color: var(--text); outline: none; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer h5 { margin-bottom: 14px; font-size: 0.95rem; }
.footer li { list-style: none; margin-bottom: 9px; color: var(--muted); font-size: 0.9rem; }
.footer li a:hover { color: var(--accent-2); }
.footer p { color: var(--muted); font-size: 0.9rem; margin-top: 12px; max-width: 320px; }
.copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.copy a:hover { color: var(--accent-2); }

/* ===== Information pages ===== */
.policy-page { padding-bottom: 72px; }
.policy-page .page-hero { padding-bottom: 28px; }
.policy-note { padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-radius: 16px; }
.policy-updated { color: var(--muted); font-size: 0.85rem; margin: 18px 0 8px; }
.policy-section { padding: 24px 0; border-bottom: 1px solid var(--border); max-width: 850px; }
.policy-section h2 { font-size: 1.25rem; margin-bottom: 8px; }
.policy-section p, .contact-card > p { color: var(--muted); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr); gap: 24px; align-items: start; }
.contact-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.contact-card h2 { font-size: 1.4rem; margin-bottom: 8px; }
.contact-form { display: grid; gap: 10px; margin-top: 22px; }
.contact-form label { margin-top: 6px; font-size: 0.9rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font: inherit; outline: none; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-content: center; margin-top: 10px; }
.form-hint { color: var(--muted); font-size: 0.82rem; }
.contact-aside { display: grid; gap: 16px; }
.contact-detail { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--border); }
.contact-detail span { color: var(--muted); font-size: 0.82rem; }
.contact-detail a { color: var(--accent-2); font-weight: 600; }

/* ===== Products page ===== */
.page-hero { padding: 54px 0 10px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.02em; }
.page-hero p { color: var(--muted); margin-top: 8px; }
.crumbs { color: var(--muted); font-size: 0.85rem; margin-bottom: 10px; }
.shop { display: grid; grid-template-columns: 270px 1fr; gap: 30px; padding-top: 26px; }
.filters { position: sticky; top: 96px; align-self: start; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.filters h4 { margin: 18px 0 10px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.filters h4:first-child { margin-top: 0; }
.chip-list { display: flex; flex-direction: column; gap: 6px; }
.chip {
  text-align: left; padding: 10px 14px; border-radius: 12px; background: transparent; color: var(--text);
  border: 1px solid transparent; font-size: 0.92rem; display: flex; justify-content: space-between; transition: 0.2s;
}
.chip:hover { background: var(--surface-2); }
.chip.active { background: var(--accent-grad); color: #1a0e00; font-weight: 700; }
.chip small { opacity: 0.7; }
.range { width: 100%; accent-color: var(--accent); }
.range-val { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.toolbar select {
  padding: 10px 16px; border-radius: 12px; background: var(--surface); color: var(--text); border: 1px solid var(--border); outline: none;
}
.toolbar select option { background: var(--bg-2); color: var(--text); }
.count { color: var(--muted); }
.empty { text-align: center; padding: 70px 0; color: var(--muted); grid-column: 1 / -1; }
.filter-toggle { display: none; }

/* ===== Drawer / Modal ===== */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: 0.3s; z-index: 80; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(430px, 100%); z-index: 90; background: var(--bg-2);
  border-left: 1px solid var(--border); transform: translateX(105%); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px; border-bottom: 1px solid var(--border); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.cart-item img { width: 78px; height: 62px; object-fit: cover; border-radius: 10px; }
.cart-item h5 { font-size: 0.92rem; line-height: 1.25; }
.cart-item small { color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); color: var(--text); }
.rm { background: none; color: var(--muted); font-size: 1.1rem; }
.rm:hover { color: #ef4444; }
.drawer-foot { padding: 20px 22px; border-top: 1px solid var(--border); }
.total-row { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
.drawer-foot .btn { width: 100%; justify-content: center; }
.cart-empty { text-align: center; color: var(--muted); margin-top: 60px; }

.modal {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: 0.3s;
}
.modal.show { opacity: 1; pointer-events: auto; }
.modal-box {
  width: min(900px, 100%); max-height: 92vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); position: relative;
}
.modal-box img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.modal-info { padding: 34px; display: flex; flex-direction: column; gap: 12px; }
.modal-info h2 { font-size: 1.7rem; line-height: 1.15; }
.modal-info p { color: var(--muted); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); color: var(--text); z-index: 3; font-size: 1.1rem; }

/* Toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 120px); z-index: 120; padding: 14px 22px; border-radius: 14px;
  background: var(--accent-grad); color: #1a0e00; font-weight: 700; box-shadow: var(--shadow); transition: transform 0.35s;
}
.toast.show { transform: translate(-50%, 0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s, transform 0.7s; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 88%); z-index: 90; border-radius: 0; background: var(--bg-2); transform: translateX(-105%); transition: 0.35s; overflow-y: auto; }
  .filters.open { transform: none; }
  .filter-toggle { display: inline-flex; }
  .modal-box { grid-template-columns: 1fr; }
  .banner img { display: none; }
}
@media (max-width: 760px) {
  .nav-links { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); padding: 14px; margin: 0; border-bottom: 1px solid var(--border); display: none; }
  .nav-links.open { display: flex; }
  .menu-toggle { display: grid; }
  .search-box { display: none; }
  .banner { padding: 34px 26px; }
  .stats { gap: 22px; }
  .bento { grid-auto-rows: 170px; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .perks { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
