/* =============================================
   EcOftalmologia — Estilos Globais
   ============================================= */

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

/* === Tokens === */
:root {
  --verde-floresta: #2D4A3E;
  --verde-medio:    #3D6B5A;
  --verde-salvia:   #7A9E7E;
  --verde-claro:    #A8C5A0;
  --creme:          #F5F0E8;
  --creme-escuro:   #E8E0D0;
  --dourado:        #C4A882;
  --dourado-escuro: #A08660;
  --branco:         #FAFAF7;
  --texto-escuro:   #1E2E28;
  --texto-medio:    #4A6058;
  --texto-claro:    #8BA898;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --sombra-suave: 0 4px 24px rgba(45, 74, 62, 0.12);
  --sombra-media: 0 8px 40px rgba(45, 74, 62, 0.20);

  --transicao: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--texto-escuro);
  background: var(--branco);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === Tipografia === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

.display-1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 300; }
.display-2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; }
.display-3 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 400; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 0.75rem;
  display: block;
}

.lead {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--texto-medio);
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-pad { padding: 6rem 0; }
.section-pad-lg { padding: 9rem 0; }

/* === Botões === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transicao);
  border: none;
}

.btn-primary {
  background: var(--verde-floresta);
  color: var(--branco);
}
.btn-primary:hover {
  background: var(--verde-medio);
  transform: translateY(-2px);
  box-shadow: var(--sombra-suave);
}

.btn-outline {
  background: transparent;
  color: var(--branco);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--branco);
  transform: translateY(-2px);
}

.btn-dourado {
  background: var(--dourado);
  color: var(--verde-floresta);
}
.btn-dourado:hover {
  background: var(--dourado-escuro);
  transform: translateY(-2px);
  box-shadow: var(--sombra-suave);
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transicao), box-shadow var(--transicao);
  padding: 1.2rem 0;
}

.site-header.scrolled {
  background: rgba(45, 74, 62, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  padding: 0.8rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-nome {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--branco);
  letter-spacing: 0.02em;
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--verde-claro);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-menu a {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  transition: color var(--transicao);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--dourado);
  transform: scaleX(0);
  transition: transform var(--transicao);
}

.nav-menu a:hover { color: var(--branco); }
.nav-menu a:hover::after,
.nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a.active { color: var(--branco); }

.nav-cta {
  background: var(--dourado) !important;
  color: var(--verde-floresta) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: all var(--transicao) !important;
}
.nav-cta:hover { background: var(--dourado-escuro) !important; }
.nav-cta::after { display: none !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--branco);
  transition: all var(--transicao);
  display: block;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--verde-floresta);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-nome { font-size: 1.4rem; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
  color: rgba(255,255,255,0.65);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 1.2rem;
}

.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transicao);
}
.footer-col ul li a:hover { color: var(--branco); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* =============================================
   WHATSAPP FLUTUANTE
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: all var(--transicao);
  animation: pulse-wa 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
  animation: none;
}

.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50%       { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.75); }
}

/* =============================================
   HERO — Seção com fundo de imagem
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1800&auto=format&fit=crop&q=80') center/cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 38, 30, 0.78) 0%,
    rgba(45, 74, 62, 0.55) 60%,
    rgba(30, 55, 45, 0.40) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem 0;
}

.hero-content .eyebrow { color: var(--verde-claro); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 300;
  color: var(--branco);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--dourado);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scroll-anim 1.8s ease infinite;
}

@keyframes scroll-anim {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =============================================
   SEÇÃO NATUREZA — fundo foto
   ============================================= */
.section-nature {
  position: relative;
  background: url('https://images.unsplash.com/photo-1502082553048-f009c37129b9?w=1800&auto=format&fit=crop&q=80') center/cover fixed no-repeat;
}

.section-nature-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 38, 30, 0.82);
}

.section-nature .container { position: relative; z-index: 2; }

/* =============================================
   CARDS
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--branco);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--sombra-suave);
  transition: transform var(--transicao), box-shadow var(--transicao);
  border: 1px solid var(--creme-escuro);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-media);
}

.card-icon {
  width: 52px; height: 52px;
  background: var(--creme);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.3rem;
  color: var(--verde-floresta);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.92rem;
  color: var(--texto-medio);
  line-height: 1.7;
}

/* =============================================
   SEÇÃO QUOTE — frase destaque
   ============================================= */
.quote-section {
  background: var(--creme);
  text-align: center;
  padding: 5rem 0;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 0.5;
  color: var(--verde-claro);
  opacity: 0.4;
  display: block;
  margin-bottom: 1rem;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--verde-floresta);
  max-width: 700px;
  margin: 0 auto 1.2rem;
  line-height: 1.3;
}

.quote-author {
  font-size: 0.85rem;
  color: var(--texto-claro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =============================================
   SEÇÃO CTA
   ============================================= */
.cta-section {
  background: var(--verde-floresta);
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 { color: var(--branco); margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }

/* =============================================
   PAGE HERO (páginas internas)
   ============================================= */
.page-hero {
  position: relative;
  padding: 9rem 0 5rem;
  display: flex;
  align-items: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,38,30,0.75), rgba(45,74,62,0.60));
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--branco);
  font-weight: 300;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 560px;
}

/* =============================================
   FORMULÁRIO PLACEHOLDER
   ============================================= */
.form-placeholder {
  background: var(--creme);
  border: 2px dashed var(--creme-escuro);
  border-radius: var(--radius-md);
  padding: 3rem;
  text-align: center;
  color: var(--texto-claro);
}

.form-placeholder p {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* =============================================
   INFORMAÇÕES DE CONTATO
   ============================================= */
.contact-info-card {
  background: var(--verde-floresta);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  color: var(--branco);
}

.contact-info-card h3 {
  color: var(--dourado);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.contact-item-icon {
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--verde-claro);
  margin-bottom: 2px;
}

.contact-item-text span {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

/* =============================================
   SOBRE — timeline
   ============================================= */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--verde-salvia), var(--verde-claro), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 10px; height: 10px;
  background: var(--dourado);
  border-radius: 50%;
  border: 2px solid var(--branco);
  box-shadow: 0 0 0 2px var(--verde-salvia);
}

.timeline-year {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 0.4rem;
}

.timeline-item h3 {
  font-size: 1.2rem;
  color: var(--verde-floresta);
  margin-bottom: 0.5rem;
}

.timeline-item p {
  font-size: 0.95rem;
  color: var(--texto-medio);
  line-height: 1.7;
}

/* =============================================
   SERVIÇO — Página Interna
   ============================================= */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.service-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sombra-media);
  aspect-ratio: 4/5;
}

.service-detail-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-detail-image:hover img { transform: scale(1.04); }

.service-benefits {
  background: var(--creme);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 2rem;
}

.service-benefits h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dourado-escuro);
  margin-bottom: 1rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: var(--texto-medio);
}

.benefit-item::before {
  content: '🌿';
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .service-detail-image { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .section-pad { padding: 4rem 0; }
  .section-pad-lg { padding: 6rem 0; }

  .nav-menu {
    position: fixed;
    top: 0; right: -100%; bottom: 0;
    width: 80%;
    max-width: 320px;
    background: var(--verde-floresta);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.35s ease;
    box-shadow: -4px 0 30px rgba(0,0,0,0.3);
    z-index: 999;
  }
  .nav-menu.open { right: 0; }
  .nav-menu a { font-size: 1.1rem; }
  .nav-toggle { display: flex; z-index: 1001; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
}

/* =============================================
   ANIMAÇÕES DE ENTRADA
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s 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; }
