/* ======================================================
   Texconnects — Brand Stylesheet
   Palette: Charcoal, Gold, Off-White, Deep Navy
   Fonts  : Playfair Display (serif) + Montserrat (sans)
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* ── CSS Variables ──────────────────────────────────── */
:root {
  --gold: #C9A84C;
  --gold-light: #E2C47C;
  --gold-dark: #A07C2E;
  --charcoal: #2C2C2C;
  --charcoal-lt: #3E3E3E;
  --navy: #1A2744;
  --navy-lt: #243460;
  --off-white: #F5F0E8;
  --cream: #FAF7F2;
  --text-muted: #888880;
  --border: rgba(201, 168, 76, .25);
  --shadow: 0 8px 32px rgba(26, 39, 68, .12);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, .08);
  --radius: 6px;
  --transition: .3s ease;
}

/* ── Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--charcoal);
  background: #fff;
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.25;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-dark);
}

img {
  max-width: 100%;
  display: block;
}

/* ── Utilities ──────────────────────────────────────── */
.text-gold {
  color: var(--gold) !important;
}

.text-navy {
  color: var(--navy) !important;
}

.text-charcoal {
  color: var(--charcoal) !important;
}

.bg-navy {
  background: var(--navy) !important;
}

.bg-gold {
  background: var(--gold) !important;
}

.bg-off-white {
  background: var(--off-white) !important;
}

.bg-cream {
  background: var(--cream) !important;
}

.bg-charcoal {
  background: var(--charcoal) !important;
}

.border-gold {
  border-color: var(--gold) !important;
}

.section-padding {
  padding: 90px 0;
}

.section-sm {
  padding: 60px 0;
}

.serif {
  font-family: 'Playfair Display', serif;
}

.italic {
  font-style: italic;
}

/* ── Section Heading ────────────────────────────────── */
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 18px;
}

.section-underline {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin-bottom: 30px;
}

.section-underline.center {
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ────────────────────────────────────────── */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(201, 168, 76, .3);
  cursor: pointer;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, .45);
  color: #fff;
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 11px 30px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-navy:hover {
  background: var(--navy-lt);
  transform: translateY(-2px);
  color: #fff;
}

/* ── Navbar ─────────────────────────────────────────── */
#mainNav {
  background: rgba(26, 39, 68, .97);
  backdrop-filter: blur(12px);
  padding: 0 0;
  transition: all var(--transition);
  border-bottom: 1px solid rgba(201, 168, 76, .2);
}

#mainNav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}

#mainNav .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#mainNav .navbar-brand span.brand-dot {
  color: var(--gold);
}

#mainNav .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82) !important;
  padding: 28px 16px !important;
  position: relative;
  transition: color var(--transition);
}

#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: #fff !important;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
  transform: scaleX(1);
}

#mainNav .nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff !important;
  padding: 8px 22px !important;
  border-radius: 4px;
  margin-left: 10px;
}

#mainNav .nav-cta::after {
  display: none;
}

#mainNav .nav-cta:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.navbar-toggler {
  border: 1.5px solid rgba(201, 168, 76, .5);
  padding: 6px 10px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28201%2C168%2C76%2C1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
  transform: scale(1.06);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1.12);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      rgba(26, 39, 68, .92) 0%,
      rgba(26, 39, 68, .65) 55%,
      rgba(44, 44, 44, .4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, .18);
  border: 1px solid rgba(201, 168, 76, .4);
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 24px;
  margin-top: 24px;
  line-height: 1.15;
}

.hero h1 em {
  color: var(--gold);
  font-style: italic;
}

.hero p.lead {
  color: rgba(255, 255, 255, .8);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  flex-wrap: wrap;
}

.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-stat-label {
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-top: 4px;
}

/* Scrolling marquee strip */
.marquee-strip {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

.marquee-inner span {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
  padding: 0 30px;
}

.marquee-inner span i {
  color: rgba(255, 255, 255, .6);
  font-size: .6rem;
  vertical-align: middle;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── Cards ──────────────────────────────────────────── */
.card-category {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.card-category:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .14);
}

.card-category:hover .card-overlay {
  opacity: 1;
}

.card-category-img {
  height: 240px;
  object-fit: cover;
  width: 100%;
  transition: transform .4s ease;
}

.card-category:hover .card-category-img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26, 39, 68, .85) 0%, transparent 60%);
  opacity: .7;
  transition: opacity var(--transition);
}

.card-category .card-body {
  padding: 22px;
}

.card-category .card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 6px;
}

/* ── Feature / Icon Box ─────────────────────────────── */
.feature-box {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 8px;
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .1);
  border-color: var(--border);
}

.feature-box .icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 168, 76, .15), rgba(201, 168, 76, .05));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 1.6rem;
  color: var(--gold);
  transition: all var(--transition);
}

.feature-box:hover .icon-wrap {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: transparent;
  color: #fff;
}

.feature-box h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 12px;
}

/* ── Quality / AQL Banner ───────────────────────────── */
.quality-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
  position: relative;
  overflow: hidden;
}

.quality-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(201, 168, 76, .08);
  border: 1px solid rgba(201, 168, 76, .12);
}

.quality-banner::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(201, 168, 76, .05);
  border: 1px solid rgba(201, 168, 76, .1);
}

.aql-stat {
  text-align: center;
  padding: 20px;
}

.aql-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.aql-stat .label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  margin-top: 6px;
}

/* ── Timeline (About) ───────────────────────────────── */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-light), var(--gold));
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 36px);
  margin-bottom: 50px;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 36px);
}

.timeline-dot {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--gold);
  z-index: 1;
}

.timeline-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  max-width: 380px;
  transition: all var(--transition);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.timeline-card .year {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

/* ── Team Cards ─────────────────────────────────────── */
.team-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.team-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;
}

.team-card-body {
  padding: 24px;
}

.team-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-card-role {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Portfolio / Product Cards ──────────────────────── */
.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .13);
}

.product-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .4s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.05);
}

.product-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: #fff;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
}

.product-card-body {
  padding: 20px;
}

.product-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 6px;
}

/* ── Filter Buttons ─────────────────────────────────── */
.filter-btn {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--charcoal);
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  margin: 4px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ── Contact Form ───────────────────────────────────── */
.form-control-custom {
  border: 1.5px solid rgba(0, 0, 0, .1);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: .88rem;
  color: var(--charcoal);
  background: #fff;
  transition: all var(--transition);
  width: 100%;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, .12);
}

.form-label-custom {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 7px;
  display: block;
}

/* ── Contact Info Box ───────────────────────────────── */
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 168, 76, .15), rgba(201, 168, 76, .05));
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
}

.contact-info-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: .9rem;
  font-weight: 500;
  color: var(--charcoal);
}

/* ── Footer ─────────────────────────────────────────── */
#footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, .75);
}

#footer .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}

#footer .footer-logo span {
  color: var(--gold);
}

#footer h6 {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

#footer a {
  color: rgba(255, 255, 255, .65);
  font-size: .87rem;
  display: block;
  margin-bottom: 8px;
  transition: color var(--transition);
}

#footer a:hover {
  color: var(--gold);
}

#footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 24px;
  margin-top: 40px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .4);
}

/* ── Certifications Bar ─────────────────────────────── */
.cert-bar {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.cert-item i {
  font-size: 1.4rem;
  color: var(--gold);
}

.cert-item span {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ── Fabric Thread Count Badges ─────────────────────── */
.thread-badge {
  display: inline-block;
  padding: 5px 14px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--navy);
  margin: 4px;
  transition: all var(--transition);
  cursor: pointer;
}

.thread-badge:hover,
.thread-badge.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ── Page Hero (Inner Pages) ────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
  padding: 140px 0 70px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: rgba(201, 168, 76, .06);
  border: 1px solid rgba(201, 168, 76, .1);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(201, 168, 76, .04);
}

.page-hero h1 {
  color: #fff;
}

.page-hero .breadcrumb-item {
  color: rgba(255, 255, 255, .5);
  font-size: .8rem;
}

.page-hero .breadcrumb-item.active {
  color: var(--gold);
}

.page-hero .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, .3);
}

/* ── Back-to-top ────────────────────────────────────── */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(201, 168, 76, .4);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
  cursor: pointer;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

#backToTop:hover {
  transform: translateY(-3px);
}

/* ── Fade-in on scroll ──────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive tweaks ──────────────────────────────── */
@media (max-width: 991px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 60px;
  }

  .timeline-dot {
    left: 20px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-stats {
    gap: 20px;
  }

  #mainNav .nav-link {
    padding: 12px 16px !important;
  }

  #mainNav .nav-link::after {
    display: none;
  }
}