/* ==========================================================================
   ApexTex Global Sourcing - Garments Buying House Bangladesh
   Bespoke Human-Crafted Textile & RMG Heritage Theme
   Curated Palette: Warm Ivory Linen, Royal Indigo, Eco-Emerald, Craft Gold & Midnight Silk
   ========================================================================== */

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Human Designer Textile & Fashion House Palette */
  --color-indigo-navy: #0b1528;
  --color-midnight-silk: #080e1b;
  --color-royal-blue: #1d4ed8;
  --color-royal-hover: #1e40af;
  --color-sky-accent: #0284c7;

  --color-warm-ivory: #faf7f2;
  --color-warm-sand: #f5f0e8;
  --color-oatmeal-border: #e8e2d8;

  --color-eco-emerald: #059669;
  --color-eco-mint: #ecfdf5;
  --color-eco-border: #a7f3d0;

  --color-craft-gold: #d97706;
  --color-gold-soft: #fef3c7;
  --color-gold-accent: #f59e0b;

  --color-border: #e2e8f0;
  --color-border-hover: #93c5fd;

  --color-primary: #1d4ed8;
  --color-primary-hover: #1e40af;
  --color-dark: #0b1528;
  --color-navy: #0b192e;

  --text-title: #0b1528;
  --text-body: #334155;
  --text-muted: #64748b;

  /* Tailored Ambient Colored Shadows */
  --shadow-sm: 0 2px 4px rgba(11, 21, 40, 0.03), 0 1px 2px rgba(11, 21, 40, 0.02);
  --shadow-card: 0 8px 24px -4px rgba(11, 21, 40, 0.06), 0 2px 6px -1px rgba(11, 21, 40, 0.02);
  --shadow-hover: 0 18px 40px -6px rgba(29, 78, 216, 0.12), 0 6px 12px -2px rgba(11, 21, 40, 0.04);
  --shadow-lg: 0 22px 50px -10px rgba(11, 21, 40, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------- Base Reset ---------------- */
body {
  font-family: var(--font-body);
  background-color: var(--color-warm-ivory);
  color: var(--text-body);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text-title);
}

a {
  text-decoration: none;
  transition: var(--transition);
}

/* ---------------- Top Contact Bar ---------------- */
.top-bar {
  background: #f5f0e8;
  color: #57534e;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--color-oatmeal-border);
}

.top-bar a {
  color: #44403c;
  font-weight: 500;
}

.top-bar a:hover {
  color: var(--color-primary);
}

.badge-bgba {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.3);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

/* ---------------- Main Navbar ---------------- */
.navbar {
  transition: var(--transition);
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-oatmeal-border);
  padding: 0.95rem 0;
  z-index: 1030;
}

.navbar.navbar-scrolled {
  box-shadow: 0 10px 30px rgba(11, 21, 40, 0.07);
  padding: 0.75rem 0;
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px);
}

.navbar-brand {
  font-size: 1.48rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.28);
}

.nav-link {
  font-weight: 600;
  font-size: 0.94rem;
  color: #475569 !important;
  padding: 0.5rem 0.95rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary) !important;
  background-color: rgba(29, 78, 216, 0.08);
}

/* ---------------- Hero Section (Warm Ivory Linen + Radial Indigo Mesh) ---------------- */
.hero-section {
  position: relative;
  background: radial-gradient(1100px circle at 85% 15%, rgba(14, 165, 233, 0.12) 0%, rgba(245, 158, 11, 0.08) 35%, #faf7f2 70%, #f4f0e8 100%);
  color: var(--text-body);
  padding: 5.8rem 0 5.2rem;
  overflow: hidden;
  border-bottom: 1px solid var(--color-oatmeal-border);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(11, 21, 40, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 21, 40, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: 0.7;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: #b45309;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.08);
}

.hero-title {
  color: var(--color-indigo-navy);
  font-size: clamp(2.4rem, 4.5vw, 3.9rem);
  line-height: 1.15;
  margin-top: 1rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-title span.text-highlight {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 60%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: 1.12rem;
  color: #475569;
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-img-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 50px -12px rgba(11, 21, 40, 0.16), 0 6px 20px rgba(11, 21, 40, 0.06);
  border: 5px solid #ffffff;
  background: #f1f5f9;
}

.hero-img-box img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-img-box:hover img {
  transform: scale(1.03);
}

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid var(--color-oatmeal-border);
  color: var(--color-indigo-navy);
  padding: 0.9rem 1.3rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(11, 21, 40, 0.09);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.badge-top-left {
  top: 24px;
  left: 20px;
}

.badge-bottom-right {
  bottom: 24px;
  right: 20px;
}

/* ---------------- Quick Stats Counter Bar (Elevated Warm Trim) ---------------- */
.stats-bar {
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf8 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px -10px rgba(11, 21, 40, 0.08);
  margin-top: -3.6rem;
  position: relative;
  z-index: 10;
  border: 1px solid var(--color-oatmeal-border);
  padding: 2.2rem 1.8rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.5rem 1rem;
}

.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--color-indigo-navy);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------------- Section Styling ---------------- */
.section-padding {
  padding: 5.8rem 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-royal-blue);
  background-color: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.22);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-bottom: 1rem;
  line-height: 1.22;
  color: var(--color-indigo-navy);
}

.section-subtitle {
  color: #64748b;
  font-size: 1.05rem;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------- Partner Certifications Banner ---------------- */
.cert-banner-section {
  background: #f7f4ee;
  border-top: 1px solid var(--color-oatmeal-border);
  border-bottom: 1px solid var(--color-oatmeal-border);
  padding: 3.5rem 0;
}

.cert-pill {
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--color-oatmeal-border);
  border-radius: var(--radius-full);
  background: #ffffff;
  color: #334155;
  box-shadow: 0 2px 6px rgba(11, 21, 40, 0.03);
  transition: var(--transition);
}

.cert-pill:hover {
  border-color: var(--color-royal-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.1);
}

/* ---------------- About Us & Factory Section (Eco Sage & Warm Linen) ---------------- */
.about-section-styled {
  background: linear-gradient(135deg, #fbfaf7 0%, #f1f7f3 50%, #faf8f4 100%);
  border-bottom: 1px solid var(--color-oatmeal-border);
}

.about-card-pill {
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-oatmeal-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.about-card-pill:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card);
}

/* ---------------- Product Catalog Cards ---------------- */
.catalog-section-styled {
  background: #ffffff;
  border-bottom: 1px solid var(--color-oatmeal-border);
}

.catalog-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.8rem;
}

.catalog-btn {
  border: 1px solid var(--color-oatmeal-border);
  background: #faf7f2;
  color: #475569;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.catalog-btn:hover, .catalog-btn.active {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-oatmeal-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px -6px rgba(11, 21, 40, 0.12);
  border-color: #cbd5e1;
}

.product-img-wrapper {
  position: relative;
  height: 245px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--color-royal-blue);
  border: 1px solid rgba(232, 226, 216, 0.9);
  box-shadow: 0 2px 8px rgba(11, 21, 40, 0.08);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.32rem 0.8rem;
  border-radius: var(--radius-full);
}

.product-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.24rem;
  margin-bottom: 0.5rem;
  color: var(--color-indigo-navy);
}

.product-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.1rem;
  line-height: 1.5;
}

.product-spec-list {
  background-color: #faf7f2;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  border: 1px solid #ede7df;
}

.product-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.product-spec-row:not(:last-child) {
  border-bottom: 1px dashed #e2dad0;
}

.spec-key {
  color: #64748b;
  font-weight: 500;
}

.spec-val {
  font-weight: 700;
  color: var(--color-indigo-navy);
}

/* ---------------- 6-Step Sourcing Workflow (BRIGHT, HIGH-CONTRAST LIGHT THEME) ---------------- */
.process-section-styled {
  background: linear-gradient(180deg, #f0f7ff 0%, #e6f1fe 50%, #f4f8fe 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
}

.process-section-styled .section-title {
  color: #0b1528 !important;
}

.process-section-styled .section-subtitle {
  color: #475569 !important;
}

.process-section-styled .section-tag {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1d4ed8 !important;
}

.process-card {
  background: #ffffff !important;
  border: 1px solid #dbeafe !important;
  border-top: 4px solid #1d4ed8 !important;
  border-radius: var(--radius-md) !important;
  padding: 2.2rem 1.8rem !important;
  height: 100%;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 10px 25px -4px rgba(29, 78, 216, 0.07), 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: #93c5fd !important;
  border-top-color: #0284c7 !important;
  box-shadow: 0 20px 40px -6px rgba(29, 78, 216, 0.15) !important;
}

.process-card .process-step-num {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: #1d4ed8 !important;
  line-height: 1;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.process-card:hover .process-step-num {
  color: #0284c7 !important;
}

.process-card .process-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.2rem;
}

.process-card h5 {
  color: #0b1528 !important;
  font-weight: 700;
  font-size: 1.22rem;
}

.process-card p {
  color: #475569 !important;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------------- Quality Control & Compliance (Clinical Eco Emerald) ---------------- */
.quality-section-styled {
  background: linear-gradient(180deg, #f7fbf8 0%, #eef7f2 100%);
  border-bottom: 1px solid var(--color-oatmeal-border);
}

.qc-callout-styled {
  background: #eef9f2;
  border-left: 4px solid #059669;
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
}

/* ---------------- Interactive RFQ Estimator (Modern Twilight Studio) ---------------- */
.calculator-section-styled {
  background: linear-gradient(135deg, #f2f6fc 0%, #e8f0fa 50%, #f4f2fb 100%);
  border-bottom: 1px solid var(--color-oatmeal-border);
}

.rfq-calculator-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-oatmeal-border);
  box-shadow: 0 20px 48px -8px rgba(11, 21, 40, 0.09);
  padding: 2.8rem;
  position: relative;
  overflow: hidden;
}

.rfq-result-pane {
  background: linear-gradient(145deg, #0d172a 0%, #080f1d 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.rfq-result-pane h4 {
  color: #ffffff !important;
}

.rfq-calc-pill-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.85rem;
}

.rfq-calc-pill-dark .text-muted {
  color: #94a3b8 !important;
}

/* ---------------- Testimonials (Warm Cashmere & Amber Stars) ---------------- */
.testimonials-section-styled {
  background: #faf7f2;
  border-bottom: 1px solid var(--color-oatmeal-border);
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--color-oatmeal-border);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px -4px rgba(11, 21, 40, 0.09);
  border-color: #cbd5e1;
}

.rating-stars {
  color: #f59e0b;
  margin-bottom: 1rem;
}

.client-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------------- FAQ Accordion ---------------- */
.faq-section-styled {
  background: #ffffff;
  border-bottom: 1px solid var(--color-oatmeal-border);
}

.accordion-item {
  border: 1px solid var(--color-oatmeal-border);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 0.85rem;
  overflow: hidden;
  background-color: #ffffff;
}

.accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-indigo-navy);
  background-color: #ffffff;
  padding: 1.2rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background-color: #eff6ff;
  color: var(--color-royal-blue);
  box-shadow: none;
}

/* ---------------- Contact & Inquiries ---------------- */
.contact-section-styled {
  background: linear-gradient(135deg, #faf7f2 0%, #f0f4f9 100%);
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--color-oatmeal-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.contact-info-card:hover {
  border-color: var(--color-royal-blue);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--color-royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

/* ---------------- Footer (Deep Luxury Midnight) ---------------- */
.footer-main {
  background: #070c18;
  color: #94a3b8;
  padding: 5rem 0 2.5rem;
  border-top: 1px solid #1a2436;
}

.footer-main h6, .footer-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
