/*
Theme Name: Maria Helena & Jonaide — Estomaterapia
Theme URI: https://example.com/site-da-jo
Author: Maria Helena de Souza & Jonaide Baracho
Author URI: https://example.com
Description: Tema WordPress para a clínica Maria Helena & Jonaide Baracho — Estomaterapia, Especialistas em Lesões. Foco em atendimento humanizado, tratamento de feridas, laserterapia, ozonioterapia e cuidados intensivos. Design responsivo e acessível em pt-BR.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: site-da-jo
Tags: one-column, two-columns, right-sidebar, left-sidebar, custom-logo, featured-images, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, accessibility-ready, block-styles
*/

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  --color-primary:    #1C474B;
  --color-secondary:  #1C6066;
  --color-accent:     #DFBB7E;
  --color-accent-2:   #C4944A;
  --color-light:      #E3EFE7;
  --color-mid:        #6C999C;
  --color-white:      #FFFFFF;
  --color-text:       #1C474B;
  --color-text-soft:  #4A6A6C;
  --color-border:     rgba(28, 71, 75, 0.1);

  --shadow-sm:  0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md:  0 5px 20px rgba(0, 0, 0, 0.10);
  --shadow-lg:  0 15px 40px rgba(0, 0, 0, 0.15);

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  20px;
  --radius-pill: 999px;

  --header-height: 180px;
  --container-max: 1200px;
  --transition:    all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

.nav-menu,
.nav-menu li {
  list-style: none !important;
  list-style-type: none !important;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-primary);
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 20px;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
  color: var(--color-white);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.2;
}

.btn:hover,
.btn:focus {
  background-color: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* On a dark hero, the default button is the white variant */
.hero-section .btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.hero-section .btn-primary:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
}

.hero-section .btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.hero-section .btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  animation: fadeInDown 0.6s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 20px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-branding .custom-logo-link {
  display: inline-block;
}

.site-branding .custom-logo {
  max-height: 60px;
  width: auto;
}

.site-default-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-height: 160px;
}

.site-default-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 520px;
  max-height: 160px;
  object-fit: contain;
}

.site-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.site-title a {
  color: var(--color-primary);
  transition: var(--transition);
}

.site-title a:hover {
  color: var(--color-accent);
}

.site-description {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.main-navigation {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  margin: 0 20px;
}

.nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  /* Responsive gap: scales from 4px on phones up to 22px on big screens */
  gap: clamp(4px, 1.5vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu li {
  position: relative;
  list-style: none;
}

.nav-menu a {
  display: inline-block;
  /* Responsive padding: scales with viewport */
  padding: clamp(6px, 1vw, 14px) clamp(8px, 1.5vw, 22px);
  color: var(--color-primary);
  font-weight: 500;
  /* Responsive font size: from 0.85rem to 1.05rem */
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.2;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: clamp(8px, 1.5vw, 22px);
  right: clamp(8px, 1.5vw, 22px);
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after {
  transform: scaleX(1);
}

.nav-menu a:hover {
  color: var(--color-accent);
}

.header-buttons {
  flex-shrink: 0;
}

.header-cta {
  margin-left: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-cta i {
  font-size: 0.95em;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  width: 44px;
  height: 44px;
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle .hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 0 auto;
  transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding-top: var(--header-height);
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28, 71, 75, 0.82) 0%, rgba(28, 96, 102, 0.65) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding-top: 40px;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px;
}

.hero-eyebrow,
.cta-eyebrow,
.section-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(223, 187, 126, 0.18);
  color: var(--color-accent);
  border: 1px solid rgba(223, 187, 126, 0.4);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
  animation: fadeInUp 1s ease both;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-white);
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 1s ease 0.1s both;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.5s both;
}

.hero-buttons .btn i {
  margin-right: 6px;
}

/* Team photos in the hero with parallax */
.hero-team {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 60px;
  padding: 0 20px 60px;
  margin-top: auto;
  pointer-events: none;
}

.hero-team-photo {
  border-radius: 200px 200px 16px 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(223, 187, 126, 0.5);
  background-color: rgba(28, 71, 75, 0.4);
  will-change: transform;
}

.hero-team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-team-photo--left {
  width: 400px;
  height: 600px;
  transform: translateY(20px);
}

.hero-team-photo--right {
  width: 400px;
  height: 600px;
  transform: translateY(40px);
}

/* ==========================================================================
   Sections (generic)
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 15px;
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 3px;
}

.section-description {
  color: var(--color-text-soft);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 20px auto 0;
}

/* Section header variant: badge BELOW the title, centered.
   Used on Antes/Depois and Agenda sections. */
.section-header--badge-below {
  text-align: center;
  margin-bottom: 50px;
}

.section-header--badge-below .section-title {
  display: block;
  margin-bottom: 16px;
}

.section-header--badge-below .section-eyebrow {
  display: inline-block;
  margin-top: 0;
  margin-bottom: 20px;
}

.section-header--badge-below .section-description {
  margin-top: 0;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-section {
  background-color: var(--color-light);
}

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

.service-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-light);
  color: var(--color-primary);
  font-size: 1.6rem;
  margin-bottom: 16px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.05);
}

.service-title {
  font-size: 1.05rem;
  margin-bottom: 0;
  line-height: 1.3;
}

.service-description {
  color: var(--color-text-soft);
  margin: 0 0 18px;
}

.service-features {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--color-border);
  text-align: left;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.service-features li i {
  color: var(--color-accent-2);
  font-size: 0.8rem;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

/* ==========================================================================
   Institutional (About)
   ========================================================================== */
.institutional-section {
  position: relative;
  background-color: var(--color-white);
  overflow: hidden;
}

.institutional-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(135deg, rgba(28, 71, 75, 0.04) 0%, rgba(223, 187, 126, 0.08) 100%);
  border-radius: 200px 0 0 200px;
  z-index: 0;
}

.institutional-content {
  position: relative;
  z-index: 1;
}

.institutional-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.institutional-text {
  flex: 1;
}

.institutional-text .section-title {
  text-align: left;
  display: block;
  margin-bottom: 20px;
}

.institutional-text .section-title::after {
  left: 0;
  transform: none;
}

.institutional-text p {
  color: var(--color-text-soft);
  line-height: 1.8;
  margin-bottom: 18px;
}

.institutional-text .section-eyebrow {
  margin-bottom: 12px;
  background-color: var(--color-light);
  color: var(--color-primary);
  border-color: var(--color-border);
}

.institutional-credentials {
  list-style: none;
  margin: 24px 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.institutional-credentials li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background-color: var(--color-light);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.95rem;
}

.institutional-credentials li i {
  color: var(--color-accent-2);
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.institutional-image {
  flex: 1;
  position: relative;
  aspect-ratio: 4 / 5;
}

.institutional-image-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 200px 200px 16px 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(28, 71, 75, 0.25);
  border: 4px solid rgba(223, 187, 126, 0.4);
  background-color: var(--color-light);
}

.institutional-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s ease;
}

.institutional-image-frame:hover img {
  transform: scale(1.04);
}

.institutional-image-decor {
  position: absolute;
  top: 20px;
  right: -20px;
  bottom: -20px;
  left: 20px;
  border: 2px solid var(--color-accent);
  border-radius: 200px 200px 16px 16px;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

/* ==========================================================================
   Benefits
   ========================================================================== */
.benefits-section {
  background-color: var(--color-light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-content: center;
  justify-items: center;
}

.benefit-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: left 0.6s;
}

.benefit-card:hover::before {
  left: 100%;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(223, 187, 126, 0.15);
  color: var(--color-accent-2);
  font-size: 1.5rem;
  margin-bottom: 14px;
  transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.benefit-title {
  font-size: 1rem;
  margin-bottom: 0;
  line-height: 1.3;
}

.benefit-card p {
  color: var(--color-text-soft);
  margin: 0;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-section {
  position: relative;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 100px 0;
  overflow: hidden;
}

.cta-parallax-bg {
  position: absolute;
  inset: -10% 0;
  background-image: url('assets/images/cta-background.jpg');
  background-size: cover;
  background-position: center center;
  z-index: 0;
  will-change: transform;
}

.cta-section > .container {
  position: relative;
  z-index: 1;
}

.cta-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-eyebrow {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-title {
  font-size: 2.5rem;
  color: var(--color-white);
  margin-bottom: 18px;
  line-height: 1.2;
}

.cta-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn i {
  margin-right: 8px;
}

.cta-section .btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.cta-section .btn-primary:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
}

.cta-section .btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.cta-section .btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 0;
  animation: fadeInUp 0.8s ease;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding: 60px 20px 40px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-footer-logo .custom-logo {
  max-height: 50px;
  width: auto;
}

.footer-brand {
  font-size: 1.5rem;
  color: var(--color-white);
  margin: 0;
}

.footer-address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.footer-contact p {
  margin: 0 0 8px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-contact i {
  color: var(--color-accent);
  margin-right: 8px;
  width: 16px;
}

.footer-widget-title {
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-menu {
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  display: inline-block;
}

.footer-menu a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-3px);
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.site-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  text-align: center;
}

.copyright-text-wrapper {
  flex: 1 1 auto;
  text-align: center;
  min-width: 0;
}

.copyright-text {
  margin: 0;
}

.copyright-attribution {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.copyright-attribution-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.copyright-attribution-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.copyright-attribution-link .copyright-logo {
  max-height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1); /* Makes the logo white on the dark footer */
  opacity: 0.9;
}

.copyright-attribution-link:hover .copyright-logo {
  opacity: 1;
}

.copyright-link-label {
  white-space: nowrap;
}

/* ==========================================================================
   Posts (blog / single / archive)
   ========================================================================== */
.site-main {
  padding: calc(var(--header-height) + 40px) 0 60px;
  min-height: 60vh;
}

/* On the front page the hero provides its own top spacing, so the .site-main
   wrapper should not add any. */
.home .site-main,
.front-page .site-main {
  padding-top: 0;
}

.site-post,
.site-page,
.site-post-single {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

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

.entry-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.entry-title a {
  color: var(--color-primary);
}

.entry-title a:hover {
  color: var(--color-accent);
}

.entry-meta {
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.entry-meta > span {
  margin-right: 15px;
}

.entry-meta a {
  color: var(--color-text-soft);
}

.entry-meta a:hover {
  color: var(--color-accent);
}

.post-thumbnail {
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
}

.entry-content {
  color: var(--color-text);
  line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.entry-content a {
  color: var(--color-accent-2);
  text-decoration: underline;
}

.entry-content a:hover {
  color: var(--color-accent);
}

.entry-footer {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 20px;
  background-color: var(--color-light);
  border-radius: var(--radius-md);
}

.page-title {
  font-size: 2.2rem;
  margin: 0;
}

.archive-description {
  margin-top: 10px;
  color: var(--color-text-soft);
}

.posts-navigation,
.pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.posts-navigation a,
.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--color-light);
  color: var(--color-primary);
  transition: var(--transition);
}

.posts-navigation a:hover,
.pagination a:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.pagination .current {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.no-results.not-found {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--color-light);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Widgets
   ========================================================================== */
.widget-area {
  padding: calc(var(--header-height) + 40px) 0 60px;
}

.widget {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

.widget ul {
  margin: 0;
  padding: 0;
}

.widget ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}

.widget ul li:last-child {
  border-bottom: 0;
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
  background-color: var(--color-white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-top: 30px;
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-body {
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 12px;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* ==========================================================================
   404
   ========================================================================== */
.error-404 {
  text-align: center;
  padding: 60px 20px;
}

.error-404 .page-title {
  font-size: 5rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.error-404 .page-content {
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title { font-size: 2.8rem; }
  .institutional-content { flex-direction: column; gap: 40px; }
  .institutional-text .section-title { text-align: center; }
  .institutional-text .section-title::after { left: 50%; transform: translateX(-50%); }
  .institutional-bg { display: none; }
  .institutional-image { max-width: 400px; margin: 0 auto; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 100px; }

  .site-default-logo { max-height: 90px; }
  .site-default-logo img { max-width: 280px; max-height: 90px; }

  .hero-team { gap: 30px; padding-bottom: 40px; }
  .hero-team-photo--left,
  .hero-team-photo--right { width: 220px; height: 330px; }

  .menu-toggle { display: flex; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .site-default-logo { max-height: 120px; }
  .site-default-logo img { max-width: 400px; max-height: 120px; }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }

  .main-navigation {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 30px 20px;
    transition: left 0.35s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
  }

  .main-navigation.toggled {
    left: 0;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu a {
    display: block;
    padding: 14px 0;
  }

  .nav-menu a::after { display: none; }

  .header-buttons {
    margin-top: 20px;
    width: 100%;
  }

  .header-cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .hero-section {
    background-attachment: scroll;
    padding: calc(var(--header-height) + 30px) 0 60px;
  }

  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1.1rem; }

  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }
  .cta-title { font-size: 2rem; }
  .cta-section { padding: 70px 0; }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-widget-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links { justify-content: center; }
  .footer-address { text-align: center; }
  .footer-contact { text-align: center; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 1.9rem; }
  .hero-subtitle { font-size: 1rem; }
  .section-title { font-size: 1.7rem; }
  .cta-title { font-size: 1.7rem; }
  .btn { padding: 10px 22px; font-size: 0.95rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  .entry-title { font-size: 1.6rem; }
  .site-post, .site-page, .site-post-single { padding: 20px; }
  .hero-team-photo--left,
  .hero-team-photo--right { width: 150px; height: 230px; }
  .services-grid { grid-template-columns: 1fr; gap: 15px; }
  .benefits-grid { grid-template-columns: 1fr; gap: 12px; }
  :root { --header-height: 80px; }
  .site-default-logo { max-height: 70px; }
  .site-default-logo img { max-width: 200px; max-height: 70px; }
  .ba-grid { grid-template-columns: 1fr; gap: 16px; }
  .agenda-card { padding: 35px 25px; }
  .agenda-card-title { font-size: 1.3rem; }
  .ba-reveal-fab { font-size: 0.95rem; padding: 14px 24px; }
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .cta-section,
  .hero-section,
  .menu-toggle,
  .header-buttons {
    display: none !important;
  }
}

/* ==========================================================================
   Before/After gallery (with strong-image warning gate)
   ========================================================================== */
.before-after-section {
  background-color: var(--color-white);
}

.ba-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Grid: 3 cards across on desktop, each card shows Antes + Depois side-by-side.
   All photos use the same aspect ratio so the gallery stays uniform. */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  filter: blur(24px) saturate(0.7);
  pointer-events: none;
  transition: filter 0.5s ease;
}

.ba-wrapper.is-revealed .ba-grid {
  filter: blur(0) saturate(1);
  pointer-events: auto;
}

.ba-card {
  background-color: var(--color-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0;
}

.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background-color: var(--color-primary);
}

.ba-image {
  position: relative;
  overflow: hidden;
  /* Standard size: square (1:1) so all 12 photos are identical. */
  aspect-ratio: 1 / 1;
}

.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 3px 8px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: var(--radius-pill);
  z-index: 1;
  line-height: 1;
}

.ba-tag-before {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
}

.ba-tag-after {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.ba-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: var(--color-light);
  border-radius: var(--radius-md);
  border: 2px dashed var(--color-border);
  text-align: center;
  color: var(--color-text-soft);
}

.ba-placeholder i {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--color-mid);
}

.ba-placeholder p {
  margin: 0;
}

.ba-placeholder-hint {
  font-size: 0.85rem;
  margin-top: 8px !important;
  opacity: 0.7;
}

/* Overlay: just a centered floating button. No card, no text block. */
.ba-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(28, 71, 75, 0.45);
  z-index: 2;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ba-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.ba-overlay-content .ba-warning-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.ba-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ba-reveal-fab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  animation: baRevealPulse 2.2s ease infinite;
}

.ba-reveal-fab:hover,
.ba-reveal-fab:focus {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.5);
  outline: none;
}

.ba-reveal-fab i {
  font-size: 1.2em;
  color: var(--color-accent-2);
  transition: color 0.25s ease;
}

.ba-reveal-fab:hover i,
.ba-reveal-fab:focus i {
  color: var(--color-primary);
}

@keyframes baRevealPulse {
  0%, 100% { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(223, 187, 126, 0.5); }
  50%      { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 18px rgba(223, 187, 126, 0); }
}

/* ==========================================================================
   Agenda (Google Calendar)
   ========================================================================== */
.agenda-section {
  background: linear-gradient(135deg, var(--color-light) 0%, #D5E5DC 100%);
}

.agenda-card {
  max-width: 640px;
  margin: 0 auto;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.agenda-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(223, 187, 126, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.agenda-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-accent);
  font-size: 2.2rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.agenda-card-title {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.agenda-card-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.agenda-card-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: var(--color-text);
  font-size: 0.95rem;
}

.agenda-card-features li i {
  color: var(--color-accent-2);
  flex-shrink: 0;
  font-size: 0.85rem;
  width: 18px;
  text-align: center;
}

.agenda-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.agenda-card-note {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin: 0;
  position: relative;
  z-index: 1;
}

.agenda-card-note i {
  color: var(--color-mid);
  margin-right: 4px;
}
