html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--color-accent);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
}

a {
  color: var(--color-primary);
}

a:hover {
  color: var(--color-accent-dark);
}

/* ---------- Top utility bar ---------- */
.brand-topbar {
  background: var(--gradient-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  padding: 0.45rem 0;
}

.brand-topbar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.brand-topbar a:hover {
  color: #fff;
}

.brand-topbar .topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  margin-left: 0.4rem;
}

.brand-topbar .topbar-social a:hover {
  background: var(--color-accent);
}

/* ---------- Navbar ---------- */
.brand-navbar {
  background-color: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(6px);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  box-shadow: 0 2px 16px rgba(18, 36, 94, 0.06);
}

.brand-nav-link {
  color: var(--color-text) !important;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-pill);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.brand-nav-link:hover {
  color: var(--color-primary) !important;
  background-color: var(--color-primary-light);
}

/* ---------- Footer ---------- */
.brand-footer {
  background: var(--gradient-dark);
  color: rgba(255, 255, 255, 0.75) !important;
  padding: 4rem 0 1.5rem;
  margin-top: 5rem;
  position: relative;
}

.brand-footer h6 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
}

.brand-footer .footer-lead {
  color: rgba(255, 255, 255, 0.65);
}

.brand-footer-link {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.brand-footer-link:hover {
  color: #fff !important;
  padding-left: 4px;
}

.brand-footer .footer-contact-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.brand-footer .footer-contact-item i {
  color: var(--color-accent);
  width: 18px;
  margin-top: 0.2rem;
}

.brand-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-right: 0.5rem;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.brand-footer .footer-social a:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.brand-footer hr {
  border-color: rgba(255, 255, 255, 0.14);
  margin: 2.5rem 0 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: var(--radius-pill);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  box-shadow: 0 8px 20px rgba(30, 58, 140, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(30, 58, 140, 0.36);
  background: var(--gradient-primary);
}

.btn-light {
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.btn-outline-primary {
  border-radius: var(--radius-pill);
  border-width: 1.5px;
}

/* ---------- Hero slider ---------- */
.hero-slide {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-dark);
  opacity: 0.88;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 2rem;
  max-width: 680px;
  animation: fadeInUp 0.7s ease both;
}

.hero-slide-content h2 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-slide-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.hero-fallback {
  position: relative;
  background: var(--gradient-dark);
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.carousel-control-prev, .carousel-control-next {
  width: 4rem;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  padding: 1.4rem;
  backdrop-filter: blur(4px);
}

/* ---------- Stats strip ---------- */
.stats-strip {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  margin-bottom: 3.5rem;
}

.stats-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1rem;
  display: flex;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1 1 25%;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-right: 1px solid var(--color-border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}

.stat-item .stat-label {
  color: var(--color-secondary);
  font-size: 0.85rem;
}

@media (max-width: 767px) {
  .stat-item {
    flex: 1 1 50%;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
}

/* ---------- Section titles ---------- */
.section-eyebrow {
  display: inline-block;
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-title p {
  color: var(--color-secondary);
  font-size: 1.05rem;
}

.section-band {
  background-color: var(--color-bg-alt);
  padding: 4.5rem 0;
}

/* ---------- Category cards ---------- */
.category-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  color: var(--color-primary);
}

.category-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 10px 22px rgba(30, 58, 140, 0.25);
  transition: transform 0.2s ease;
}

.category-card:hover .category-card-icon {
  transform: scale(1.08) rotate(-4deg);
}

.category-card h3 {
  font-size: 1.05rem;
  margin: 0;
  color: inherit;
  font-family: var(--font-body);
  font-weight: 700;
}

/* ---------- Product / content cards ---------- */
.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
}

.product-card-image-wrap {
  position: relative;
  overflow: hidden;
}

.product-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--color-bg-alt);
  transition: transform 0.35s ease;
}

.product-card:hover .product-card-image {
  transform: scale(1.06);
}

.product-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 {
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 700;
}

.product-card-price {
  margin-top: auto;
  padding-top: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-primary);
}

/* ---------- CTA ---------- */
.cta-section {
  position: relative;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 4rem 0;
  color: #fff;
  overflow: hidden;
}

.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: #fff;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
  background: #fff;
  color: var(--color-primary-dark);
}

/* ---------- Why-us feature list ---------- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
  font-weight: 500;
}

.feature-list li i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ---------- Page header (secondary pages) ---------- */
.page-header {
  position: relative;
  background: var(--gradient-dark);
  color: #fff;
  padding: 3.25rem 0 2.5rem;
  margin-bottom: 3rem;
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.page-header > .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.4rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.page-header p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
}

.page-header .breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.85rem;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: rgba(255, 255, 255, 0.4);
}

.page-header .breadcrumb-item a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item a:hover {
  color: #fff;
}

.page-header .breadcrumb-item.active {
  color: #fff;
  font-weight: 600;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
