html {
  scroll-behavior: smooth;
}

:root {
  --color-primary: #7e4468;    /* Plum from Logo */
  --color-secondary: #8c8c8c;  /* Grey from Logo */
  --color-text: #2a2a2a;       /* Dark Slate */
  --color-bg-light: #f4f4f4;   /* Soft Off-white */
  --color-white: #ffffff;
  --color-border: #e6e6e6;

  --font-headings: 'DM Serif Display', serif;
  --font-body: 'Inter', sans-serif;

  --section-padding: 128px 32px;
  --container-max-width: 1250px;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-primary);
}

h1 em, h2 em {
  font-style: italic;
  color: var(--color-secondary);
}

a {
  text-decoration: none;
  color: var(--color-text);
  transition: opacity 0.3s;
}
a:hover { opacity: 0.7; }

.section-wide {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--section-padding);
}

.bg-white { background-color: var(--color-white); }
.bg-light { background-color: var(--color-bg-light); }

.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 48px; }
.mt-4 { margin-top: 32px; display: inline-block; }
.mt-xl { margin-top: 100px; }
.center-text { text-align: center; }

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-light) !important;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 18px 40px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.4s ease;
}
.btn-primary:hover {
  background-color: var(--color-secondary);
}

.cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-secondary {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 16px 38px;
  border-radius: 6px;
  border: 1px solid var(--color-primary);
  cursor: pointer;
  transition: all 0.4s ease;
  background-color: transparent;
}
.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white) !important;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 64px;
  background-color: var(--color-bg-light);
  position: sticky;
  top: 0;
  z-index: 1000; /* Increased z-index for mobile menu */
  border-bottom: 1px solid var(--color-border);
}

.header-logo {
  max-height: 48px;
  width: auto;
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 48px;
}

nav a {
  font-size: 15px;
  font-weight: 400;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  position: relative;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero { padding-top: 100px; padding-bottom: 100px; }
.hero-split {
  display: flex;
  align-items: center;
  gap: 80px;
}

.hero-text { flex: 1; }
.hero-visual { flex: 1; }

.eyebrow {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

.hero h1 { font-size: 68px; margin-bottom: 28px; color: var(--color-text); }
.hero p { font-size: 18px; color: #555; }

.hero-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* Services */
.service-split {
  display: flex;
  align-items: center;
  gap: 80px;
}
.service-split.reverse { flex-direction: row-reverse; }

.service-content { flex: 1; }
.service-content h3 { font-size: 42px; margin-bottom: 24px; }

.service-image { flex: 1; }

/* Photo styling */
.aesthetic-local {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  aspect-ratio: 4/3;
  /* Premium editorial filter: slight desaturation, warm sepia, high contrast */
  filter: sepia(12%) grayscale(20%) contrast(1.03) brightness(0.98);
}
.shadow-soft {
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.center-text h2, 
.service-content h2 { 
  font-size: 50px; 
  margin-bottom: 16px; 
  color: var(--color-text); 
}
.center-text p,
.service-content p { font-size: 18px; color: #666; }

/* Cards Grid (Dores) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.card-item {
  padding: 40px;
  background-color: var(--color-bg-light);
  border-radius: 6px;
  border: 1px solid var(--color-border);
}
.card-item h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
}

/* Feature List (Diferencial) */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.feature-item h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.feature-item p {
  color: #555;
}
 
 /* Location Perks */
 .location-perks {
   list-style: none;
   display: flex;
   flex-direction: column;
   gap: 28px;
 }
 
 .location-perks li {
   position: relative;
   padding-left: 32px;
   font-size: 16px;
   color: #555;
 }
 
 .location-perks li::before {
   content: "→";
   position: absolute;
   left: 0;
   top: 0;
   color: var(--color-primary);
   font-family: var(--font-body);
   font-weight: 700;
   font-size: 18px;
 }
 
 .location-perks li strong {
   display: block;
   color: var(--color-primary);
   font-family: var(--font-body);
   font-weight: 600;
   margin-bottom: 4px;
   font-size: 14px;
   text-transform: uppercase;
   letter-spacing: 0.5px;
 }

/* Image Collage */
.image-collage {
  position: relative;
  width: 100%;
}
.img-large {
  width: 90%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.img-small {
  position: absolute;
  bottom: -40px;
  right: 0;
  width: 45%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 12px solid var(--color-white);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.gallery-item { aspect-ratio: 16/10; }

/* Testimonials Carousel */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.prev-btn {
  left: 16px;
}

.next-btn {
  right: 16px;
}

@media(max-width: 768px) {
  .carousel-btn {
    display: none; /* Hide arrows on mobile where swipe is natural */
  }
}

.testimo-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 24px;
  gap: 32px;
  scrollbar-width: none;
  width: 100%;
  padding-left: 16px; /* Add some padding so cards don't touch the very edge initially */
  padding-right: 16px;
}
.testimo-carousel::-webkit-scrollbar {
  display: none;
}
.testimo-card {
  flex: 0 0 calc(90vw - 40px);
  scroll-snap-align: center;
  padding: 48px;
  background-color: var(--color-bg-light);
  border-radius: 6px;
  border: 1px solid var(--color-border);
}
@media(min-width: 768px) {
  .testimo-card {
    flex: 0 0 450px;
  }
}

.testimo-card p {
  font-family: var(--font-headings);
  font-size: 26px;
  line-height: 1.4;
  margin-bottom: 32px;
  color: var(--color-primary);
  font-style: italic;
}

.testimo-card span {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
  font-family: var(--font-body);
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
}
.faq-item h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
}
.faq-item p {
  color: #555;
  font-size: 16px;
}

/* Plans Section */
.plans-subtitle {
  font-size: 18px;
  color: #666;
  margin-top: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
  margin-top: 64px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 24px 20px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* Elegant Highlighting for Annual Plan */
.plan-card.plan-highlight {
  border: 2px solid var(--color-primary);
  box-shadow: 0 10px 30px rgba(126, 68, 104, 0.05);
}

.plan-card.plan-highlight:hover {
  box-shadow: 0 24px 48px rgba(126, 68, 104, 0.12);
}

.plan-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 4px;
  background-color: #f8f4f7;
  color: var(--color-primary);
  margin-bottom: 24px;
  align-self: flex-start;
  border: 1px solid rgba(126, 68, 104, 0.1);
}

.plan-badge-gold {
  background-color: #fff;
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
}

.plan-header {
  margin-bottom: 20px;
}

.plan-name {
  display: block;
  font-family: var(--font-headings);
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.1;
}

.plan-desc {
  font-size: 14px;
  color: #777;
  line-height: 1.4;
}

.plan-body {
  flex: 1;
  margin-bottom: 24px;
}

.plan-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-items li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid #f9f9f9;
}

.plan-freq {
  font-size: 15px;
  color: #555;
  font-weight: 500;
}

.plan-price {
  font-family: var(--font-headings);
  font-size: 28px;
  color: var(--color-primary);
  font-weight: 400;
}

.plan-price small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: #999;
  margin-left: 4px;
}

.plan-payment {
  font-size: 13px;
  color: #aaa;
  font-style: italic;
  margin-top: 16px;
}

/* Unified but differentiated button styles */
.btn-plan {
  display: block;
  text-align: center;
  padding: 16px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  border: 1.5px solid var(--color-primary);
}

/* Secondary (outlined) for Mensal/Semestral */
.plan-btn-outlined {
  color: var(--color-primary) !important;
  background: transparent;
}
.plan-btn-outlined:hover {
  background: var(--color-primary);
  color: var(--color-white) !important;
}

/* Primary (filled) for Annual Plan highlight */
.plan-btn-filled {
  background-color: var(--color-primary);
  color: var(--color-white) !important;
}
.plan-btn-filled:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.plans-note {
  text-align: center;
  font-size: 13px;
  color: #bbb;
  margin-top: 48px;
}

/* Mobile Media Queries Refinement */
@media(max-width: 1024px) {
  .navbar {
    padding: 16px 32px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-white);
    padding: 100px 40px;
    transition: right 0.4s cubic-bezier(0.77,0,0.175,1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    z-index: 1050;
    display: block; /* Ensure it is block when responsive */
  }

  .nav-container.open {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 32px;
  }

  .nav-links a {
    font-size: 24px;
    font-family: var(--font-headings);
    color: var(--color-primary);
  }

  .sm-none {
    display: none;
  }
}

@media(max-width: 1024px) {
  .plans-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin-left: -20px;
    margin-right: -20px;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar for cleaner look */
  }
  .plans-grid::-webkit-scrollbar {
    display: none;
  }
  .plan-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
  /* Annual plan (highlighted) is kept in the center via HTML order: Mensal -> Anual -> Semestral */
}

/* CTA Final */
.cta-final-section {
  padding-top: 40px;
  padding-bottom: 100px;
}
.cta-box {
  background-color: var(--color-white);
  padding: 80px 40px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}
.cta-box h2 {
  font-size: 48px;
  margin-bottom: 16px;
}
.cta-box p {
  font-size: 18px;
  color: #555;
}

/* Footer */
.footer {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 100px 64px 60px;
}

.footer-wrap {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.footer-brand .footer-logo { max-height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer h4 { color: #d1d5db; font-family: var(--font-body); font-size: 13px; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 1.5px; }

.footer-links a, .footer-contact a {
  display: block;
  color: var(--color-white);
  text-decoration: none;
  font-size: 15px;
  margin-top: 12px;
  opacity: 0.8;
}
.footer-links a:hover, .footer-contact a:hover { opacity: 1; }

.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: var(--color-white);
  opacity: 0.6;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-body);
}

/* Responsive */
@media(max-width: 1024px) {
  .hero-split, .service-split { flex-direction: column; gap: 40px; }
  .service-split.reverse { flex-direction: column; }
  .hero h1 { font-size: 48px; }
  .navbar { padding: 20px 32px; }
  .gallery-grid, .cards-grid { grid-template-columns: 1fr; }
  .footer-wrap { flex-direction: column; gap: 40px; }
  :root { --section-padding: 80px 24px; }
  .img-small { width: 60%; right: 20px; bottom: -20px; }
  .cta-group { flex-direction: column; align-items: stretch; width: 100%; }
  .btn-primary, .btn-secondary { text-align: center; }
}

@media(max-width: 500px) {
    .sm-none { display: none; }
    .hero h1 { font-size: 40px; }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 32px;
  right: 32px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  background-color: #20ba5a;
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 24px;
    right: 24px;
  }
  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
}
