/* ============================================================
   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;
}

body {
  overflow-x: clip;
  max-width: 100%;
}

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: 14px;
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 12px 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 6px 20px rgba(184,148,79,0.25);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #a1823f;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(184,148,79,0.4);
  outline: none;
}

/* 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-medical {
  background:
    linear-gradient(180deg, rgba(10,22,40,0.6) 0%, rgba(10,22,40,0.85) 100%),
    url('https://images.unsplash.com/photo-1631217868264-e5b90bb7e133?w=1200&q=80') center/cover no-repeat;
}

.division-visual.img-transformers {
  background:
    linear-gradient(180deg, rgba(10,22,40,0.6) 0%, rgba(10,22,40,0.85) 100%),
    url('https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?w=1200&q=80') center/cover no-repeat;
}

.division-visual.img-food {
  background:
    linear-gradient(180deg, rgba(10,22,40,0.6) 0%, rgba(10,22,40,0.85) 100%),
    url('https://images.unsplash.com/photo-1544145945-f90425340c7e?w=1200&q=80') center/cover no-repeat;
}

.division-visual.img-wheat {
  background:
    linear-gradient(180deg, rgba(10,22,40,0.6) 0%, rgba(10,22,40,0.85) 100%),
    url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1200&q=80') center/cover no-repeat;
}

.division-visual.img-tenders {
  background:
    linear-gradient(180deg, rgba(10,22,40,0.6) 0%, rgba(10,22,40,0.85) 100%),
    url('https://images.unsplash.com/photo-1541872703-74c5e44368f9?w=1200&q=80') center/cover no-repeat;
}

.division-visual.img-marketing {
  background:
    linear-gradient(180deg, rgba(10,22,40,0.6) 0%, rgba(10,22,40,0.85) 100%),
    url('https://images.unsplash.com/photo-1533750349088-cd871a92f312?w=1200&q=80') center/cover no-repeat;
}

.division-visual.img-ai {
  background:
    linear-gradient(180deg, rgba(10,22,40,0.6) 0%, rgba(10,22,40,0.85) 100%),
    url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485?w=1200&q=80') center/cover no-repeat;
}

.division-visual.img-it {
  background:
    linear-gradient(180deg, rgba(10,22,40,0.7) 0%, rgba(10,22,40,0.85) 100%),
    url('https://images.unsplash.com/photo-1518770660439-4636190af475?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: 14px;
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(184,148,79,0.2);
}

.contact-block p,
.contact-block a {
  font-size: 0.96rem;
  color: var(--charcoal);
  line-height: 1.75;
}

.contact-block a {
  transition: color 0.2s var(--ease);
  border-bottom: 1px solid transparent;
}

.contact-block a:hover {
  color: var(--gold);
  border-bottom-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(--white);
  padding: 48px;
  border: 1px solid var(--bone);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(10,22,40,0.08), 0 2px 8px rgba(10,22,40,0.04);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.trade-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, #d4b76b 50%, var(--gold) 100%);
  border-radius: 10px 10px 0 0;
}

.trade-form h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
  color: var(--navy);
}

.trade-form > p {
  margin-bottom: 36px;
  font-size: 0.95rem;
  color: var(--steel);
}

.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 {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 15px 18px;
  border: 1.5px solid #e6e2d8;
  background: #fafaf7;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(184,148,79,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca9b8;
}

.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;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.form-submit {
  margin-top: 20px;
}

.form-submit .btn {
  width: 100%;
  padding: 18px 32px;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(184,148,79,0.28);
}

.form-submit .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(184,148,79,0.38);
}

/* --- 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.hero-medical {
  background:
    linear-gradient(135deg, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.75) 100%),
    url('https://images.unsplash.com/photo-1631217868264-e5b90bb7e133?w=1920&q=80') center/cover no-repeat;
}

.page-hero.hero-tenders {
  background:
    linear-gradient(135deg, rgba(10,22,40,0.9) 0%, rgba(10,22,40,0.78) 100%),
    url('https://images.unsplash.com/photo-1541872703-74c5e44368f9?w=1920&q=80') center/cover no-repeat;
}

.page-hero.hero-wheat {
  background:
    linear-gradient(135deg, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.75) 100%),
    url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1920&q=80') center/cover no-repeat;
}

.page-hero.hero-food {
  background:
    linear-gradient(135deg, rgba(10,22,40,0.9) 0%, rgba(10,22,40,0.78) 100%),
    url('https://images.unsplash.com/photo-1544145945-f90425340c7e?w=1920&q=80') center/cover no-repeat;
}

.page-hero.hero-marketing {
  background:
    linear-gradient(135deg, rgba(10,22,40,0.9) 0%, rgba(10,22,40,0.78) 100%),
    url('https://images.unsplash.com/photo-1533750349088-cd871a92f312?w=1920&q=80') center/cover no-repeat;
}

.page-hero.hero-it {
  background:
    linear-gradient(135deg, rgba(10,22,40,0.9) 0%, rgba(10,22,40,0.78) 100%),
    url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1920&q=80') center/cover no-repeat;
}

.page-hero.hero-ai {
  background:
    linear-gradient(135deg, rgba(10,22,40,0.9) 0%, rgba(10,22,40,0.78) 100%),
    url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485?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;
  pointer-events: none;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.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.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
  position: relative;
  z-index: 2;
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  cursor: pointer;
  display: inline-block;
  padding: 8px 6px;
  margin: -8px 0;
  border-radius: 3px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--white);
  background: rgba(184,148,79,0.15);
  text-decoration-thickness: 2px;
  outline: none;
}
.breadcrumb span { color: var(--pearl); margin: 0 6px; opacity: 0.6; }

/* --- FOOTER --- */
.footer {
  background:
    linear-gradient(180deg, #0a1628 0%, #06111f 100%);
  border-top: 1px solid rgba(184,148,79,0.15);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--gold);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding: 80px 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-brand .logo { margin-bottom: 24px; }

.footer-brand .logo .logo-name {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  max-width: 320px;
  line-height: 1.75;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(184,148,79,0.2);
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  padding: 8px 0;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease), border-left-color 0.25s var(--ease);
  border-left: 2px solid transparent;
  padding-left: 0;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--gold);
  padding-left: 10px;
  border-left-color: var(--gold);
  outline: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 40px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s var(--ease);
}

.footer-legal a:hover {
  color: var(--gold);
}

.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: 88px 0;
  text-align: center;
  position: relative;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner .container > * {
  position: relative;
  z-index: 1;
}

.cta-banner .label {
  color: var(--gold);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.cta-banner .label::before,
.cta-banner .label::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
}

.cta-banner p {
  color: var(--pearl);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.cta-banner .btn {
  padding: 18px 44px;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  box-shadow: 0 10px 30px rgba(184,148,79,0.28);
}

.cta-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(184,148,79,0.4);
}

/* --- 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: 86%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #0e1a30 0%, #0a1628 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 96px 28px 40px;
    gap: 4px;
    transition: right 0.4s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,0.5);
    overflow-y: auto;
  }

  .nav.open { right: 0; }

  .nav a::after { display: none; }

  .nav a {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    padding: 16px 20px;
    display: block;
    border-radius: 6px;
    letter-spacing: 0.04em;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav a:not(.nav-cta):hover,
  .nav a:not(.nav-cta):focus-visible,
  .nav a:not(.nav-cta).active {
    background: rgba(184,148,79,0.08);
    color: var(--gold);
    outline: none;
  }

  .nav a:not(.nav-cta).active {
    border-left: 3px solid var(--gold);
    padding-left: 17px;
  }

  .nav .nav-cta {
    margin-top: 28px;
    margin-left: 0;
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 18px 24px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(184,148,79,0.25);
    border-bottom: none;
  }

  .nav .nav-cta:hover,
  .nav .nav-cta:focus-visible,
  .nav .nav-cta.active {
    background: #a1823f;
    color: var(--white);
    border-left: none;
    padding-left: 24px;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(184,148,79,0.35);
  }

  .menu-toggle { display: flex; }
  
  .hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding-top: 90px;
  }
  .hero-content {
    padding: 20px 20px 40px;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-stats {
    position: relative;
    background: rgba(10, 22, 40, 0.55);
    margin-top: 0;
    width: 100%;
  }
  .hero-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    padding: 24px 16px;
    border-right: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: 0.66rem; }
  
  .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: 16px 16px 32px; }

  .hero-stats-inner {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item { padding: 20px 12px; }
  .stat-number { font-size: 1.4rem; }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
  
  .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: 12px 16px 24px; }

  .stat-item { padding: 16px 8px; }
  .stat-number { font-size: 1.2rem; }
  .stat-label { font-size: 0.58rem; }

  .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);
}
