/*
Theme Name: Desafio Mola 2026
Theme URI: https://desafiomola.com.br
Author: Desafio Mola
Author URI: https://desafiomola.com.br
Description: Tema oficial do Desafio ABECE Mola 2026 — concurso nacional de modelagem estrutural. Design inspirado no key-visual hexagonal do evento, com tipografia Oswald (display) e Montserrat (texto).
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: desafio-mola
Tags: one-column, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   Desafio Mola 2026 — Stylesheet
   Tipografia: Oswald (display) + Montserrat (corpo)
   Paleta: Azul-marinho profundo + Laranja Mola
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1a2342;          /* azul-marinho */
  --primary-deep: #0f1730;     /* navy mais profundo */
  --primary-foreground: #ffffff;
  --accent-orange: #f15a29;    /* laranja Mola */
  --accent-orange-foreground: #ffffff;
  --background: #ffffff;
  --foreground: #1a2342;
  --muted: #f5f5f7;
  --muted-foreground: #5b6478;
  --border: #e6e8ee;
  --secondary: #f8f9fb;

  --font-display: 'Oswald', 'Barlow Condensed', Impact, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1200px;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-orange); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .95;
  margin: 0 0 .5em;
  transform: scaleY(1.08);
  transform-origin: left center;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-transform: none;
}
.btn-primary {
  background: var(--accent-orange);
  color: var(--accent-orange-foreground);
}
.btn-primary:hover { background: #d94a1f; color: #fff; }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.btn-outline:hover { background: #fff; color: var(--primary); }

/* ---------- Geometric clip-paths ---------- */
.clip-chamfer {
  clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
}
.clip-tag {
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

/* ---------- Blueprint background ---------- */
.bg-blueprint {
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(26,35,66,.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--primary);
}
.site-brand .brand-mark {
  width: 28px; height: 28px;
  background: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.site-brand .brand-mark::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-orange);
}
.site-brand .accent { color: var(--accent-orange); }

.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.main-nav a {
  position: relative;
  display: block;
  padding: .6rem .9rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted-foreground);
}
.main-nav a:hover, .main-nav .current-menu-item > a {
  color: var(--primary);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: .9rem; right: .9rem; bottom: .25rem;
  height: 2px;
  background: var(--accent-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after { transform: scaleX(1); }

.header-cta { display: none; }

.mobile-toggle {
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
  content: ''; display: block;
  width: 22px; height: 2px;
  background: var(--primary);
  position: relative;
}
.mobile-toggle span::before { position: absolute; top: -7px; }
.mobile-toggle span::after  { position: absolute; top:  7px; }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .mobile-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 1rem 1.5rem; }
.mobile-menu li { border-bottom: 1px solid var(--border); }
.mobile-menu a {
  display: block; padding: .9rem 0;
  font-weight: 600; color: var(--foreground);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
  padding: 6rem 0 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .3;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary), var(--primary-deep));
  mix-blend-mode: multiply;
}
.hero-grid { position: absolute; inset: 0; opacity: .3; }
.hero-shape-1, .hero-shape-2 {
  position: absolute;
  display: none;
}
.hero-shape-1 {
  top: -64px; right: -64px;
  width: 420px; height: 420px;
  background: rgba(241,90,41,.15);
  transform: rotate(12deg);
}
.hero-shape-2 {
  bottom: -96px; left: -96px;
  width: 360px; height: 360px;
  background: rgba(255,255,255,.05);
  transform: rotate(-6deg);
}
@media (min-width: 768px) {
  .hero { padding: 9rem 0 0; }
  .hero-shape-1, .hero-shape-2 { display: block; }
}
.hero-inner { position: relative; max-width: 760px; padding-bottom: 6rem; }
.hero-tag {
  display: inline-flex;
  background: var(--accent-orange);
  color: #fff;
  padding: .45rem 1.25rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--accent-orange); }
.hero-divider {
  display: flex; align-items: center; gap: .75rem;
  margin: 1.5rem 0;
}
.hero-divider .line { height: 1px; background: var(--accent-orange); width: 64px; }
.hero-divider .line-soft { background: rgba(241,90,41,.4); flex: 1; max-width: 120px; }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin: 1.5rem 0 2.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-strip {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(15,23,48,.6);
  backdrop-filter: blur(8px);
}
.hero-strip .container {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.hero-strip .accent { color: var(--accent-orange); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent-orange);
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 1rem;
  font-weight: 800;
}
.section-title .accent { color: var(--accent-orange); }

/* About */
.about-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-image {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--muted);
  background-size: cover;
  background-position: center;
}

/* Cards grid */
.cards-section { background: var(--secondary); border-top: 1px solid var(--border); }
.cards-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  display: block;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .25s;
  color: inherit;
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(26,35,66,.4);
}
.card-icon {
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}
.card-num {
  font-size: .65rem; font-weight: 700; letter-spacing: .25em;
  text-transform: uppercase; color: var(--accent-orange);
  margin-bottom: .35rem;
}
.card h3 {
  font-size: 1.4rem; margin-bottom: .5rem;
}
.card p {
  font-size: .9rem; color: var(--muted-foreground); margin: 0;
}
.card-link {
  margin-top: 1.25rem;
  font-size: .85rem; font-weight: 600;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: .35rem;
}

/* Sponsors */
.sponsors-section { border-top: 1px solid var(--border); }
.sponsors-tier-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .25em;
  text-transform: uppercase; color: var(--muted-foreground);
  margin: 1.5rem 0 1rem;
}
.sponsors-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
.sponsors-grid.tier-silver { grid-template-columns: 1fr; max-width: 600px; }
@media (min-width: 640px) {
  .sponsors-grid { grid-template-columns: repeat(3, 1fr); }
  .sponsors-grid.tier-silver { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .sponsors-grid { grid-template-columns: repeat(6, 1fr); }
}
.sponsor-card {
  aspect-ratio: 3/2;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; text-align: center;
  font-size: .78rem; font-weight: 600;
  color: var(--muted-foreground);
  transition: border-color .2s;
}
.sponsor-card:hover { border-color: var(--accent-orange); }
.sponsor-card.tier-silver {
  aspect-ratio: 3/1;
  border: 2px solid rgba(26,35,66,.2);
  font-size: 1rem;
  color: var(--primary);
}
.sponsor-card.tier-silver:hover { border-color: var(--primary); }

/* Gallery */
.gallery-section { background: var(--secondary); border-top: 1px solid var(--border); }
.gallery-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
  }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
}
.gallery-item.featured { grid-column: span 2; grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* CTA */
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 6rem 0;
}
.cta-section h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  color: #fff;
}
.cta-section h2 .accent { color: var(--accent-orange); }
.cta-section p { color: rgba(255,255,255,.8); max-width: 560px; margin: 1.5rem auto 2.5rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
  margin-top: 6rem;
}
.footer-grid {
  position: relative;
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  padding: 3.5rem 0;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-col h3 {
  font-size: .72rem; font-weight: 700; letter-spacing: .25em;
  text-transform: uppercase; color: var(--accent-orange);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .65rem; font-size: .9rem; color: rgba(255,255,255,.8); }
.footer-col a { color: rgba(255,255,255,.8); }
.footer-col a:hover { color: var(--accent-orange); }
.footer-brand p { color: rgba(255,255,255,.7); font-size: .9rem; max-width: 320px; margin-top: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-bottom .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  padding: 1.25rem 1.5rem;
  font-size: .72rem; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .15em;
}

/* ---------- Page content ---------- */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.page-content h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
.page-content h2 { font-size: 2rem; margin-top: 2.5rem; }
.page-content h3 { font-size: 1.5rem; margin-top: 2rem; }
.page-content ul, .page-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.page-content li { margin-bottom: .5rem; }

/* ---------- Posts ---------- */
.posts-list { max-width: 800px; margin: 0 auto; padding: 4rem 1.5rem; }
.post-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.post-card h2 a { color: var(--primary); }
.post-card h2 a:hover { color: var(--accent-orange); }
.post-meta {
  font-size: .75rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted-foreground);
  margin-bottom: .5rem;
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
