/* ============================================================
   TGH Software LLC — Professional Website Stylesheet
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-navy: #0A1628;
  --color-navy-light: #131F37;
  --color-blue: #1B5FDC;
  --color-blue-light: #3B7DF0;
  --color-teal: #0D9488;
  --color-teal-light: #14B8A6;
  --color-slate: #1E293B;
  --color-slate-mid: #475569;
  --color-slate-light: #94A3B8;
  --color-gray-bg: #F1F5F9;
  --color-white: #FFFFFF;
  --color-off-white: #F8FAFC;
  --color-accent-gold: #D4A017;
  --color-border: #CBD5E1;
  --color-success: #15803D;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; }

/* --- UTILITY --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- SCROLL FADE-IN --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- NAVIGATION --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-navy);
  border-bottom: 2px solid var(--color-blue);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.3px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-blue);
  border-radius: 10px;
  font-size: 1.1rem;
  color: #FFFFFF;
  font-weight: 800;
}

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: #CBD5E1;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--color-white); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-blue-light);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 100%; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- HERO --- */
.hero {
  position: relative;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--color-blue);
  opacity: 0.06;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--color-teal);
  opacity: 0.05;
}

.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-badge {
  display: inline-block;
  background: #1E3A5F;
  color: #93C5FD;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 { color: var(--color-white); margin-bottom: 20px; }
.hero h1 span { color: var(--color-blue-light); }

.hero p {
  font-size: 1.15rem;
  color: #CBD5E1;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  font-family: var(--font-body);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-blue-light); box-shadow: 0 6px 24px rgba(27,95,220,0.35); }

.btn-outlined {
  background: transparent;
  color: var(--color-white);
  border: 2px solid #334155;
}
.btn-outlined:hover { border-color: var(--color-blue-light); color: var(--color-blue-light); }

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-diagram {
  width: 100%;
  max-width: 440px;
  background: var(--color-navy-light);
  border: 1px solid #1E3A5F;
  border-radius: 16px;
  padding: 28px;
}

.hero-diagram-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.diagram-node {
  background: #0F2744;
  border: 1px solid #1E3A5F;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #93C5FD;
}
.diagram-node.accent { background: var(--color-blue); border-color: var(--color-blue-light); color: #FFFFFF; }
.diagram-line {
  grid-column: span 2;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-teal));
  border-radius: 1px;
}

/* --- SECTION TITLES --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p {
  font-size: 1.1rem;
  color: var(--color-slate-mid);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-teal));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* --- STATS COUNTER --- */
.stats-strip {
  background: var(--color-navy);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
}

.stat-card {
  padding: 24px 16px;
  background: var(--color-navy-light);
  border-radius: 12px;
  border: 1px solid #1E3A5F;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-blue-light);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.95rem;
  color: #94A3B8;
  margin-top: 4px;
  font-weight: 500;
}

/* --- SERVICES --- */
.services {
  padding: 96px 0;
  background: var(--color-off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 36px 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(10,22,40,0.08); border-color: var(--color-blue); }

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #EFF6FF;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.service-icon.indigo { background: #EEF2FF; }
.service-icon.teal { background: #F0FDFA; }
.service-icon.amber { background: #FFFBEB; }
.service-icon.rose { background: #FFF1F2; }
.service-icon.purple { background: #FAF5FF; }
.service-icon.emerald { background: #ECFDF5; }

.service-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.service-card p { color: var(--color-slate-mid); font-size: 0.95rem; }

/* --- ABOUT --- */
.about {
  padding: 96px 0;
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 { margin-bottom: 20px; }
.about-text p {
  color: var(--color-slate-mid);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.about-stat h4 {
  font-size: 1.6rem;
  color: var(--color-blue);
  font-weight: 800;
}
.about-stat span {
  font-size: 0.88rem;
  color: var(--color-slate-mid);
}

.about-visual {
  background: var(--color-navy);
  border-radius: 16px;
  padding: 40px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--color-blue);
  opacity: 0.12;
}

.about-visual-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #64748B;
  margin-bottom: 16px;
}

.about-visual-stack { display: flex; flex-direction: column; gap: 10px; }

.about-stack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-navy-light);
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 3px solid var(--color-blue);
  font-size: 0.92rem;
  color: #CBD5E1;
}

.about-stack-row .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal-light);
}

/* --- INDUSTRIES --- */
.industries {
  padding: 96px 0;
  background: var(--color-gray-bg);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.industry-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.industry-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(10,22,40,0.06); }

.industry-emoji { font-size: 2.5rem; margin-bottom: 12px; }
.industry-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.industry-card p { font-size: 0.85rem; color: var(--color-slate-mid); }

/* --- CTA --- */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-navy), #0F2744);
  color: var(--color-white);
  text-align: center;
}

.cta h2 { color: var(--color-white); margin-bottom: 12px; }
.cta p {
  color: #94A3B8;
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta .btn-primary { font-size: 1.05rem; padding: 16px 36px; }

/* --- CONTACT FORM --- */
.contact {
  padding: 96px 0;
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--color-slate-mid); margin-bottom: 28px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-detail-text strong { display: block; color: var(--color-navy); font-size: 0.9rem; margin-bottom: 2px; }
.contact-detail-text span { color: var(--color-slate-mid); font-size: 0.92rem; }

.contact-form {
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: span 2; }

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--color-slate);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(27,95,220,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
}
.form-status.success { display: block; background: #DCFCE7; color: #166534; }
.form-status.error { display: block; background: #FEE2E2; color: #991B1B; }

/* --- FOOTER --- */
.site-footer {
  background: var(--color-navy);
  color: #94A3B8;
  padding: 64px 0 32px;
  font-size: 0.92rem;
}

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

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p, .footer-col li { margin-bottom: 8px; line-height: 1.6; }

.footer-col a {
  color: #CBD5E1;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--color-blue-light); }

.footer-bottom {
  border-top: 1px solid #1E3A5F;
  padding-top: 28px;
  text-align: center;
  color: #64748B;
  font-size: 0.85rem;
}

/* --- LEGAL PAGES --- */
.legal-body {
  background: var(--color-off-white);
}

.legal-hero {
  background: var(--color-navy);
  padding: 72px 0;
  text-align: center;
  color: var(--color-white);
}

.legal-hero h1 { color: var(--color-white); margin-bottom: 8px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.legal-hero p { color: #94A3B8; font-size: 0.95rem; }

.legal-content {
  padding: 64px 0 80px;
}

.legal-content .container {
  max-width: 800px;
}

.legal-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 48px;
}

.legal-card h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  margin-top: 36px;
  color: var(--color-navy);
}

.legal-card h2:first-child { margin-top: 0; }

.legal-card p {
  margin-bottom: 14px;
  color: var(--color-slate-mid);
  font-size: 16px;
}

.legal-card ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-card ul li {
  margin-bottom: 8px;
  color: var(--color-slate-mid);
  font-size: 16px;
}

.legal-card .effective-date {
  display: inline-block;
  background: #EFF6FF;
  color: var(--color-blue);
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.legal-card .contact-block {
  margin-top: 36px;
  padding: 24px;
  background: var(--color-off-white);
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.legal-card .contact-block strong {
  display: block;
  color: var(--color-navy);
  margin-bottom: 8px;
}

/* --- SVG FAVICON --- */
/* inline in head, no css needed */

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-navy);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transition: right 0.35s ease;
    box-shadow: -4px 0 30px rgba(0,0,0,0.3);
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }

  .hero .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }

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

  .services-grid { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats-row { grid-template-columns: repeat(3, 1fr); }

  .industries-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }

  .legal-card { padding: 28px; }
}

@media (max-width: 480px) {
  .hero { padding: 64px 0 72px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-strip { padding: 32px 0; }
  .services, .about, .industries, .contact { padding: 56px 0; }
  .about-stats-row { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
  .section-header { margin-bottom: 36px; }
}
