/*
Theme Name: SINTRASADES Moderno
Theme URI: https://sintrasades.org.br/
Author: SINTRASADES
Description: Tema leve, moderno e responsivo para o SINTRASADES, com navegação por botões e foco em uso no celular.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sintrasades-moderno
*/

:root {
  --sin-blue: #243d9f;
  --sin-blue-dark: #102863;
  --sin-cyan: #19aeea;
  --sin-cyan-soft: #eaf8ff;
  --sin-bg: #f7f9fc;
  --sin-white: #ffffff;
  --sin-text: #10213f;
  --sin-muted: #61708a;
  --sin-border: #dce4ef;
  --sin-shadow: 0 12px 34px rgba(16,40,99,.08);
  --sin-radius: 22px;
  --sin-radius-sm: 15px;
  --sin-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sin-bg);
  color: var(--sin-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sin-blue); text-decoration: none; }
a:hover { color: var(--sin-cyan); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.sin-container { width: min(calc(100% - 32px), var(--sin-max)); margin-inline: auto; }

.site-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--sin-border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}
.site-header__inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}
.brand { display: flex; align-items: center; min-width: 0; gap: 18px; }
.brand__logo img { width: 78px; height: auto; display: block; }
.brand__text { min-width: 0; }
.brand__name { color: var(--sin-blue-dark); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand__desc { color: var(--sin-muted); font-size: .88rem; line-height: 1.35; max-width: 370px; }
.header-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid #b9d3fb;
  border-radius: 16px;
  background: #fff;
  color: var(--sin-blue-dark);
  font-weight: 700;
  white-space: nowrap;
}
.header-whatsapp svg { width: 24px; height: 24px; color: #16a34a; }
.header-whatsapp small { display:block; color:var(--sin-muted); font-size:.74rem; font-weight:600; line-height:1.1; }

.inner-actions {
  background: #fff;
  border-bottom: 1px solid var(--sin-border);
}
.inner-actions__grid {
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:10px;
  padding:12px 0;
}
.inner-actions a {
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:8px 12px;
  border:1px solid var(--sin-border);
  border-radius:12px;
  color:var(--sin-blue-dark);
  background:#fff;
  font-weight:700;
  font-size:.88rem;
}
.inner-actions a:hover { border-color:var(--sin-cyan); background:var(--sin-cyan-soft); }

.hero { padding: 42px 0 28px; }
.hero__box {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff 0%, #fff 48%, #eaf8ff 100%);
  border: 1px solid var(--sin-border);
  box-shadow: var(--sin-shadow);
  display:grid;
  grid-template-columns: 1.06fr .94fr;
  align-items:center;
}
.hero__content { padding: 58px 54px; position:relative; z-index:2; }
.hero__eyebrow { color: var(--sin-cyan); font-weight: 800; text-transform: uppercase; letter-spacing:.09em; font-size:.78rem; }
.hero h1 { margin: 10px 0 14px; font-size: clamp(2.15rem, 4.6vw, 4.35rem); line-height: 1.02; letter-spacing: -.045em; color:var(--sin-blue-dark); max-width:700px; }
.hero__subtitle { margin:0; color:var(--sin-muted); font-size:clamp(1.02rem,1.5vw,1.18rem); max-width:620px; }
.hero__actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.sin-btn {
  display:inline-flex;
  min-height:50px;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:12px 19px;
  border-radius:14px;
  font-weight:800;
  border:1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sin-btn:hover { transform:translateY(-1px); }
.sin-btn--primary { background:linear-gradient(135deg,var(--sin-blue),#135fd1); color:#fff; box-shadow:0 9px 20px rgba(36,61,159,.18); }
.sin-btn--primary:hover { color:#fff; box-shadow:0 12px 24px rgba(36,61,159,.24); }
.sin-btn--outline { border-color:#8db4ef; background:#fff; color:var(--sin-blue); }

.hero__visual { min-height:470px; height:100%; position:relative; display:flex; align-items:flex-end; justify-content:center; overflow:hidden; }
.hero__visual::before,
.hero__visual::after { content:""; position:absolute; border-radius:50%; background:rgba(25,174,234,.13); }
.hero__visual::before { width:420px; height:420px; right:-65px; top:30px; }
.hero__visual::after { width:260px; height:260px; left:30px; top:110px; background:rgba(36,61,159,.08); }
.hero__photo { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.hero__illustration { width:min(92%,520px); position:relative; z-index:2; margin-bottom:8px; }

.section { padding: 28px 0; }
.section__head { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:17px; }
.section__head h2 { margin:0; font-size:clamp(1.55rem,2.4vw,2rem); letter-spacing:-.025em; color:var(--sin-blue-dark); }
.section__head p { margin:4px 0 0; color:var(--sin-muted); }
.section__link { font-weight:800; white-space:nowrap; }

.quick-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.quick-card {
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:142px;
  padding:22px;
  border:1px solid var(--sin-border);
  border-radius:var(--sin-radius);
  background:#fff;
  box-shadow:0 6px 20px rgba(16,40,99,.045);
  color:var(--sin-blue-dark);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.quick-card:hover { color:var(--sin-blue-dark); transform:translateY(-2px); border-color:#9ac5f1; box-shadow:0 10px 24px rgba(16,40,99,.08); }
.quick-card__icon { width:46px; height:46px; border-radius:14px; background:var(--sin-cyan-soft); color:var(--sin-blue); display:grid; place-items:center; margin-bottom:15px; }
.quick-card__icon svg { width:25px; height:25px; }
.quick-card strong { font-size:1.06rem; }
.quick-card span { margin-top:3px; font-size:.86rem; color:var(--sin-muted); }

.legal-card {
  margin-top:12px;
  border:1px solid #bfdbfe;
  background:linear-gradient(135deg,#f0f8ff,#e9f5ff);
  border-radius:var(--sin-radius);
  padding:22px 24px;
  display:grid;
  grid-template-columns: 1fr auto;
  gap:20px;
  align-items:center;
}
.legal-card__main { display:flex; gap:17px; align-items:center; }
.legal-card__icon { flex:0 0 auto; width:58px; height:58px; border-radius:18px; background:linear-gradient(135deg,var(--sin-blue),#1468d8); color:#fff; display:grid; place-items:center; }
.legal-card h3 { margin:0; font-size:1.35rem; color:var(--sin-blue-dark); }
.legal-card p { margin:3px 0 0; color:var(--sin-muted); }
.legal-card__schedule { padding-left:22px; border-left:1px solid #b9d3fb; color:var(--sin-blue-dark); }
.legal-card__schedule strong { display:block; color:var(--sin-blue); }
.legal-card__schedule span { display:block; color:var(--sin-muted); font-size:.9rem; }

.posts-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.post-card { background:#fff; border:1px solid var(--sin-border); border-radius:var(--sin-radius); padding:22px; display:flex; flex-direction:column; min-height:250px; box-shadow:0 6px 20px rgba(16,40,99,.04); }
.post-card__cat { color:var(--sin-cyan); font-weight:800; font-size:.74rem; text-transform:uppercase; letter-spacing:.06em; }
.post-card h3 { margin:10px 0 8px; font-size:1.12rem; line-height:1.35; }
.post-card h3 a { color:var(--sin-blue-dark); }
.post-card p { color:var(--sin-muted); margin:0; font-size:.93rem; }
.post-card__meta { margin-top:auto; padding-top:18px; display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--sin-muted); font-size:.84rem; }
.post-card__arrow { color:var(--sin-blue); font-weight:900; font-size:1.3rem; }

.content-wrap { padding:36px 0 56px; }
.content-card { background:#fff; border:1px solid var(--sin-border); border-radius:var(--sin-radius); padding:clamp(22px,4vw,46px); box-shadow:var(--sin-shadow); }
.content-card h1 { margin-top:0; color:var(--sin-blue-dark); line-height:1.15; letter-spacing:-.03em; }
.content-card h2,.content-card h3 { color:var(--sin-blue-dark); }
.content-card p, .content-card li { color:#33445f; }
.content-card a { font-weight:700; }
.content-card input[type="text"], .content-card input[type="email"], .content-card input[type="tel"], .content-card input[type="number"], .content-card textarea, .content-card select {
  width:100%; max-width:100%; border:1px solid var(--sin-border); border-radius:12px; padding:12px 14px; background:#fff; color:var(--sin-text);
}
.content-card button, .content-card input[type="submit"] { border:0; border-radius:12px; padding:12px 18px; background:var(--sin-blue); color:#fff; font-weight:800; cursor:pointer; }
.wp-block-image img, .content-card img { border-radius:14px; }

.archive-head { margin-bottom:24px; }
.archive-head h1 { margin:0; color:var(--sin-blue-dark); }
.archive-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.pagination { margin-top:28px; display:flex; gap:8px; flex-wrap:wrap; }
.pagination .page-numbers { padding:9px 13px; background:#fff; border:1px solid var(--sin-border); border-radius:10px; }
.pagination .current { background:var(--sin-blue); color:#fff; border-color:var(--sin-blue); }

.site-footer { margin-top:32px; background:linear-gradient(135deg,#102f82 0%,#0756bd 100%); color:#fff; border-radius:28px 28px 0 0; }
.footer-inner { padding:34px 0 22px; }
.footer-grid { display:grid; grid-template-columns:1.25fr .8fr 1fr; gap:34px; }
.footer-item { display:flex; gap:13px; align-items:flex-start; }
.footer-item svg { width:25px; height:25px; flex:0 0 auto; margin-top:2px; }
.footer-item strong { display:block; }
.footer-item a, .footer-item span { color:#eaf4ff; }
.footer-copy { text-align:center; padding-top:24px; margin-top:24px; border-top:1px solid rgba(255,255,255,.18); color:#d8e9ff; font-size:.86rem; }

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

@media (max-width: 900px) {
  .brand__desc { display:none; }
  .hero__box { grid-template-columns:1fr; }
  .hero__content { padding:42px 34px 20px; }
  .hero__visual { min-height:300px; }
  .quick-grid, .posts-grid, .archive-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .inner-actions__grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .sin-container { width:min(calc(100% - 22px), var(--sin-max)); }
  .site-header__inner { min-height:76px; gap:10px; }
  .brand { gap:10px; }
  .brand__logo img { width:57px; }
  .brand__name { font-size:1.02rem; }
  .header-whatsapp { padding:9px 11px; border-radius:13px; }
  .header-whatsapp span { display:none; }
  .header-whatsapp svg { width:26px; height:26px; }
  .hero { padding-top:18px; }
  .hero__box { border-radius:22px; }
  .hero__content { padding:30px 22px 12px; }
  .hero h1 { font-size:2.25rem; }
  .hero__actions { display:grid; grid-template-columns:1fr; }
  .sin-btn { width:100%; }
  .hero__visual { min-height:235px; }
  .section { padding:22px 0; }
  .section__head { align-items:flex-start; }
  .section__head p { font-size:.91rem; }
  .quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .quick-card { min-height:122px; padding:16px; border-radius:18px; }
  .quick-card__icon { width:40px; height:40px; margin-bottom:11px; }
  .quick-card strong { font-size:.98rem; }
  .quick-card span { display:none; }
  .legal-card { grid-template-columns:1fr; padding:18px; }
  .legal-card__icon { width:50px; height:50px; }
  .legal-card__schedule { border-left:0; border-top:1px solid #b9d3fb; padding:13px 0 0; }
  .posts-grid, .archive-grid { grid-template-columns:1fr; }
  .post-card { min-height:210px; }
  .footer-grid { grid-template-columns:1fr; gap:22px; }
  .site-footer { border-radius:22px 22px 0 0; }
  .inner-actions__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}





/* Destaque temporário - Nova CCT */
.quick-card--nova-cct {
    position: relative;
    border-color: #f59e0b !important;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.12);
}

.quick-card--nova-cct:hover {
    border-color: #e68a00 !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.20);
}

.quick-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;

    padding: 5px 10px;

    background: #f59e0b;
    color: #ffffff;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
}


.legal-card__button {
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .legal-card__button {
        width: 100%;
        white-space: normal;
    }
}