/* ============================================
   Texas Blue MD - Professional Billing Solutions
   Homepage styles inspired by modern RCM sites
   ============================================ */

:root {
  --primary: #0a6eb4;          /* strong blue */
  --primary-dark: #084a7a;
  --primary-light: #1a8fd0;
  --accent: #f59e0b;           /* warm orange CTA */
  --accent-hover: #d97706;
  --green: #10b981;            /* from logo */
  --green-dark: #059669;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 10px 25px -5px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.12);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

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

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--bg-dark);
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: #cbd5e1; }
.top-bar a:hover { color: #fff; }
.top-bar-left { display: flex; align-items: center; gap: 8px; }
.top-bar-right { display: flex; gap: 20px; align-items: center; }

/* ========== HEADER / NAV ========== */
.header {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .container {
  position: relative;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img,
.logo .custom-logo {
  height: 48px !important;
  width: auto !important;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text strong {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(90deg, #10b981, #0a6eb4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.logo-text span {
  font-size: 0.65rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li {
  margin: 0;
  padding: 0;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.nav a:hover { color: var(--primary); }
.nav li.has-dropdown > a::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.55;
  margin-left: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover { background: #f1f5f9; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #0a4a7a 50%, #0c6b9e 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  opacity: 0.28;
  mix-blend-mode: overlay;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  gap: 48px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero-content { max-width: 560px; }
.hero-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-label::after {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 20px;
  font-weight: 500;
}
.hero-sub::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 14px;
}
.hero p {
  color: #cbd5e1;
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Lead form card */
.lead-form {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px 28px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.lead-form h3 {
  font-size: 1.25rem;
  margin-bottom: 22px;
  text-align: center;
  color: var(--text);
  font-weight: 700;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
  min-width: 0;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.form-group label .req { color: #ef4444; }
.form-group input,
.form-group select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  height: 48px;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,110,180,0.12);
}
.form-group input::placeholder {
  color: #94a3b8;
  opacity: 1;
}
.phone-wrap {
  display: flex;
  gap: 0;
  width: 100%;
  min-width: 0;
}
.phone-wrap select {
  width: 72px;
  flex: 0 0 72px;
  border-radius: 8px 0 0 8px;
  border-right: none;
  background: #f8fafc;
  height: 48px;
  padding: 12px 8px;
  font-size: 14px;
}
.phone-wrap input {
  border-radius: 0 8px 8px 0;
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-light);
  margin: 20px 0 20px;
  line-height: 1.45;
}
.form-check input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.form-check a { color: var(--primary); text-decoration: underline; }
.lead-form .btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  height: 50px;
  font-weight: 600;
  box-sizing: border-box;
}

/* ========== SECTION COMMONS ========== */
.section {
  padding: 80px 0;
}
.section-alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

/* ========== ABOUT / COMPLETE BILLING ========== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col img {
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.feature-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
}
.feature-list .icon {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--green), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========== COMPLIANCE BADGES ========== */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.badge {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  text-align: center;
  min-width: 140px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.badge:hover { transform: translateY(-3px); }
.badge strong {
  display: block;
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 4px;
}
.badge span {
  font-size: 12px;
  color: var(--text-light);
}

/* ========== SERVICES GRID ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  color: var(--primary);
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--text-light);
  font-size: 14.5px;
  flex: 1;
  margin-bottom: 16px;
}
.service-card a {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card a:hover { gap: 10px; }

/* ========== STATS / WHY US ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.stat-card {
  background: linear-gradient(145deg, #0f172a, #0a4a7a);
  color: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}
.stat-card .number {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #34d399, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.stat-card p {
  font-size: 14px;
  color: #94a3b8;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, #0a6eb4 0%, #059669 100%);
  color: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.cta-banner p {
  opacity: 0.9;
  max-width: 480px;
}

/* ========== SPECIALTIES ========== */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.specialty-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.specialty-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.specialty-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.specialty-card .body {
  padding: 18px;
}
.specialty-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.specialty-card p {
  font-size: 13.5px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.specialty-card a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.testimonial .quote {
  font-size: 40px;
  color: var(--primary);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 8px;
}
.testimonial p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial .author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.testimonial .name {
  font-weight: 700;
  font-size: 14px;
}
.testimonial .role {
  font-size: 13px;
  color: var(--text-light);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer p, .footer a {
  font-size: 14px;
  line-height: 1.7;
}
.footer a:hover { color: #fff; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo img { height: 42px; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

/* ========== MOBILE ========== */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-label { justify-content: center; }
  .hero-sub::after { margin-left: auto; margin-right: auto; }
  .lead-form {
    max-width: 420px;
    margin: 0 auto;
    padding: 28px 22px 24px;
  }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Header fixes */
  .header .container {
    height: 64px;
    gap: 10px;
    padding: 0 16px;
  }

  /* Hide desktop header CTA; show mobile version inside menu */
  .header > .container > .btn-primary {
    display: none;
  }

  .mobile-toggle {
    display: block;
    font-size: 28px;
    padding: 4px 8px;
    line-height: 1;
    z-index: 1001;
  }

  .logo img,
  .logo .custom-logo {
    height: 40px !important;
    max-width: 44px;
  }
  .logo-text strong {
    font-size: 1rem;
  }
  .logo-text span {
    font-size: 0.55rem;
  }

  /* Mobile nav panel */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 8px 16px 24px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
    z-index: 999;
    border-top: 1px solid #e2e8f0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.nav-open {
    display: block;
  }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav li {
    border-bottom: 1px solid #f1f5f9;
  }
  .nav li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text) !important;
  }
  .nav li.has-dropdown > a::after {
    content: '▾';
    font-size: 12px;
    opacity: 0.55;
    transition: transform 0.2s ease;
  }
  .nav li.has-dropdown.dropdown-open > a::after {
    transform: rotate(180deg);
  }

  /* Mobile submenus (accordion) — hidden until parent is open */
  .nav .dropdown {
    display: none;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 100%;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 10px 8px;
    margin: 0;
    background: #f8fafc;
  }
  .nav .dropdown::before,
  .nav .dropdown::after {
    display: none;
  }
  .nav li.dropdown-open > .dropdown {
    display: block;
  }

  .dropdown-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .dropdown-col h5 {
    margin: 12px 0 6px;
    padding-left: 4px;
  }
  .dropdown-col a {
    padding: 10px 8px;
    font-size: 14px;
    border-radius: 6px;
  }
  .dropdown-col a:hover,
  .dropdown-col a:active {
    background: #eef2f7;
  }
  .dropdown-col a span {
    display: none; /* hide long descriptions on mobile */
  }

  .dropdown-simple {
    min-width: 100%;
    padding: 4px 0;
  }
  .dropdown-simple a {
    padding: 12px 10px;
    border-radius: 6px;
  }

  /* CTA card inside Services dropdown on mobile */
  .dropdown-cta {
    margin-top: 12px;
    padding: 16px 14px;
  }
  .dropdown-cta h4 {
    font-size: 14px;
  }
  .dropdown-cta p {
    font-size: 12px;
    margin-bottom: 12px;
  }

  /* Dedicated Book Demo button at bottom of mobile menu */
  .mobile-nav-cta {
    display: block;
    margin-top: 16px;
    padding-top: 8px;
  }
  .mobile-nav-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 16px;
  }

  /* Top bar */
  .top-bar {
    font-size: 12px;
    padding: 6px 0;
  }
  .top-bar .container {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    text-align: center;
  }
  .top-bar-right {
    gap: 12px;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 24px 0 40px;
  }
  .hero .container {
    padding-top: 24px;
    padding-bottom: 24px;
    gap: 28px;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .lead-form {
    max-width: 100%;
    margin: 0;
    padding: 24px 16px 22px;
  }

  /* Forms & layout */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form-group input,
  .form-group select {
    font-size: 16px; /* prevents iOS zoom on focus */
  }
  .cta-banner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .badges { gap: 12px; }
  .badge { min-width: 120px; padding: 14px 12px; }
}

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.hidden { display: none; }

/* ========== WordPress content compatibility ========== */
.entry-content,
.wp-block-post-content {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.entry-content > .hero,
.entry-content > .section,
.wp-block-post-content > .hero,
.wp-block-post-content > .section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
/* Allow Custom HTML blocks to breathe */
.wp-block-html {
  margin: 0 !important;
}

/* ========== DROPDOWN MENUS ========== */
.nav li {
  position: relative;
}
.nav li.has-dropdown > a {
  cursor: pointer;
}

/* Shared dropdown content styles */
.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 200px;
  gap: 24px;
}
.dropdown-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.dropdown-col a {
  display: block;
  padding: 8px 0;
  color: var(--text) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.dropdown-col a:hover {
  color: var(--primary) !important;
}
.dropdown-col a span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 2px;
}
.dropdown-cta {
  background: linear-gradient(145deg, #0f172a, #0a4a7a);
  border-radius: 10px;
  padding: 20px 16px;
  color: #fff;
  text-align: center;
}
.dropdown-cta h4 {
  font-size: 15px;
  margin: 10px 0 8px;
  color: #fff;
}
.dropdown-cta p {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 14px;
  line-height: 1.4;
}
.dropdown-cta .btn {
  width: 100%;
  padding: 10px;
  font-size: 13px;
}
.dropdown-simple {
  min-width: 260px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 12px 0;
  columns: 1;
}
@media (min-width: 900px) {
  .dropdown-simple {
    min-width: 520px;
    columns: 2;
    column-gap: 0;
  }
  .dropdown-simple a {
    break-inside: avoid;
  }
}
.dropdown-simple a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text) !important;
}
.dropdown-simple a:hover {
  background: #f8fafc;
  color: var(--primary) !important;
}

/* Mobile nav CTA (hidden on desktop) */
.mobile-nav-cta {
  display: none;
}

/* Prevent body scroll when mobile menu open */
body.nav-locked {
  overflow: hidden;
}

/* ----- Desktop-only dropdown panel (hover) ----- */
@media (min-width: 769px) {
  .nav .dropdown {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    padding: 20px;
    min-width: 520px;
    z-index: 1000;
    border: 1px solid #e2e8f0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  }

  /* Invisible hover bridge so the gap doesn't kill the menu */
  .nav .dropdown::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
  }

  /* Small arrow */
  .nav .dropdown::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
  }

  .nav li:hover > .dropdown,
  .nav li:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #0a4a7a 100%);
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.page-hero p {
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Ensure header container is positioning context for mobile nav */
.header .container {
  position: relative;
}

/* ========== CONTACT PAGE ========== */
.contact-hero {
  position: relative;
  background: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 80px 20px 70px;
  overflow: hidden;
}
.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(10, 74, 122, 0.78) 100%);
  z-index: 1;
}
.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.contact-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.contact-hero p {
  font-size: 1.08rem;
  line-height: 1.65;
  color: #e2e8f0;
  margin: 0 auto;
}

.contact-section {
  padding: 60px 0 80px;
  background: #fff;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: start;
}

/* Form card */
.contact-form-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: var(--shadow);
}
.contact-form-card .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.contact-form-card .form-group.full {
  grid-column: 1 / -1;
}
.contact-form-card .form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.contact-form-card .form-group input,
.contact-form-card .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.contact-form-card .form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.contact-form-card .form-group input:focus,
.contact-form-card .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 110, 180, 0.12);
}
.contact-form-card .form-group input::placeholder,
.contact-form-card .form-group textarea::placeholder {
  color: #94a3b8;
}
.contact-submit {
  width: 100%;
  margin-top: 22px;
  height: 52px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
}

/* Info cards (right column) */
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 22px 22px;
  box-shadow: 0 8px 24px -6px rgba(10, 110, 180, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(10, 110, 180, 0.45);
}
.contact-info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.contact-info-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}
.contact-info-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}
.contact-info-card a {
  color: #fff;
  text-decoration: none;
}
.contact-info-card a:hover {
  text-decoration: underline;
}

/* Contact page responsive */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-hero {
    min-height: 280px;
    padding: 60px 16px 50px;
  }
  .contact-hero h1 {
    font-size: 2.1rem;
  }
  .contact-form-card {
    padding: 24px 18px 22px;
  }
  .contact-form-card .form-grid {
    grid-template-columns: 1fr;
  }
}


/* LinkedIn button */
.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0a66c2;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s;
}
.linkedin-btn:hover {
  background: #004182;
  color: #fff !important;
}
.policy-content h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--text);
}
.policy-content ul {
  margin: 10px 0 16px 20px;
  color: var(--text-light);
}
.policy-content li {
  margin-bottom: 8px;
  line-height: 1.55;
}
.policy-content p {
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 12px;
}
