/* ============================================================
   TXM Global — 2026 Web Portal
   Single shared stylesheet for all pages (no build step).
   Palette drawn from the 2026 corporate presentation:
   cream canvas, deep navy type, TXM blue, sky accents.
   ============================================================ */

:root {
  --cream: #faf7f0;
  --cream-2: #f4efe4;
  --navy: #22314e;
  --navy-deep: #16213a;
  --blue: #1859c8;
  --blue-dark: #0f3f95;
  --sky: #bfdcec;
  --sky-soft: #dceaf3;
  --card: #e8f2f8;
  --teal: #35a3d0;
  --white: #ffffff;
  --ink-soft: #4a5670;
  --line: #e3dccb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(34, 49, 78, 0.10);
  --font-head: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.65;
  font-size: 16.5px;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }

img { max-width: 100%; display: block; }

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 14px;
}

.section { padding: 84px 0; }
.section.tint { background: var(--cream-2); }
.section.navy { background: var(--navy-deep); color: var(--sky-soft); }
.section.navy h2, .section.navy h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); }
.section.navy .section-head p { color: var(--sky); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 24px; max-width: 1240px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { height: 34px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  display: block; padding: 9px 14px; color: var(--navy);
  font-weight: 500; font-size: 0.95rem; border-radius: 8px;
}
.nav-links a:hover { background: var(--sky-soft); color: var(--blue-dark); }

.dropdown > a::after { content: " ▾"; font-size: 0.7em; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 250px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; z-index: 950;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { padding: 10px 14px; font-size: 0.92rem; border-radius: 8px; }

.nav-cta {
  background: var(--blue); color: var(--white) !important;
  padding: 10px 20px !important; border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--blue-dark) !important; }

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

/* Google Translate widget slot */
#google_translate_element { min-height: 28px; }
#google_translate_element .goog-te-gadget { font-size: 0.75rem; color: transparent; }
#google_translate_element select {
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px;
  background: var(--white); color: var(--navy); font-size: 0.82rem;
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer; color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 110px;
  background:
    linear-gradient(115deg, var(--cream) 0%, var(--cream) 55%, rgba(191,220,236,0.55) 100%);
}
.hero::after {
  content: ""; position: absolute; top: -120px; right: -180px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(24,89,200,0.16), rgba(53,163,208,0.05) 60%, transparent 72%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .tagline {
  font-family: var(--font-head); color: var(--blue);
  font-weight: 600; letter-spacing: 0.05em; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 780px; margin-bottom: 22px; }
.hero p.lede { max-width: 640px; color: var(--ink-soft); font-size: 1.12rem; margin-bottom: 34px; }

.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; transition: all .18s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-1px); }
.btn-ghost { border: 2px solid var(--navy); color: var(--navy); margin-left: 12px; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }

/* Page hero (inner pages) */
.page-hero {
  padding: 72px 0 56px;
  background: linear-gradient(115deg, var(--cream) 0%, var(--cream) 60%, rgba(191,220,236,0.5) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); margin-bottom: 14px; }
.page-hero p { max-width: 680px; color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  box-shadow: 0 4px 14px rgba(34,49,78,0.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.18rem; margin: 14px 0 10px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--card); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.92rem; }

/* Growth stream cards (homepage) */
.growth-card {
  background: linear-gradient(160deg, var(--white) 0%, var(--card) 100%);
  border-left: 5px solid var(--blue);
}
.growth-card .chip {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--blue); color: var(--white);
  border-radius: 999px; padding: 4px 12px;
}

/* Pillar cards */
.pillar-num {
  font-family: var(--font-head); font-size: 2rem; font-weight: 700;
  color: var(--sky); line-height: 1;
}
.pillar-label { color: var(--blue); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; }

/* Feature rows on service pages */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: none; }
.feature-row h2 { font-size: 1.75rem; margin-bottom: 14px; }
.feature-row p { color: var(--ink-soft); margin-bottom: 16px; }
.feature-row ul { list-style: none; }
.feature-row ul li {
  padding: 8px 0 8px 30px; position: relative; color: var(--navy); font-size: 0.98rem;
}
.feature-row ul li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--teal); font-weight: 700;
}
.feature-visual {
  border-radius: var(--radius); min-height: 260px;
  background: linear-gradient(140deg, var(--sky-soft), var(--sky) 60%, var(--card));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--blue); box-shadow: var(--shadow);
}
.feature-row.flip .feature-visual { order: -1; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; text-align: center; }
.stat h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--teal); }
.stat p { font-size: 0.88rem; color: var(--sky); }

/* ---------- Strip / banner ---------- */
.strip {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.strip h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.strip p { color: var(--ink-soft); }

/* ---------- Clients ---------- */
.logo-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.logo-chip {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-weight: 600; font-size: 0.88rem; color: var(--ink-soft);
}
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.region h4 { color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; margin-bottom: 8px; }
.region p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  font-family: var(--font-head); font-size: 1.08rem; font-weight: 600;
  color: var(--navy); padding: 22px 40px 22px 0; cursor: pointer; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--blue); transition: transform .2s;
}
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { color: var(--ink-soft); padding-bottom: 22px; max-width: 820px; }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--white); border-top: 4px solid var(--teal); }
.quote-card p { font-style: italic; }
.quote-card .who { margin-top: 16px; font-weight: 700; font-style: normal; color: var(--navy); font-size: 0.92rem; }
.rating { font-size: 1rem; color: var(--ink-soft); margin-top: 28px; }
.rating strong { color: var(--blue); }

/* ---------- Process (about) ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--sky);
  display: block; margin-bottom: 8px;
}
.step h4 { font-size: 0.98rem; margin-bottom: 6px; }
.step p { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta-panel {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue) 60%, var(--teal));
  border-radius: 22px; padding: 60px 48px; color: var(--white); text-align: center;
}
.cta-panel h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--white); margin-bottom: 12px; }
.cta-panel p { max-width: 620px; margin: 0 auto 28px; color: var(--sky-soft); }
.cta-panel .btn-primary { background: var(--white); color: var(--blue-dark); }
.cta-panel .btn-primary:hover { background: var(--sky-soft); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
.office { margin-bottom: 30px; }
.office h3 { font-size: 1.1rem; margin-bottom: 6px; }
.office p { color: var(--ink-soft); font-size: 0.96rem; }

form.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem; background: var(--cream);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--sky); border-color: var(--teal); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px; }
.consent input { margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--sky); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 0.04em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--sky); font-size: 0.92rem; }
.site-footer a:hover { color: var(--white); }
.footer-brand p { font-size: 0.92rem; margin-top: 14px; max-width: 300px; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(191,220,236,0.35);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700;
}
.footer-bottom {
  border-top: 1px solid rgba(191,220,236,0.2); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem;
}

/* WhatsApp float */
.wa-float {
  position: fixed; left: 22px; bottom: 22px; z-index: 800;
  background: #25d366; color: var(--white); border-radius: 999px;
  padding: 12px 20px; font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}
.wa-float:hover { color: var(--white); transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .strip, .contact-grid { grid-template-columns: 1fr; }
  .feature-row.flip .feature-visual { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
  }
  .nav-links.open { display: flex; }
  .dropdown-menu { display: block; position: static; box-shadow: none; border: none; background: transparent; padding-left: 16px; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
  .regions { grid-template-columns: 1fr; }
}
