/* ============================================================
   TCM Technologies — Global Styles
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ---- Variables ---- */
:root {
  --bg:        #ffffff;
  --bg-card:   #f5f7fa;
  --bg-raise:  #ebeef3;
  --accent:    #6ea318;
  --accent-dk: #527a12;
  --accent-bg: rgba(110, 163, 24, 0.09);
  --text:      #1a1e24;
  --text-2:    #4a5568;
  --text-3:    #8fa0b4;
  --border:    rgba(110, 163, 24, 0.22);
  --border-ui: rgba(0, 0, 0, 0.08);
  --font-h:    'Plus Jakarta Sans', sans-serif;
  --font-b:    'Inter', sans-serif;
  --radius:    8px;
  --radius-lg: 14px;
  --max-w:     1200px;
  --gap:       2rem;
}

/* ---- Base ---- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-h);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }

p { color: var(--text-2); line-height: 1.75; }
strong { color: var(--text); }

/* ---- Container ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Sections ---- */
section { padding: 90px 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-b);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-heading { margin-bottom: 1.1rem; }

.section-sub {
  font-size: 1.02rem;
  color: var(--text-2);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.75;
}

.section-sub.centered {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-b);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  border: none;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #161616;
}
.btn-primary:hover {
  background: #aee040;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(154, 205, 50, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-bg);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--border-ui);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-ui);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(154, 205, 50, 0.3), transparent);
}

/* ---- Tag ---- */
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--border);
}

/* ---- Icon Box ---- */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--accent-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border-ui);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 1.5rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-2);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  transition: color 0.18s, background 0.18s;
}

.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--accent); }

.nav-cta { margin-left: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-2);
  border-radius: 1px;
  transition: all 0.25s ease;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.99);
  border-top: 1px solid var(--border-ui);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-2);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  transition: color 0.18s, background 0.18s;
}

.nav-mobile a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
/* the JS marks the current page in the mobile menu too — style it to match desktop */
.nav-mobile a.active { color: var(--accent); }
.nav-mobile .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
.nav-mobile .btn.active { color: inherit; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://img1.wsimg.com/isteam/ip/3d166586-11cb-481d-a58c-140d06e58fc4/1ded7418-4a7f-4eba-a07d-4f14c3f14a48.png') center / cover no-repeat;
  opacity: 0.04;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 100%, #ffffff 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-eyebrow-line {
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.hero-eyebrow span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 { margin-bottom: 1.4rem; }
.hero h1 span { color: var(--accent); }

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-2);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-3);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 1; }
}

/* Page hero (inner pages) */
.page-hero {
  padding: 145px 0 40px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-hero-content p {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   PROOF BAR
   ============================================================ */
.proof-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-ui);
  border-bottom: 1px solid var(--border-ui);
  padding: 1.6rem 0;
}

.proof-bar-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.proof-bar-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.proof-logos {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.proof-logo {
  display: block;
  width: auto;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity 0.2s, filter 0.2s;
}
.proof-logo:hover {
  opacity: 0.85;
  filter: grayscale(0%);
}

.proof-logo::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.5;
}

.proof-logo:hover { color: var(--text-2); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(154, 205, 50, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner h2 { margin-bottom: 0.9rem; position: relative; }
.cta-banner p  { margin-bottom: 2rem; position: relative; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-group { justify-content: center; position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-ui);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-ui);
}

.footer-brand img { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-3); max-width: 230px; line-height: 1.65; }

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-b);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}

.footer-links ul { display: flex; flex-direction: column; gap: 0.7rem; }

.footer-links a {
  font-size: 0.86rem;
  color: var(--text-3);
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--accent); }

.footer-contact p { font-size: 0.86rem; margin-bottom: 0.5rem; color: var(--text-3); }
.footer-contact a { color: var(--accent); transition: opacity 0.18s; }
.footer-contact a:hover { opacity: 0.75; }

.footer-bottom {
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p { font-size: 0.76rem; color: var(--text-3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --gap: 1.25rem; }
  section { padding: 60px 0; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

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

  .hero { min-height: auto; padding: 100px 0 60px; }
  .page-hero { padding: 115px 0 60px; }

  .cta-banner  { padding: 2.5rem 1.5rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .proof-bar-inner { gap: 1.5rem; }
  .proof-logos     { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
}
