/* =========================================================
   Terra ICT — landing page
   Palette derived from logo.png: navy #032940 / #012942, orange #fd8e00
   ========================================================= */

:root {
  --navy-900: #012942;
  --navy-800: #032940;
  --navy-700: #0a3a57;
  --navy-600: #14506f;
  --orange:   #fd8e00;
  --orange-soft: #ffb04d;
  --orange-ink:  #c96e00;

  --paper:  #eef3f7;
  --paper-2:#f7fafc;
  --white:  #ffffff;
  --ink:    #0c1f2c;
  --muted:  #5a7180;
  --muted-light: rgba(255,255,255,.72);
  --line:   rgba(3,41,64,.12);
  --line-light: rgba(255,255,255,.14);

  --display: 'Sora', system-ui, sans-serif;
  --body: 'Inter Tight', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --wrap: 1180px;
  --radius: 16px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--orange); color: var(--navy-900); padding: 10px 16px;
  border-radius: 10px; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: lowercase;
  color: var(--orange-ink);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--orange-soft); }
.eyebrow--center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .18s var(--ease), background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--navy-900); box-shadow: 0 8px 24px -8px rgba(253,142,0,.7); }
.btn-primary:hover { background: var(--orange-soft); box-shadow: 0 12px 30px -8px rgba(253,142,0,.8); }
.btn-ghost { color: var(--white); border-color: var(--line-light); }
.btn-ghost:hover { background: rgba(255,255,255,.07); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-pill { background: var(--navy-800); color: var(--white); padding: 11px 20px; }
.btn-pill:hover { background: var(--navy-700); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(238,243,247,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(3,41,64,.5); background: rgba(238,243,247,.94); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 1.22rem; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; }
.brand-accent { color: var(--orange); }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-family: var(--display); font-weight: 500; font-size: .95rem; color: var(--navy-800); position: relative; padding: 4px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--orange); transition: width .25s var(--ease); }
.nav a:hover::after { width: 100%; }
.header-inner > .btn-pill { margin-left: 4px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-800); transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: flex; flex-direction: column; padding: 8px 24px 20px; gap: 4px; border-bottom: 1px solid var(--line); background: var(--paper); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 0; font-family: var(--display); font-weight: 500; border-bottom: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 130% at 80% -10%, var(--navy-700) 0%, var(--navy-800) 42%, var(--navy-900) 100%);
  color: var(--white);
}
.hero-route { position: absolute; inset: 0; opacity: .9; }
.hero-route svg { width: 100%; height: 100%; }
.route-line { fill: none; stroke: var(--orange); stroke-width: 1.4; opacity: .55; stroke-dasharray: 6 10; }
.route-line--2 { stroke: rgba(255,255,255,.35); stroke-width: 1; }
.route-node { fill: var(--orange); filter: drop-shadow(0 0 8px rgba(253,142,0,.9)); }
.route-node--2 { fill: var(--white); opacity: .7; }

.hero-inner { position: relative; z-index: 2; padding: 100px 24px 96px; max-width: 920px; }
.hero-title { font-size: clamp(2.6rem, 6.4vw, 5.1rem); font-weight: 800; }
.hero-title-accent { display: block; color: var(--orange); }
.hero-lede { margin-top: 26px; max-width: 620px; font-size: clamp(1.04rem, 1.6vw, 1.22rem); color: var(--muted-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 54px; margin: 64px 0 0; padding-top: 34px; border-top: 1px solid var(--line-light); }
.hero-stats dt { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.7rem); letter-spacing: -.03em; }
.hero-stats dt span { font-size: .5em; color: var(--orange); margin-left: 2px; }
.hero-stats dd { margin: 4px 0 0; font-family: var(--mono); font-size: .76rem; color: var(--muted-light); max-width: 16ch; }

/* ---------- section scaffolding ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; color: var(--navy-900); }
.section-sub { margin-top: 18px; color: var(--muted); font-size: 1.08rem; max-width: 58ch; }

/* ---------- value strip ---------- */
.strip { background: var(--navy-900); color: var(--white); }
.strip-inner { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }
.strip-item { padding: 48px 36px; border-left: 1px solid var(--line-light); position: relative; }
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-key { font-family: var(--mono); font-size: .82rem; color: var(--orange); }
.strip-item h3 { font-size: 1.32rem; font-weight: 700; margin: 14px 0 10px; }
.strip-item p { color: var(--muted-light); font-size: .98rem; }

/* ---------- about ---------- */
.about { background: var(--paper); overflow: hidden; }
.about-grid {
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center;
}

/* media side */
.about-media { position: relative; margin: 0; }
.about-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 34px 70px -38px rgba(3,41,64,.55);
  aspect-ratio: 4 / 3;
}
.about-frame img {
  width: 100%; height: 100%; object-fit: cover;
  /* cool the bright stock photo toward the brand without killing detail */
  filter: saturate(.92) contrast(1.03);
}
/* navy-to-clear wash so the photo seats into the section + carries brand */
.about-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(150deg, rgba(1,41,66,.42) 0%, rgba(1,41,66,0) 42%, rgba(253,142,0,.10) 100%);
}
/* the routing-line signature, threading off the image corner */
.about-frame-line {
  position: absolute; left: -1px; bottom: 26px; width: 56%; height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  box-shadow: 0 0 14px rgba(253,142,0,.6);
}
.about-frame-line::before {
  content: ''; position: absolute; left: 0; top: -4px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px rgba(253,142,0,.9);
}
/* floating credential chip */
.about-chip {
  position: absolute; right: 18px; top: 18px;
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(1,41,66,.86); color: var(--white);
  font-family: var(--mono); font-size: .76rem; letter-spacing: .01em;
  padding: 9px 14px; border-radius: 999px; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.14);
}
.about-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(253,142,0,.6); animation: aboutPulse 2.4s ease-out infinite; }
@keyframes aboutPulse {
  0%   { box-shadow: 0 0 0 0 rgba(253,142,0,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(253,142,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(253,142,0,0); }
}

/* copy side */
.about-title-accent { display: block; color: var(--orange-ink); }
.about-lede { margin-top: 22px; font-size: 1.16rem; color: var(--ink); font-weight: 500; max-width: 46ch; }
.about-body { margin-top: 16px; color: var(--muted); font-size: 1.02rem; max-width: 50ch; }

.about-proof {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px;
  margin: 34px 0 0; padding-top: 30px; border-top: 1px solid var(--line);
}
.about-stat dt {
  font-family: var(--display); font-weight: 800; font-size: 2.2rem;
  letter-spacing: -.03em; color: var(--navy-900); line-height: 1;
}
.about-stat dt span { font-size: .5em; color: var(--orange); margin-left: 2px; }
.about-stat dd { margin: 8px 0 0; font-family: var(--mono); font-size: .78rem; color: var(--muted); max-width: 24ch; line-height: 1.45; }

.about-copy .btn-primary { margin-top: 34px; }

/* ---------- solutions (editorial rows) ---------- */
.solutions { background: var(--paper); }
.solution-rows { display: grid; gap: 30px; }

.srow {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; align-items: stretch;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .3s var(--ease), border-color .3s, transform .3s var(--ease);
}
.srow:hover { box-shadow: 0 30px 64px -38px rgba(3,41,64,.5); border-color: rgba(253,142,0,.35); transform: translateY(-4px); }
.srow--rev .srow-media { order: 2; }

/* media */
.srow-media { position: relative; margin: 0; min-height: 340px; overflow: hidden; }
.srow-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.92) contrast(1.03);
  transition: transform .6s var(--ease);
}
.srow:hover .srow-media img { transform: scale(1.05); }
/* brand wash so every photo seats into navy/orange identity */
.srow-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(1,41,66,.46) 0%, rgba(1,41,66,.05) 48%, rgba(253,142,0,.12) 100%);
}
/* mono service tag chip */
.srow-tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em;
  color: var(--navy-900); background: var(--orange);
  padding: 6px 12px; border-radius: 7px; font-weight: 500;
}

/* copy */
.srow-copy { padding: 40px 42px; display: flex; flex-direction: column; justify-content: center; }
.srow-index { font-family: var(--mono); font-size: .78rem; color: var(--orange-ink); letter-spacing: .04em; }
.srow-copy h3 { font-size: clamp(1.32rem, 2vw, 1.7rem); font-weight: 700; color: var(--navy-900); margin: 12px 0 12px; line-height: 1.12; }
.srow-copy > p { color: var(--muted); font-size: 1rem; max-width: 46ch; }
.srow-list { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.srow-list li { position: relative; padding-left: 22px; font-size: .93rem; color: var(--ink); font-family: var(--mono); letter-spacing: -.01em; line-height: 1.5; }
.srow-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }

/* ---------- approach ---------- */
.approach { background: var(--paper-2); border-top: 1px solid var(--line); }
.approach-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.approach-copy { position: sticky; top: 100px; }
.approach-steps { display: grid; gap: 4px; }
.approach-step { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; padding: 26px 0; border-top: 1px solid var(--line); }
.approach-step:first-child { border-top: 0; }
.step-no { font-family: var(--mono); font-size: 1.05rem; color: var(--white); background: var(--navy-800); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.approach-step:hover .step-no { background: var(--orange); color: var(--navy-900); }
.approach-step h3 { font-size: 1.28rem; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.approach-step p { color: var(--muted); }

/* ---------- partners ---------- */
.partners { text-align: center; background: var(--paper); }
.partners-title { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 700; color: var(--navy-900); max-width: 22ch; margin: 0 auto 44px; }
.partner-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 48px; }
.partner-row li { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; color: var(--navy-800); opacity: .42; transition: opacity .2s, color .2s; }
.partner-row li:hover { opacity: 1; color: var(--orange-ink); }

/* ---------- cta ---------- */
.cta { background: var(--navy-900); color: var(--white); position: relative; overflow: hidden; }
.cta-inner { position: relative; display: grid; grid-template-columns: 1.4fr .85fr; gap: 60px; align-items: center; }
.cta-route { position: absolute; right: -120px; top: -80px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(253,142,0,.22), transparent 65%); filter: blur(8px); }
.cta-title { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; }
.cta-sub { margin: 20px 0 32px; color: var(--muted-light); max-width: 46ch; font-size: 1.08rem; }
.cta-contacts { display: grid; gap: 18px; position: relative; }
.cta-contacts li { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line-light); }
.cta-contacts span { font-family: var(--mono); font-size: .74rem; color: var(--orange-soft); text-transform: uppercase; letter-spacing: .08em; }
.cta-contacts a, .cta-contacts li { font-size: 1.06rem; }
.cta-contacts a:hover { color: var(--orange-soft); }

/* ---------- cta map ---------- */
.cta-map { position: relative; z-index: 1; margin: 56px 0 0; }
.map-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-light);
  box-shadow: 0 28px 60px -34px rgba(0,0,0,.6);
}
.map-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(253,142,0,.18);
}
.map-frame iframe {
  display: block; width: 100%; height: 360px; border: 0;
  filter: grayscale(.25) contrast(1.04);
}
.map-caption {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; font-family: var(--mono); font-size: .9rem; color: var(--muted-light);
}
.map-pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(253,142,0,.16); color: var(--orange); flex: none; }
.map-pin svg { width: 17px; height: 17px; }
.map-link { margin-left: auto; color: var(--orange-soft); font-weight: 500; }
.map-link:hover { color: var(--orange); }
@media (max-width: 560px) {
  .map-frame iframe { height: 280px; }
  .map-caption { flex-wrap: wrap; }
  .map-link { margin-left: 0; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: var(--white); border-top: 1px solid var(--line-light); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 70px 24px 44px; }
.footer-brand .brand { color: var(--white); }
.footer-brand p { margin-top: 16px; color: var(--muted-light); max-width: 30ch; font-size: .95rem; }
.footer-col h4 { font-size: .82rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--orange-soft); margin-bottom: 16px; font-weight: 500; }
.footer-col a, .footer-col span { display: block; color: var(--muted-light); padding: 5px 0; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-base { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-top: 1px solid var(--line-light); color: var(--muted-light); font-size: .86rem; flex-wrap: wrap; gap: 12px; }
.footer-social { display: flex; gap: 22px; }
.footer-social a:hover { color: var(--orange-soft); }

/* ---------- reveal animation (CSS fallback when GSAP is absent) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* When GSAP is active it owns all reveal visibility; drop the CSS transition
   so the two systems never double-animate. */
html.gsap-ready .reveal { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .route-line { stroke-dasharray: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .nav { display: none; }
  .header-inner > .btn-pill { display: none; }
  .nav-toggle { display: flex; }
  .strip-inner { grid-template-columns: 1fr; }
  .strip-item { border-left: 0; padding: 30px 0; border-top: 1px solid var(--line-light); }
  .strip-item:first-child { border-top: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-frame { aspect-ratio: 16 / 10; }
  .srow { grid-template-columns: 1fr; }
  .srow-media { min-height: 0; aspect-ratio: 16 / 10; }
  .srow--rev .srow-media { order: 0; }
  .approach-grid { grid-template-columns: 1fr; gap: 36px; }
  .approach-copy { position: static; }
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .section { padding: 68px 0; }
  .hero-inner { padding: 72px 24px 68px; }
  .hero-stats { gap: 22px 30px; }
  .about-proof { grid-template-columns: 1fr 1fr; gap: 22px 20px; }
  .about-stat dt { font-size: 1.8rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-base { justify-content: flex-start; }
}
