/* =========================================================
   SOLIFEX PTE LTD — Corporate Trading Website
   Design tokens per brief Section 5 (Design Direction)
   ========================================================= */

:root{
  --navy:        #1E2761;   /* Primary — headings, buttons, footer bg */
  --navy-dark:   #151c49;
  --gold:        #C9A961;   /* Accent — dividers, highlighted links */
  --gold-dark:   #b3924e;
  --ice:         #F7F9FC;   /* Neutral section background */
  --ink:         #1A1A2E;   /* Body text */
  --muted:       #5C6378;   /* Captions, footer text */
  --white:       #FFFFFF;

  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head:  'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --radius: 4px;
  --container-max: 1200px;
}

/* ---------- Base ---------- */
html{ scroll-behavior: smooth; }

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

h1,h2,h3,h4,h5,h6{
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

a{ color: var(--navy); text-decoration: none; }
a:hover{ color: var(--gold-dark); }

.text-gold{ color: var(--gold) !important; }
.text-navy{ color: var(--navy) !important; }
.text-muted-custom{ color: var(--muted) !important; }
.bg-ice{ background-color: var(--ice); }
.bg-navy{ background-color: var(--navy); }

.eyebrow{
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section{ padding: 5.5rem 0; }
@media (max-width: 767.98px){ .section{ padding: 3.25rem 0; } }

.section-title{
  font-size: clamp(1.65rem, 2.6vw, 2.4rem);
  margin-bottom: 1rem;
}

.divider-gold{
  width: 56px;
  height: 3px;
  background: var(--gold);
  border: none;
  margin: 0 0 1.75rem 0;
  border-radius: 2px;
}

.lead-muted{
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 680px;
}

/* ---------- Buttons ---------- */
.btn-solifex-primary{
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  letter-spacing: 0.01em;
  transition: all .2s ease;
}
.btn-solifex-primary:hover{
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy);
}

.btn-solifex-outline{
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  padding: 0.7rem 1.7rem;
  border-radius: var(--radius);
  transition: all .2s ease;
}
.btn-solifex-outline:hover{
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-solifex-navy{
  background: var(--navy);
  border: 1px solid var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
}
.btn-solifex-navy:hover{
  background: var(--navy-dark);
  color: var(--white);
}

/* ---------- Navbar ---------- */
.navbar-solifex{
  background: var(--white);
  padding: 1.05rem 0;
  border-bottom: 1px solid #eef0f5;
}
.navbar-solifex .navbar-brand{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.navbar-solifex .navbar-brand .brand-mark{ color: var(--gold-dark); }
.navbar-solifex .nav-link{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 0.5rem 1rem !important;
}
.navbar-solifex .nav-link.active,
.navbar-solifex .nav-link:hover{ color: var(--navy); }
.navbar-solifex .nav-link.active{ position: relative; }
.navbar-solifex .nav-link.active::after{
  content:"";
  position:absolute;
  left:1rem; right:1rem; bottom:0.2rem;
  height:2px; background: var(--gold);
}

/* ---------- Hero (page header banner used on inner pages) ---------- */
.page-hero{
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  color: var(--white);
}
.page-hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: radial-gradient(circle at 85% 20%, rgba(201,169,97,0.16), transparent 55%),
                     radial-gradient(circle at 10% 90%, rgba(201,169,97,0.10), transparent 45%);
}
.page-hero .container{ position: relative; }
.page-hero h1{ color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.page-hero .breadcrumb-solifex{
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.page-hero .breadcrumb-solifex a{ color: rgba(255,255,255,0.75); }
.page-hero .breadcrumb-solifex a:hover{ color: var(--gold); }

/* ---------- Home Hero ---------- */
.home-hero{
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 60%, #10143a 100%);
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 6.5rem 0 5rem;
}
.home-hero::after{
  content:"";
  position:absolute; inset:0;
  background-image: radial-gradient(circle at 88% 15%, rgba(201,169,97,0.20), transparent 50%),
                     radial-gradient(circle at 5% 100%, rgba(201,169,97,0.12), transparent 45%);
  pointer-events:none;
}
.home-hero .container{ position:relative; z-index:2; }
.home-hero h1{
  color: var(--white);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.15;
}
.home-hero .lead{
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 560px;
}
.hero-routemap{
  position: relative;
  z-index: 1;
}

/* Route-map SVG styling (signature element) */
.route-dash{
  stroke-dasharray: 6 7;
  animation: dashmove 22s linear infinite;
}
@keyframes dashmove{ to{ stroke-dashoffset: -260; } }
.route-node circle.pulse{
  animation: pulse 2.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes pulse{
  0%,100%{ opacity:0.55; }
  50%{ opacity:1; }
}
@media (prefers-reduced-motion: reduce){
  .route-dash{ animation: none; }
  .route-node circle.pulse{ animation: none; }
}

/* ---------- Cards ---------- */
.card-solifex{
  background: var(--white);
  border: 1px solid #eceef4;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card-solifex:hover{
  box-shadow: 0 14px 34px -18px rgba(30,39,97,0.28);
  transform: translateY(-3px);
}
.card-icon{
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--ice);
  color: var(--navy);
  display:flex; align-items:center; justify-content:center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
  border: 1px solid #eceef4;
}
.card-solifex h3, .card-solifex h4{ font-size: 1.08rem; margin-bottom: 0.6rem; }
.card-solifex p{ color: var(--muted); font-size: 0.94rem; margin-bottom: 0; }

.product-tile{
  background: var(--white);
  border: 1px solid #eceef4;
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-tile .tile-top{
  background: var(--ice);
  padding: 2rem 1.75rem 1.5rem;
  border-bottom: 3px solid var(--gold);
}
.product-tile .tile-body{ padding: 1.5rem 1.75rem 1.9rem; flex:1; display:flex; flex-direction:column; }
.product-tile .tile-body p{ color: var(--muted); font-size: 0.94rem; flex:1; }
.product-tile .tile-icon{
  width:50px; height:50px; border-radius:10px;
  background: var(--navy); color: var(--gold);
  display:flex; align-items:center; justify-content:center;
  font-size: 1.4rem; margin-bottom: 1rem;
}
.tile-link{
  font-family: var(--font-head);
  font-weight: 700; font-size: 0.88rem;
  color: var(--navy);
  display:inline-flex; align-items:center; gap:0.4rem;
}
.tile-link:hover{ color: var(--gold-dark); }
.tile-link i{ transition: transform .2s ease; }
.tile-link:hover i{ transform: translateX(3px); }

/* ---------- Quote / Vision-Mission blocks ---------- */
.quote-block{
  background: var(--ice);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2.2rem 2.2rem;
  height: 100%;
}
.quote-block .quote-label{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.9rem;
  display:block;
}
.quote-block p.serif{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.28rem;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ---------- Process steps (Our Business) ---------- */
.process-steps{
  display:flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  counter-reset: step;
}
.process-step{
  flex: 1 1 180px;
  background: var(--white);
  border: 1px solid #eceef4;
  border-radius: var(--radius);
  padding: 1.75rem 1.4rem;
  position: relative;
}
.process-step .step-num{
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.75rem;
  display:block;
}
.process-step h4{ font-size: 1rem; margin-bottom: 0.5rem; }
.process-step p{ color: var(--muted); font-size: 0.9rem; margin-bottom:0; }
.process-arrow{
  display:flex; align-items:center; justify-content:center;
  color: var(--gold);
  font-size: 1.2rem;
}
@media (max-width: 991.98px){ .process-arrow{ display:none; } }

/* ---------- Company snapshot table ---------- */
.snapshot-table{
  width:100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.snapshot-table tr{ border-bottom: 1px solid #eceef4; }
.snapshot-table tr:last-child{ border-bottom:none; }
.snapshot-table th{
  text-align:left;
  font-family: var(--font-head);
  color: var(--navy);
  font-weight:700;
  padding: 0.85rem 1rem 0.85rem 0;
  width: 46%;
  vertical-align: top;
}
.snapshot-table td{
  padding: 0.85rem 0;
  color: var(--muted);
  vertical-align: top;
}

/* ---------- Map (Markets We Serve) ---------- */
.map-panel{
  background: var(--navy);
  border-radius: 8px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.map-legend-item{
  display:flex; align-items:center; gap:0.6rem;
  font-family: var(--font-head); font-weight:600; font-size:0.92rem;
  color: var(--white); margin-bottom: 0.6rem;
}
.map-legend-dot{ width:10px; height:10px; border-radius:50%; flex:0 0 auto; }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before{
  content:"";
  position:absolute; inset:0;
  background-image: radial-gradient(circle at 90% 50%, rgba(201,169,97,0.16), transparent 55%);
}
.cta-band .container{ position:relative; }
.cta-band h2{ color: var(--white); }

/* ---------- Compliance / quality strip ---------- */
.info-strip{
  background: var(--ice);
  border: 1px solid #eceef4;
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
}

/* ---------- Forms (Contact) ---------- */
.form-solifex label{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-solifex .form-control,
.form-solifex .form-select{
  border: 1px solid #dfe3ee;
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
}
.form-solifex .form-control:focus,
.form-solifex .form-select:focus{
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.18);
}
.form-check-label{ font-size: 0.9rem; color: var(--muted); }
.contact-info-card{
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem;
}
.contact-info-card h3{ color: var(--white); }
.contact-info-card .info-row{
  display:flex; gap:0.9rem; margin-bottom:1.35rem;
}
.contact-info-card .info-row i{ color: var(--gold); font-size:1.15rem; margin-top:0.15rem; }
.contact-info-card .info-row div small{ color: rgba(255,255,255,0.6); display:block; font-size:0.78rem; letter-spacing:0.06em; text-transform:uppercase; margin-bottom:0.15rem; }

/* ---------- Footer ---------- */
.footer-solifex{
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 1.75rem;
  font-size: 0.9rem;
}
.footer-solifex h5{
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.footer-solifex a{ color: rgba(255,255,255,0.68); }
.footer-solifex a:hover{ color: var(--gold); }
.footer-solifex .footer-brand{
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--white);
  font-size: 1.2rem;
}
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-solifex ul{ list-style:none; padding:0; margin:0; }
.footer-solifex ul li{ margin-bottom: 0.6rem; }

/* Skip link for accessibility */
.skip-link{
  position:absolute; left:-999px; top:auto;
  background: var(--navy); color:#fff; padding: 0.6rem 1rem;
  z-index: 2000; border-radius: 0 0 6px 0;
}
.skip-link:focus{ left:0; top:0; }

/* Focus visibility */
a:focus-visible, button:focus-visible, .form-control:focus-visible{
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

/* =========================================================
   Scroll-reveal animation
   Elements get .reveal added by JS (see js/main.js), then
   .is-visible once they cross the viewport threshold.
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.reveal-fade{ transform: translateY(14px); }
.reveal.reveal-left{ transform: translateX(-32px); }
.reveal.reveal-right{ transform: translateX(32px); }
.reveal.reveal-zoom{ transform: scale(0.94); }

.reveal.is-visible{
  opacity: 1;
  transform: none;
}

/* Stagger children of a revealing group (cards, tiles, steps) */
.reveal-group .reveal:nth-child(1){ transition-delay: .05s; }
.reveal-group .reveal:nth-child(2){ transition-delay: .14s; }
.reveal-group .reveal:nth-child(3){ transition-delay: .23s; }
.reveal-group .reveal:nth-child(4){ transition-delay: .32s; }
.reveal-group .reveal:nth-child(5){ transition-delay: .41s; }
.reveal-group .reveal:nth-child(6){ transition-delay: .50s; }

/* Count-up numbers (used on process step numerals) */
.route-node{ opacity: 0; transform: scale(0.85); transition: opacity .6s ease, transform .6s ease; }
.route-node.is-visible{ opacity: 1; transform: none; }

/* Scroll progress bar */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gold);
  z-index: 2100;
  transition: width .1s linear;
}

@media (prefers-reduced-motion: reduce){
  .reveal, .route-node{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .scroll-progress{ display: none; }
}