/* ===== Variables ===== */
:root {
  --primary: #0c1f3d;
  --primary-mid: #152d52;
  --accent: #c9a227;
  --accent-light: #dfc04a;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --bg-dark: #0c1f3d;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(12, 31, 61, 0.06);
  --shadow: 0 8px 32px rgba(12, 31, 61, 0.08);
  --shadow-lg: 0 16px 48px rgba(12, 31, 61, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Cairo', sans-serif;
  --font-display: 'Playfair Display', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }

.section-header { text-align: center; margin-bottom: 56px; }

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
}

.section-desc {
  margin-top: 14px;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin-inline: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.45);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.35);
  color: #fff;
}

.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-full { width: 100%; }

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(12,31,61,0.06);
  color: var(--primary);
}

.badge-gold {
  background: rgba(201,162,39,0.14);
  color: #8a6d12;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.nav-container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; flex-direction: column; line-height: 1.1; }

.logo-vita {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 3px;
}

.logo-horizon {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.navbar.scrolled .logo-horizon { color: var(--primary); }

.nav-links { display: flex; gap: 28px; align-items: center; }

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.88);
  position: relative;
}

.navbar.scrolled .nav-links a { color: var(--text); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--accent); }

.lang-toggle {
  padding: 7px 15px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
}

.navbar.scrolled .lang-toggle { border-color: var(--border); color: var(--primary); }
.lang-toggle:hover { background: var(--accent); border-color: var(--accent); color: var(--primary); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; z-index: 1001; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.navbar.scrolled .nav-toggle span { background: var(--primary); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-mid) 55%, #1a3d6e 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 60%, rgba(201,162,39,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 25%, rgba(255,255,255,0.06) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 130px 24px 60px;
}

.hero-badge {
  display: inline-block;
  padding: 7px 22px;
  border: 1px solid rgba(201,162,39,0.45);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 28px;
}

.hero-vita {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 10px;
  line-height: 1;
}

.hero-horizon {
  display: block;
  font-size: clamp(0.9rem, 2.5vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 14px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 10px;
}

.hero-subtitle {
  max-width: 580px;
  margin: 24px auto 36px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.85;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats { display: flex; gap: 56px; justify-content: center; flex-wrap: wrap; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ===== Brands Strip ===== */
.brands-strip {
  background: var(--bg);
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
  margin-top: -1px;
}

.brands-strip-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.brands-strip-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}

.brand-strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
  background: transparent;
}

.brand-strip-item:hover {
  background: var(--bg-alt);
  transform: translateY(-3px);
}

.brand-strip-item img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.06));
}

.brand-strip-item--toto img { max-height: 72px; }

/* ===== About ===== */
.about { background: var(--bg-alt); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.about-text p {
  font-size: 1.02rem;
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.85;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--bg);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 12px;
}

.feature-icon svg { width: 100%; height: 100%; }

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.feature-card p { font-size: 0.82rem; color: var(--text-light); }

/* ===== Brands Section ===== */
.brands-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.brand-overview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.brand-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(201,162,39,0.3);
}

.brand-overview-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  width: 100%;
}

.brand-overview-logo img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

.brand-overview-logo--toto img { max-height: 80px; }

.brand-overview-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.brand-overview-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Brand Detail Cards */
.brand-detail {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 24px;
  transition: var(--transition);
  scroll-margin-top: 100px;
}

.brand-detail:hover { box-shadow: var(--shadow); }

.brand-detail-header {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.brand-detail-logo {
  flex-shrink: 0;
  width: 140px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-detail-logo img {
  max-height: 80px;
  max-width: 130px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.06));
}

.brand-detail-logo--toto img { max-height: 90px; }

.brand-detail-title h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 10px;
}

.brand-detail-meta { display: flex; gap: 8px; flex-wrap: wrap; }

.brand-detail-body p {
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.85;
  max-width: 720px;
}

.brand-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 22px;
}

.brand-features li {
  position: relative;
  padding-inline-start: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.brand-features li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== Products ===== */
.products { background: var(--bg-alt); }

.product-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-light);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: var(--transition);
}

.filter-btn img {
  height: 22px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.filter-btn.active img,
.filter-btn:hover img { opacity: 1; filter: brightness(10); }

.product-group {
  margin-bottom: 48px;
  transition: var(--transition);
}

.product-group.hidden { display: none; }

.product-group-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.product-group-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.06));
}

.product-group-logo--toto { height: 48px; }

.product-group-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.products-grid--single { grid-template-columns: 1fr; max-width: 640px; }

.product-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.product-card--wide .product-image { aspect-ratio: 16/9; }

.product-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eef2f7;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img { transform: scale(1.04); }

.product-info { padding: 18px 20px 22px; }

.product-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.product-info p { font-size: 0.84rem; color: var(--text-light); line-height: 1.55; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-intro {
  font-size: 1.02rem;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.85;
}

.contact-items { display: flex; flex-direction: column; gap: 20px; }

.contact-item { display: flex; gap: 16px; align-items: start; }

.contact-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,162,39,0.12);
  border-radius: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-icon svg { width: 22px; height: 22px; }

.contact-item h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item a {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary);
}

.contact-item a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg-alt);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--bg);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}

.form-group textarea { resize: vertical; min-height: 96px; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  padding: 48px 0 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.footer-brand p { margin-top: 12px; font-size: 0.88rem; max-width: 280px; }
.footer .logo-vita { color: var(--accent); }
.footer .logo-horizon { color: rgba(255,255,255,0.65); }

.footer-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-logos img {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  filter: brightness(1.1);
  transition: var(--transition);
}

.footer-logos img:hover { opacity: 1; }

.footer-logo-toto { height: 44px; }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 24px;
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  font-size: 2.2rem;
  color: #fff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.lightbox-close:hover { background: rgba(255,255,255,0.1); }

#lightboxCaption {
  color: rgba(255,255,255,0.75);
  margin-top: 14px;
  font-size: 0.95rem;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }

  .brands-overview { grid-template-columns: repeat(2, 1fr); }
  .brands-strip-logos { grid-template-columns: repeat(2, 1fr); }

  .brand-detail { padding: 28px; }
  .brand-detail-header { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links {
    position: fixed;
    top: 0;
    inset-inline-end: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 88px 28px 28px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.open { inset-inline-end: 0; }
  .nav-links a { color: var(--text); font-size: 1rem; }
  .nav-toggle { display: flex; }

  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .about-features { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .products-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  .footer-top { flex-direction: column; text-align: center; }
  .footer-logos { justify-content: center; }
}

@media (max-width: 480px) {
  .brands-overview,
  .brands-strip-logos { grid-template-columns: 1fr 1fr; }

  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 260px; }

  .product-filters { gap: 6px; }
  .filter-btn { padding: 8px 14px; font-size: 0.78rem; }
  .filter-btn img { height: 18px; }
}
