/*
Theme Name: Fonte do Crescer
Theme URI: https://fontedocrescer.com.br/
Author: ChatGPT
Description: Tema leve e simples para Fonte do Crescer (nutrição materno infantil).
Version: 1.0.0
Text Domain: fonte-do-crescer
*/

:root{
  --brand:#1f8f6b;
  --brand-dark:#157055;
  --text:#1a1a1a;
  --muted:#6b7280;
  --bg:#ffffff;
  --card:#ffffff;
  --border:#e7e7e7;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}
a{color:inherit}
img{max-width:100%;height:auto}

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

.site-header{
  border-bottom:1px solid #eef2f3;
  background:#fff;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
}
.brand img{
  width:auto;
  height:74px;
}
.brand .brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}
.brand .brand-title{
  font-size:22px;
  font-weight:700;
}
.brand .brand-name{
  font-size:15px;
  font-weight:700;
  font-style:italic;
}
.brand .brand-sub{
  font-size:13px;
  color:var(--muted);
}

.brand .brand-crn{
  font-size:13px;
  color:var(--muted);
  margin-top:2px;
}

/* Menu horizontal */
.main-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:22px;
  align-items:center;
}
.main-nav a{
  text-decoration:none;
  font-weight:600;
  color:#111827;
}
.main-nav a:hover{color:var(--brand)}
.main-nav .menu-item.current-menu-item > a,
.main-nav .current_page_item > a{color:var(--brand)}
.nav-cta{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  border-radius:999px;
  background:var(--brand);
  color:#fff !important;
}
.nav-cta:hover{background:var(--brand-dark)}
.nav-cta img{width:18px;height:18px}

/* Mobile */
.menu-toggle{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  border-radius:10px;
  padding:8px 10px;
  font-weight:700;
}
@media (max-width: 860px){
  .menu-toggle{display:inline-flex}
  .main-nav{display:none}
  .main-nav.is-open{display:block; width:100%}
  .header-inner{flex-wrap:wrap}
  .main-nav ul{flex-direction:column; align-items:flex-start; gap:10px; padding:12px 0}
}

/* Hero slider */
.hero{
  padding:18px 0 8px;
}
.hero-slider{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  box-shadow: var(--shadow);
}
.hero-slide{
  display:none;
}
.hero-slide.is-active{
  display:block;
}
.hero-slide img{
  display:block;
  width:100%;
  height:auto;
}
.hero-dots{
  position:absolute;
  left:0;
  right:0;
  bottom:12px;
  display:flex;
  justify-content:center;
  gap:8px;
  z-index:5;
}
.hero-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(0,0,0,.12);
  cursor:pointer;
}
.hero-dot.is-active{
  background:#fff;
  transform:scale(1.05);
}

/* Sections */
.section{
  padding:28px 0;
}
.section h2{
  margin:0 0 10px;
  font-size:26px;
}
.lead{
  max-width:880px;
  color:#374151;
}

/* Cards 3-up */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
  margin-top:18px;
}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.card img{
  width:100%;
  height:210px;
  object-fit:cover;
  display:block;
}
.card .card-body{
  padding:16px 16px 18px;
}
.card .card-body h3{
  margin:0 0 8px;
  font-size:18px;
}
.card .card-body p{
  margin:0;
  color:#374151;
  font-size:14.5px;
}
@media (max-width: 920px){
  .cards{grid-template-columns:1fr}
  .card img{height:220px}
}

/* Buttons */
.btn-row{display:flex; gap:12px; flex-wrap:wrap; margin-top:14px}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:700;
}
.btn-primary{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}
.btn-primary:hover{background:var(--brand-dark)}

/* Page hero */
.page-hero{
  background: url("assets/imagens/barratitulo.png") center/cover no-repeat;
  padding: 86px 0;
  min-height: 240px;
  display: flex;
  align-items: center;
  position: relative;
}
/* leve filtro para dar contraste ao texto */
.page-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.06));
}
.page-hero .container{position:relative}

.page-hero h1{
  margin:0;
  font-size: 44px;
  font-weight: 900;
  color:#fff;
  letter-spacing: .2px;
  text-shadow:
    -1px -1px 0 rgba(0,0,0,.35),
     1px -1px 0 rgba(0,0,0,.35),
    -1px  1px 0 rgba(0,0,0,.35),
     1px  1px 0 rgba(0,0,0,.35),
     0   6px 18px rgba(0,0,0,.22);
}
.page-hero p{
  margin: 12px 0 0;
  max-width: 780px;
  font-size: 18px;
  font-weight: 800;
  color:#fff;
  text-shadow:
    -1px -1px 0 rgba(0,0,0,.28),
     1px -1px 0 rgba(0,0,0,.28),
    -1px  1px 0 rgba(0,0,0,.28),
     1px  1px 0 rgba(0,0,0,.28),
     0   4px 14px rgba(0,0,0,.18);
}

@media (max-width: 760px){
  .page-hero{padding: 64px 0; min-height: 200px;}
  .page-hero h1{font-size: 34px;}
  .page-hero p{font-size: 16px;}
}

/* Especialidades, layout inspirado no modelo com blocos alternados */
.specialties{
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.specialty-block{
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.specialty-block:nth-child(even){
  flex-direction: row-reverse;
}

.specialty-media{
  flex: 0 0 390px;
}

.specialty-media img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.specialty-content{
  flex: 1;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.specialty-content h2{
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
}

.specialty-content p{
  margin: 0 0 14px;
  line-height: 1.7;
}

.specialty-content p:last-child{margin-bottom:0}

@media (max-width: 900px){
  .specialty-block, .specialty-block:nth-child(even){
    flex-direction: column;
  }
  .specialty-media{flex: 0 0 auto;}
  .specialty-media img{height: 220px;}
}

/* About */
.about-grid{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:22px;
  align-items:stretch;
}
.about-photo{
  height:100%;
}
.about-grid img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:18px;
  box-shadow: var(--shadow);
}
@media (max-width: 900px){
  .about-grid{grid-template-columns:1fr}
  .about-photo{height:auto;}
  .about-grid img{height:auto;}
}

/* Forms */
.form{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.form .row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.form label{display:block; font-weight:700; font-size:13px; margin:0 0 6px}
.form input, .form textarea{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  font:inherit;
}
.form textarea{min-height:120px; resize:vertical}
.form .full{grid-column: 1 / -1}
@media (max-width: 760px){
  .form .row{grid-template-columns:1fr}
}
.notice{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid #d1fae5;
  background:#ecfdf5;
  color:#065f46;
  font-weight:600;
}

/* Footer */
.site-footer{
  border-top:1px solid #eef2f3;
  padding:22px 0;
  color:#6b7280;
  font-size:14px;
}

/* Footer layout */
.site-footer .container{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:end;
  gap:16px;
}

.footer-socials-block{justify-self:start}
.footer-socials-title{font-weight:700;color:#111827;margin-bottom:8px}
.footer-copy{justify-self:center;text-align:center}

.footer-socials{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:0;
}

@media (max-width: 720px){
  .site-footer .container{grid-template-columns:1fr;align-items:start}
  .footer-copy{justify-self:start;text-align:left;margin-top:12px}
}

.social-link{
  width:36px;
  height:36px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(16,185,129,.22);
  background:#fff;
  color:#065f46;
  transition:transform .15s ease, box-shadow .15s ease;
}

.social-link svg{
  width:18px;
  height:18px;
  fill:currentColor;
}

.social-link:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(0,0,0,.08);
}

/* WhatsApp floating */
.wa-float{
  position:fixed;
  right:18px;
  bottom:18px;
  width:56px;
  height:56px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#25D366;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  z-index:50;
}
.wa-float img{width:30px;height:30px}
.wa-float:hover{transform:scale(1.03)}

/* "Saiba mais" (detalhes) */
details.fdc-more{margin-top:14px}
details.fdc-more > summary{
  list-style:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:999px;
  border:1px solid rgba(16,185,129,.25);
  background:#ffffff;
  color:#065f46;
  font-weight:800;
  cursor:pointer;
  user-select:none;
}
details.fdc-more > summary::-webkit-details-marker{display:none}
details.fdc-more[open] > summary{background:#ecfdf5}
details.fdc-more .more-content{margin-top:14px}
