/* style.css -- sempre comece assim */
:root {
    /* Cores */
    --white: #ffffff;
    --green-900: #243b34;
    --green-700: #48685d;
    --green-500: #7aa493;
    --green-100: #e8f1ec;
    --beige-100: #f6f1e8;
    --beige-200: #ede3d1;
    --gray-100: #f7f8f7;
    --gray-200: #e5e9e6;
    --gray-500: #747d78;
    --text: #26312d;
    /* Tipografia */

    /* Espaçamento */

    /* Outros */
    --shadow: 0 18px 45px rgba(39, 53, 47, 0.09);
    --radius: 8px;
    --header-height: 78px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

img, iframe {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
}

.container {
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 96px 0;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 233, 230, 0.7);
    backdrop-filter: blur(16px);
}

.navbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--green-700);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.brand strong, .brand small {
    display: block;
}

.brand strong {
    color: var(--green-900);
    font-size: 0.98rem;
}

.brand small {
    color: var(--green-500);
    font-size: 0.78rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--green-900);
    font-size: 0.94rem;
}

.nav-links a {
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--green-500);
    transition: width 0.25s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .nav-cta {
    padding: 10px 18px;
    color: var(--white);
    background: var(--green-700);
    border-radius: 999px;
}

.nav-links .nav-cta::after {
    display: none;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--green-900);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 58px);
    background: linear-gradient(110deg, rgba(246, 241, 232, 0.92), rgba(255, 255, 255, 0.84)), url("https://images.unsplash.com/photo-1547592180-85f173990554?auto=format&fit=crop&w=1800&q=80") center/cover;
    display: flex;
    align-items: center;
}

.hero-grid, .split, .results-grid, .faq-grid, .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    max-width: 740px;
    color: var(--green-900);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.35rem, 5vw, 5rem);
    line-height: 1.02;
    font-weight: 500;
}

h2 {
    color: var(--green-900);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 500;
}

h3 {
    color: var(--green-900);
    font-size: 1.08rem;
    line-height: 1.25;
}

.hero-subtitle {
    max-width: 620px;
    color: #43514c;
    font-size: 1.18rem;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--green-700);
    box-shadow: 0 14px 28px rgba(72, 104, 93, 0.2);
}

.btn-primary:hover {
    background: var(--green-900);
}

.btn-secondary {
    color: var(--green-900);
    background: rgba(255, 255, 255, 0.75);
    border-color: var(--beige-200);
}

.hero-card {
    justify-self: end;
    width: min(440px, 100%);
}

.portrait-wrap {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--beige-100);
}

.portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.doctor-badge {
    width: calc(100% - 48px);
    margin: -42px auto 0;
    position: relative;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.doctor-badge strong, .doctor-badge span {
    display: block;
}

.doctor-badge span {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.section-heading {
    max-width: 640px;
}

.section-heading.centered {
    margin: 0 auto 48px;
    text-align: center;
}

.about {
    background: var(white);
}

.about-content p {
    color: #4b5752;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 32px;
}

.stat {
    padding: 22px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.stat strong {
    display: block;
    color: var(--green-700);
    font-size: 2rem;
    line-height: 1;
}

.stat span {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.areas, .plans, .faq {
    background: var(--gray-100);
}

.card-grid, .plan-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.area-card, .plan-card, .blog-card, .testimonial, .contact-form {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(39, 53, 47, 0.05);
}

.area-card, .plan-card {
    padding: 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.area-card:hover, .plan-card:hover, .blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(122, 164, 147, 0.5);
    box-shadow: var(--shadow);
}

.area-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    color: var(--green-900);
    background: var(--green-100);
    border-radius: 50%;
    font-weight: 800;
}

.area-card p, .plan-card p, .blog-card p {
    color: var(--gray-500);
}

.area-card ul, .plan-card ul {
    padding-left: 18px;
    margin: 18px 0 0;
    color: #43514c;
}

.method {
    background: linear-gradient(180deg, var(--white), var(--beige-100) );
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: var(--beige-200);
}

.timeline-item {
    position: relative;
    padding-top: 74px;
}

.timeline-item span {
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--green-700);
    border: 1px solid var(--beige-100);
    border-radius: 50%;
    font-weight: 800;
}

.timeline-item p {
    color: var(--green-500);
    font-size: 0.94rem;
}

.results {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.82);
}

.results h2, .results, .eyebrow {
    color: var(--white);
}

.result-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.result-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
}

.result-item span {
    color: var(--beige-200);
    font-size: 2rem;
    font-weight: 800;
}

.result-item p {
    margin-bottom: 0;
}

.carousel {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 58px;
}

.testimonial-track {
    overflow: hidden;
}

.testimonial {
    display: none;
    min-height: 245px;
    padding: 42px;
    text-align: center;
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

.testimonial p {
    color: var(--green-900);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.38;
}

.testimonial strong, .testimonial span {
    display: block;
}

.testimonial span {
    color: var(--gray-500);
    font-size: 0.92rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid var(--gray-200);
    color: var(--green-900);
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    transition: background 0.25s ease, color 0.25s ease;
}

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

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.carousel-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    background: var(--gray-200);
    border-radius: 50%;
    cursor: pointer;
}

.carousel-dots button.active {
    background: var(--green-700);
}

.featured {
    border-color: rgba(72, 104, 93, 0.4);
    background: linear-gradient(180deg, var(--white), var(--green-100));
}

.plan-label {
    display: inline-flex;
    padding: 5px 10px;
    color: var(--green-700);
    background: var(--green-100);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.blog-grid {
    grid-template-columns: repeat(4, 1fr);
}

.blog-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card img {
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
}

.blog-card div {
    padding: 22px;
}

.blog-card a {
    color: var(--green-700);
    font-weight: 800;
}

.faq-grid {
    align-items: center;
}

.accordion-item {
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
}

.accordion-item:first-child {
    border-radius: var(--radius) var(--radius) 0  0;
}

.accordion-item:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
    border-bottom: 0;
}

.accordion-item button {
    width: 100%;
    padding: 22px 24px;
    border: 0;
    color: var(--green-900);
    background: transparent;
    text-align: left;
    font-weight: 800;
    cursor: pointer;
}

.accordion-item button::after {
    content: "+";
    float: right;
    color: var(--green-700);
}

.accordion-item.active button::after {
    content: "-";
}

.accordion-content {
    transition: max-height 0.3s ease;
}

.accordion-content p {
    margin: 0;
    padding: 0 24px 22px;
    color: var(--gray-500);
}

.contact {
    color: var(--white);
    background: var(--green-500);
}

.contact-list {
    padding: 0;
    margin: 28px 0;
    list-style: none;
}

.contact-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.map-wrap {
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.map-wrap iframe {
    width: 100%;
    height: 260px;
    border: 0;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 32px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-row.full, .contact-form .full {
    grid-column: 1 / -1;
}

label {
    color: var(--green-900);
    font-size: 0.92rem;
    font-weight: 800;
}


input, select, textarea {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 13px 14px;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(122, 164, 147, 0.16);
}
textarea {
    resize: vertical;
}

.error-message {
    min-height: 18px;
    color: #9f3f36;
    font-size: 0.78rem;
}

.form-row.invalid input,
.form-row.invalid select,
.form-row.invalid textarea {
    border-color: #b6544b;
}

.form-success {
    grid-column: 1 / -1;
    min-height: 22px;
    margin: 0;
    color: var(--green-700);
    font-weight: 800;
}

.site-footer {
    padding: 34px 0;
    color: rgba(255, 255, 255, 0.78);
    background: var(--green-900);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-grid p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  color: var(--white);
  background: var(--green-700);
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
    .hero-grid,
  .split,
  .results-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-card {
    justify-self: start;
  }

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

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

  .timeline {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin: 0 auto;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 28px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .timeline-item {
    padding-top: 0;
    padding-left: 82px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(100% - 28px, 1140px);
  }

  .section {
    padding: 70px 0;
  }

  .menu-toggle {
    display: block;
  }

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

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

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

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    display: grid;
    gap: 0;
    padding: 12px 20px 22px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 0;
  }

  .nav-links .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

    .hero-card {
    justify-self: start;
  }

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

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

  .timeline {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin: 0 auto;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 28px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .timeline-item {
    padding-top: 0;
    padding-left: 82px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(100% - 28px, 1140px);
  }

  .section {
    padding: 70px 0;
  }

  .menu-toggle {
    display: block;
  }

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

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

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

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    display: grid;
    gap: 0;
    padding: 12px 20px 22px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 0;
  }

  .nav-links .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 44px);
  }

  h1 {
    font-size: clamp(2.2rem, 13vw, 3.6rem);
  }

  .hero-subtitle {
    font-size: 1.04rem;
  }

  .stats,
  .card-grid,
  .plan-grid,
  .blog-grid,
  .result-list,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  .carousel {
    padding: 0;
  }

  .carousel-btn {
    position: static;
    transform: none;
    margin: 18px 5px 0;
  }
  
  .testimonial {
    min-height: 320px;
    padding: 30px 22px;
  }

  .testimonial p {
    font-size: 1.25rem;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .doctor-badge {
    width: calc(100% - 24px);
    padding: 16px;
  }
}

  