/* ═══════════════════════════════════════════════
   UNITYWEAR UNIVERSAL — apparel.css
   (extends products.css structure)
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Josefin+Sans:wght@400;600&display=swap');

:root {
  --brand-blue: #050977;
  --brand-dark: #111111;
  --brand-white: #fafafa;
  --text-dark: #222222;
  --text-muted: #666666;
  --bg-light: #f5f5f5;
  --radius: 8px;
  --transition: 0.35s ease;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--brand-white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 6vw 0;
}

.bg-white {
  background: #fff;
}

.bg-light {
  background: var(--bg-light);
}

.section-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 2.5rem;
  text-align: center;
}

.divider-line {
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), transparent);
  margin-bottom: 1.8rem;
  max-width: 240px;
}

/* ══ NAVBAR ══ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  padding: 0.6rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

.nav-logo .logo-dark {
  height: 52px;
  display: block;
}

.nav-logo .logo-light {
  height: 52px;
  display: none;
}

#navbar.scrolled .logo-dark {
  display: none;
}

#navbar.scrolled .logo-light {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-blue);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

#navbar.scrolled .nav-links a {
  color: var(--text-dark);
}

.has-dropdown {
  position: relative;
}

.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 16px;
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  min-width: 140px;
  overflow: hidden;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.7rem 1.2rem;
  color: var(--text-dark) !important;
  font-size: 0.9rem;
  transition: background var(--transition);
}

.dropdown li a:hover,
.dropdown li a.active {
  background: var(--bg-light);
  color: var(--brand-blue) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

#navbar.scrolled .nav-toggle span {
  background: var(--text-dark);
}

/* ══ HERO ══ */
#page-hero {
  height: 100vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 9, 119, 0.65), rgba(0, 0, 0, 0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 8%;
  max-width: 700px;
  animation: fadeInUp 1.1s ease forwards;
}

.hero-content h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.hero-content p {
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  opacity: 0.88;
  margin-bottom: 2rem;
}

.btn-hero {
  display: inline-block;
  background: var(--brand-blue);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--brand-blue);
  transition: all var(--transition);
}

.btn-hero:hover {
  background: transparent;
  border-color: #fff;
}

/* ══ SPLIT ROW ══ */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.split-img { background-size: contain; background-position: center; background-repeat: no-repeat; min-height: 480px; }

.split-text {
  padding: 5vw 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-text h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--brand-blue);
  margin-bottom: 0.6rem;
}

.split-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: justify;
  font-size: 0.95rem;
}

/* ══ PRODUCT GRID ══ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-item {
  position: relative;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.product-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background var(--transition);
}

.product-item:hover .product-item-overlay {
  background: rgba(5, 9, 119, 0.65);
}

.product-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
}

.product-item-label h3 {
  font-family: 'Josefin Sans', sans-serif;
  color: #fff;
  font-size: 1.1rem;
  transform: translateY(6px);
  transition: transform var(--transition);
}

.product-item:hover .product-item-label h3 {
  transform: translateY(0);
}

/* ══ CAPABILITIES ══ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cap-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--brand-blue);
}

.cap-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cap-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.cap-card h4 {
  font-family: 'Josefin Sans', sans-serif;
  color: var(--brand-blue);
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.cap-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ══ CTA ══ */
.cta-section {
  position: relative;
  background: url('media/denim-apparel.jpg') center/cover;
  padding: 8vw 0;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 119, 0.75);
}

.cta-section h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-bottom: 0.8rem;
}

.cta-section p {
  opacity: 0.88;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  display: inline-block;
  background: #fff;
  color: var(--brand-blue);
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  border: 2px solid #fff;
}

.btn-cta:hover {
  background: transparent;
  color: #fff;
}

/* ══ FOOTER ══ */
#footer {
  background: var(--brand-dark);
  color: #ccc;
  padding-top: 5vw;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-col h4 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col hr {
  border-color: rgba(255, 255, 255, 0.15);
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a,
.footer-col a {
  color: #aaa;
  transition: color var(--transition);
}

.footer-col ul a:hover,
.footer-col a:hover {
  color: #fff;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
  color: #aaa;
}

.footer-col strong {
  color: #ddd;
}

.map-wrap {
  position: relative;
  padding-bottom: 66%;
  overflow: hidden;
  border-radius: var(--radius);
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 1.2rem 0;
  font-size: 0.85rem;
  color: #666;
}

/* ══ SOCIAL ══ */
.social-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.social-btn:hover {
  transform: scale(1.2);
}

.social-btn img {
  width: 18px;
  height: 18px;
}

.social-btn.linkedin img {
  filter: invert(31%) sepia(80%) saturate(2713%) hue-rotate(188deg) brightness(94%);
}

.social-btn.instagram img {
  filter: invert(39%) sepia(83%) saturate(7471%) hue-rotate(316deg) brightness(97%);
}

.social-btn.whatsapp img {
  filter: invert(31%) sepia(97%) saturate(644%) hue-rotate(94deg) brightness(94%);
}

#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: var(--brand-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  box-shadow: var(--shadow);
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

/* ══ ANIMATIONS ══ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

.delay-3 {
  transition-delay: 0.45s;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
  }

  #navbar.menu-open {
    background: #ffffff;
    max-height: 100vh;
    overflow-y: auto;
  }

  #navbar.menu-open .logo-light {
    display: none;
  }

  #navbar.menu-open .logo-dark {
    display: block;
  }

  #navbar.menu-open .nav-toggle span {
    background: var(--text-dark);
  }

  .nav-links {
    display: none;
    width: 100%;
    background: transparent;
    flex-direction: column;
    padding: 1.5rem 0 1rem 0;
    gap: 1rem;
    box-shadow: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    color: var(--text-dark) !important;
  }

  .nav-toggle {
    display: flex;
  }

  .split-row {
    grid-template-columns: 1fr;
  }

  .split-img {
    min-height: 300px;
    order: -1;
  }

  .split-text {
    padding: 8% 5%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .cap-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .dropdown {
    display: none;
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    box-shadow: none;
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
  }

  .has-dropdown.active .dropdown {
    display: block;
  }

  .has-dropdown {
    display: flex;
    flex-direction: column;
  }

  .social-float {
    flex-direction: row;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    padding: 12px 0;
    gap: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .social-btn {
    background: var(--brand-blue);
    border: none;
  }

  #back-to-top {
    bottom: 80px;
  }
}

/* ══ MANUFACTURING MASTERY ══ */
#manufacturing-mastery .section-subtitle { max-width: 900px; margin: 1.5rem auto 0; color: var(--text-muted); line-height: 1.8; font-size: 0.95rem; text-align: center; }
.mastery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.mastery-card { background: #f8fafc; padding: 3rem 1.5rem; border-radius: 16px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.mastery-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }
.mastery-icon-wrap { width: 64px; height: 64px; background: rgba(5, 9, 119, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.mastery-icon-wrap svg { width: 28px; height: 28px; color: var(--brand-blue); }
.mastery-card h4 { font-family: 'Josefin Sans', sans-serif; font-size: 1.2rem; color: var(--brand-dark); margin-bottom: 0.8rem; font-weight: 600; }
.mastery-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }

@media (max-width: 1024px) {
  .mastery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mastery-grid { grid-template-columns: 1fr; }
  .mastery-card { padding: 2.5rem 1.5rem; }
}

/* ══ PRODUCT RANGE ══ */
#product-range .section-title {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.title-underline {
  width: 60px;
  height: 4px;
  background: var(--brand-blue);
  margin: 0 auto 3.5rem;
  border-radius: 2px;
}

.range-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.range-card {
  position: relative;
  height: 520px;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.range-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.range-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17, 17, 17, 0.2) 0%, rgba(17, 17, 17, 0.75) 100%);
  transition: background 0.5s ease;
}

.range-card:hover .range-overlay {
  background: rgba(5, 9, 119, 0.82);
}

.range-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.range-content h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.range-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  text-align: justify;
}

.range-card:hover .range-content p {
  opacity: 1;
  transform: translateY(0);
}

.range-link {
  display: inline-block;
  color: #60a5fa;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.1s;
}

.range-card:hover .range-link {
  opacity: 1;
  transform: translateY(0);
}

.range-link:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .range-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .range-card {
    height: 420px;
    padding: 2rem;
  }

  .range-content p,
  .range-link {
    opacity: 1;
    transform: none;
  }

  .range-card:hover {
    transform: none;
  }
}