/* TM Consulting LLC — Corporate Website Styles */

:root {
  --navy: #0e1a2b;
  --navy-2: #142338;
  --ink: #1c2b3a;
  --body: #46586c;
  --muted: #6b7c8f;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --accent: #b9922e;
  --accent-soft: #f6efdd;
  --radius: 14px;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.brand-mark span { color: var(--accent); }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0.2px;
}

.brand-tag {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover { background: var(--bg-soft); text-decoration: none; }

.main-nav a.active {
  color: var(--navy);
  font-weight: 700;
  background: var(--accent-soft);
}

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

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #1b3049 100%);
  color: #fff;
  padding: 96px 0 104px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 146, 46, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero-kicker {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin-bottom: 22px;
  color: #fff;
}

.hero p.lead {
  font-size: clamp(17px, 2vw, 19.5px);
  color: rgba(255, 255, 255, 0.78);
  max-width: 660px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #16202e;
}

.btn-primary:hover { box-shadow: 0 8px 24px rgba(185, 146, 46, 0.35); }

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-outline:hover { border-color: rgba(255, 255, 255, 0.7); }

.btn-dark {
  background: var(--navy);
  color: #fff;
}

/* Page hero (interior pages) */

.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%);
  color: #fff;
  padding: 72px 0 76px;
}

.page-hero .hero-kicker { margin-bottom: 12px; }

.page-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: #fff;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 680px;
  font-size: 17.5px;
}

/* ---------- Sections ---------- */

section.block { padding: 80px 0; }
section.block.soft { background: var(--bg-soft); }

.section-kicker {
  font-size: 12.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

h2.section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 720px;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 40px;
  font-size: 17px;
}

.prose { max-width: 760px; }
.prose p { margin-bottom: 18px; }
.prose h3 { color: var(--ink); font-size: 21px; margin: 34px 0 12px; font-weight: 700; }
.prose ul { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }

/* ---------- Cards & grids ---------- */

.grid {
  display: grid;
  gap: 22px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(14, 26, 43, 0.08);
  transform: translateY(-2px);
}

.card h3 {
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p { font-size: 15.5px; }

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 21px;
}

.card ul {
  margin: 12px 0 0 0;
  list-style: none;
}

.card ul li {
  font-size: 15px;
  padding: 6px 0 6px 24px;
  position: relative;
  border-bottom: 1px solid var(--bg-soft);
}

.card ul li:last-child { border-bottom: none; }

.card ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Principles strip */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: center;
}

.principle {
  padding: 34px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.principle .num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.principle h3 { color: var(--ink); font-size: 22px; font-weight: 800; }

/* Process steps */

.steps { counter-reset: step; display: grid; gap: 16px; }

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
}

.step-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.step h3 { color: var(--ink); font-size: 17.5px; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 15.5px; }

/* Flow line (Idea → Research → ...) */

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 26px 0;
}

.flow span.node {
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 17px;
  border-radius: 999px;
}

.flow span.arrow { color: var(--accent); font-weight: 700; }

/* CTA band */

.cta-band {
  background: linear-gradient(150deg, var(--navy), #1b3049);
  color: #fff;
  border-radius: 18px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cta-band p { color: rgba(255, 255, 255, 0.75); max-width: 520px; }

/* ---------- Info / legal tables ---------- */

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  vertical-align: top;
}

.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

.info-table th {
  width: 240px;
  color: var(--ink);
  font-weight: 600;
  background: var(--bg-soft);
  white-space: nowrap;
}

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: #8a6c1d;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* Contact */

.contact-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-panel h3 { color: var(--ink); font-size: 19px; margin-bottom: 14px; }

.contact-panel address {
  font-style: normal;
  line-height: 1.9;
  font-size: 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 34px;
  margin-top: 0;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: #fff; }

.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }

.footer-brand-name { color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 6px; }

.footer-tagline { color: var(--accent); font-size: 13.5px; margin-bottom: 14px; letter-spacing: 0.3px; }

.footer-legal-line { line-height: 1.8; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom nav { display: flex; gap: 18px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    gap: 2px;
    box-shadow: 0 16px 32px rgba(14, 26, 43, 0.1);
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 16px; }
  .nav-toggle { display: block; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 68px 0 76px; }
  section.block { padding: 60px 0; }
  .cta-band { padding: 40px 28px; }
  .info-table th { width: auto; white-space: normal; }
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: none; padding-bottom: 4px; }
}

/* ---------- Geometric hero (shape-landing) ---------- */

.site-header.scrolled { box-shadow: 0 8px 30px rgba(14, 26, 43, 0.1); }

.hero-geo {
  position: relative;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #030303;
  color: #fff;
  text-align: center;
  padding: 90px 0;
}

.hero-geo-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(99, 102, 241, 0.05), transparent 50%, rgba(185, 146, 46, 0.06));
  filter: blur(64px);
}

/* Floating elegant shapes */

.geo-shapes { position: absolute; inset: 0; overflow: hidden; }

.geo-shape {
  position: absolute;
  opacity: 0;
  animation: shapeIn 2.4s cubic-bezier(0.23, 0.86, 0.39, 0.96) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes shapeIn {
  from { opacity: 0; transform: translateY(-150px) rotate(calc(var(--rot) - 15deg)); }
  to   { opacity: 1; transform: translateY(0) rotate(var(--rot)); }
}

.geo-float { animation: shapeFloat 12s ease-in-out infinite; }

@keyframes shapeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(15px); }
}

.geo-pill {
  width: var(--w);
  height: var(--h);
  border-radius: 9999px;
  position: relative;
  background: linear-gradient(to right, var(--grad), transparent);
  border: 2px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
  box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.1);
}

.geo-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 70%);
}

.gs-1 { --rot: 12deg;  --d: 0.3s; left: -10%; top: 15%; }
.gs-2 { --rot: -15deg; --d: 0.5s; right: -5%; top: 70%; }
.gs-3 { --rot: -8deg;  --d: 0.4s; left: 5%;   bottom: 5%; }
.gs-4 { --rot: 20deg;  --d: 0.6s; right: 15%; top: 10%; }
.gs-5 { --rot: -25deg; --d: 0.7s; left: 20%;  top: 5%; }

@media (min-width: 768px) {
  .gs-1 { left: -5%; top: 20%; }
  .gs-2 { right: 0;  top: 75%; }
  .gs-3 { left: 10%; bottom: 10%; }
  .gs-4 { right: 20%; top: 15%; }
  .gs-5 { left: 25%; top: 10%; }
}

/* Content */

.hero-geo-content {
  position: relative;
  z-index: 10;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 44px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

.geo-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(215, 170, 60, 0.85);
  flex-shrink: 0;
}

.hero-geo h1 {
  font-size: clamp(38px, 6.2vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 30px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-geo h1 { white-space: normal; }
}

.hero-geo h1 .line-1 {
  display: block;
  background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-geo h1 .line-2 {
  display: block;
  background: linear-gradient(to right, #a5b4fc, rgba(255, 255, 255, 0.9), #e8c97a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}

.geo-lead {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  letter-spacing: 0.3px;
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 40px;
}

.geo-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Vignette above shapes, below content */

.geo-vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(to top, #030303 0%, transparent 35%, rgba(3, 3, 3, 0.8) 100%);
  pointer-events: none;
}

/* Staggered fade-up entrance for content */

.fade-up {
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.25, 0.4, 0.25, 1) forwards;
  animation-delay: var(--fd, 0.5s);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .geo-shape, .geo-float, .fade-up { animation: none; opacity: 1; }
}

/* ---------- World map (international connections) ---------- */

.world-map {
  position: relative;
  width: 100%;
  max-width: 1056px;
  margin: 48px auto 0;
  aspect-ratio: 2 / 1;
}

.world-map > img {
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #fff 10%, #fff 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #fff 10%, #fff 90%, transparent);
}

.world-map > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Arc draw-in, staggered — starts when the map scrolls into view */

.world-map .arc {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.world-map.in-view .arc {
  animation: drawArc 1s ease-out forwards;
  animation-delay: var(--ad, 0s);
}

@keyframes drawArc {
  to { stroke-dashoffset: 0; }
}

.map-caption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .world-map .arc { stroke-dashoffset: 0; animation: none; }
}

/* ---------- Brand logo ---------- */

.brand-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
}

.footer-logo {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
