:root {
  --navy-dark: #0A192F;
  --navy-primary: #0F2546;
  --navy-surface: #173764;
  --amber-primary: #D97706;
  --amber-light: #F59E0B;
  --amber-glow: rgba(217, 119, 6, 0.15);
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --bg-light: #F1F5F9;
  --white: #FFFFFF;
  
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* Header & Brand */
.site-header {
  background-color: var(--navy-dark);
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand Logo (Option 2: Grid & Distributed Topology) */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-icon {
  flex-shrink: 0;
  display: block;
}

.brand-wordmark-split {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-heading);
}

.brand-wordmark-split .koft-bold {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.brand-wordmark-split .divider {
  color: var(--amber-primary);
  font-weight: 300;
  font-size: 1.25rem;
  user-select: none;
}

.brand-wordmark-split .consulting-light {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #94A3B8;
}

/* Footer Brand Scaling */
.footer-brand .koft-bold {
  font-size: 1.15rem;
}
.footer-brand .divider {
  font-size: 1.05rem;
}
.footer-brand .consulting-light {
  font-size: 0.85rem;
}

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

.nav-links a:not(.btn) {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--amber-primary);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background-color: var(--amber-light);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.btn-outline {
  border: 1px solid var(--amber-primary);
  color: var(--amber-primary);
}

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

/* Hero Section */
.hero {
  background-color: var(--navy-dark);
  color: var(--white);
  padding: 5.5rem 0 4.5rem;
  border-bottom: 3px solid var(--amber-primary);
}

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

.badge {
  display: inline-block;
  background-color: var(--navy-surface);
  color: var(--amber-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero h1 {
  font-size: 3rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-subtext {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 2rem;
}

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

/* Metrics Bar */
.metrics-bar {
  background-color: var(--navy-primary);
  color: var(--white);
  padding: 2.5rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.metric-item h3 {
  color: var(--amber-light);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.metric-item p {
  color: #CBD5E1;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.bg-light {
  background-color: var(--bg-light);
}

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

.section-tag {
  color: var(--amber-primary);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--navy-dark);
}

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(10, 25, 47, 0.08);
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--navy-primary);
  transition: background 0.2s ease;
}

.card:hover .card-accent {
  background: var(--amber-primary);
}

.card h3 {
  font-size: 1.25rem;
  color: var(--navy-dark);
  margin-bottom: 0.8rem;
}

.card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Approach Steps */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.step-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber-primary);
  margin-bottom: 1rem;
}

.step-card h4 {
  font-size: 1.2rem;
  color: var(--navy-dark);
  margin-bottom: 0.6rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Contact CTA */
.contact-section {
  background-color: var(--navy-dark);
  color: var(--white);
  text-align: center;
}

.contact-box {
  max-width: 650px;
  margin: 0 auto;
}

.contact-box h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.contact-box p {
  color: #94A3B8;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  background-color: #050C17;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #64748B;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .nav-links {
    display: none;
  }
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
/* ==========================================================================
   Modal & Consultation Form Styles
   ========================================================================== */

/* Button resets when using button tags */
button.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Dialog Card */
.modal-card {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.25s ease;
  border: 1px solid #E2E8F0;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--navy-dark);
}

.modal-header {
  margin-bottom: 1.75rem;
}

.modal-header h3 {
  font-size: 1.75rem;
  color: var(--navy-dark);
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
}

.modal-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Form Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber-primary);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
}

/* Success State */
.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
}

.success-icon {
  width: 56px;
  height: 56px;
  background-color: #DEF7EC;
  color: #03543F;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.25rem;
}

.form-success h3 {
  color: var(--navy-dark);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .modal-card {
    padding: 1.75rem 1.25rem;
  }
}
