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

:root {
  --deep: #1a2533;
  --primary: #e8945a;
  --primary-dark: #c76b42;
  --cream: #fcf9f5;
  --steel: #5b8fa8;
  --steel-dark: #3d6d85;
  --dark-surface: #212e3d;
  --text: #1c1c1c;
  --text-light: #f2ece0;
  --accent: #d4784c;
  --border-light: #e8e0d5;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

/* ===== NAVIGATION (.navbar class) ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--deep);
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: var(--deep);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar .logo {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.navbar .logo span {
  color: var(--primary);
}

.navbar .nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.navbar .nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.navbar .nav-links a:hover::after,
.navbar .nav-links a.active::after {
  width: 100%;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: var(--primary);
}

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

.navbar .hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar .hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.navbar .hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar .hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--deep) 0%, var(--dark-surface) 40%, #1e3648 100%);
  color: var(--text-light);
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(232,148,90,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3.2em;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-text h1 .highlight {
  color: var(--primary);
  display: block;
}

.hero-text .subtitle {
  font-size: 1.2em;
  color: #c5cdd8;
  margin-bottom: 36px;
  max-width: 500px;
}

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--deep);
  box-shadow: 0 4px 16px rgba(232,148,90,0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(232,148,90,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}

.btn-outline:hover {
  background: var(--cream);
  color: var(--deep);
}

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

.hero-card-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.hero-card .card-icon {
  font-size: 2.2em;
  margin-bottom: 10px;
}

.hero-card h3 {
  font-size: 1em;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.hero-card p {
  font-size: 0.85em;
  color: #aab5c2;
}

/* ===== WAVE DIVIDER ===== */
.wave-divider {
  width: 100%;
  height: 60px;
  background: var(--cream);
  position: relative;
  margin-top: -1px;
}

.wave-divider::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--cream);
  clip-path: polygon(0% 100%, 3% 40%, 8% 60%, 13% 30%, 18% 55%, 23% 20%, 28% 50%, 33% 35%, 38% 65%, 43% 25%, 48% 55%, 53% 40%, 58% 60%, 63% 30%, 68% 50%, 73% 35%, 78% 70%, 83% 25%, 88% 45%, 93% 30%, 98% 55%, 100% 40%, 100% 100%, 0% 100%);
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 100px 48px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-header .lead {
  font-size: 1.1em;
  color: #5a6570;
  max-width: 600px;
  margin: 0 auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary);
  transition: height 0.3s ease;
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card .s-icon {
  font-size: 2.4em;
  margin-bottom: 18px;
  display: block;
}

.service-card h3 {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95em;
  color: #5a6570;
  line-height: 1.65;
}

/* ===== ABOUT / CAPABILITIES ===== */
.capabilities {
  background: var(--deep);
  color: var(--text-light);
}

.capabilities .section-header h2 {
  color: var(--cream);
}

.capabilities .section-header .lead {
  color: #aab5c2;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cap-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}

.cap-item:hover {
  background: rgba(255,255,255,0.08);
}

.cap-item .cap-num {
  font-size: 1.8em;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
  min-width: 44px;
}

.cap-item h4 {
  font-size: 1.05em;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
}

.cap-item p {
  font-size: 0.9em;
  color: #a0acb8;
  line-height: 1.5;
}

/* ===== STATS ===== */
.stats {
  background: var(--dark-surface);
  color: var(--text-light);
}

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

.stat-item .stat-number {
  font-size: 2.8em;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1.2;
}

.stat-item .stat-label {
  font-size: 0.95em;
  color: #aab5c2;
  margin-top: 4px;
}

/* ===== PROCESS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  background: var(--border-light);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step .step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--deep);
  font-size: 1.3em;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.process-step h4 {
  font-size: 1.05em;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 6px;
}

.process-step p {
  font-size: 0.88em;
  color: #5a6570;
}

/* ===== TESTIMONIAL ===== */
.testimonial-spotlight {
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-dark) 100%);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testimonial-spotlight::before {
  content: '\201C';
  position: absolute;
  top: -40px;
  left: 60px;
  font-size: 16em;
  color: #2c4f61;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-spotlight blockquote {
  font-size: 1.4em;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

.testimonial-spotlight .attribution {
  font-size: 0.95em;
  color: #d0dae5;
  font-weight: 600;
}

/* ===== CONTACT ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

.contact-info h3 {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 16px;
}

.contact-info p {
  color: #5a6570;
  margin-bottom: 28px;
}

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

.contact-detail .cd-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  flex-shrink: 0;
}

.contact-detail .cd-text {
  font-size: 0.95em;
  color: var(--deep);
}

.contact-detail .cd-text strong {
  display: block;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.contact-form {
  background: #ffffff;
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}

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

.contact-form label {
  display: block;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95em;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.2s;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.contact-form .btn {
  width: 100%;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--deep);
  color: var(--text-light);
  padding: 48px 48px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--cream);
  display: block;
  margin-bottom: 10px;
}

.footer-brand .logo span {
  color: var(--primary);
}

.footer-brand p {
  font-size: 0.9em;
  color: #a0acb8;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 14px;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links ul li a {
  color: #a0acb8;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: var(--cream);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  font-size: 0.85em;
  color: #6a7a8a;
  text-align: center;
}

/* ===== SCROLL REVEAL ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text .subtitle {
    max-width: 100%;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .hero-card-stack {
    max-width: 440px;
    margin: 0 auto;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps::before {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar .hamburger {
    display: flex;
  }
  .navbar .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--deep);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }
  .navbar .nav-links.open {
    max-height: 300px;
    padding: 16px 0;
  }
  .navbar .nav-links a {
    padding: 12px 0;
    display: block;
    width: 100%;
    text-align: center;
  }
  .hero {
    padding: 100px 24px 60px;
  }
  .hero-text h1 {
    font-size: 2.2em;
  }
  .section {
    padding: 64px 24px;
  }
  .section-header h2 {
    font-size: 1.8em;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.7em;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-card-stack {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
}
