/* ============================================
   Source One Ltd. — Global Stylesheet
   Design System · Components · Responsive
   ============================================ */

/* ----- CSS Custom Properties ----- */
:root {
  --clr-primary: #0a1628;
  --clr-primary-light: #0f1f3a;
  --clr-accent: #1a6dff;
  --clr-accent-hover: #1558d4;
  --clr-accent-light: #e8f0fe;
  --clr-gold: #d4a843;
  --clr-gold-light: #fdf6e8;
  --clr-bg: #f4f6f9;
  --clr-bg-white: #ffffff;
  --clr-text: #1a1a2e;
  --clr-text-light: #6b7280;
  --clr-border: #e2e8f0;
  --clr-success: #10b981;
  --ff-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --ff-body: 'Inter', system-ui, -apple-system, sans-serif;
  --container-max: 1200px;
  --header-h: 72px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --transition: 0.25s ease;
}

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--clr-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-accent-hover); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--clr-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

/* ----- Utility Classes ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-bg { background: var(--clr-bg); }

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-light);
  max-width: 640px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--ff-heading);
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
}

.btn-primary:hover {
  background: var(--clr-accent-hover);
  border-color: var(--clr-accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

.btn-outline:hover {
  background: #fff;
  color: var(--clr-primary);
  border-color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--clr-accent);
  border-color: var(--clr-accent);
}

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

.btn-gold {
  background: var(--clr-gold);
  color: #fff;
  border-color: var(--clr-gold);
}

.btn-gold:hover { background: #c09635; border-color: #c09635; color: #fff; }

.btn-lg { padding: 14px 36px; font-size: 1rem; }

/* ----- Header / Navigation ----- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--clr-primary);
  height: var(--header-h);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}

.logo-icon {
  flex-shrink: 0;
  display: block;
  width: 40px;
  height: 40px;
}

.logo-icon svg {
  display: block;
}

.logo span { color: var(--clr-accent); }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  display: block;
  padding: 8px 16px;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}

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

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

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--clr-primary) 0%, #0d1f40 40%, #122a50 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(26,109,255,.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(212,168,67,.08) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span { color: var(--clr-accent); }

.hero p {
  color: rgba(255,255,255,.7);
  font-size: 1.15rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-sm {
  min-height: 280px;
  background: linear-gradient(135deg, var(--clr-primary) 0%, #0d1f40 100%);
}

.hero-sm .hero-content { max-width: 720px; }
.hero-sm h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }

.hero-breadcrumb {
  display: flex;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  margin-bottom: 16px;
}

.hero-breadcrumb a { color: rgba(255,255,255,.6); }
.hero-breadcrumb a:hover { color: #fff; }

/* ----- Cards ----- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--clr-accent-light);
  color: var(--clr-accent);
  font-size: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--clr-text-light); font-size: .95rem; line-height: 1.65; }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .9rem; }

/* ----- Why Choose Us ----- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.why-item {
  text-align: center;
  padding: 32px 20px;
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--clr-accent-light);
  color: var(--clr-accent);
  font-size: 1.8rem;
  border-radius: 50%;
  margin-bottom: 20px;
}

.why-item h3 { margin-bottom: 8px; }
.why-item p { color: var(--clr-text-light); font-size: .95rem; }

/* ----- Stats ----- */
.stats {
  background: linear-gradient(135deg, var(--clr-accent) 0%, #1558d4 100%);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-value {
  font-family: var(--ff-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.stat-label {
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  margin-top: 8px;
}

/* ----- Timeline ----- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--clr-border);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
}

.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--clr-accent);
  border: 3px solid #fff;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--clr-accent-light);
}

.timeline-content {
  width: calc(50% - 40px);
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
}

.timeline-year {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  background: var(--clr-accent);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.timeline-content h3 { font-size: 1.15rem; margin-bottom: 8px; }
.timeline-content p { color: var(--clr-text-light); font-size: .93rem; }

/* ----- Testimonials ----- */
.testimonial-slider {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform .5s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 40px;
  text-align: center;
}

.testimonial-card blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--clr-text);
  line-height: 1.8;
  margin-bottom: 24px;
  position: relative;
}

.testimonial-card blockquote::before {
  content: '"';
  font-family: var(--ff-heading);
  font-size: 4rem;
  color: var(--clr-accent);
  opacity: .2;
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
}

.testimonial-author {
  font-weight: 600;
  color: var(--clr-primary);
}

.testimonial-role {
  font-size: .85rem;
  color: var(--clr-text-light);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.testimonial-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--clr-border);
  cursor: pointer;
  transition: background var(--transition);
}

.testimonial-dots button.active { background: var(--clr-accent); }

/* ----- CTA Banner ----- */
.cta-banner {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #0d1f40 100%);
  padding: 72px 0;
  text-align: center;
}

.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }

/* ----- Page Banner (inner pages) ----- */
.page-banner {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #0d1f40 100%);
  padding: 64px 0;
  text-align: center;
}

.page-banner h1 { color: #fff; margin-bottom: 10px; }
.page-banner .breadcrumb { color: rgba(255,255,255,.5); font-size: .88rem; }
.page-banner .breadcrumb a { color: rgba(255,255,255,.6); }
.page-banner .breadcrumb a:hover { color: #fff; }

/* ----- About Page ----- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-intro-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--clr-accent-light), #d4e2fc);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-intro-img .placeholder-icon {
  font-size: 4rem;
  color: var(--clr-accent);
  opacity: .5;
}

.about-text p { color: var(--clr-text-light); margin-bottom: 16px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
}

.value-card .value-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.value-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-card p { color: var(--clr-text-light); font-size: .9rem; }

/* ----- Offices ----- */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.office-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
}

.office-card h3 { margin-bottom: 12px; }
.office-card .office-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--clr-accent);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 10px;
}

.office-card address {
  font-style: normal;
  color: var(--clr-text-light);
  font-size: .93rem;
  line-height: 1.7;
}

/* ----- Services Page ----- */
.service-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px 36px;
  align-items: start;
  background: #fff;
  padding: 36px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
}

.service-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--clr-accent-light);
  color: var(--clr-accent);
  font-size: 1.6rem;
  border-radius: var(--radius);
}

.service-detail-text h3 { margin-bottom: 8px; }
.service-detail-text p { color: var(--clr-text-light); line-height: 1.7; }

/* ----- Global Sourcing Page ----- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.process-step {
  text-align: center;
  padding: 28px 16px;
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--clr-accent);
  color: #fff;
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.process-step h4 { font-size: 1rem; margin-bottom: 6px; }
.process-step p { color: var(--clr-text-light); font-size: .9rem; }

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.country-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: .93rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
}

.country-tag .flag { font-size: 1.3rem; }

/* ----- Contact Page ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: .9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: .95rem;
  transition: border-color var(--transition);
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px var(--clr-accent-light);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.contact-info-card {
  background: var(--clr-primary);
  color: #fff;
  padding: 36px;
  border-radius: var(--radius-lg);
}

.contact-info-card h3 { color: #fff; margin-bottom: 20px; }

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  color: rgba(255,255,255,.8);
  font-size: .93rem;
  line-height: 1.6;
}

.contact-info-item .ci-icon {
  flex-shrink: 0;
  color: var(--clr-gold);
  font-size: 1.1rem;
  margin-top: 2px;
}

/* ----- Footer ----- */
.footer {
  background: var(--clr-primary);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.footer p { font-size: .9rem; line-height: 1.7; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .9rem;
  color: rgba(255,255,255,.6);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 48px;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.back-to-top:hover { background: var(--clr-accent); color: #fff; }

/* ----- Animations ----- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

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

/* Hero title letter-by-letter pop */
.hero-title .hero-line {
  display: block;
  white-space: nowrap;
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px) scale(.4);
  transition: opacity .3s cubic-bezier(.22,.68,0,1.2),
              transform .3s cubic-bezier(.22,.68,0,1.2);
}

.hero-title .char.space {
  width: .3em;
}

.hero-title .char-word {
  white-space: nowrap;
}

.hero-title .char.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-intro { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; text-align: center; }
  .service-detail-icon { margin: 0 auto; }

  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(even) { flex-direction: row; }
  .timeline-dot { left: 20px; }
  .timeline-content { width: calc(100% - 60px); margin-left: 60px; }
}

@media (max-width: 767px) {
  :root { --header-h: 60px; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--clr-primary);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 2px;
    transform: translateX(100%);
    transition: transform .35s ease;
  }

  .nav.open { transform: translateX(0); }

  .nav a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius);
  }

  .nav-toggle { display: flex; }

  .hero { min-height: 460px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-btns { justify-content: center; }

  .section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

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

@media (max-width: 575px) {
  .cards-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .process-steps { grid-template-columns: 1fr; }
  .countries-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 260px; }
}
