/*
Theme Name: STILUS by XATORI
Theme URI: https://xatori.com
Author: XATORI
Author URI: https://xatori.com
Description: Temă minimalistă premium pentru XATORI - electronics & workspace.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: stilus-xatori
*/

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

:root {
  --primary: #0a0a0a;
  --bg: #f7f7f5;
  --bg-dark: #0a0a0a;
  --neutral-cool: #f0efed;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --white: #ffffff;
  --font-display: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--primary);
  min-height: 100vh;
  transition: background 0.4s, color 0.4s;
  overflow-x: hidden;
}

body.dark-mode {
  background: #0a0a0a;
  color: #f1f5f9;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ==============================
   TYPOGRAPHY
============================== */
.font-display { font-family: var(--font-display); }

/* ==============================
   NAVBAR
============================== */
#xatori-nav {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: auto;
  padding: 0 1rem;
}

.glass-nav {
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.nav-btn {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  padding: 0.25rem;
}
.nav-btn:hover, .nav-btn.active { color: #fff; }
.nav-btn .material-symbols-outlined { font-size: 1.25rem; }

#dark-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s;
}
#dark-toggle:hover { background: rgba(255,255,255,0.2); }
#dark-toggle .material-symbols-outlined { font-size: 1.25rem; }

/* ==============================
   PAGES / SECTIONS
============================== */
.xatori-page { display: none; animation: fadeIn 0.5s ease; }
.xatori-page.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ==============================
   HERO
============================== */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.08);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: 3rem;
}

.neo-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}

body.dark-mode .neo-card {
  background: rgba(20,20,20,0.85);
  border-color: rgba(255,255,255,0.07);
}

.hero-card {
  width: 340px;
  padding: 2rem;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) { .hero-card { width: 400px; } }

.hero-card .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--slate-500);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.hero-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.hero-card .subtitle {
  font-size: 0.875rem;
  color: var(--slate-500);
}

.hero-card .price-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.hero-card .price-block .from {
  font-size: 0.75rem;
  color: var(--slate-400);
  display: block;
}

.hero-card .price-block .amount {
  font-size: 1.25rem;
  font-weight: 700;
}

.neo-button {
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 4px 4px 10px rgba(0,0,0,0.08), -2px -2px 6px rgba(255,255,255,0.9);
  transition: all 0.2s;
}
.neo-button:hover { box-shadow: 2px 2px 6px rgba(0,0,0,0.1), -1px -1px 4px rgba(255,255,255,0.9); transform: scale(0.98); }
body.dark-mode .neo-button { background: linear-gradient(145deg, #1a1a1a, #111); border-color: rgba(255,255,255,0.08); box-shadow: 4px 4px 10px rgba(0,0,0,0.5), -2px -2px 6px rgba(255,255,255,0.03); }

.btn-buy {
  padding: 0.9rem 2rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ==============================
   PRODUCT GRID
============================== */
#product-grid-section {
  padding: 8rem 0;
  background: var(--white);
  transition: background 0.4s;
}
body.dark-mode #product-grid-section { background: #0a0a0a; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-header p {
  color: var(--slate-500);
  max-width: 28rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.explore-btn {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.25rem;
  transition: opacity 0.2s;
}
.explore-btn:hover { opacity: 0.6; }
body.dark-mode .explore-btn { border-color: #fff; color: #fff; }

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  cursor: pointer;
}

.product-card-img {
  background: var(--white);
  aspect-ratio: 4/5;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s;
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
}
body.dark-mode .product-card-img { background: #111; border-color: rgba(255,255,255,0.05); }
.product-card:hover .product-card-img { transform: translateY(-8px); }

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.7s;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.badge-limited, .badge-new {
  position: absolute;
  top: 2rem;
  left: 2rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  z-index: 10;
}
.badge-limited { background: var(--white); color: var(--primary); border: 1px solid rgba(0,0,0,0.08); }
body.dark-mode .badge-limited { background: #1a1a1a; color: #fff; }
.badge-new { background: var(--primary); color: var(--white); }

.product-card-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 0.25rem;
}

.product-card-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-card-info .cat {
  font-size: 0.7rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 0.5rem;
  font-weight: 700;
}

.product-card-info .price {
  font-weight: 700;
  font-size: 1.1rem;
}

.fav-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--slate-400);
  font-size: 1.2rem;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}
.fav-btn:hover { color: #ef4444; }

/* ==============================
   TESTIMONIALS
============================== */
#testimonials {
  padding: 8rem 0;
  background: var(--white);
  transition: background 0.4s;
}
body.dark-mode #testimonials { background: rgba(10,10,10,0.5); }

#testimonials .section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--slate-400);
  text-align: center;
  margin-bottom: 4rem;
}

.testimonials-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 3rem;
  scroll-snap-type: x mandatory;
  cursor: grab;
  scrollbar-width: none;
}
.testimonials-scroll::-webkit-scrollbar { display: none; }
.testimonials-scroll:active { cursor: grabbing; }

.testimonial-card {
  min-width: 320px;
  background: var(--neutral-cool);
  padding: 3rem;
  border-radius: 0.75rem;
  scroll-snap-align: center;
  flex-shrink: 0;
  transition: background 0.4s;
}
@media (min-width: 768px) { .testimonial-card { min-width: 450px; } }
body.dark-mode .testimonial-card { background: #1a1a1a; }

.stars { display: flex; gap: 0.25rem; color: var(--primary); margin-bottom: 2rem; }
body.dark-mode .stars { color: #fff; }
.stars .material-symbols-outlined { font-size: 0.875rem; }

.testimonial-card blockquote {
  font-size: 1.2rem;
  color: #1e293b;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 500;
  font-style: italic;
}
body.dark-mode .testimonial-card blockquote { color: #cbd5e1; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.testimonial-author img { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; }
.testimonial-author .name { font-weight: 700; font-size: 1rem; }
.testimonial-author .role { font-size: 0.65rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; }

/* ==============================
   SHOP PAGE
============================== */
#shop-page {
  padding-top: 8rem;
  padding-bottom: 5rem;
  min-height: 100vh;
  background: var(--white);
  transition: background 0.4s;
}
body.dark-mode #shop-page { background: #0a0a0a; }

.shop-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) { .shop-header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

.shop-header h1 { font-size: 3.5rem; font-weight: 700; letter-spacing: -0.04em; }
.shop-header p { color: var(--slate-500); font-size: 1.1rem; margin-top: 1rem; }

.filter-btns {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: all 0.3s;
  white-space: nowrap;
  color: var(--slate-500);
}
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
body.dark-mode .filter-btn.active { background: #fff; color: #000; }

.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 3rem;
}
@media (min-width: 768px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }

.shop-product-card {
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.shop-product-card-img {
  background: var(--neutral-cool);
  aspect-ratio: 4/5;
  border-radius: 1.5rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.5s;
}
body.dark-mode .shop-product-card-img { background: #1a1a1a; }
.shop-product-card:hover .shop-product-card-img { box-shadow: 0 25px 60px rgba(0,0,0,0.15); }

.shop-product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.7s;
}
.shop-product-card:hover .shop-product-card-img img { transform: scale(1.1); }

.shop-product-card-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 0.5rem;
}

.shop-product-card-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.shop-product-card-info .cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--slate-500);
  margin-top: 0.5rem;
}
.shop-product-card-info .price { font-size: 1.25rem; font-weight: 700; }

.arrow-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: all 0.3s;
}
.shop-product-card:hover .arrow-btn { opacity: 1; transform: translateY(0); }

/* ==============================
   PRODUCT DETAIL
============================== */
#product-detail-page {
  padding-top: 8rem;
  min-height: 100vh;
  background: var(--white);
  transition: background 0.4s;
}
body.dark-mode #product-detail-page { background: #0a0a0a; }

.product-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
body.dark-mode .product-detail-grid { border-color: rgba(255,255,255,0.05); }

@media (min-width: 1024px) {
  .product-detail-grid {
    flex-direction: row;
    gap: 6rem;
    align-items: flex-start;
  }
}

.product-gallery { flex: 3; }

.product-main-img {
  background: var(--neutral-cool);
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  aspect-ratio: 4/3;
}
body.dark-mode .product-main-img { background: #1a1a1a; }
.product-main-img img { width: 100%; height: 100%; object-fit: contain; }

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.thumbnail {
  aspect-ratio: 1;
  background: var(--neutral-cool);
  border-radius: 0.75rem;
  opacity: 0.6;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}
body.dark-mode .thumbnail { background: #1a1a1a; }
.thumbnail:hover, .thumbnail.active { opacity: 1; border-color: rgba(0,0,0,0.15); }
body.dark-mode .thumbnail:hover, body.dark-mode .thumbnail.active { border-color: rgba(255,255,255,0.15); }

.product-info {
  flex: 2;
  position: sticky;
  top: 8rem;
}

.product-info .breadcrumb {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--slate-400);
  margin-bottom: 0.5rem;
}

.product-info h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.product-info .product-price {
  font-size: 1.5rem;
  font-weight: 500;
  color: #1e293b;
}
body.dark-mode .product-info .product-price { color: #e2e8f0; }

.divider { height: 1px; background: rgba(0,0,0,0.08); margin: 2rem 0; }
body.dark-mode .divider { background: rgba(255,255,255,0.08); }

.color-section label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: block;
}

.color-swatches { display: flex; gap: 1rem; }

.color-swatch {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.color-swatch.active { border-color: var(--primary); transform: scale(1.1); }
body.dark-mode .color-swatch.active { border-color: #fff; }

.product-description {
  color: var(--slate-500);
  line-height: 1.7;
  margin: 2rem 0;
}

.btn-add-bag {
  display: block;
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 1.25rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 1rem;
  transition: opacity 0.2s;
}
.btn-add-bag:hover { opacity: 0.85; color: var(--white); }
body.dark-mode .btn-add-bag { background: #fff; color: #000; }

.btn-express {
  display: block;
  width: 100%;
  padding: 1.25rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  transition: all 0.2s;
}

/* Accordion */
.accordion-item { border-top: 1px solid rgba(0,0,0,0.08); padding-top: 1.5rem; margin-top: 1.5rem; }
body.dark-mode .accordion-item { border-color: rgba(255,255,255,0.08); }

.accordion-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
}
.accordion-btn span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.accordion-btn .material-symbols-outlined {
  color: var(--slate-400);
  transition: transform 0.3s;
  font-size: 1.25rem;
}
.accordion-item.open .accordion-btn .material-symbols-outlined { transform: rotate(45deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s;
  opacity: 0;
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.7;
}
.accordion-item.open .accordion-body { max-height: 200px; opacity: 1; margin-top: 1rem; }

/* Related products */
.related-section { padding: 6rem 0; }
.related-section h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 3rem; }

.related-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }

.related-card {
  background: var(--neutral-cool);
  padding: 2rem;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: transform 0.3s;
  cursor: pointer;
}
body.dark-mode .related-card { background: #1a1a1a; }
.related-card:hover { transform: translateY(-4px); }

.related-card-thumb {
  width: 6rem;
  height: 6rem;
  background: var(--white);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  flex-shrink: 0;
}
body.dark-mode .related-card-thumb { background: #111; }
.related-card-thumb img { width: 100%; height: 100%; object-fit: contain; }
.related-card h4 { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.25rem; }
.related-card p { color: var(--slate-500); font-size: 0.875rem; }

.related-add-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
  transition: all 0.3s;
}
.related-card:hover .related-add-btn { background: var(--primary); color: var(--white); }
body.dark-mode .related-card:hover .related-add-btn { background: #fff; color: #000; }

/* ==============================
   CONTACT PAGE
============================== */
#contact-page {
  padding-top: 10rem;
  padding-bottom: 5rem;
  min-height: 100vh;
  background: var(--white);
  transition: background 0.4s;
}
body.dark-mode #contact-page { background: #0a0a0a; }

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
@media (min-width: 1024px) { .contact-grid { flex-direction: row; } }

.contact-info { flex: 1; }
.contact-info h1 { font-size: 3.5rem; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 2rem; }
.contact-info p { font-size: 1.2rem; color: var(--slate-500); line-height: 1.7; margin-bottom: 3rem; }

.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.contact-detail .detail-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--slate-400);
  margin-bottom: 0.5rem;
  display: block;
}
.contact-detail .detail-value { font-size: 1.1rem; font-weight: 700; }

.contact-form-wrap { flex: 1; }

.form-card { padding: 2.5rem 3rem; border-radius: 1.5rem; }
@media (min-width: 768px) { .form-card { padding: 4rem; } }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.form-field label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--slate-400);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--neutral-cool);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: var(--primary);
  transition: box-shadow 0.2s;
  outline: none;
}
body.dark-mode .form-field input,
body.dark-mode .form-field select,
body.dark-mode .form-field textarea {
  background: #1a1a1a;
  color: #f1f5f9;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { box-shadow: 0 0 0 2px var(--primary); }
body.dark-mode .form-field input:focus,
body.dark-mode .form-field select:focus,
body.dark-mode .form-field textarea:focus { box-shadow: 0 0 0 2px #fff; }

.form-field textarea { resize: none; }

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 1.25rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.85; }
body.dark-mode .btn-submit { background: #fff; color: #000; }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  display: none;
}
.form-success.show { display: flex; animation: fadeIn 0.5s ease; }
.form-success .material-symbols-outlined { font-size: 4rem; color: #22c55e; margin-bottom: 1.5rem; }
.form-success h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.form-success p { color: var(--slate-500); }

/* ==============================
   FAQ PAGE
============================== */
#faq-page {
  padding-top: 10rem;
  padding-bottom: 5rem;
  min-height: 100vh;
  background: var(--white);
  transition: background 0.4s;
}
body.dark-mode #faq-page { background: #0a0a0a; }

#faq-page h1 { font-size: 3.5rem; font-weight: 700; letter-spacing: -0.04em; text-align: center; margin-bottom: 4rem; }

.faq-list { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }

.faq-item { border-radius: 1.25rem; overflow: hidden; }

.faq-question {
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
}
.faq-question .material-symbols-outlined { color: var(--slate-400); transition: transform 0.3s; font-size: 1.25rem; flex-shrink: 0; }
.faq-item.open .faq-question .material-symbols-outlined { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 2rem 2rem; color: var(--slate-500); line-height: 1.7; border-top: 1px solid rgba(0,0,0,0.04); padding-top: 1rem; }
body.dark-mode .faq-answer p { border-color: rgba(255,255,255,0.04); color: #cbd5e1; }
body.dark-mode .faq-question { color: #f1f5f9; }

/* ==============================
   ABOUT PAGE
============================== */
#about-page {
  padding-top: 10rem;
  padding-bottom: 5rem;
  min-height: 100vh;
  background: var(--white);
  transition: background 0.4s;
}
body.dark-mode #about-page { background: #0a0a0a; }

.about-wrap { max-width: 56rem; margin: 0 auto; }
.about-wrap .label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4em; color: var(--slate-400); margin-bottom: 1rem; display: block; }
.about-wrap h1 { font-size: 4rem; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 5rem; }

.about-split { display: grid; grid-template-columns: 1fr; gap: 5rem; margin-bottom: 8rem; }
@media (min-width: 768px) { .about-split { grid-template-columns: 1fr 1fr; } }

.about-text h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; line-height: 1.3; }
.about-text p { color: var(--slate-500); line-height: 1.7; }

.about-img { aspect-ratio: 4/5; background: var(--neutral-cool); border-radius: 1.5rem; overflow: hidden; }
body.dark-mode .about-img { background: #1a1a1a; }
.about-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); opacity: 0.5; }

.about-values { display: grid; grid-template-columns: 1fr; gap: 3rem; padding-top: 5rem; border-top: 1px solid rgba(0,0,0,0.06); }
@media (min-width: 768px) { .about-values { grid-template-columns: repeat(3, 1fr); } }
body.dark-mode .about-values { border-color: rgba(255,255,255,0.05); }

.about-value h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 1rem; }
.about-value p { font-size: 0.875rem; color: var(--slate-500); line-height: 1.7; }

/* ==============================
   NEWS PAGE
============================== */
#news-page {
  padding-top: 10rem;
  padding-bottom: 5rem;
  min-height: 100vh;
  background: var(--white);
  transition: background 0.4s;
}
body.dark-mode #news-page { background: #0a0a0a; }

.news-header { text-align: center; margin-bottom: 5rem; }
.news-header h1 { font-size: 4rem; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.news-header p { color: var(--slate-500); font-size: 1.2rem; }

.news-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card { cursor: pointer; }

.news-card-img {
  aspect-ratio: 16/10;
  border-radius: 1.5rem;
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--neutral-cool);
  position: relative;
}
body.dark-mode .news-card-img { background: #1a1a1a; }

.news-card-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: all 0.7s; }
.news-card:hover .news-card-img img { filter: grayscale(0); transform: scale(1.05); }

.news-card-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
}

.news-card-body .date { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--slate-400); margin-bottom: 0.5rem; display: block; }
.news-card-body h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem; }
.news-card-body p { font-size: 0.875rem; color: var(--slate-500); line-height: 1.7; margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.read-btn { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; border-bottom: 2px solid var(--primary); padding-bottom: 0.25rem; }
body.dark-mode .read-btn { border-color: #fff; color: #fff; }

/* ==============================
   LEGAL PAGE
============================== */
#legal-page {
  padding-top: 10rem;
  padding-bottom: 5rem;
  min-height: 100vh;
  background: var(--white);
  transition: background 0.4s;
}
body.dark-mode #legal-page { background: #0a0a0a; }

#legal-page h1 { font-size: 3.5rem; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 4rem; }

.legal-sections { display: flex; flex-direction: column; gap: 4rem; }

.legal-section-card { padding: 3rem; border-radius: 1.5rem; }

.legal-section-card h2 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--slate-400);
  margin-bottom: 2rem;
}

.legal-section-card p { color: var(--slate-500); line-height: 1.7; margin-bottom: 1rem; }
body.dark-mode .legal-section-card p { color: #cbd5e1; }
body.dark-mode .legal-section-card h2 { color: #94a3b8; }

/* ==============================
   FOOTER
============================== */
#xatori-footer {
  background: #000;
  color: #fff;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.footer-inner { display: flex; flex-direction: column; align-items: center; }

.footer-cta { text-align: center; max-width: 36rem; margin-bottom: 6rem; width: 100%; }
.footer-cta h3 { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1rem; }
.footer-cta p { color: #64748b; font-size: 0.875rem; margin-bottom: 2.5rem; }

.newsletter-form {
  display: flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 9999px;
  overflow: hidden;
  padding: 0.375rem;
  width: 100%;
}

.newsletter-form input {
  background: transparent;
  border: none;
  padding: 0.75rem 2rem;
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  flex: 1;
  min-width: 0;
}
.newsletter-form input::placeholder { color: #64748b; }

.newsletter-form button {
  background: #fff;
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.875rem 2.5rem;
  border-radius: 9999px;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.newsletter-form button:hover { background: #e2e8f0; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 6rem;
  width: 100%;
  max-width: 56rem;
}
@media (min-width: 768px) { .footer-links { grid-template-columns: repeat(4, 1fr); text-align: left; } }

.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-col button,
.footer-col a {
  display: block;
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  transition: color 0.2s;
  text-align: left;
  cursor: pointer;
}
.footer-col button:hover,
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  width: 100%;
  text-align: center;
}

.footer-bottom p {
  color: #334155;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

/* ==============================
   CONTAINER
============================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==============================
   UTILITIES
============================== */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ==============================
   RESPONSIVE NAV
============================== */
@media (max-width: 480px) {
  .glass-nav { gap: 1.5rem; padding: 0.5rem 1rem; }
  .nav-links { gap: 1rem; padding-right: 1rem; }
}
