/* ===================================================
   RESOURCE BANGLADESH — Apparel Sourcing Partner
   Main Stylesheet
   =================================================== */

:root {
  /* Brand colors — drawn from logo (green/navy gradient) */
  --rb-green: #5BAE2D;
  --rb-green-dark: #3F8A1F;
  --rb-green-light: #8FD14F;
  --rb-navy: #16314F;
  --rb-navy-light: #1E4A78;
  --rb-teal: #1B5E7A;
  --rb-ink: #1A2330;
  --rb-paper: #FAFAF7;
  --rb-cream: #F5F2E9;
  --rb-line: #E4E2DC;
  --rb-gray: #5C6470;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1240px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--rb-ink);
  background: var(--rb-paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--rb-navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.4rem; }

p { color: var(--rb-gray); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rb-green-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--rb-green);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--rb-green);
  color: #fff;
}
.btn-primary:hover { background: var(--rb-green-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy {
  background: var(--rb-navy);
  color: #fff;
}
.btn-navy:hover { background: var(--rb-navy-light); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--rb-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--rb-navy);
  font-weight: 700;
}
.brand-text span {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--rb-green-dark);
  font-weight: 600;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 36px; }
.main-nav a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--rb-navy);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--rb-green);
  transition: width 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--rb-green-dark); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.88rem; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--rb-navy);
  margin: 5px 0;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--rb-navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(22,49,79,0.94) 0%, rgba(22,49,79,0.82) 38%, rgba(22,49,79,0.45) 75%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 60px 32px;
  margin: 0 auto;
  width: 100%;
}
.hero .eyebrow { color: var(--rb-green-light); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero p.lead {
  color: rgba(255,255,255,0.88);
  font-size: 1.12rem;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.22);
  padding-top: 28px;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--rb-green-light);
}
.hero-stats .stat span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}

/* ============ SECTIONS ============ */
section { padding: 90px 0; }
.section-cream { background: var(--rb-cream); }
.section-navy { background: var(--rb-navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,0.78); }

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ============ GRID HELPERS ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

/* ============ ABOUT / SPLIT ============ */
.split-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }

.list-check { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--rb-ink);
}
.list-check li .tick {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--rb-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 2px;
}

/* ============ CARDS: VALUES / SERVICES ============ */
.card {
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { box-shadow: 0 18px 40px -16px rgba(22,49,79,0.18); transform: translateY(-3px); }
.card .icon {
  width: 50px; height: 50px;
  border-radius: 10px;
  background: rgba(91,174,45,0.12);
  color: var(--rb-green-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { font-size: 0.93rem; }

.card-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rb-green);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  display: block;
}

/* ============ PROCESS STEPS ============ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  position: relative;
}
.process-step {
  text-align: center;
  position: relative;
  padding: 0 10px;
}
.process-step .num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--rb-navy);
  color: var(--rb-green-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
}
.process-step p { font-size: 0.82rem; color: rgba(255,255,255,0.92); font-weight: 600; }
.process-line {
  position: absolute;
  top: 23px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--rb-line);
  z-index: 1;
}

/* ============ PRODUCT CATEGORY TILES ============ */
.cat-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.cat-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,49,79,0) 35%, rgba(22,49,79,0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}
.cat-tile-overlay h3 { color: #fff; margin-bottom: 4px; }
.cat-tile-overlay span { color: rgba(255,255,255,0.78); font-size: 0.85rem; }

/* Product sub-item grid (within a category) */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-item {
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-item .thumb { aspect-ratio: 1/1; overflow: hidden; }
.product-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-item .label { padding: 14px 16px; }
.product-item .label h4 { font-size: 0.95rem; color: var(--rb-navy); font-weight: 700; }
.product-item .label span { font-size: 0.78rem; color: var(--rb-gray); }

.category-block { margin-bottom: 80px; }
.category-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--rb-navy);
  padding-bottom: 14px;
}
.category-block-head h2 { margin-bottom: 0; }
.category-block-head span { color: var(--rb-gray); font-size: 0.9rem; }

/* ============ TESTIMONIALS ============ */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: var(--radius);
  padding: 32px;
}
.testimonial-card .stars { color: var(--rb-green); margin-bottom: 16px; font-size: 0.95rem; letter-spacing: 2px; }
.testimonial-card p.quote {
  font-style: italic;
  color: var(--rb-ink);
  margin-bottom: 22px;
  font-size: 0.97rem;
}
.testimonial-who { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--rb-navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}
.testimonial-who strong { display: block; font-size: 0.9rem; color: var(--rb-navy); }
.testimonial-who span { font-size: 0.78rem; color: var(--rb-gray); }

/* ============ LOGOS / AFFILIATION STRIP ============ */
.affil-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  padding: 36px 0;
}
.affil-strip .affil-item {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--rb-navy);
  font-size: 1.05rem;
  opacity: 0.7;
  text-align: center;
}
.affil-item small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; color: var(--rb-gray); margin-top: 2px; }

/* ============ CTA BANNER ============ */
.cta-banner {
  background: linear-gradient(120deg, var(--rb-navy) 0%, var(--rb-teal) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.82); margin-bottom: 0; }

/* ============ FORMS ============ */
.form-card {
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--rb-navy); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--rb-line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--rb-paper);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--rb-green);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--rb-gray); margin-top: 18px; }

/* ============ CONTACT INFO CARDS ============ */
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.contact-info-card {
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.contact-info-card .icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(91,174,45,0.12);
  color: var(--rb-green-dark);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-card h4 { font-size: 1rem; color: var(--rb-navy); margin-bottom: 6px; }
.contact-info-card p { font-size: 0.9rem; margin: 0; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--rb-ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-brand img { height: 44px; border-radius: 6px; background: #fff; padding: 4px; }
.footer-brand strong { font-family: var(--font-display); color: #fff; font-size: 1.1rem; }
.site-footer h5 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 700;
}
.site-footer ul { display: flex; flex-direction: column; gap: 11px; }
.site-footer a:hover { color: var(--rb-green-light); }
.site-footer p { color: rgba(255,255,255,0.62); font-size: 0.92rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--rb-green); border-color: var(--rb-green); }

/* ============ PAGE HEADER (sub-pages) ============ */
.page-header {
  background: var(--rb-navy);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(91,174,45,0.18);
}
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--rb-green-light); }
.page-header h1 { color: #fff; margin-bottom: 10px; position: relative; z-index: 2;}
.page-header p { color: rgba(255,255,255,0.78); max-width: 600px; position: relative; z-index: 2; }

/* ============ FILTER TABS (products page) ============ */
.filter-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.filter-tabs a {
  padding: 10px 22px;
  border: 1px solid var(--rb-line);
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rb-navy);
  background: #fff;
}
.filter-tabs a:hover, .filter-tabs a.active {
  background: var(--rb-navy);
  color: #fff;
  border-color: var(--rb-navy);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .main-nav ul { gap: 22px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(4, 1fr); row-gap: 30px; }
  .process-line { display: none; }
  .contact-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px;
    background: #fff; flex-direction: column; align-items: flex-start; padding: 90px 28px 28px;
    transition: right 0.3s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.1); z-index: 99; }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 22px; }
  .nav-cta { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 30px; }
  .menu-toggle { display: block; z-index: 101; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .grid-4, .product-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 28px; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { min-height: auto; padding-top: 40px; }
  .hero-content { padding: 50px 24px 60px; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 520px) {
  .grid-3, .grid-4, .product-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .header-inner { padding: 12px 20px; }
}
