/*
Theme Name: Alphahelp Cultura Maker
Theme URI: https://alphahelpeduca.com.br
Author: Alphahelp
Author URI: https://alphahelpeduca.com.br
Description: Tema institucional responsivo para a Alphahelp, especializado em implementação de cultura maker em escolas.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: alphahelp
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ah-coral: #e86565;
  --ah-orange: #f47c42;
  --ah-yellow: #f5c726;
  --ah-green: #48c58b;
  --ah-blue: #238ec9;
  --ah-purple: #a765b5;
  --ah-cream: #f8f5ec;
  --ah-white: #ffffff;
  --ah-ink: #1f2326;
  --ah-muted: #626b70;
  --ah-border: #e6e2d9;
  --ah-shadow: 0 18px 45px rgba(31,35,38,.10);
  --ah-radius: 24px;
  --ah-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ah-ink);
  background: var(--ah-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: var(--ah-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ah-coral); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }

.screen-reader-text,
.skip-link:not(:focus) {
  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:focus { position: fixed; z-index: 99999; top: 10px; left: 10px; background: #fff; padding: 12px 18px; border-radius: 8px; }

.ah-container { width: min(calc(100% - 40px), var(--ah-max)); margin-inline: auto; }
.ah-narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.ah-section { padding: 92px 0; position: relative; overflow: hidden; }
.ah-section--cream { background: var(--ah-cream); }
.ah-section--dark { background: var(--ah-ink); color: var(--ah-white); }
.ah-section--coral { background: var(--ah-coral); color: var(--ah-white); }
.ah-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ah-coral); background: rgba(232,101,101,.11); border-radius: 999px; padding: 8px 14px;
}
.ah-section--dark .ah-eyebrow, .ah-section--coral .ah-eyebrow { color: #fff; background: rgba(255,255,255,.14); }
.ah-title { margin: 18px 0 22px; font-size: clamp(2rem,4vw,4.5rem); line-height: 1.03; letter-spacing: -.045em; }
.ah-title--medium { font-size: clamp(1.9rem,3vw,3.3rem); }
.ah-lead { font-size: clamp(1.06rem,1.5vw,1.28rem); color: var(--ah-muted); max-width: 760px; }
.ah-section--dark .ah-lead, .ah-section--coral .ah-lead { color: rgba(255,255,255,.82); }
.ah-center { text-align: center; }
.ah-center .ah-lead { margin-inline: auto; }

.ah-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 13px 24px; border: 2px solid transparent; border-radius: 999px;
  background: var(--ah-coral); color: #fff !important; font-weight: 800; text-decoration: none;
  box-shadow: 0 11px 28px rgba(232,101,101,.25); transition: .2s ease;
}
.ah-button:hover { transform: translateY(-2px); background: #d95757; }
.ah-button--outline { background: transparent; color: var(--ah-ink) !important; border-color: var(--ah-ink); box-shadow: none; }
.ah-button--outline:hover { background: var(--ah-ink); color: #fff !important; }
.ah-button--white { background: #fff; color: var(--ah-ink) !important; box-shadow: none; }
.ah-button--white:hover { background: var(--ah-cream); }
.ah-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(31,35,38,.08); backdrop-filter: blur(14px);
}
.site-header__inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.site-branding { flex: 0 0 auto; }
.site-branding img { width: 176px; max-height: 68px; object-fit: contain; }
.site-navigation { margin-left: auto; }
.site-navigation ul { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; margin: 0; }
.site-navigation a { color: var(--ah-ink); font-size: .94rem; font-weight: 750; text-decoration: none; }
.site-navigation a:hover, .site-navigation .current-menu-item > a { color: var(--ah-coral); }
.header-cta { flex: 0 0 auto; }
.header-cta .ah-button { min-height: 44px; padding: 9px 18px; font-size: .9rem; }
.menu-toggle { display: none; border: 0; background: transparent; width: 46px; height: 46px; border-radius: 12px; cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; content: ""; height: 2px; width: 24px; background: var(--ah-ink); margin: 5px auto; transition: .2s; }

.ah-hero { min-height: 690px; background: var(--ah-cream); overflow: hidden; position: relative; }
.ah-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 690px; align-items: stretch; }
.ah-hero__content { display: flex; flex-direction: column; justify-content: center; padding: 82px 70px 82px 0; position: relative; z-index: 3; }
.ah-hero__content h1 { margin: 18px 0 22px; font-size: clamp(2.6rem,5.2vw,5.2rem); line-height: .98; letter-spacing: -.055em; max-width: 790px; }
.ah-hero__content p { max-width: 670px; font-size: clamp(1.08rem,1.55vw,1.28rem); color: var(--ah-muted); }
.ah-hero__media { position: relative; min-height: 560px; }
.ah-hero__media::before { content: ""; position: absolute; inset: 0 auto 0 -82px; width: 170px; background: var(--ah-coral); transform: skewX(-10deg); z-index: 2; }
.ah-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.ah-hero__badge { position: absolute; z-index: 4; left: 22px; bottom: 28px; background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: var(--ah-shadow); font-weight: 850; }
.ah-hero__badge small { display: block; color: var(--ah-muted); font-weight: 650; }

.ah-proof { padding: 26px 0; border-bottom: 1px solid var(--ah-border); background: #fff; }
.ah-proof__items { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.ah-proof__item { text-align: center; font-weight: 800; font-size: .94rem; color: var(--ah-muted); }
.ah-proof__item strong { color: var(--ah-ink); display: block; font-size: 1.12rem; }

.ah-grid { display: grid; gap: 24px; }
.ah-grid--2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ah-grid--3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ah-grid--4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.ah-card { background: #fff; border: 1px solid var(--ah-border); border-radius: var(--ah-radius); padding: 30px; box-shadow: 0 10px 26px rgba(31,35,38,.05); }
.ah-card h3 { margin: 15px 0 10px; font-size: 1.28rem; line-height: 1.25; }
.ah-card p { color: var(--ah-muted); margin: 0; }
.ah-card__icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: #fff; font-size: 1.45rem; font-weight: 900; }
.ah-card__icon--coral { background: var(--ah-coral); }
.ah-card__icon--orange { background: var(--ah-orange); }
.ah-card__icon--yellow { background: var(--ah-yellow); color: var(--ah-ink); }
.ah-card__icon--green { background: var(--ah-green); }
.ah-card__icon--blue { background: var(--ah-blue); }
.ah-card__icon--purple { background: var(--ah-purple); }

.ah-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.ah-split__image { position: relative; }
.ah-split__image img { border-radius: 32px; width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--ah-shadow); }
.ah-split__image::after { content: ""; position: absolute; width: 42%; aspect-ratio: 1; border-radius: 28px; background: var(--ah-yellow); right: -20px; bottom: -22px; z-index: -1; }
.ah-checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 13px; }
.ah-checks li { position: relative; padding-left: 36px; font-weight: 700; }
.ah-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: rgba(72,197,139,.16); color: #168b59; font-size: .9rem; }

.ah-process { counter-reset: ah-step; }
.ah-step { position: relative; background: #fff; border-radius: 22px; padding: 28px 25px 26px; border: 1px solid var(--ah-border); }
.ah-step::before { counter-increment: ah-step; content: counter(ah-step, decimal-leading-zero); display: block; color: var(--ah-coral); font-size: 2rem; font-weight: 900; letter-spacing: -.05em; margin-bottom: 16px; }
.ah-step h3 { margin: 0 0 8px; }
.ah-step p { color: var(--ah-muted); margin: 0; font-size: .95rem; }

.ah-stage-card { padding: 0; overflow: hidden; }
.ah-stage-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.ah-stage-card__body { padding: 28px; }
.ah-stage-card__body h3 { margin-top: 0; }
.ah-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ah-tag { font-size: .76rem; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: var(--ah-cream); color: var(--ah-muted); }

.ah-project { overflow: hidden; padding: 0; }
.ah-project img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.ah-project__body { padding: 28px; }
.ah-project__body h3 { margin-top: 0; }
.ah-project__body a { font-weight: 850; color: var(--ah-coral); text-decoration: none; }

.ah-quote { border-left: 5px solid var(--ah-yellow); padding-left: 24px; font-size: 1.25rem; font-weight: 750; }
.ah-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: .9rem; color: var(--ah-muted); font-weight: 650; }

.ah-cta { border-radius: 34px; background: var(--ah-coral); color: #fff; padding: 54px; display: flex; justify-content: space-between; align-items: center; gap: 40px; position: relative; overflow: hidden; }
.ah-cta::after { content: ""; position: absolute; width: 260px; height: 260px; border: 42px solid rgba(255,255,255,.13); border-radius: 50%; right: -80px; top: -90px; }
.ah-cta h2 { margin: 0 0 10px; font-size: clamp(2rem,3.3vw,3.3rem); line-height: 1.05; }
.ah-cta p { margin: 0; color: rgba(255,255,255,.84); max-width: 670px; }
.ah-cta__content, .ah-cta__actions { position: relative; z-index: 2; }
.ah-cta__actions { flex: 0 0 auto; }

.page-header { padding: 90px 0 70px; background: var(--ah-cream); }
.page-header h1 { margin: 0; font-size: clamp(2.5rem,5vw,4.8rem); letter-spacing: -.05em; line-height: 1; }
.entry-content > *:not(.alignwide):not(.alignfull):not(.ah-section):not(.ah-hero):not(.ah-proof) { max-width: 820px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { width: min(calc(100% - 40px), var(--ah-max)); margin-left: auto; margin-right: auto; }
.entry-content > .alignfull { width: 100%; max-width: none; }
.entry-content h2 { margin-top: 1.8em; font-size: clamp(1.8rem,3vw,3rem); line-height: 1.1; }
.entry-content h3 { font-size: 1.35rem; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }

.ah-contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.ah-contact-panel { background: var(--ah-ink); color: #fff; border-radius: 28px; padding: 38px; }
.ah-contact-panel a { color: #fff; font-weight: 800; }
.ah-contact-panel p { color: rgba(255,255,255,.78); }
.ah-form { display: grid; gap: 18px; }
.ah-field { display: grid; gap: 7px; }
.ah-field label { font-weight: 800; font-size: .9rem; }
.ah-field input, .ah-field textarea, .ah-field select {
  width: 100%; border: 1px solid #d7d7d7; border-radius: 14px; padding: 13px 15px; background: #fff; color: var(--ah-ink);
}
.ah-field textarea { min-height: 140px; resize: vertical; }
.ah-field input:focus, .ah-field textarea:focus, .ah-field select:focus { outline: 3px solid rgba(35,142,201,.18); border-color: var(--ah-blue); }
.ah-notice { padding: 14px 17px; border-radius: 12px; margin-bottom: 18px; font-weight: 750; }
.ah-notice--success { background: rgba(72,197,139,.15); color: #106f46; }
.ah-notice--error { background: rgba(232,101,101,.14); color: #9c3131; }
.ah-honeypot { position: absolute !important; left: -9999px !important; }

.site-footer { background: var(--ah-ink); color: rgba(255,255,255,.76); padding: 70px 0 28px; }
.site-footer__grid { display: grid; grid-template-columns: 1.35fr .75fr .9fr; gap: 56px; }
.site-footer__logo { width: 190px; margin-bottom: 22px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; font-size: .84rem; }
.ah-whatsapp { position: fixed; z-index: 900; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #20b95b; color: #fff !important; text-decoration: none; font-size: 1.45rem; box-shadow: 0 12px 30px rgba(16,110,63,.32); }

.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; padding: 70px 0; }
.post-card { border: 1px solid var(--ah-border); border-radius: 22px; overflow: hidden; }
.post-card__body { padding: 25px; }
.post-card h2 { margin: 0 0 12px; font-size: 1.3rem; }
.post-card h2 a { color: var(--ah-ink); text-decoration: none; }

@media (max-width: 1020px) {
  .site-navigation { position: fixed; inset: 86px 0 auto 0; background: #fff; border-top: 1px solid var(--ah-border); padding: 24px; display: none; box-shadow: var(--ah-shadow); }
  .site-navigation.is-open { display: block; }
  .site-navigation ul { flex-direction: column; align-items: flex-start; gap: 16px; width: min(100%, var(--ah-max)); margin: auto; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .ah-hero__grid { grid-template-columns: 1fr; }
  .ah-hero__content { padding: 72px 0 55px; }
  .ah-hero__media { min-height: 470px; }
  .ah-hero__media::before { display: none; }
  .ah-proof__items { grid-template-columns: repeat(2,1fr); }
  .ah-grid--4 { grid-template-columns: repeat(2,1fr); }
  .ah-grid--3 { grid-template-columns: repeat(2,1fr); }
  .ah-split, .ah-contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  body.admin-bar .site-header { top: 46px; }
  .ah-container, .ah-narrow { width: min(calc(100% - 28px), var(--ah-max)); }
  .site-header__inner { min-height: 76px; }
  .site-branding img { width: 145px; max-height: 56px; }
  .site-navigation { inset: 76px 0 auto 0; }
  .ah-section { padding: 68px 0; }
  .ah-hero { min-height: auto; }
  .ah-hero__grid { min-height: auto; }
  .ah-hero__content { padding: 58px 0 42px; }
  .ah-hero__content h1 { font-size: clamp(2.55rem,13vw,4rem); }
  .ah-hero__media { min-height: 380px; }
  .ah-hero__badge { left: 14px; right: 14px; bottom: 14px; }
  .ah-proof__items, .ah-grid--2, .ah-grid--3, .ah-grid--4, .archive-grid { grid-template-columns: 1fr; }
  .ah-card { padding: 25px; }
  .ah-cta { padding: 38px 27px; flex-direction: column; align-items: flex-start; border-radius: 25px; }
  .ah-cta__actions { width: 100%; }
  .ah-cta__actions .ah-button { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .site-footer__bottom { flex-direction: column; }
  .ah-whatsapp { width: 54px; height: 54px; right: 15px; bottom: 15px; }
}
