/*
Theme Name: Gyton Soluções Empresariais
Theme URI: https://gytonsolucoes.com.br
Author: Gyton
Description: Tema One Page institucional para a Gyton Soluções Empresariais — consultoria em segurança do trabalho, corpo de bombeiros, engenharia, meio ambiente, vigilância sanitária e treinamentos.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: gyton
*/

/* ============================================================
   1. TOKENS DO DESIGN SYSTEM
   ============================================================ */
:root {
  --primary: #082d5a;         /* Azul escuro   */
  --primary-soft: #103f7b;    /* Azul médio    */
  --accent: #5fae3e;          /* Verde         */
  --accent-light: #8bc53f;    /* Verde claro   */

  --background: #ffffff;
  --surface: #f6f7f9;
  --foreground: #1d2733;
  --muted: #64748b;
  --border: #e4e7ec;

  --radius: 10px;
  --shadow-soft: 0 1px 2px rgba(8, 45, 90, .06), 0 8px 24px rgba(8, 45, 90, .07);
  --shadow-lift: 0 2px 4px rgba(8, 45, 90, .08), 0 18px 44px rgba(8, 45, 90, .14);

  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;

  /* Cores por serviço (mesma ordem dos cards) */
  --svc-seguranca: #082d5a;
  --svc-bombeiros: #c0392b;
  --svc-engenharia: #4f6478;
  --svc-ambiente: #3f9e4d;
  --svc-sanitaria: #1f97b8;
  --svc-treinamentos: #7b3fa0;
}

/* ============================================================
   2. RESET E BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; margin: 0; line-height: 1.15; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.gy-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1024px) { .gy-container { padding: 0 32px; } }

.gy-section { padding: 88px 0; }
@media (min-width: 1024px) { .gy-section { padding: 120px 0; } }

.gy-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
}
.gy-eyebrow--light { color: var(--accent-light); }

.gy-title { font-size: 30px; font-weight: 800; color: var(--primary); margin-top: 16px; }
@media (min-width: 640px) { .gy-title { font-size: 38px; } }
.gy-title--light { color: #fff; }

.gy-lead { margin-top: 20px; color: var(--muted); line-height: 1.75; }

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

/* ============================================================
   3. BOTÕES
   ============================================================ */
.gy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius); border: 0; cursor: pointer;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.gy-btn--accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-soft); }
.gy-btn--accent:hover { background: var(--accent-light); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.gy-btn--white { background: #fff; color: var(--primary); box-shadow: var(--shadow-lift); }
.gy-btn--white:hover { transform: translateY(-2px); }
.gy-btn--outline { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.gy-btn--outline:hover { background: rgba(255,255,255,.1); }
.gy-btn--uppercase { text-transform: uppercase; letter-spacing: .06em; }

/* ============================================================
   4. HEADER
   ============================================================ */
.gy-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--primary-soft); transition: box-shadow .3s ease;
}
.gy-header.is-scrolled { box-shadow: var(--shadow-lift); }
.gy-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0;
}
@media (min-width: 1024px) { .gy-header__inner { padding: 22px 0; } }

.gy-logo img { height: 62px; width: auto; }
@media (min-width: 1024px) { .gy-logo img { height: 92px; } }
.gy-logo--white img { filter: brightness(0) invert(1); }
.gy-logo--footer img { height: 66px; }

.gy-header__right { display: flex; align-items: center; gap: 12px; }
@media (min-width: 1024px) { .gy-header__right { gap: 28px; } }

.gy-nav { display: none; align-items: center; gap: 28px; }
@media (min-width: 1024px) { .gy-nav { display: flex; } }
.gy-nav a {
  position: relative; font-size: 1.05rem; font-weight: 600; color: rgba(255,255,255,.9);
  transition: color .2s ease;
}
.gy-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--accent-light); transform: scaleX(0); transform-origin: right;
  transition: transform .3s ease;
}
.gy-nav a:hover { color: #fff; }
.gy-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.gy-header .gy-btn--accent { display: none; padding: 10px 20px; font-size: 16px; }
@media (min-width: 640px) { .gy-header .gy-btn--accent { display: inline-flex; } }

.gy-burger {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius);
  background: transparent; color: #fff; cursor: pointer;
}
@media (min-width: 1024px) { .gy-burger { display: none; } }
.gy-burger svg { width: 20px; height: 20px; }
.gy-burger .icon-close, .gy-burger.is-open .icon-open { display: none; }
.gy-burger.is-open .icon-close { display: block; }

.gy-mobile-nav {
  display: none; border-top: 1px solid rgba(255,255,255,.15);
  background: var(--primary-soft); padding: 8px 20px 20px;
}
.gy-mobile-nav.is-open { display: block; }
@media (min-width: 1024px) { .gy-mobile-nav.is-open { display: none; } }
.gy-mobile-nav a {
  display: block; padding: 12px 0; font-size: 16px; font-weight: 600;
  color: rgba(255,255,255,.9); border-bottom: 1px solid rgba(255,255,255,.15);
}
.gy-mobile-nav .gy-btn { display: flex; width: 100%; margin-top: 16px; }

/* ============================================================
   5. HERO
   ============================================================ */
.gy-hero { position: relative; display: flex; align-items: center; min-height: 100svh; overflow: hidden; }
.gy-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gy-hero__overlay { position: absolute; inset: 0; background: rgba(8,45,90,.85); }
.gy-hero__overlay--grad {
  background: linear-gradient(90deg, rgba(8,45,90,.85) 0%, rgba(8,45,90,.7) 50%, rgba(16,63,123,.5) 100%);
}
.gy-hero__content { position: relative; width: 100%; padding: 128px 0 112px; }
@media (min-width: 1024px) { .gy-hero__content { padding: 192px 0 112px; } }
.gy-hero__inner { max-width: 780px; animation: gy-fade-up .7s cubic-bezier(.16,1,.3,1) both; }

.gy-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1);
  border-radius: 999px; color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.gy-hero h1 { margin-top: 28px; font-size: 36px; font-weight: 800; line-height: 1.08; color: #fff; }
@media (min-width: 640px) { .gy-hero h1 { font-size: 48px; } }
@media (min-width: 1024px) { .gy-hero h1 { font-size: 60px; } }
.gy-hero h1 .gy-hl { color: var(--accent-light); }
.gy-hero p { margin-top: 24px; max-width: 680px; color: rgba(255,255,255,.85); line-height: 1.8; }
.gy-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.gy-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7);
}
.gy-scroll-hint svg { width: 32px; height: 32px; animation: gy-bounce 1.6s infinite; }

/* ============================================================
   6. EMPRESA
   ============================================================ */
.gy-empresa__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .gy-empresa__grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.gy-empresa__media { position: relative; }
.gy-empresa__media::before {
  content: ""; position: absolute; inset: -12px -12px auto auto; width: 100%; height: 100%;
  border: 2px solid rgba(95,174,62,.3); border-radius: 16px; display: none;
}
@media (min-width: 1024px) { .gy-empresa__media::before { display: block; } }
.gy-empresa__media img { position: relative; width: 100%; border-radius: 16px; box-shadow: var(--shadow-lift); }

/* ============================================================
   7. DIFERENCIAIS
   ============================================================ */
.gy-diferenciais { position: relative; overflow: hidden; background: var(--primary); }
.gy-diferenciais::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 10%, var(--primary-soft), transparent 55%);
}
.gy-diferenciais > .gy-container { position: relative; }
.gy-cards { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 640px) { .gy-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gy-cards { grid-template-columns: repeat(4, 1fr); } }
.gy-card {
  padding: 24px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06); transition: all .3s ease;
}
.gy-card:hover { transform: translateY(-4px); border-color: rgba(95,174,62,.5); background: rgba(255,255,255,.1); }
.gy-card svg { width: 28px; height: 28px; color: var(--accent-light); }
.gy-card h3 { margin-top: 20px; font-size: 16px; font-weight: 700; color: #fff; }
.gy-card p { margin-top: 8px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.7); }

.gy-quote { margin-top: 56px; border-left: 4px solid var(--accent); padding-left: 24px; }
.gy-quote p { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; line-height: 1.35; }
@media (min-width: 640px) { .gy-quote p { font-size: 24px; } }

/* ============================================================
   8. SERVIÇOS
   ============================================================ */
.gy-servicos { background: var(--surface); }
.gy-servicos__head { text-align: center; }
.gy-grid-servicos { display: grid; gap: 24px; margin-top: 48px; }
@media (min-width: 640px) { .gy-grid-servicos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gy-grid-servicos { grid-template-columns: repeat(3, 1fr); } }

.gy-svc {
  display: flex; flex-direction: column; overflow: hidden; height: 100%;
  border: 1px solid var(--border); border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-soft); transition: transform .3s ease, box-shadow .3s ease;
}
.gy-svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.gy-svc__media { position: relative; }
.gy-svc__media img { height: 144px; width: 100%; object-fit: cover; }
.gy-svc__icon {
  position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
  border: 4px solid #fff; background: var(--svc); color: #fff;
}
.gy-svc__icon svg { width: 20px; height: 20px; }
.gy-svc__body { display: flex; flex-direction: column; flex: 1; padding: 40px 20px 24px; text-align: center; }
.gy-svc__body h3 {
  font-size: 14px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; line-height: 1.35; color: var(--svc);
}
.gy-svc__list { flex: 1; margin-top: 16px; text-align: left; font-size: 13px; line-height: 1.45; color: rgba(29,39,51,.8); }
.gy-svc__list li { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 6px; }
.gy-svc__list li::before {
  content: ""; flex: none; margin-top: 7px; width: 4px; height: 4px;
  border-radius: 999px; background: var(--svc);
}
.gy-svc__cta {
  margin-top: 24px; display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: var(--radius); background: var(--svc); color: #fff;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  transition: opacity .2s ease;
}
.gy-svc__cta:hover { opacity: .9; }

/* ============================================================
   9. COMO TRABALHAMOS (TIMELINE)
   ============================================================ */
.gy-timeline { position: relative; display: grid; gap: 32px; margin-top: 56px; }
@media (min-width: 1024px) { .gy-timeline { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
.gy-timeline::before {
  content: ""; position: absolute; left: 15px; top: 8px; width: 1px; height: calc(100% - 16px);
  background: var(--border); display: none;
}
@media (min-width: 640px) { .gy-timeline::before { display: block; } }
@media (min-width: 1024px) {
  .gy-timeline::before { left: 0; top: 15px; width: 100%; height: 1px; }
}
.gy-step { position: relative; display: flex; gap: 16px; }
@media (min-width: 1024px) { .gy-step { display: block; } }
.gy-step__num {
  position: relative; z-index: 1; display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 999px; border: 2px solid var(--accent);
  background: #fff; font-family: var(--font-display); font-size: 12px; font-weight: 800; color: var(--primary);
}
.gy-step__text h3 { font-size: 16px; font-weight: 700; color: var(--primary); }
.gy-step__text p { margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--muted); }
@media (min-width: 1024px) { .gy-step__text { margin-top: 20px; padding-right: 16px; } }

/* ============================================================
   10. CTA FINAL
   ============================================================ */
.gy-cta { position: relative; overflow: hidden; padding: 64px 0; }
@media (min-width: 1024px) { .gy-cta { padding: 80px 0; } }
.gy-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gy-cta__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,45,90,.85) 0%, rgba(8,45,90,.5) 55%, rgba(8,45,90,0) 100%);
}
.gy-cta__inner {
  position: relative; display: grid; gap: 32px; align-items: center;
}
@media (min-width: 1024px) { .gy-cta__inner { grid-template-columns: minmax(0,1fr) auto; } }
.gy-cta h2 { font-size: 30px; font-weight: 800; color: #fff; line-height: 1.2; }
@media (min-width: 640px) { .gy-cta h2 { font-size: 38px; } }
.gy-cta h2 .gy-hl { color: var(--accent-light); }
.gy-cta p { margin-top: 16px; max-width: 560px; color: rgba(255,255,255,.9); }
.gy-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gy-cta__actions .gy-btn { text-transform: uppercase; letter-spacing: .05em; }

/* ============================================================
   11. CONTATO
   ============================================================ */
.gy-contato__grid { display: grid; gap: 32px; margin-top: 48px; }
@media (min-width: 1024px) { .gy-contato__grid { grid-template-columns: 1.1fr .9fr; } }

.gy-form-wrap {
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  padding: 24px; box-shadow: var(--shadow-soft);
}
@media (min-width: 640px) { .gy-form-wrap { padding: 36px; } }
.gy-form { display: grid; gap: 20px; }
@media (min-width: 640px) { .gy-form { grid-template-columns: repeat(2, 1fr); } }
.gy-form .gy-full { grid-column: 1 / -1; }
.gy-form label {
  display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: rgba(29,39,51,.7);
}
.gy-form input, .gy-form textarea {
  width: 100%; padding: 12px 16px; font-family: inherit; font-size: 14px;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.gy-form textarea { resize: vertical; min-height: 130px; }
.gy-form input:focus, .gy-form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(95,174,62,.25);
}
.gy-form .gy-btn { width: 100%; }

.gy-infos { display: flex; flex-direction: column; gap: 16px; }
.gy-info {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  border: 1px solid var(--border); border-radius: 14px; background: #fff;
  transition: all .25s ease;
}
.gy-info:hover { transform: translateY(-2px); border-color: rgba(95,174,62,.4); box-shadow: var(--shadow-soft); }
.gy-info__icon {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px;
  border-radius: var(--radius); background: rgba(8,45,90,.05); color: var(--primary);
}
.gy-info__icon svg { width: 20px; height: 20px; }
.gy-info__label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.gy-info__value { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; }

/* ============================================================
   12. RODAPÉ
   ============================================================ */
.gy-footer { background: var(--primary); padding: 64px 0 32px; }
.gy-footer__grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .gy-footer__grid { grid-template-columns: repeat(3, 1fr); } }
.gy-footer p, .gy-footer a, .gy-footer li { color: rgba(255,255,255,.65); font-size: 14px; }
.gy-footer a:hover { color: var(--accent-light); }
.gy-footer h3 {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #fff;
}
.gy-footer ul { display: grid; gap: 12px; margin-top: 20px; }
.gy-footer__about { margin-top: 20px; max-width: 320px; line-height: 1.7; }
.gy-socials { display: flex; gap: 12px; margin-top: 24px; }
.gy-socials a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.8); transition: all .2s ease;
}
.gy-socials a:hover { border-color: var(--accent); color: var(--accent-light); }
.gy-socials svg { width: 16px; height: 16px; }
.gy-footer__bottom {
  margin-top: 48px; padding-top: 24px; text-align: center; font-size: 12px;
  border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5);
}

/* ============================================================
   13. AÇÕES FLUTUANTES
   ============================================================ */
.gy-floating {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.gy-top {
  display: none; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--primary);
  box-shadow: var(--shadow-lift); cursor: pointer; transition: transform .2s ease;
}
.gy-top.is-visible { display: grid; }
.gy-top:hover { transform: translateY(-2px); }
.gy-whats {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px;
  background: var(--accent); color: #fff; box-shadow: var(--shadow-lift); transition: transform .2s ease;
}
.gy-whats:hover { transform: scale(1.05); }
.gy-whats svg { width: 28px; height: 28px; }

/* ============================================================
   14. ANIMAÇÕES DE ENTRADA
   ============================================================ */
.gy-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
}
.gy-reveal.is-visible { opacity: 1; transform: none; }

@keyframes gy-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes gy-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-25%); }
}

/* ============================================================
   15. CONTEÚDO PADRÃO DO WORDPRESS (páginas e posts internos)
   ============================================================ */
.gy-page { padding: 160px 0 96px; }
.gy-page h1 { font-size: 34px; color: var(--primary); }
.gy-page .gy-entry { margin-top: 24px; line-height: 1.8; color: var(--foreground); }
.gy-page .gy-entry p { margin-bottom: 16px; }
.gy-page .gy-entry a { color: var(--accent); text-decoration: underline; }


/* Mensagem de retorno do formulário de contato */
.gy-form__msg { margin: 10px 0 0; font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.gy-form__msg.is-ok { color: #387E44; }
.gy-form__msg.is-error { color: #8B2516; }
