/* Mobile-first enhancements and responsive adjustments */
/* All styles here apply ONLY to mobile screens (max-width: 768px) */

.header-inner { 
  padding: 16px 0; 
}

.nav-toggle { 
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  position: relative;
  z-index: 1002;
  width: 40px;
  height: 40px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 2px;
}

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

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

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

.site-nav { 
  position: static; 
}

#primaryNav { 
  display: flex !important;
  flex-direction: column;
  position: fixed !important;
  top: 0;
  right: -100%;
  width: 80% !important;
  max-width: 320px;
  height: 100vh !important;
  background: white !important;
  padding: 80px 30px 30px !important;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1) !important;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1001;
  overflow-y: auto;
}

#primaryNav.open { 
  right: 0;
}

.nav-list { 
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
}

.nav-list li {
  opacity: 0;
  transform: translateX(30px);
  animation: slideIn 0.5s forwards;
}

.nav-list li:nth-child(1) { animation-delay: 0.1s; }
.nav-list li:nth-child(2) { animation-delay: 0.15s; }
.nav-list li:nth-child(3) { animation-delay: 0.2s; }
.nav-list li:nth-child(4) { animation-delay: 0.25s; }

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-link {
  display: block;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 100%;
  background: var(--gradient-warm);
  transition: width 0.3s ease;
  z-index: -1;
  border-radius: 12px;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
  transform: translateX(5px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile menu header in nav */
.mobile-nav-header {
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-logo {
  height: 50px;
  width: auto;
  display: block;
}

/* Mobile CTA in menu */
.mobile-nav-cta {
  display: block !important;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.mobile-nav-cta .btn {
  width: 100%;
  text-align: center;
  padding: 14px 20px;
}

/* Hide desktop CTA on mobile */
.desktop-nav-cta {
  display: none !important;
}

.hero { min-height: 70vh; }
.hero-inner { padding: 100px 0 60px; }
.hero h1 { font-size: 36px; }
.hero-subtitle { font-size: 16px; }
.hero-features { grid-template-columns: 1fr; margin-bottom: 20px; }
.hero-feature-card { padding: 20px; }
.hero-actions { flex-direction: column; width: 100%; }
.hero-actions .btn { width: 100%; justify-content: center; }

.features { grid-template-columns: 1fr; }
.content-grid { grid-template-columns: 1fr; }
.cards.two, .cards.three { grid-template-columns: 1fr; }
.form .field-grid { grid-template-columns: 1fr; }
.btn + .btn { margin-left: 0; margin-top: 8px; }

.specialties-bar { 
  flex-direction: column; 
  align-items: flex-start;
  padding: 30px 0;
}

.specialties-label { 
  margin-bottom: 16px;
  font-size: 18px;
}

.specialties-list {
  gap: 8px;
}

.specialty-tag {
  padding: 10px 16px;
  font-size: 14px;
}

.specialty-tag svg {
  width: 14px !important;
  height: 14px !important;
  margin-right: 6px !important;
}

.hero-bottom-card {
  margin-top: -30px;
}

/* Image Grid - Tight squares on mobile */
.image-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 4px !important;
  margin: 20px 0 40px !important;
}

.image-grid figure {
  margin: 0 !important;
  position: relative;
  padding-bottom: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  border-radius: 8px;
}

.image-grid img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer Mobile Styles */
.site-footer {
  padding: 40px 0 30px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-brand {
  display: flex;
  justify-content: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(229,231,235,0.2);
  width: 100%;
}

.footer-logo {
  height: 50px;
}

.footer-cols {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  align-items: center;
  text-align: center;
}

.footer-cols > div {
  max-width: 300px;
}

.footer-cols p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #cbd5e1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  list-style: none;
}

.footer-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.footer-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.copyright {
  font-size: 13px;
  color: #94a3b8;
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(229,231,235,0.2);
  width: 100%;
}

/* Hide header CTA on mobile */
.header-cta { display: none; }


