@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&display=swap");
@import url("sections/header.css");
@import url("sections/product-tables.css");

:root {
    --playfair-display: "Playfair Display", serif;
    --plus-jakarta-sans: "Plus Jakarta Sans", sans-serif;
    --primary-color: #eaeef1;
    --secondary-color: #0d5ba2;
    --secondary-dark: #094072;
    --brochure-button-color: #DED9D9;
    --dark-bg: #111827;
    --light-bg: #f9fafb;
    --nav-height: 91px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--plus-jakarta-sans);
  color: #1f2937;
  overflow-x: hidden;
  padding-top: var(--nav-height);
  background-color: var(--light-bg);
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* ================== Hero Section ================== */
#home {
  background-image: linear-gradient(to right, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.2) 40%, rgba(17, 24, 39, 0.85) 70%, rgba(17, 24, 39, 0.95) 100%), url("../assets/Background-index.png");
  width: 100%;
  height: calc(100vh - var(--nav-height));
  min-height: 520px;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  position: relative;
}

.home-container {
  width: 100%;
}

.home-content {
  max-width: 800px;
}

/* Staggered hero entrance */
.home-content > * {
  opacity: 0;
  animation: fadeUp 0.4s ease-out forwards;
}
.home-content h5 { animation-delay: 0.04s; }
.home-content h1 { animation-delay: 0.1s; }
.home-content p  { animation-delay: 0.16s; }
.home-content .acc-button { animation-delay: 0.22s; }

.home-content h5 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.acc-button {
  display: inline-block;
  padding: 15px 35px;
  color: #fff;
  background-color: var(--secondary-color);
  border-radius: 50px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(13, 91, 162, 0.3);
}

.acc-button:hover {
  background-color: #0b4b85;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 91, 162, 0.4);
}

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

/* Hero scroll-down cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: 1.1rem;
  text-decoration: none;
  z-index: 2;
  animation: heroBounce 2s ease-in-out infinite;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.hero-scroll-cue:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
@keyframes heroBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 9px); }
}

/* ================== Intro Section ================== */
.index-btn-outline {
  display: inline-block;
  padding: 12px 30px;
  color: var(--secondary-dark);
  background-color: transparent;
  border: 2px solid var(--secondary-dark);
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.index-btn-outline:hover {
  background-color: var(--secondary-dark);
  color: #fff;
}

.intro-shape {
  width: 100%;
  height: 100%;
  background-color: var(--secondary-color);
  top: 20px;
  left: 20px;
  z-index: 0;
  opacity: 0.1;
}

/* ================== Features Grid ================== */
.feature-card {
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

.feature-img-wrapper {
  overflow: hidden;
}

.feature-card img {
  transition: transform 0.5s ease;
}

.feature-card:hover img {
  transform: scale(1.05);
}

.feature-link {
  color: var(--secondary-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.feature-link:hover {
  color: var(--secondary-dark);
  letter-spacing: 0.5px;
}

/* ================== Products Grid ================== */
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.product-card {
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.03);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06) !important;
  border-color: rgba(13, 91, 162, 0.1) !important;
}

.product-img-box {
  background-color: transparent;
  padding: 20px;
}

/* Uniform image box so every category card aligns (image + title + button) */
.product-img-box img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.product-card img {
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.1);
}

.product-btn {
  display: inline-block;
  padding: 8px 24px;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.product-card:hover .product-btn {
  background-color: var(--secondary-color);
  color: #fff;
}

/* ================== Parallax Banner ================== */
#banner {
  background-image: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url('../assets/3.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  min-height: 60vh;
}

.glassmorphism {
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-btn {
  display: inline-block;
  background-color: #fff;
  color: var(--dark-bg);
  transition: all 0.3s ease;
}

.banner-btn:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ================== Responsive ================== */

/* Keep the fixed navbar brand from forcing an oversized bar */
.navbar-brand img {
  max-height: var(--nav-height);
  width: auto;
}

/* Tablets & small laptops */
@media screen and (max-width: 991.98px) {
  .display-3 { font-size: 3rem; }
  .display-4 { font-size: 2.75rem; }
  .display-5 { font-size: 2.25rem; }
  .display-6 { font-size: 1.9rem; }
  /* Keep category/accessory icons from looking oversized on tablets */
  #hero .product-img-box img,
  #other-accessories .product-img-box img {
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Tablets / large phones */
@media screen and (max-width: 768px) {
  :root {
    --nav-height: 78px;
  }
  .navbar-brand img {
    height: 58px;
  }
  /* Center the hero block instead of pinning it right (which clipped text) */
  .home-container {
    justify-content: center !important;
    padding-left: 16px;
    padding-right: 16px;
  }
  .home-content {
    text-align: center !important;
    max-width: 100%;
    width: 100%;
  }
  .home-content h1,
  .home-content h5,
  .home-content p {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .home-content h1 br {
    display: none;
  }
  .display-3 { font-size: 2.5rem; }
  .display-4 { font-size: 2.25rem; }
  .display-5 { font-size: 2rem; }
  .display-6 { font-size: 1.7rem; }
  .fs-5 { font-size: 1.05rem !important; }
  #home {
    background-attachment: scroll;
    /* Dedicated portrait artwork so the chuck stays in frame on phones
       (the wide desktop banner gets center-cropped to just dark space). */
    background-image:
      linear-gradient(to bottom, rgba(17, 24, 39, 0.35) 0%, rgba(17, 24, 39, 0.5) 50%, rgba(17, 24, 39, 0.85) 100%),
      url("../assets/Background-index-mobile.png");
    background-position: center center;
    background-size: cover;
    height: calc(100vh - var(--nav-height));
    min-height: 560px;
  }
  #banner {
    background-attachment: scroll;
  }
  /* Decorative offset shapes overflow the right edge and get clipped,
     making the images look cut — hide them on small screens. */
  .intro-shape {
    display: none;
  }
  /* Square product/category images (250x250) upscale and look oversized
     on full-width cards — cap and center them. */
  #hero .product-img-box img,
  #other-accessories .product-img-box img {
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
  }
  /* Reduce heavy section vertical padding on small screens */
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

/* Small phones */
@media screen and (max-width: 480px) {
  .navbar-brand img {
    height: 50px;
  }
  .display-3 { font-size: 2.1rem; }
  .display-4 { font-size: 1.9rem; }
  .display-5 { font-size: 1.7rem; }
  .display-6 { font-size: 1.5rem; }
  #home {
    height: 78vh;
    min-height: 400px;
  }
  #hero .product-img-box img,
  #other-accessories .product-img-box img {
    max-width: 150px;
  }
  .acc-button {
    padding: 12px 26px;
    font-size: 15px;
  }
  /* Stacked CTA buttons shouldn't sit shoulder-to-shoulder */
  .products-cta-banner .acc-button,
  .products-cta-banner .prod-cta-outline {
    display: block;
    width: 100%;
    margin: 0 0 12px 0 !important;
    text-align: center;
  }
}

/* ================== Navbar Glassmorphism & Animations ================== */
.glass-navbar {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
  padding-bottom: 5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background-color: var(--secondary-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover {
  color: var(--secondary-color) !important;
}

/* ================== Swiper Carousel Adjustments ================== */
.product-swiper {
  padding-bottom: 50px !important;
}

.swiper-pagination-bullet-active {
  background-color: var(--secondary-color) !important;
}

