/* ============================================================
   KAS SOURCING — Global Trading House
   Design System: Old Money / Industrial Authority
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette */
  --navy:       #0A1628;
  --navy-light: #132240;
  --charcoal:   #1C2331;
  --slate:      #2E3A4D;
  --steel:      #5A6A7A;
  --silver:     #8899AA;
  --pearl:      #C5CDD6;
  --bone:       #E8ECF0;
  --off-white:  #F4F6F8;
  --white:      #FFFFFF;
  --gold:       #B8944F;
  --gold-light: #D4B06A;
  --gold-dark:  #9A7A3C;
  --accent-red: #8B2D2D;

  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* Spacing */
  --section-pad: 100px 0;
  --container:   1200px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease);
}

img {
  max-width: 100%;
  display: block;
}

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-body); font-weight: 600; }

p {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 680px;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 20px 0;
}

.divider-center {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 20px auto;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184, 148, 79, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10, 22, 40, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-ghost:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-sm {
  padding: 12px 24px;
  font-size: 0.78rem;
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}
.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* --- HEADER / NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  transition: all 0.4s var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.header.scrolled {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 40px rgba(0,0,0,0.15);
}

.header.scrolled .header-inner {
  padding: 14px 40px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-mark {
  display: none;
}

.logo-mark img {
  display: none;
}

/* Larger logo in footer */
.footer-brand .logo-mark {
  display: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.logo-tagline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav a {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  position: relative;
  padding: 4px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav a:hover,
.nav a.active {
  color: var(--white);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 10px;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s var(--ease);
  display: block;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.65) 50%, rgba(10,22,40,0.88) 100%),
    url('https://images.unsplash.com/photo-1494412574643-ff11b0a5eb19?w=1920&q=80') center/cover no-repeat;
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: 
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 100px;
}

.hero-overline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-overline::before {
  content: '';
  width: 40px;
  height: 1.5px;
  background: var(--gold);
}

.hero h1 {
  color: var(--white);
  max-width: 800px;
  margin-bottom: 28px;
}

.hero h1 span {
  color: var(--gold);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--pearl);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Stats Bar */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1400px;
  margin: 0 auto;
}

.stat-item {
  padding: 32px 40px;
  border-right: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--silver);
}

/* --- TRUST BAR --- */
.trust-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--bone);
  padding: 48px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease);
}

.trust-item:hover {
  opacity: 1;
}

.trust-icon {
  width: 42px;
  height: 42px;
  background: var(--white);
  border: 1px solid var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-text strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.trust-text span {
  font-size: 0.72rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- SECTION STYLES --- */
.section {
  padding: var(--section-pad);
}

.section-dark {
  background: var(--navy);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: var(--pearl);
}

.section-alt {
  background: var(--off-white);
}

.section-header {
  margin-bottom: 64px;
}

.section-header.center {
  text-align: center;
}

.section-header.center p {
  margin: 0 auto;
}

.section-header.center .divider {
  margin: 20px auto;
}

/* --- CAPABILITIES GRID --- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--bone);
}

.capability-card {
  padding: 56px 44px;
  border-right: 1px solid var(--bone);
  position: relative;
  transition: all 0.4s var(--ease);
  background: var(--white);
}

.capability-card:last-child { border-right: none; }

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.capability-card:hover {
  background: var(--off-white);
}

.capability-card:hover::before {
  transform: scaleX(1);
}

.capability-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--bone);
  line-height: 1;
  margin-bottom: 24px;
}

.capability-card:hover .capability-number {
  color: var(--gold);
}

.capability-card h3 {
  margin-bottom: 16px;
}

.capability-card p {
  font-size: 0.95rem;
  color: var(--steel);
  line-height: 1.7;
}

/* --- DIVISIONS / COMMODITIES --- */
.division {
  padding: 80px 0;
  border-bottom: 1px solid var(--bone);
}

.division:last-child {
  border-bottom: none;
}

.division-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.division-grid.reverse {
  direction: rtl;
}

.division-grid.reverse > * {
  direction: ltr;
}

.division-visual {
  position: relative;
  min-height: 400px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.division-visual.img-agriculture {
  background: 
    linear-gradient(180deg, rgba(10,22,40,0.7) 0%, rgba(10,22,40,0.85) 100%),
    url('https://images.unsplash.com/photo-1536304993881-460e32f50669?w=800&q=80') center/cover no-repeat;
}

.division-visual.img-textiles {
  background: 
    linear-gradient(180deg, rgba(10,22,40,0.7) 0%, rgba(10,22,40,0.85) 100%),
    url('https://images.unsplash.com/photo-1558171813-4c088753af8f?w=800&q=80') center/cover no-repeat;
}

.division-visual.img-minerals {
  background: 
    linear-gradient(180deg, rgba(10,22,40,0.7) 0%, rgba(10,22,40,0.85) 100%),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=800&q=80') center/cover no-repeat;
}

.division-visual.img-energy {
  background: 
    linear-gradient(180deg, rgba(10,22,40,0.7) 0%, rgba(10,22,40,0.85) 100%),
    url('https://images.unsplash.com/photo-1513828583688-c52646db42da?w=800&q=80') center/cover no-repeat;
}

.division-visual.img-partner {
  background: 
    linear-gradient(180deg, rgba(10,22,40,0.7) 0%, rgba(10,22,40,0.85) 100%),
    url('https://images.unsplash.com/photo-1521791136064-7986c2920216?w=800&q=80') center/cover no-repeat;
}

.division-visual-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px;
}

.division-visual .division-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.3;
}

.division-visual h3 {
  color: var(--white);
  font-size: 1.8rem;
}

.division-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184, 148, 79, 0.15);
  margin: 16px;
}

.division-content {
  padding: 20px 0;
}

.division-content .label {
  margin-bottom: 16px;
}

.division-content h2 {
  margin-bottom: 20px;
}

.division-content > p {
  margin-bottom: 32px;
}

.commodity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.commodity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--off-white);
  border-left: 3px solid var(--gold);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  transition: all 0.3s var(--ease);
}

.commodity-item:hover {
  background: var(--bone);
  padding-left: 28px;
}

.commodity-item .item-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  flex-shrink: 0;
}

/* --- SERVICES / PROCESS --- */
.process-timeline {
  position: relative;
  padding: 40px 0;
}

.process-line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--bone);
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 40px;
  padding: 40px 0;
  align-items: start;
}

.process-marker {
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 2px solid var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  position: relative;
  z-index: 1;
  transition: all 0.3s var(--ease);
}

.process-step:hover .process-marker {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.process-content h3 {
  margin-bottom: 10px;
}

.process-content p {
  font-size: 0.95rem;
  color: var(--steel);
}

/* --- SERVICE CARDS --- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.service-card {
  background: var(--navy-light);
  padding: 48px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gold);
  transition: height 0.4s var(--ease);
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  border-color: rgba(184, 148, 79, 0.2);
  transform: translateY(-4px);
}

.service-card h3 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.service-card p {
  color: var(--pearl);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- ABOUT / LEGACY --- */
.legacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.legacy-image {
  position: relative;
  min-height: 500px;
  background: 
    linear-gradient(180deg, rgba(10,22,40,0.75) 0%, rgba(10,22,40,0.9) 100%),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=800&q=80') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.legacy-year {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 700;
  color: rgba(184, 148, 79, 0.12);
  line-height: 1;
  position: absolute;
  bottom: 40px;
  right: 40px;
}

.legacy-content .label { margin-bottom: 16px; }
.legacy-content h2 { margin-bottom: 24px; }
.legacy-content p { margin-bottom: 20px; }

.port-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-item {
  padding: 32px;
  background: var(--off-white);
  border-left: 3px solid var(--gold);
}

.value-item h4 {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--navy);
}

.value-item p {
  font-size: 0.88rem;
  color: var(--steel);
}

/* --- CONTACT / TRADE DESK --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
}

.contact-info {
  padding: 20px 0;
}

.contact-block {
  margin-bottom: 40px;
}

.contact-block h4 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 0.85rem;
}

.contact-block p,
.contact-block a {
  font-size: 0.95rem;
  color: var(--steel);
  line-height: 1.8;
}

.contact-block a:hover {
  color: var(--gold);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: var(--white);
  padding: 14px 28px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s var(--ease);
  margin-top: 8px;
}

.whatsapp-btn:hover {
  background: #1DA851;
  transform: translateY(-2px);
  color: var(--white);
}

.trade-form {
  background: var(--off-white);
  padding: 56px;
  border: 1px solid var(--bone);
}

.trade-form h3 {
  margin-bottom: 8px;
}

.trade-form > p {
  margin-bottom: 36px;
  font-size: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 1px solid var(--bone);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color 0.3s var(--ease);
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A6A7A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-submit {
  margin-top: 12px;
}

/* --- PAGE HERO (Inner pages) --- */
.page-hero {
  background: var(--navy);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero.hero-commodities {
  background: 
    linear-gradient(135deg, rgba(10,22,40,0.93) 0%, rgba(10,22,40,0.88) 100%),
    url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=1920&q=80') center/cover no-repeat;
}

.page-hero.hero-services {
  background: 
    linear-gradient(135deg, rgba(10,22,40,0.93) 0%, rgba(10,22,40,0.88) 100%),
    url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?w=1920&q=80') center/cover no-repeat;
}

.page-hero.hero-about {
  background: 
    linear-gradient(135deg, rgba(10,22,40,0.93) 0%, rgba(10,22,40,0.88) 100%),
    url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1920&q=80') center/cover no-repeat;
}

.page-hero.hero-contact {
  background: 
    linear-gradient(135deg, rgba(10,22,40,0.93) 0%, rgba(10,22,40,0.88) 100%),
    url('https://images.unsplash.com/photo-1521791136064-7986c2920216?w=1920&q=80') center/cover no-repeat;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: 
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 80px 80px;
}

.page-hero .label { color: var(--gold); }

.page-hero h1 {
  color: var(--white);
  max-width: 700px;
  margin-bottom: 20px;
}

.page-hero p {
  color: var(--pearl);
  max-width: 560px;
  font-size: 1.1rem;
}

.page-hero .divider {
  margin: 16px 0 20px;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--steel);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--silver); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--pearl); margin: 0 8px; }

/* --- FOOTER --- */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-brand .logo { margin-bottom: 20px; }

.footer-brand p {
  font-size: 0.88rem;
  color: var(--silver);
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--silver);
  padding: 6px 0;
  transition: all 0.3s var(--ease);
}

.footer-col a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 40px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--steel);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.75rem;
  color: var(--steel);
}

.footer-legal a:hover {
  color: var(--gold);
}

/* --- CTA BANNER --- */
.cta-banner {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184,148,79,0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.cta-banner p {
  color: var(--pearl);
  margin: 0 auto 36px;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* --- ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* --- RESPONSIVE --- */

/* ---- Tablet landscape ---- */
@media (max-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  
  .capability-card {
    border-right: none;
    border-bottom: 1px solid var(--bone);
  }
  
  .capability-card:last-child { border-bottom: none; }
  
  .division-grid,
  .division-grid.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }
  
  .legacy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .service-cards {
    grid-template-columns: 1fr;
  }
  
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .port-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Tablet portrait / large phones ---- */
@media (max-width: 768px) {
  :root {
    --section-pad: 64px 0;
  }

  html { font-size: 15px; }
  
  .container { padding: 0 20px; }
  .header-inner { padding: 16px 20px; }
  
  h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); }
  h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }

  p { font-size: 1rem; }

  .hero-sub { font-size: 1rem; }
  .hero-overline { font-size: 0.7rem; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 40px;
    gap: 24px;
    transition: right 0.4s var(--ease);
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    overflow-y: auto;
  }
  
  .nav.open { right: 0; }
  
  .nav a {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
  }
  
  .nav-cta { margin-left: 0; margin-top: 16px; }
  
  .menu-toggle { display: flex; }
  
  .hero { min-height: 100vh; min-height: 100dvh; }
  .hero-content { padding: 120px 0 140px; }
  
  .hero-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-item { padding: 20px 16px; }
  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: 0.62rem; }
  
  .trust-bar { padding: 36px 0; }
  .trust-bar-inner { gap: 24px; }
  .trust-icon { width: 36px; height: 36px; font-size: 0.95rem; }
  .trust-text strong { font-size: 0.78rem; }
  .trust-text span { font-size: 0.68rem; }
  
  .form-row { grid-template-columns: 1fr; }
  
  .trade-form { padding: 32px 20px; }

  .capability-card { padding: 40px 28px; }
  .capability-number { font-size: 2.8rem; }
  
  .service-card { padding: 36px 28px; }

  .division { padding: 48px 0; }
  .division-visual { min-height: 300px; }

  .process-timeline { padding: 20px 0; }
  .process-step { 
    grid-template-columns: 40px 1fr;
    gap: 20px;
    padding: 28px 0;
  }
  .process-marker { width: 40px; height: 40px; font-size: 1rem; }
  .process-line { left: 20px; }

  .values-grid { grid-template-columns: 1fr; }
  .value-item { padding: 24px; }

  .legacy-image { min-height: 380px; padding: 40px; }
  .legacy-year { font-size: 5rem; bottom: 24px; right: 24px; }
  
  .footer-main {
    grid-template-columns: 1fr;
    padding: 48px 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 20px;
  }

  .page-hero { padding: 120px 0 60px; }
  .page-hero h1 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); }

  .cta-banner { padding: 56px 0; }
  .cta-banner h2 { font-size: clamp(1.4rem, 4vw, 2rem); }

  .section-header { margin-bottom: 44px; }

  .commodity-item { padding: 12px 16px; font-size: 0.88rem; }

  .btn { padding: 14px 28px; font-size: 0.8rem; }
  .btn-sm { padding: 11px 20px; font-size: 0.74rem; }

  .port-grid { grid-template-columns: 1fr; }

  .contact-block { margin-bottom: 28px; }

  .whatsapp-btn { padding: 12px 22px; font-size: 0.8rem; }

  .scroll-top { width: 42px; height: 42px; bottom: 20px; right: 20px; }
}

/* ---- Small phones ---- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  html { font-size: 14px; }

  h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }

  .hero-content { padding: 100px 0 130px; }

  .hero-stats-inner {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item { padding: 16px 12px; }
  .stat-number { font-size: 1.3rem; }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .trust-bar-inner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 0 8px;
  }
  
  .division-visual { min-height: 240px; }
  .legacy-image { min-height: 300px; }
  .legacy-year { font-size: 4rem; }

  .capability-card { padding: 32px 20px; }
  .capability-number { font-size: 2.4rem; }

  .service-card { padding: 28px 20px; }

  .trade-form { padding: 24px 16px; }

  .logo-name { font-size: 1.15rem; letter-spacing: 0.06em; }
  .logo-tagline { font-size: 0.52rem; }

  .breadcrumb { font-size: 0.65rem; margin-bottom: 16px; }

  .section-header { margin-bottom: 36px; }

  .footer-brand p { font-size: 0.82rem; }
  .footer-col a { font-size: 0.82rem; }

  .process-step { gap: 14px; padding: 22px 0; }
  .process-marker { width: 34px; height: 34px; font-size: 0.85rem; }
  .process-line { left: 17px; }
}

/* ---- Extra small (below 360px) ---- */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .header-inner { padding: 14px 12px; }

  .hero-content { padding: 90px 0 120px; }

  .stat-item { padding: 12px 8px; }
  .stat-number { font-size: 1.1rem; }
  .stat-label { font-size: 0.55rem; }

  .btn { padding: 12px 20px; font-size: 0.75rem; }
  .btn-sm { padding: 10px 16px; font-size: 0.7rem; }

  .capability-card { padding: 24px 16px; }

  .division-visual { min-height: 200px; }
  
  .trade-form { padding: 20px 12px; }
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 12px 14px; font-size: 0.88rem; }
}

/* ---- Safe area (notch devices) ---- */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer-bottom {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .scroll-top {
    bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .nav {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ---- Landscape phones ---- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero-content { padding: 100px 0 80px; }
  .hero-stats { position: relative; }
  .page-hero { padding: 100px 0 40px; }
}

/* ---- Prefer reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---- Print ---- */
@media print {
  .header, .footer, .scroll-top, .cta-banner, .menu-toggle, .nav-overlay { display: none; }
  .hero { min-height: auto; padding: 40px 0; }
  .hero-bg, .hero-pattern { display: none; }
  .hero-content { padding: 20px 0; }
  .section { padding: 30px 0; }
  body { color: #000; }
  h1, h2, h3 { color: #000; }
  p { color: #333; }
}

/* --- OVERLAY --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}

/* --- SCROLL TOP --- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
}
