/* ==========================================================================
   Xiao Tong — Computer Systems Design
   Crimson + Gold Prestige Theme
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
  --crimson: #b91c1c;
  --crimson-dark: #991b1b;
  --crimson-light: #dc2626;
  --gold: #ca8a04;
  --gold-light: #eab308;
  --gold-pale: #fef9c3;
  --white: #ffffff;
  --surface: #fafafa;
  --surface-alt: #f5f5f5;
  --heading: #0f172a;
  --body: #334155;
  --body-light: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --transition: 200ms ease;
  --transition-slow: 350ms ease;
  --max-width: 1200px;
  --max-width-narrow: 900px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--crimson);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--crimson-dark);
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.375rem;
}

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

strong {
  color: var(--heading);
  font-weight: 600;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--crimson);
  background: var(--gold-pale);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--body-light);
  max-width: 600px;
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson);
}

.btn-primary:hover {
  background: var(--crimson-dark);
  border-color: var(--crimson-dark);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--crimson);
  border-color: var(--crimson);
}

.btn-outline:hover {
  background: var(--crimson);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: #b7791f;
  border-color: #b7791f;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-light {
  background: var(--white);
  color: var(--crimson);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--surface);
  color: var(--crimson-dark);
  border-color: var(--surface);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 1rem 2.25rem;
  border-radius: var(--radius-lg);
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--heading);
}

.brand-mark {
  width: 38px;
  height: 38px;
  background: var(--crimson);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--body);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--crimson);
  background: var(--gold-pale);
  text-decoration: none;
}

.nav-cta {
  margin-left: 0.75rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--heading);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5.5px, 5.5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -5.5px);
}

/* --- Hero Section --- */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 30%, #ffffff 70%, #fef2f2 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 28, 28, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202, 138, 4, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--crimson);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--crimson);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--heading) 0%, #1e293b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-accent {
  color: var(--crimson);
  -webkit-text-fill-color: var(--crimson);
  position: relative;
}

.hero-title-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gold-pale);
  border-radius: 3px;
  z-index: -1;
  opacity: 0.7;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--body-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
}

.hero-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-stat {
  text-align: center;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-md);
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--crimson);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--body-light);
  font-weight: 500;
}

.hero-clients {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.hero-client-avatars {
  display: flex;
}

.hero-client-avatars span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  margin-left: -8px;
}

.hero-client-avatars span:first-child {
  margin-left: 0;
}

.hero-client-avatars .hc1 { background: #b91c1c; }
.hero-client-avatars .hc2 { background: #ca8a04; }
.hero-client-avatars .hc3 { background: #0f172a; }
.hero-client-avatars .hc4 { background: #64748b; }

.hero-clients-text {
  font-size: 0.875rem;
  color: var(--body-light);
}

.hero-clients-text strong {
  color: var(--heading);
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-placeholder {
  background: linear-gradient(135deg, var(--gold-pale) 0%, #fee2e2 40%, #fef3c7 100%);
  border-radius: var(--radius-xl);
  padding: 3rem;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.about-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.about-icon-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.about-icon-symbol {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.about-icon-symbol.crimson {
  background: #fee2e2;
  color: var(--crimson);
}

.about-icon-symbol.gold {
  background: var(--gold-pale);
  color: var(--gold);
}

.about-icon-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--heading);
}

.about-accent-block {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--crimson);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-accent-block strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.about-accent-block span {
  font-size: 0.8125rem;
  opacity: 0.9;
}

.about-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.about-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #fde68a;
  transform: translateY(-3px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: #fee2e2;
  color: var(--crimson);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.625rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--body-light);
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- Industries Section --- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.industry-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all var(--transition);
}

.industry-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #fde68a;
  transform: translateY(-2px);
}

.industry-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.875rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--gold-pale);
  color: var(--gold);
}

.industry-card h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}

.industry-card p {
  font-size: 0.8125rem;
  color: var(--body-light);
  margin-bottom: 0;
  line-height: 1.5;
}

/* --- Process Section --- */
.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--crimson), var(--gold));
}

.process-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--white), 0 0 0 8px #fee2e2;
}

.process-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  flex: 1;
  box-shadow: var(--shadow-sm);
}

.process-body h3 {
  margin-bottom: 0.5rem;
}

.process-body p {
  color: var(--body-light);
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.process-body ul {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.process-body li {
  font-size: 0.875rem;
  color: var(--body-light);
}

/* --- Capabilities Section --- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.capability-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  transition: all var(--transition);
}

.capability-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #fde68a;
}

.capability-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #fee2e2;
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.capability-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.capability-card-body p {
  font-size: 0.9375rem;
  color: var(--body-light);
  margin-bottom: 0;
}

.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.capability-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--gold-pale);
  color: var(--gold);
}

/* --- Why Xiao Tong --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

.why-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #fee2e2;
  transform: translateY(-3px);
}

.why-card-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--crimson);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.why-card h3 {
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.9375rem;
  color: var(--body-light);
  margin-bottom: 0;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--body-light);
  margin-bottom: 2rem;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #fee2e2;
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}

.contact-detail-text span,
.contact-detail-text a {
  font-size: 0.9375rem;
  color: var(--body-light);
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
}

.contact-form-card h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--body);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--crimson) 0%, #991b1b 100%);
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(202, 138, 4, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: #d0d5dc;
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
  background: var(--heading);
  color: #cbd5e1;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 2rem;
}

.footer-brand .brand {
  color: var(--white);
  margin-bottom: 0.75rem;
  display: inline-flex;
}

.footer-brand .brand:hover {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  font-size: 0.875rem;
}

.footer-bottom p {
  color: #64748b;
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom-links li {
  margin: 0;
}

.footer-bottom-links a {
  color: #64748b;
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--gold-light);
  text-decoration: none;
}

/* --- Legal Pages --- */
.legal-page {
  padding: 7rem 0 4rem;
}

.legal-page h1 {
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  color: var(--body-light);
  font-size: 0.9375rem;
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1rem;
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--heading);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--transition-slow);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-left: 4px solid #22c55e;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

/* --- Scroll To Top --- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--crimson-dark);
  transform: translateY(-3px);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

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

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

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

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-slow);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .mobile-toggle {
    display: flex;
  }

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

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

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

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

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .process-timeline::before {
    left: 20px;
  }
}

@media (max-width: 480px) {
  .industries-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.9375rem;
  }
}

/* --- Print Styles --- */
@media print {
  .site-header,
  .scroll-top,
  .mobile-toggle,
  .nav-links,
  .cta-section,
  .contact-form-card,
  footer {
    display: none;
  }

  body {
    font-size: 14px;
    color: #000;
  }
}
