/*
Theme Name: CST - Cooperativa de Serviços Técnicos
Theme URI: https://cst-tech-moza.lovable.app
Author: CST
Author URI: https://cst-tech-moza.lovable.app
Description: Tema WordPress one-page editorial para a CST — Cooperativa de Serviços Técnicos. Tecnologia, engenharia elétrica e fornecimento de equipamentos. Identidade visual fiel: azul #000066 e laranja #FF6600, tipografia Times New Roman + Montserrat.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cst
Tags: one-page, business, cooperative, editorial, responsive
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --cst-primary: #000066;        /* azul institucional */
  --cst-primary-dark: #00004a;
  --cst-accent: #FF6600;         /* laranja acento */
  --cst-accent-soft: rgba(255,102,0,.12);
  --cst-cream: #faf8f5;          /* off-white quente */
  --cst-cream-200: #f0ebe3;
  --cst-warm-gray: #6b6359;
  --cst-text: #1a1a2e;
  --cst-muted: #5b5b6b;
  --cst-border: #e6e1d8;
  --cst-white: #ffffff;
  --cst-radius: 0;
  --cst-shadow: 0 1px 3px rgba(0,0,102,.05), 0 12px 32px rgba(0,0,102,.08);
  --cst-max: 1200px;
  --font-display: 'Times New Roman', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--cst-text);
  background: var(--cst-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4 { margin: 0; }

.font-display { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.02; font-weight: 400; }
.font-display-italic { font-family: var(--font-display); font-style: italic; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .72rem;
  font-weight: 600;
}
.text-accent { color: var(--cst-accent); }
.container { max-width: var(--cst-max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 7rem 0; }
.center { text-align: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem;
  padding: 1rem 2rem; border: 1px solid transparent;
  cursor: pointer; transition: all .25s ease;
}
.btn-accent { background: var(--cst-accent); color: #fff; }
.btn-accent:hover { background: #e65c00; }
.btn-primary { background: var(--cst-primary); color: #fff; }
.btn-primary:hover { background: var(--cst-primary-dark); }
.btn-outline { background: transparent; border-color: var(--cst-primary); color: var(--cst-primary); }
.btn-outline:hover { background: var(--cst-primary); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--cst-primary); }
.link-arrow span { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--cst-accent); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all .3s ease; padding: 1.25rem 0;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(250,248,245,.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 0 var(--cst-border);
  padding: .75rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.site-logo img { height: 40px; width: auto; transition: transform .25s; }
.site-logo:hover img { transform: scale(1.05); }
.site-header:not(.scrolled) .site-logo img { filter: brightness(0) invert(1); }
.nav-menu { display: flex; align-items: center; gap: 1.75rem; }
.nav-menu a { font-weight: 600; font-size: .95rem; transition: color .2s; color: #fff; }
.site-header.scrolled .nav-menu a { color: var(--cst-text); }
.nav-menu a:hover { color: var(--cst-accent); }
.nav-cta { background: var(--cst-accent); color: #fff !important; padding: .65rem 1.4rem; }
.nav-cta:hover { background: #e65c00; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }
.site-header.scrolled .nav-toggle span { background: var(--cst-primary); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cst-white); padding: 1rem 1.5rem;
    box-shadow: var(--cst-shadow); display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { color: var(--cst-text) !important; padding: .85rem 0; width: 100%; border-bottom: 1px solid var(--cst-border); }
  .nav-cta { margin-top: .75rem; border: 0; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; background: var(--cst-primary);
  color: #fff; overflow: hidden; padding: 9rem 0 3rem; display: flex; align-items: center;
}
.hero-bignum {
  position: absolute; top: 7rem; right: 2rem; font-family: var(--font-display);
  font-size: clamp(120px, 20vw, 280px); line-height: 1; color: rgba(255,255,255,.05);
  user-select: none; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem; align-items: center; width: 100%; }
.hero-eyebrow { display: flex; align-items: center; gap: .75rem; margin-bottom: 2rem; }
.hero-eyebrow .rule { height: 1px; width: 3rem; background: var(--cst-accent); }
.hero h1 { font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: .95; margin-bottom: 2rem; }
.hero h1 .accent { font-style: italic; color: var(--cst-accent); }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.75); max-width: 36rem; margin-bottom: 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.hero-actions .link-arrow { color: rgba(255,255,255,.9); }
.hero-actions .link-arrow:hover { color: var(--cst-accent); }
.hero-visual { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.hero-visual::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,102,.8), transparent); }
.hero-visual .corner-tr { position: absolute; top: 0; right: 0; width: 4rem; height: 4rem; border-top: 2px solid var(--cst-accent); border-right: 2px solid var(--cst-accent); }
.hero-visual .corner-bl { position: absolute; bottom: 0; left: 0; width: 4rem; height: 4rem; border-bottom: 2px solid var(--cst-accent); border-left: 2px solid var(--cst-accent); }
.hero-stats {
  margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.15);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.hero-stats .num { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); color: var(--cst-accent); line-height: 1; display: block; margin-bottom: .5rem; }
.hero-stats .lbl { color: rgba(255,255,255,.6); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   IDENTITY (about) — magazine
   ============================================================ */
.bg-cream { background: var(--cst-cream); }
.bg-secondary { background: var(--cst-cream-200); }
.section-num { font-family: var(--font-display); font-size: 4.5rem; color: rgba(255,102,0,.3); display: block; line-height: 1; margin-bottom: 1.5rem; }
.eyebrow-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.eyebrow-row .rule { height: 1px; width: 2.5rem; background: var(--cst-accent); }
.sec-title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.75rem); color: var(--cst-primary); line-height: 1.02; }
.muted { color: var(--cst-muted); }

.identity-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; }
.identity-left h2 { margin-bottom: 2rem; }
.identity-left p { font-size: 1.1rem; margin-bottom: 1.5rem; }
.mvv { border: 1px solid var(--cst-border); }
.mvv article { background: var(--cst-cream); padding: 2.5rem; border-bottom: 1px solid var(--cst-border); display: flex; gap: 2rem; align-items: flex-start; transition: background .25s; }
.mvv article:last-child { border-bottom: 0; }
.mvv article:hover { background: var(--cst-cream-200); }
.mvv .idx { font-family: var(--font-display); font-size: 1.75rem; color: rgba(255,102,0,.6); }
.mvv h3 { font-family: var(--font-display); font-size: 1.85rem; color: var(--cst-primary); margin-bottom: .5rem; }

.coop-banner { margin-top: 8rem; background: var(--cst-primary); color: #fff; padding: 5rem 4rem; position: relative; overflow: hidden; }
.coop-banner .ghost { position: absolute; top: -2.5rem; right: -2.5rem; font-family: var(--font-display); font-size: 16rem; line-height: 1; color: rgba(255,255,255,.05); }
.coop-banner .inner { position: relative; max-width: 56rem; }
.coop-banner h3 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.05; margin-bottom: 2rem; }
.coop-banner p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 40rem; margin-bottom: 2.5rem; }
.coop-banner .link-arrow { color: var(--cst-accent); }

@media (max-width: 900px) {
  .identity-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .coop-banner { padding: 3rem 1.5rem; margin-top: 4rem; }
}

/* ============================================================
   SERVICES — bento
   ============================================================ */
.services-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 4rem; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 1.5rem; }
.bento .card { background: var(--cst-cream); border: 1px solid var(--cst-border); padding: 2.5rem; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; transition: border-color .4s; cursor: pointer; }
.bento .card:hover { border-color: var(--cst-accent); }
.bento .card.feature { grid-column: span 2; grid-row: span 2; }
.bento .card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.bento .card .num { font-family: var(--font-display); font-size: 1.85rem; color: rgba(255,102,0,.4); transition: color .3s; }
.bento .card:hover .num { color: var(--cst-accent); }
.bento .card h3 { font-family: var(--font-display); color: var(--cst-primary); font-size: 1.75rem; margin-bottom: .75rem; }
.bento .card.feature h3 { font-size: 2.75rem; }
.bento .card .more { margin-top: 1.5rem; color: var(--cst-accent); font-weight: 600; opacity: 0; transition: opacity .3s; }
.bento .card:hover .more { opacity: 1; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento .card.feature { grid-column: span 1; grid-row: span 1; }
  .bento .card.feature h3 { font-size: 2rem; }
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-head { max-width: 48rem; margin-bottom: 5rem; }
.timeline { position: relative; }
.timeline .line { position: absolute; top: 3rem; left: 0; right: 0; height: 1px; background: var(--cst-border); }
.timeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.timeline-grid .item { position: relative; }
.timeline-grid .dot { position: absolute; top: 3rem; transform: translateY(-50%); left: 0; width: 12px; height: 12px; background: var(--cst-accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--cst-cream); }
.timeline-grid .body { padding-top: 6rem; }
.timeline-grid .year { font-family: var(--font-display); font-size: 3rem; color: var(--cst-accent); display: block; margin-bottom: 1rem; }
.timeline-grid h3 { font-size: 1.1rem; color: var(--cst-primary); margin-bottom: .75rem; }

@media (max-width: 900px) {
  .timeline-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .timeline .line, .timeline-grid .dot { display: none; }
  .timeline-grid .body { padding-top: 0; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--cst-primary); color: #fff; position: relative; overflow: hidden; }
.testimonials .ghost-quote { position: absolute; top: -2.5rem; left: 2rem; font-family: var(--font-display); font-size: 18rem; line-height: 1; color: rgba(255,255,255,.05); }
.test-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem; position: relative; }
.test-feature blockquote { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; margin: 2rem 0 2.5rem; }
.test-feature .who { display: flex; align-items: center; gap: 1rem; }
.test-feature .avatar { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: rgba(255,102,0,.2); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.5rem; color: var(--cst-accent); }
.test-side { border: 1px solid rgba(255,255,255,.1); }
.test-side .card { padding: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.test-side .card:last-child { border-bottom: 0; }
.test-side .stars { color: var(--cst-accent); margin-bottom: 1rem; letter-spacing: 2px; }
.test-side p { color: rgba(255,255,255,.85); font-size: .9rem; margin-bottom: 1rem; }

@media (max-width: 900px) { .test-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PARTNERS marquee
   ============================================================ */
.partners { padding: 6rem 0; border-top: 1px solid var(--cst-border); border-bottom: 1px solid var(--cst-border); overflow: hidden; }
.marquee { position: relative; width: 100%; overflow: hidden; }
.marquee-track { display: flex; gap: 4rem; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee-track .logo { width: 11rem; height: 6rem; display: flex; align-items: center; justify-content: center; filter: grayscale(1); opacity: .5; transition: all .4s; }
.marquee-track .logo:hover { filter: grayscale(0); opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 2.5rem; }
.blog-feature .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, rgba(0,0,102,.3), rgba(255,102,0,.2)); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 6rem; color: rgba(255,255,255,.25); margin-bottom: 2rem; }
.blog-meta { display: flex; align-items: center; gap: 1rem; font-size: .85rem; margin-bottom: 1rem; }
.blog-feature h3 { font-family: var(--font-display); font-size: 2.25rem; color: var(--cst-primary); margin-bottom: 1rem; }
.blog-side { border: 1px solid var(--cst-border); }
.blog-side article { padding: 2rem; border-bottom: 1px solid var(--cst-border); }
.blog-side article:last-child { border-bottom: 0; }
.blog-side h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--cst-primary); margin-bottom: .75rem; }

@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--cst-cream-200); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-info .ico { color: var(--cst-accent); font-weight: 700; }
.contact form { display: grid; gap: 1rem; }
.contact input, .contact textarea {
  width: 100%; padding: 1rem; border: 1px solid var(--cst-border); background: #fff;
  font-family: var(--font-body); font-size: .95rem;
}
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--cst-accent); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ============================================================
   CTA
   ============================================================ */
.cta { background: var(--cst-accent); color: #fff; position: relative; overflow: hidden; }
.cta .ghost { position: absolute; inset: 0; font-family: var(--font-display); font-size: 40vw; line-height: 1; color: rgba(255,255,255,.1); margin-top: -5rem; user-select: none; pointer-events: none; }
.cta .inner { position: relative; max-width: 56rem; }
.cta h2 { font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.02; margin: 2rem 0; }
.cta p { font-size: 1.25rem; color: rgba(255,255,255,.9); margin-bottom: 2.5rem; max-width: 36rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--cst-primary); color: #fff; }
.footer-newsletter { border-bottom: 1px solid rgba(255,255,255,.15); padding: 4rem 0; }
.footer-newsletter .row { display: grid; grid-template-columns: 7fr 5fr; gap: 2.5rem; align-items: center; }
.footer-newsletter h3 { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); margin-top: 1rem; line-height: 1.05; }
.footer-newsletter form { display: flex; border-bottom: 1px solid rgba(255,255,255,.3); }
.footer-newsletter input { flex: 1; background: transparent; border: 0; padding: 1rem 0; color: #fff; font-family: var(--font-body); }
.footer-newsletter input::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter input:focus { outline: none; }
.footer-newsletter button { background: none; border: 0; color: var(--cst-accent); font-size: 1.25rem; cursor: pointer; padding: 0 .5rem; }
.footer-main { padding: 5rem 0 2rem; }
.footer-cols { display: grid; grid-template-columns: 4fr 2fr 3fr 3fr; gap: 3rem; margin-bottom: 4rem; }
.footer-cols img { height: 48px; filter: brightness(0) invert(1); margin-bottom: 1.5rem; }
.footer-cols p { color: rgba(255,255,255,.7); font-size: .9rem; max-width: 18rem; }
.footer-cols h4 { color: var(--cst-accent); margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; }
.footer-cols li { margin-bottom: .75rem; }
.footer-cols a { color: rgba(255,255,255,.8); font-size: .9rem; }
.footer-cols a:hover { color: var(--cst-accent); }
.footer-contact li { display: flex; gap: .75rem; color: rgba(255,255,255,.8); font-size: .9rem; margin-bottom: 1rem; }
.footer-contact .ico { color: var(--cst-accent); }
.footer-signature { font-family: var(--font-display); font-size: 14vw; line-height: .85; color: rgba(255,255,255,.05); white-space: nowrap; overflow: hidden; border-top: 1px solid rgba(255,255,255,.15); padding-top: 3rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 2rem; margin-top: 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; align-items: center; }
.footer-bottom p { color: rgba(255,255,255,.5); font-size: .8rem; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a { width: 2.25rem; height: 2.25rem; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; transition: all .2s; }
.footer-social a:hover { border-color: var(--cst-accent); color: var(--cst-accent); }

@media (max-width: 900px) {
  .footer-newsletter .row, .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; width: 3.5rem; height: 3.5rem; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); color: #fff; font-size: 1.5rem; transition: transform .2s; }
.wa-float:hover { transform: scale(1.1); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
