/* ============================================
   ALEXIANE QUIROPRÁCTICA — GLOBAL STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* ---- VARIABLES ---- */
:root {
  --cream:      #F5F2F0;
  --navy:       #2D3263;
  --navy-light: #3d4480;
  --teal:       #B5956A;
  --teal-light: #CEAD8A;
  --teal-pale:  #F3EDE4;
  --warm-white: #FDFAF8;
  --text-dark:  #2D3263;
  --text-mid:   #5a5f8a;
  --text-soft:  #8589a8;
  --border:     #e2dedd;
  --shadow-sm:  0 2px 12px rgba(45,50,99,0.07);
  --shadow-md:  0 8px 32px rgba(45,50,99,0.12);
  --shadow-lg:  0 20px 60px rgba(45,50,99,0.16);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-mid); font-size: 1rem; line-height: 1.8; }
strong { font-weight: 500; color: var(--text-dark); }

/* ---- LAYOUT ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--warm-white); }
.section--teal { background: var(--teal-pale); }
.section--navy { background: var(--navy); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: white;
}
.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-teal {
  background: var(--teal);
  color: white;
}
.btn-teal:hover {
  background: #9e7d55;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(181,149,106,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: white;
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: white;
  color: var(--navy);
}
.btn-whatsapp {
  background: #25D366;
  color: white;
}
.btn-whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 8px 0;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(245,242,240,0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  padding: 6px 0;
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.navbar__logo-img {
  height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 6px;
}
.navbar.scrolled .navbar__logo-img {
  height: 52px;
}
.navbar__logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.navbar__logo-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--navy);
  line-height: 1.2;
  white-space: nowrap;
  transition: font-size 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar__logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.62em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.65;
  line-height: 1.35;
  white-space: nowrap;
  transition: font-size 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar.scrolled .navbar__logo-name {
  font-size: 0.9rem;
}
.navbar.scrolled .navbar__logo-sub {
  font-size: 0.62rem;
}
.footer__logo-img {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px;
  filter: none;
}
.navbar__nav { display: flex; align-items: center; gap: 4px; }
.navbar__link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-mid);
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}
.navbar__link:hover, .navbar__link.active {
  color: var(--navy);
  background: rgba(45,50,99,0.06);
}
.navbar__link.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.navbar__cta {
  margin-left: 16px;
  padding: 10px 22px;
  font-size: 0.875rem;
}
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* Dropdown */
.navbar__item { position: relative; }
.navbar__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--warm-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: var(--transition);
}
.navbar__item:hover .navbar__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.navbar__dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-mid);
  border-radius: 8px;
  transition: var(--transition);
}
.navbar__dropdown a:hover {
  background: var(--teal-pale);
  color: var(--navy);
}

/* ---- PAGE HERO ---- */
.page-hero {
  padding: 160px 0 80px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,191,199,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.page-hero h1 { color: var(--navy); margin-bottom: 20px; }
.page-hero p { color: var(--text-mid); font-size: 1.05rem; max-width: 560px; }

/* ---- CARDS ---- */
.card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card__icon {
  width: 56px; height: 56px;
  background: var(--teal-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}
.card__icon--navy { background: var(--navy); }
.card__icon--navy svg, .card__icon--navy span { color: white; }

/* ---- SECTION LABEL ---- */
.section-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  display: block;
}
.section-title { margin-bottom: 16px; }
.section-lead {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ---- DIVIDER ---- */
.divider {
  width: 60px; height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin: 20px 0 40px;
}
.divider--center { margin: 20px auto 40px; }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: pulse-green 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}
.whatsapp-float svg { fill: white; width: 28px; height: 28px; }
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.65); }
}

/* ---- FOOTER ---- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 36px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer__brand { max-width: 300px; }
.footer__logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  color: white;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.6);
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer__social a:hover { background: var(--teal); }
.footer__social svg { fill: white; width: 18px; height: 18px; }
.footer__col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.footer__col ul li a:hover { color: white; }
.footer__contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
.footer__contact-item svg { fill: var(--teal); width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer__bottom a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer__bottom a:hover { color: white; }

/* ---- TESTIMONIAL ---- */
.testimonial {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  border: 1px solid var(--border);
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: 'Montserrat', sans-serif;
  font-size: 6rem;
  color: var(--teal-light);
  position: absolute;
  top: -10px; left: 28px;
  line-height: 1;
  opacity: 0.6;
}
.testimonial__stars { color: #F59E0B; font-size: 0.9rem; margin-bottom: 16px; }
.testimonial__text { font-size: 0.95rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 20px; }
.testimonial__author { font-weight: 500; font-size: 0.9rem; color: var(--navy); }

/* ---- FADE IN ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ---- FORM ---- */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 3px rgba(124,191,199,0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ---- ACCORDION ---- */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--navy);
  gap: 16px;
  transition: var(--transition);
}
.accordion-header:hover { color: var(--teal); }
.accordion-icon {
  width: 28px; height: 28px;
  background: var(--teal-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 1.1rem;
  color: var(--navy);
}
.accordion-item.open .accordion-icon {
  background: var(--navy);
  color: white;
  transform: rotate(45deg);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-body-inner {
  padding: 0 0 24px;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---- BLOG CARD ---- */
.blog-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.blog-card__img {
  height: 200px;
  background: linear-gradient(135deg, var(--teal-pale) 0%, var(--teal-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.blog-card__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.blog-card__tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.blog-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
}
.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}
.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.blog-card__read {
  color: var(--navy);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.blog-card__read:hover { color: var(--teal); gap: 10px; }

/* ---- MOBILE MENU ---- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--warm-white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--teal); }
.mobile-menu__close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
}
.mobile-menu__social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.mobile-menu__social a {
  font-size: 1.2rem;
  width: 44px; height: 44px;
  background: var(--teal-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-white { color: white !important; }
.text-teal { color: var(--teal) !important; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .navbar__nav { display: none; }
  .navbar__hamburger { display: flex; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-hero { padding: 120px 0 60px; }
}

/* ---- CTA / FOOTER SEPARATION ---- */
.cta-strip + .footer {
  border-top: none;
}
section + .cta-strip {
  margin-top: 0;
}
/* Ensure last section in page has enough bottom padding */
.section:last-of-type {
  padding-bottom: 112px;
}
.cta-strip__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ---- CTA STRIP / FOOTER BREATHING ROOM ---- */
.cta-strip {
  padding-top: 72px !important;
  padding-bottom: 72px !important;
}
.cta-strip + .footer {
  border-top: 8px solid var(--cream);
}
.section:last-of-type,
.section--alt:last-of-type {
  padding-bottom: 96px;
}
