/* ============================================
   CIT Trade — Computer Systems Design
   Color System: Navy + Gold Professional Palette
   ============================================ */

:root {
  --navy-900: #060f1e;
  --navy-800: #0a1628;
  --navy-700: #0f1f38;
  --navy-600: #162a4a;
  --navy-500: #1d355c;
  --navy-400: #2a4570;
  --gold-600: #a87a2e;
  --gold-500: #c8963e;
  --gold-400: #d4a853;
  --gold-300: #e0bd6c;
  --gold-200: #ebd08a;
  --white: #ffffff;
  --gray-50: #f5f7fa;
  --gray-100: #e8ecf1;
  --gray-200: #c8d0db;
  --gray-300: #9ba5b5;
  --gray-400: #6b7590;
  --gray-500: #4a5268;
  --gray-600: #2d3345;
  --gray-700: #1a1f2e;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(6, 15, 30, 0.25);
  --shadow-lg: 0 12px 48px rgba(6, 15, 30, 0.35);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--gold-400);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  color: var(--navy-800);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-500);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--gray-400);
  font-size: 1.1rem;
  max-width: 680px;
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-800);
  border-color: var(--gold-500);
}

.btn-primary:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
  color: var(--navy-800);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--navy-800);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}

.btn-outline-dark:hover {
  background: var(--navy-800);
  color: var(--white);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy-800);
  padding: 0;
  height: 68px;
  border-bottom: 1px solid var(--navy-600);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-500);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--navy-800);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  color: var(--gray-200);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--navy-600);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  padding: 160px 0 100px;
  background: var(--navy-800);
  position: relative;
  overflow: hidden;
}

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

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400), var(--gold-600), var(--gold-500));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

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

.hero-content h1 .highlight {
  color: var(--gold-400);
}

.hero-content p {
  color: var(--gray-200);
  font-size: 1.12rem;
  margin-bottom: 32px;
  max-width: 520px;
}

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

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

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 340px;
}

.hero-card {
  position: absolute;
  background: var(--navy-700);
  border: 1px solid var(--navy-500);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.hero-card:nth-child(1) {
  top: 10px;
  left: 20px;
  right: 20px;
  bottom: 10px;
  z-index: 3;
}

.hero-card:nth-child(2) {
  top: 40px;
  left: 50px;
  right: -10px;
  bottom: -10px;
  z-index: 2;
  opacity: 0.7;
}

.hero-card:nth-child(3) {
  top: 70px;
  left: 80px;
  right: -40px;
  bottom: -30px;
  z-index: 1;
  opacity: 0.4;
}

.hero-card .card-dot-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-card .card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy-500);
}

.hero-card .card-dot.active {
  background: var(--gold-500);
}

.hero-card .card-line {
  height: 3px;
  border-radius: 2px;
  margin-bottom: 12px;
  background: var(--navy-500);
}

.hero-card .card-line.short { width: 60%; }
.hero-card .card-line.medium { width: 80%; }
.hero-card .card-line.long { width: 95%; }
.hero-card .card-line.gold { background: var(--gold-500); width: 40%; }

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 36px 28px;
  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-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gray-200);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--gray-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--navy-700);
}

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

.service-card p {
  color: var(--gray-400);
  font-size: 0.95rem;
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
  background: var(--gray-50);
}

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

.about-image-placeholder {
  background: var(--navy-700);
  border-radius: 16px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image-placeholder .geometric-pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, var(--navy-600) 25%, transparent 25%) -20px 0,
    linear-gradient(-45deg, var(--navy-600) 25%, transparent 25%) -20px 0,
    linear-gradient(45deg, transparent 75%, var(--navy-600) 75%),
    linear-gradient(-45deg, transparent 75%, var(--navy-600) 75%);
  background-size: 40px 40px;
  opacity: 0.3;
}

.about-image-placeholder .center-icon {
  position: relative;
  z-index: 1;
  font-size: 4rem;
  color: var(--gold-500);
}

.about-content h2 {
  margin-bottom: 18px;
}

.about-content p {
  color: var(--gray-500);
  margin-bottom: 16px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.stat-item {
  text-align: center;
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy-800);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--navy-800);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 150, 62, 0.12) 0%, transparent 70%);
  top: -80px;
  left: -80px;
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--gray-200);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-900);
  padding: 64px 0 28px;
  color: var(--gray-300);
}

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

.footer-brand .brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.6;
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: var(--gray-300);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer ul a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  border-top: 1px solid var(--navy-700);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  background: var(--navy-800);
  padding: 130px 0 64px;
  text-align: center;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400), var(--gold-600));
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--gray-200);
  font-size: 1.05rem;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
  padding: 70px 0;
}

.content-section.alt {
  background: var(--gray-50);
}

.content-section h2 {
  margin-bottom: 20px;
}

.content-section h3 {
  margin-bottom: 12px;
  margin-top: 32px;
  color: var(--navy-700);
}

.content-section p {
  color: var(--gray-500);
  margin-bottom: 16px;
  max-width: 820px;
}

.content-section ul,
.content-section ol {
  margin-left: 20px;
  margin-bottom: 16px;
  color: var(--gray-500);
}

.content-section li {
  margin-bottom: 8px;
}

/* ===== CONTACT LAYOUT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-cards {
  display: grid;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: var(--navy-800);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold-400);
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-card p {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin: 0;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-700);
  background: var(--gray-50);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
}

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

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-100);
}

.legal-content h3 {
  margin-top: 28px;
}

.legal-content p {
  color: var(--gray-500);
  margin-bottom: 14px;
}

.legal-content ul {
  margin-bottom: 18px;
  padding-left: 24px;
}

.legal-content li {
  color: var(--gray-500);
  margin-bottom: 6px;
}

.legal-meta {
  background: var(--gray-50);
  border-left: 4px solid var(--gold-500);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0 28px;
}

.legal-meta p {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

/* ===== VALUES GRID ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.value-card {
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  text-align: center;
}

.value-card .value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: var(--navy-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold-400);
}

.value-card h3 {
  margin-bottom: 8px;
}

.value-card p {
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* ===== PROCESS STEPS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 32px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 32px 24px 24px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  text-align: center;
}

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  background: var(--navy-800);
  color: var(--gold-400);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
}

.process-step h3 {
  margin-bottom: 8px;
}

.process-step p {
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* ===== MOBILE NAV ===== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-800);
    flex-direction: column;
    padding: 20px;
    gap: 2px;
    border-bottom: 2px solid var(--navy-600);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

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

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

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

@media (max-width: 600px) {
  .stat-row {
    grid-template-columns: 1fr;
  }

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

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
