/* ========================================
   E Salera Chiropractic — Styles
   Palette: Emerald + Cream
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --emerald-950: #022c22;
  --emerald-900: #042f26;
  --emerald-800: #064e3b;
  --emerald-700: #065f46;
  --emerald-600: #047857;
  --emerald-500: #059669;
  --emerald-400: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  --cream-50:  #faf9f6;
  --cream-100: #f5f3ee;
  --cream-200: #ede8df;
  --cream-300: #e0d9cc;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  --font-body: 'Outfit', sans-serif;
  --font-display: 'Playfair Display', serif;

  --shadow-sm: 0 1px 3px rgba(2,44,34,0.06), 0 1px 2px rgba(2,44,34,0.04);
  --shadow-md: 0 4px 16px rgba(2,44,34,0.08), 0 2px 6px rgba(2,44,34,0.05);
  --shadow-lg: 0 12px 40px rgba(2,44,34,0.12), 0 4px 12px rgba(2,44,34,0.06);
  --shadow-xl: 0 24px 60px rgba(2,44,34,0.14), 0 8px 20px rgba(2,44,34,0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream-50);
  color: var(--slate-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

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

/* --- Typography --- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--emerald-500);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--slate-600);
  max-width: 560px;
  line-height: 1.7;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--emerald-600);
  color: var(--white);
  padding: 14px 28px;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(4,120,87,0.3);
}
.btn--primary:hover {
  background: var(--emerald-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4,120,87,0.35);
}

.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  padding: 14px 28px;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250,249,246,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cream-200);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(250,249,246,0.95);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--emerald-600);
  border-radius: 8px;
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  background: var(--white);
  border-radius: 4px;
  opacity: 0.3;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--slate-900);
}
.brand-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--slate-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: -4px;
  padding-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-700);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-500);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-link:hover { color: var(--emerald-600); }
.nav-link:hover::after { width: 100%; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--emerald-900);
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(4,120,87,0.4) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(5,150,105,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--emerald-300);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--emerald-400);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}
.accent-italic {
  font-style: italic;
  font-weight: 500;
  color: var(--emerald-300);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--slate-400);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}

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

/* Hero visual cards */
.hero-visual {
  position: relative;
  height: 560px;
}
.hero-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: absolute;
}
.hero-card--main {
  width: 320px;
  height: 420px;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: var(--shadow-xl);
}
.hero-card--main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card--stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 18px 24px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
}
.hero-card--top {
  left: -20px;
  top: 20px;
  animation: float-1 6s ease-in-out infinite;
}
.hero-card--bottom {
  right: -10px;
  bottom: 20px;
  animation: float-2 7s ease-in-out infinite;
}
@keyframes float-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes float-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.stat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--emerald-50);
  border-radius: 10px;
  color: var(--emerald-600);
  flex-shrink: 0;
}
.stat-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate-900);
}
.stat-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-top: 2px;
}

/* --- Services --- */
.services {
  padding: 120px 0;
  background: var(--cream-50);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  border: 1px solid var(--cream-200);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-100);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--emerald-50);
  border-radius: 12px;
  color: var(--emerald-600);
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon-wrap {
  background: var(--emerald-600);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.7;
}

/* --- Approach --- */
.approach {
  padding: 120px 0;
  background: var(--white);
}
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.approach-visual {
  position: relative;
}
.approach-visual img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.approach-floating-card {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-xl);
  max-width: 320px;
  border: 1px solid var(--cream-200);
}
.afc-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.afc-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--emerald-600);
}
.afc-label {
  font-size: 0.85rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.afc-quote {
  font-size: 0.92rem;
  color: var(--slate-700);
  line-height: 1.7;
  font-style: italic;
}

.approach-content .section-tag { margin-bottom: 16px; }
.approach-content .section-title { margin-bottom: 20px; }
.approach-intro {
  font-size: 1.02rem;
  color: var(--slate-600);
  line-height: 1.75;
  margin-bottom: 40px;
}

.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.approach-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--emerald-200);
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
}
.approach-step h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 6px;
}
.approach-step p {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.7;
}

/* --- Team --- */
.team {
  padding: 120px 0;
  background: var(--cream-50);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--cream-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.team-card-visual {
  overflow: hidden;
  height: 400px;
}
.team-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.team-card:hover .team-card-visual img {
  transform: scale(1.04);
}
.team-card-body {
  padding: 32px;
}
.team-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 6px;
}
.team-role {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--emerald-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.team-card-body p {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.7;
}

.team-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 16px;
}
.team-info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  border: 1px solid var(--cream-200);
  transition: var(--transition);
}
.team-info-card:hover {
  border-color: var(--emerald-100);
  box-shadow: var(--shadow-md);
}
.team-info-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 8px;
}
.team-info-card p {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  padding: 120px 0;
  background: var(--emerald-900);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(5,150,105,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 10% 90%, rgba(4,120,87,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.cta-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-content .section-tag { color: var(--emerald-400); }
.cta-content .section-tag::before { background: var(--emerald-400); }
.cta-content .section-title { color: var(--white); margin-bottom: 16px; }
.cta-desc {
  font-size: 1.05rem;
  color: var(--slate-400);
  line-height: 1.75;
  margin-bottom: 36px;
}

.cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cta-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--slate-300);
  transition: var(--transition);
}
.cta-contact-item:hover { color: var(--emerald-300); }
.cta-contact-item svg { color: var(--emerald-500); flex-shrink: 0; }

/* Contact form */
.cta-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xl);
}
.cta-form h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--slate-900);
  background: var(--cream-50);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--emerald-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-400);
}
.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-sm);
  color: var(--emerald-800);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-success svg { color: var(--emerald-600); flex-shrink: 0; }
.form-success.show { display: flex; }

/* --- Footer --- */
.footer {
  background: var(--slate-900);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand--light .brand-text { color: var(--white); }
.brand--light .brand-sub { color: var(--slate-500); }
.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--slate-400);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--emerald-400); }

.footer-contact p {
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.7;
  margin-bottom: 12px;
}
.footer-contact a {
  font-size: 0.9rem;
  color: var(--emerald-400);
  transition: var(--transition);
}
.footer-contact a:hover { color: var(--emerald-300); }

.footer-bottom {
  padding: 28px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--slate-600);
}

/* --- Mobile nav overlay --- */
.nav-menu.mobile-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: rgba(250,249,246,0.98);
  backdrop-filter: blur(20px);
  justify-content: center;
  align-items: center;
  gap: 32px;
  z-index: 999;
}
.nav-menu.mobile-open .nav-link {
  font-size: 1.4rem;
  color: var(--slate-800);
}
.nav-menu.mobile-open .btn--primary {
  font-size: 1.1rem;
  padding: 16px 36px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { height: 400px; order: -1; }
  .hero-card--main { width: 260px; height: 340px; }
  .hero-content { text-align: center; }
  .hero-sub { margin: 0 auto 40px; }
  .hero-ctas { justify-content: center; }
  .hero-badge { margin: 0 auto 28px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .approach-grid { grid-template-columns: 1fr; gap: 48px; }
  .approach-visual { max-width: 500px; margin: 0 auto; }
  .approach-floating-card { left: 10px; bottom: -20px; }

  .team-grid { grid-template-columns: 1fr; }

  .cta-card { grid-template-columns: 1fr; gap: 48px; }
  .cta-form-wrap { max-width: 520px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: flex; }

  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-visual { height: 320px; }
  .hero-card--main { width: 220px; height: 280px; right: 10px; }
  .hero-card--stat { padding: 14px 18px; }
  .hero-card--top { left: -10px; top: 10px; }
  .hero-card--bottom { right: -10px; bottom: 10px; }

  .section-header { margin-bottom: 48px; }
  .services { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 24px; }

  .approach { padding: 80px 0; }
  .approach-visual img { height: 400px; }
  .approach-floating-card { position: relative; bottom: auto; left: auto; margin-top: 20px; max-width: 100%; }

  .team { padding: 80px 0; }
  .team-card-visual { height: 300px; }

  .cta-section { padding: 80px 0; }
  .cta-form-wrap { padding: 28px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer { padding: 60px 0 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-headline { font-size: 1.75rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-visual { height: 280px; }
  .hero-card--main { width: 180px; height: 240px; }
  .hero-card--stat { display: none; }
  .section-title { font-size: 1.6rem; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
