@import "tokens.css";

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
  padding-top: 6rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(32, 59, 150, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(237, 84, 43, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

[data-theme="dark"] body::before {
  background:
    linear-gradient(135deg, #0d1117 0%, #161b22 50%, #1c2128 100%),
    radial-gradient(ellipse at 20% 30%, rgba(32, 59, 150, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(237, 84, 43, 0.08) 0%, transparent 60%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--text-primary);
}

img, video { max-width: 100%; display: block; }

a { text-decoration: none; transition: color 0.2s, background 0.2s; }

/* Glass nav — Hirgal style */
.glass-nav {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-color);
  padding: 0.75rem 0;
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: 1200px;
  border-radius: var(--radius);
  z-index: 1050;
  box-shadow: 0 8px 32px var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .glass-nav {
  background: rgba(26, 32, 44, 0.75) !important;
}

.glass-nav.scrolled {
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.navbar-brand {
  background: transparent !important;
  line-height: 0;
  padding: 0;
}

.navbar-logo {
  height: 44px;
  width: auto;
  max-width: 200px;
  background: transparent;
  display: block;
}

.glass-nav .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: 10px;
}

.glass-nav .nav-link:hover,
.glass-nav .nav-link.active {
  color: var(--accent-color);
}

.theme-toggle {
  background: var(--bg-glass);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.3s;
}

.theme-toggle:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.nav-btn-order {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark)) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.25rem !important;
}

.nav-btn-order:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(237, 84, 43, 0.35);
}

/* Hero */
.hero-slider {
  margin-top: -6rem;
  min-height: 100vh;
  overflow: hidden;
}

.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  min-height: 100vh;
}

.hero-slider .carousel-item {
  position: relative;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-slider .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21, 42, 110, 0.82) 0%, rgba(32, 59, 150, 0.65) 50%, rgba(237, 84, 43, 0.25) 100%);
  z-index: 1;
}

.slider-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.slider-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.slider-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.slider-btns .btn-light {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.5rem;
}

.slider-btns .btn-outline-light {
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 50%;
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--shadow-md);
}

.hero-slider .carousel-arrow-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary-color);
  filter: none;
}

[data-theme="light"] .hero-slider .carousel-control-prev,
[data-theme="light"] .hero-slider .carousel-control-next {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(32, 59, 150, 0.2);
}

[data-theme="light"] .hero-slider .carousel-arrow-icon {
  color: var(--primary-color);
}

[data-theme="dark"] .hero-slider .carousel-control-prev,
[data-theme="dark"] .hero-slider .carousel-control-next {
  background: rgba(26, 32, 44, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .hero-slider .carousel-arrow-icon {
  color: #fff;
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.hero-slider .carousel-control-prev:hover .carousel-arrow-icon,
.hero-slider .carousel-control-next:hover .carousel-arrow-icon {
  color: #fff;
}

.hero-slider .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
}

.hero-slider .carousel-indicators .active {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-about { background: var(--bg-primary); }
.section-services { background: var(--bg-secondary); }
.section-menu { background: var(--bg-primary); }
.section-gallery { background: var(--bg-secondary); }
.section-stats { background: var(--primary-dark); }
.section-contact { background: var(--bg-primary); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-color));
  border-radius: 3px;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Glass cards */
.glass-card,
.infographic-card,
.service-card,
.menu-glass-card,
.product-card {
  background: var(--bg-glass-solid);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.glass-card:hover,
.infographic-card:hover,
.service-card:hover,
.menu-glass-card:hover,
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--shadow-lg);
}

.infographic-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.infographic-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.infographic-icon-1 { background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); }
.infographic-icon-2 { background: linear-gradient(135deg, var(--accent-color), var(--accent-dark)); }
.infographic-icon-3 { background: linear-gradient(135deg, #4caf50, #388e3c); }

.infographic-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.infographic-description {
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-align: justify;
  flex: 1;
}

/* Service cards */
.service-card {
  padding: 1.75rem;
}

.service-card .service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.service-card ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.service-card ul li { margin-bottom: 0.35rem; }

.service-card--accent .service-icon {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
}

/* Menu */
.menu-filter-btn {
  border: 1px solid var(--border-color);
  background: var(--bg-glass-solid);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0.25rem;
  transition: all 0.2s;
}

.menu-filter-btn:hover,
.menu-filter-btn.active {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  border-color: transparent;
  color: #fff;
}

.menu-glass-card { overflow: hidden; padding: 0; }

.menu-glass-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.menu-glass-card .card-body { padding: 1.25rem; }

.menu-glass-card .price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-color);
}

.menu-glass-card--text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
}

/* Product / gallery */
.product-card { overflow: hidden; padding: 0; }

.product-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.product-card .card-body { padding: 1.25rem; }

/* Stats */
.section-stats .section-title { color: #fff; }
.section-stats .section-title::after {
  background: linear-gradient(90deg, var(--accent-color), #fff, var(--accent-color));
}

.stat-box {
  text-align: center;
  padding: 1.5rem;
}

.stat-box .stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--accent-color);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

/* Contact */
.contact-glass {
  background: var(--bg-glass-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info-item i {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item a { color: var(--accent-color); }

.form-control, .form-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(32, 59, 150, 0.15);
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.75rem 2rem;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 1.5rem;
}

.site-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.site-footer a:hover { color: var(--accent-color); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
}

.footer-bottom a { display: inline; color: #ffc9b5; }

/* WhatsApp */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
}

.wa-float:hover { color: #fff; transform: scale(1.08); }

.menu-item-hidden { display: none !important; }

@media (max-width: 991px) {
  body { padding-top: 5rem; }
  .glass-nav {
    width: calc(100% - 1.5rem);
    top: 0.75rem;
    border-radius: 16px;
  }
  .hero-slider { margin-top: -5rem; }
  .hero-slider .carousel,
  .hero-slider .carousel-inner,
  .hero-slider .carousel-item,
  .slider-content { min-height: 85vh; }
}

[data-theme="dark"] .navbar-toggler-icon {
  filter: invert(1);
}

[data-theme="dark"] .product-card a {
  color: var(--accent-color);
}

.logo-dark-mode { display: none; }
[data-theme="dark"] .logo-light-mode { display: none !important; }
[data-theme="dark"] .logo-dark-mode { display: block !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
