:root {
  --brand-primary: #2b2d79; /* deep indigo */
  --brand-accent: #ff1e17;  /* vivid red */
  --text: #1b1b1f;
  --muted: #5a5f70;
  --bg: #ffffff;
  --surface: #f6f7fb;
  --gradient-primary: linear-gradient(135deg, var(--brand-primary) 0%, #1a1b4b 100%);
  --gradient-hero: linear-gradient(135deg, var(--brand-primary) 0%, #3a3d8a 50%, #2b2d79 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 25px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-hero: 0 25px 80px rgba(43, 45, 121, 0.3);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Header & Nav */
.site-header {
  background: #fff;
  color: #1b1b1f;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43,45,121,0.08);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: #fff;
  color: #1b1b1f;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #1b1b1f;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand img {
  height: 64px;
  width: auto;
  filter: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255,255,255,0.1);
}

.nav-toggle .bar {
  width: 24px;
  height: 2px;
  background: #1b1b1f;
  transition: transform 0.2s ease;
}

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

.nav-links a {
  color: #1b1b1f;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  background: #f6f7fb;
  color: var(--brand-primary);
}

.nav-links a:not(.btn):hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--brand-accent);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 15px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--brand-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 30, 23, 0.3);
}

.btn-accent:hover {
  background: #e61a14;
  box-shadow: 0 8px 25px rgba(255, 30, 23, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn-inverse {
  background: #fff;
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.btn-inverse:hover {
  background: #f8f9fa;
  box-shadow: var(--shadow-md);
}

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero-section {
  background: var(--gradient-hero);
  color: #fff;
  padding-top: 100px; /* Account for fixed header */
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  padding: 100px 0 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.1;
  margin: 0 0 20px 0;
  font-weight: 700;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero p {
  color: #eef0ff;
  font-weight: 300;
  margin: 0 0 32px 0;
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.95;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-hero);
  transition: transform 0.3s ease;
}

.hero-media:hover img {
  transform: translateY(-5px);
}

.hero-media::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(45deg, var(--brand-accent), #ff6b63);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(20px);
}

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

.hero-ctas .btn {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: none;
}
.hero-ctas .btn:hover {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
  box-shadow: 0 8px 25px rgba(255, 30, 23, 0.4);
}

.hero-wave {
  display: block;
  width: 100%;
  height: 120px;
  fill: var(--bg);
  filter: drop-shadow(0 -4px 20px rgba(0,0,0,0.1));
}

/* Sections */
.section { 
  padding: 80px 0; 
  position: relative;
}

.section:nth-child(even) {
  background: var(--surface);
}

/* Override even section background for CTA */
.section:nth-child(even).cta,
section#contact.cta,
.cta {
  background: #2b2d79 !important;
  background: linear-gradient(135deg, #2b2d79 0%, #1a1b4b 100%) !important;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about .media-card {
  position: relative;
}

.about .media-card img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.about .media-card:hover img {
  transform: translateY(-5px);
}

.about .media-card::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(45deg, var(--brand-primary), #4a4d9a);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.1;
}

h2 { 
  font-size: clamp(28px, 4vw, 42px); 
  margin: 0 0 24px; 
  color: var(--brand-primary);
  font-weight: 700;
  line-height: 1.2;
}

h3 { 
  font-size: 24px; 
  margin: 0 0 16px; 
  color: var(--brand-primary);
  font-weight: 600;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0 0;
  list-style: none;
}

.badges li {
  background: linear-gradient(135deg, #fff, var(--surface));
  border: 1px solid #e4e7f3;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--brand-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.badges li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

/* Services */
.services { 
  background: var(--surface);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 100%);
}

.service-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border: 1px solid #e5e7f2;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.card ul { 
  padding-left: 20px; 
  margin: 16px 0 0 0;
}

.card li { 
  margin: 12px 0; 
  color: var(--muted);
  line-height: 1.6;
}

.card p { 
  margin: 0 0 16px 0; 
  color: var(--muted);
  line-height: 1.6;
}

/* Approach */
.approach .highlight {
  background: linear-gradient(135deg, #fff 0%, #fafbff 100%);
  border: 1px solid #eaecf6;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.approach .highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
  border-radius: 20px 20px 0 0;
}

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

.checks li {
  position: relative;
  padding-left: 32px;
  margin: 16px 0;
  line-height: 1.6;
}

.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(255, 30, 23, 0.3);
}

/* Intake */
.intake {
  background: var(--surface);
  text-align: center;
}

.intake-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin: 40px 0;
}

.step {
  background: #fff;
  border: 1px solid #e5e7f2;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--brand-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(255, 30, 23, 0.3);
}

.step h3 {
  margin-bottom: 16px;
  color: var(--brand-primary);
}

.step p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.intake-cta {
  margin-top: 40px;
}

/* CTA */
.cta {
  background: #2b2d79 !important;
  background: linear-gradient(135deg, #2b2d79 0%, #1a1b4b 100%) !important;
  color: #fff !important;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--brand-accent);
}

section#contact.cta {
  background: #2b2d79 !important;
  background: linear-gradient(135deg, #2b2d79 0%, #1a1b4b 100%) !important;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain2" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain2)"/></svg>');
  pointer-events: none;
}

.cta-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta h2 { 
  color: #ffffff !important; 
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.cta p { 
  color: #ffffff !important; 
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.cta-actions { 
  display: flex; 
  gap: 16px; 
  justify-content: center; 
  flex-wrap: wrap; 
  margin-top: 20px; 
}

.cta-actions .btn {
  background: #fff;
  color: var(--brand-primary);
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}
.cta-actions .btn:hover {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
  box-shadow: 0 8px 25px rgba(255, 30, 23, 0.4);
}

/* Footer */
.site-footer { 
  background: #000000; 
  color: #cfd2ff;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.footer-top { 
  padding: 40px 0 20px; 
}

.footer-brand { 
  display: flex; 
  align-items: center; 
  gap: 20px; 
}

.footer-brand img { 
  height: 56px; 
  width: auto;
  filter: none;
}

.footer-brand strong { 
  color: #fff; 
  font-size: 20px; 
  display: block;
  margin-bottom: 8px;
}

.footer-brand p { 
  margin: 8px 0 0 0; 
  max-width: 560px; 
  line-height: 1.6;
}

.social { 
  display: flex; 
  gap: 12px; 
  margin-top: 16px; 
}

.social a { 
  width: 40px; 
  height: 40px; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  background: rgba(255,255,255,0.08); 
  color: #fff; 
  border: 1px solid rgba(255,255,255,0.12); 
  border-radius: 12px; 
  text-decoration: none; 
  font-weight: 700;
  transition: all 0.2s ease;
}

.social a:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.footer-columns { 
  display: grid; 
  grid-template-columns: repeat(4, minmax(0,1fr)); 
  gap: 32px; 
  padding: 20px 0 40px; 
}

.footer-col h4 { 
  margin: 0 0 16px; 
  color: #fff; 
  font-size: 18px;
  font-weight: 600;
}

.footer-col a { 
  display: block; 
  color: #cfd2ff; 
  text-decoration: none; 
  margin: 8px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover { 
  color: #fff; 
}

.footer-col p { 
  margin: 8px 0;
  line-height: 1.5;
}

.footer-bottom { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 20px 0; 
  border-top: 1px solid rgba(255,255,255,0.08); 
}

.footer-nav { 
  display: inline-flex; 
  gap: 20px; 
}

.footer-nav a { 
  color: #cfd2ff; 
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover { 
  color: #fff; 
}

.copyright { 
  margin: 0; 
  font-size: 14px; 
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 60px;
    gap: 40px;
  }
  .hero-media { order: -1; }
  .service-groups { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .section { padding: 60px 0; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid rgba(43,45,121,0.08);
    backdrop-filter: blur(10px);
  }
  .nav-links.show { display: flex; }
  .nav-links a {
    color: #1b1b1f;
  }
  .nav-links a.btn {
    color: #fff;
  }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .hero-ctas { justify-content: center; }
  .cta-actions { justify-content: center; }
}

@media (max-width: 560px) {
  .footer-columns { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 30px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .section { padding: 40px 0; }
}

/* Contact Section */
.contact-section {
  background: #fff;
  padding: 80px 0;
}

.contact-card {
  background: #f6f7fb;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(43,45,121,0.08);
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
}

.contact-card h2 {
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--muted);
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
}

.form-group.full-width {
  flex: 1 1 100%;
  width: 100%;
}

label {
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 8px;
  font-size: 15px;
}

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e5e7f2;
  background: #fff;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 0;
  transition: border 0.2s, box-shadow 0.2s;
  font-family: inherit;
  resize: none;
}

input:focus, textarea:focus {
  border-color: var(--brand-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(43,45,121,0.08);
}

button[type="submit"] {
  min-width: 160px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .contact-card {
    padding: 32px 8px;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Contact Section Grid */
.contact-card.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: stretch;
  max-width: 1100px;
  padding: 48px 32px;
}

.contact-form-col {
  min-width: 0;
}

.contact-map-col {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-embed {
  width: 100%;
  max-width: 100%;
  min-width: 220px;
  height: 600px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(43,45,121,0.10);
}

@media (max-width: 900px) {
  .contact-card.contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 8px;
  }
  .map-embed {
    max-width: 100%;
    height: 260px;
  }
}

/* Header/Footer white logo adjustments */
.site-header .brand img,
.site-footer .footer-brand img {
  background: transparent;
  filter: none;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 1200;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 4px 16px rgba(43,45,121,0.15);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top svg {
  display: block;
  width: 32px;
  height: 32px;
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(43,45,121,0.22);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 700px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
  .back-to-top svg {
    width: 24px;
    height: 24px;
  }
}

.services h2,
.approach h2 {
  text-align: center;
}

.site-footer .btn-inverse {
  background: #fff;
  color: #1b1b1f;
  box-shadow: var(--shadow-sm);
  border: 2px solid #fff;
}
.site-footer .btn-inverse:hover {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
  box-shadow: 0 8px 25px rgba(255, 30, 23, 0.4);
}


