/*
Theme Name: Davinci In-Out
Theme URI: https://inoutproducoes.com
Author: in-out produções
Author URI: https://inoutproducoes.com
Description: Tema premium inspirado em Blackmagic Design — layout editorial com hero showcase, stories e partners grid.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: davinci-inout
Tags: full-width-template, custom-colors, custom-menu, custom-logo, featured-images, dark, portfolio, business
*/

/* ========================================================
   DESIGN TOKENS
   ======================================================== */
:root {
  --bg:           #1a1a1a;
  --bg-dark:      #000000;
  --bg-navy:      #141e2b;
  --bg-light:     #e5e5e5;
  --ink:          #ffffff;
  --ink-dark:     #111111;
  --muted:        #999999;
  --muted-light:  #666666;
  --line:         rgba(255,255,255,.12);
  --line-dark:    rgba(0,0,0,.1);
  --accent:       #e8a624;
  --surface:      rgba(255,255,255,.04);
  --radius:       6px;
  --nav-h:        72px;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
}

/* ========================================================
   RESET & BASE
   ======================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-dark);
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================================
   TYPOGRAPHY
   ======================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(32px, 5vw, 64px); }
h2 { font-size: clamp(24px, 3.5vw, 42px); }
h3 { font-size: clamp(18px, 2vw, 24px); }
p  { font-size: 14px; line-height: 1.7; color: var(--muted); }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========================================================
   SCROLLBAR
   ======================================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

/* ========================================================
   SELECTION
   ======================================================== */
::selection { background: var(--accent); color: var(--bg-dark); }

/* ========================================================
   NAVIGATION
   ======================================================== */
.site-nav {
  background: var(--bg);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  height: 100%;
}
.nav-links li { height: 100%; }
.nav-links li a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .03em;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-links li a:hover {
  background: rgba(255,255,255,.06);
}
.nav-links li.current-menu-item a,
.nav-links li a.active {
  color: var(--accent);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-left: auto;
}
.nav-brand img {
  height: 56px;
  width: auto;
}
.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.97);
  backdrop-filter: blur(30px);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color .3s;
}
.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ========================================================
   HERO SECTION
   ======================================================== */
.hero-section {
  position: relative;
  background-color: #1a1a1a;
  background-image: linear-gradient(115deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.35) 75%), var(--section-photo);
  background-size: cover;
  background-position: center;
  padding: clamp(100px, 16vw, 160px) 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-main {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: #3577b4;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 3px;
  margin-bottom: 24px;
  width: fit-content;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 8vw, 104px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.96;
  color: #fff;
  max-width: 720px;
  margin-bottom: 22px;
  text-shadow: 0 4px 32px rgba(0,0,0,.55);
}
.hero-desc {
  font-size: clamp(15px, 1.8vw, 19px);
  color: rgba(255,255,255,.85);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.hero-price {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: #fff;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-cta-row .btn {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 16px 34px;
}
/* Hero Thumbnails Strip */
.hero-thumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.hero-thumbs::-webkit-scrollbar { display: none; }
.hero-thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 52px;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s, opacity .2s;
  opacity: .6;
}
.hero-thumb.active,
.hero-thumb:hover {
  border-color: #3577b4;
  opacity: 1;
}
.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================================
   QUEM SOMOS (ABOUT SECTION)
   ======================================================== */
.about-section {
  position: relative;
  background-color: #111;
  background-image: linear-gradient(115deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.75) 55%, rgba(0,0,0,.85) 100%), var(--section-photo);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 80px 0;
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.about-header {
  margin-bottom: 40px;
}
.about-main-title {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.about-line {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.about-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.about-text-block {
  font-size: 17px;
  line-height: 1.8;
}
.about-lead {
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #ffffff;
}
.about-highlight {
  color: var(--accent);
  font-weight: 700;
}
.about-body {
  font-size: 19px;
  color: rgba(255,255,255,.85);
  margin-bottom: 15px;
}
.about-pillars {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.about-watermark {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-watermark img {
  max-width: 180px;
  height: auto;
  opacity: 0.12;
}

/* ========================================================
   "LER MAIS" BUTTON + STORY MODAL
   ======================================================== */
.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  padding: 13px 28px;
  border-radius: 3px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn-read-more:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-1px);
}
.btn-read-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-read-more svg { transition: transform .2s; }
.btn-read-more:hover svg { transform: translateX(3px); }

.story-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.story-modal.open { opacity: 1; pointer-events: auto; }
.story-modal-card {
  position: relative;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #1f1f1f, #141414);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 48px clamp(24px, 5vw, 56px);
  transform: translateY(16px) scale(.98);
  transition: transform .3s ease;
}
.story-modal.open .story-modal-card { transform: translateY(0) scale(1); }
.story-modal-eyebrow {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.story-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  margin: 0 0 24px;
  color: #fff;
}
.story-modal-card p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,.85);
  margin: 0 0 20px;
}
.story-modal-cta {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.story-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.story-modal-close:hover { background: rgba(255,255,255,.15); border-color: #fff; transform: rotate(90deg); }
.story-modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .story-modal, .story-modal-card, .btn-read-more, .story-modal-close { transition: none !important; }
}
@media (max-width: 640px) {
  .story-modal-card { padding: 40px 22px 28px; }
}

/* ========================================================
   MISSÃO & VISÃO
   ======================================================== */
.mission-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  color: #ffffff;
}
.mission-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.mission-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 2;
}
.mission-inner {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.mission-card {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 8px;
  transition: border-color .3s;
}
@media (max-width: 768px) {
  .mission-section { padding: 60px 0; }
  .mission-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .mission-card { padding: 28px; }
}
.mission-card:hover {
  border-color: #3577b4;
}
.mission-card-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
  color: #ffffff;
}
.mission-card-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}
.mission-quote {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  border-left: none;
  padding-left: 0;
}
.mission-quote p {
  font-size: 20px;
  font-style: italic;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 12px;
}
.mission-quote cite {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========================================================
   NOSSOS SERVIÇOS
   ======================================================== */
.services-section {
  position: relative;
  background-color: #111;
  background-image: linear-gradient(115deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.75) 55%, rgba(0,0,0,.85) 100%), var(--section-photo);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 80px 0;
}
.services-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.services-header {
  margin-bottom: 50px;
}
.services-main-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.services-line {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.services-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.services-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.services-watermark {
  margin-bottom: 24px;
}
.services-watermark img {
  width: 120px;
  height: auto;
  opacity: 0.15;
}
.services-team-quote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 0;
}
.services-team-quote p {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
  color: rgba(255,255,255,.85);
}
.services-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.service-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 24px;
  transition: border-color .3s;
}
.service-item:hover {
  border-color: #3577b4;
}
.service-icon-wrap {
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.service-content {
  flex: 1;
}
.service-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.service-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
}
.services-portfolio-cta {
  margin-top: 60px;
  text-align: center;
}
.btn-portfolio {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #3577b4;
  color: #ffffff;
  padding: 14px 40px;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(53, 119, 180, 0.3);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-portfolio:hover {
  background: #2b6296;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(53, 119, 180, 0.4);
}
.btn-portfolio span {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.btn-portfolio small {
  font-size: 10px;
  opacity: 0.8;
  margin-top: 4px;
}

@media (max-width: 860px) {
  .about-section { padding: 48px 0; }
  .about-content {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .about-watermark {
    display: none;
  }
  .services-section { padding: 48px 0; }
  .services-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-watermark {
    display: none;
  }
}

/* ========================================================
   STORIES SECTION
   ======================================================== */
.stories-section {
  background: var(--bg-navy);
  padding: clamp(60px, 8vw, 100px) 0;
}
.stories-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.stories-header {
  text-align: center;
  margin-bottom: 48px;
}
.stories-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 500;
  font-style: italic;
  color: rgba(255,255,255,.85);
  letter-spacing: .02em;
}

/* Featured Story */
.story-featured {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 32px;
  cursor: pointer;
}
.story-featured-media {
  width: 100%;
  aspect-ratio: 16/8;
  background: #000;
}
.story-featured-img,
.story-featured-media video,
.story-featured-media iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  display: block;
  border: none;
}
.story-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  opacity: 1;
  transition: opacity .4s ease;
}
.story-featured.is-playing .story-featured-overlay {
  opacity: 0;
  pointer-events: none;
}
.story-featured-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: #fff;
  max-width: 450px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.story-featured-desc {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.story-featured .btn-read {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 2px;
  transition: background .2s, color .2s;
  width: fit-content;
}
.story-featured .btn-read:hover {
  background: #fff;
  color: #000;
}

/* Story Cards Grid */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.story-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s;
  border: 2px solid transparent;
}
.story-card:hover { transform: translateY(-4px); }
.story-card.active {
  border-color: #3577b4;
}
.story-card.is-now-playing {
  display: none;
}
.story-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.story-card:hover .story-card-img { transform: scale(1.05); }
.story-card.active .story-card-play {
  opacity: 1;
  background: #3577b4;
}
.story-card-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 10px;
}
.story-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.story-card:hover .story-card-play,
.story-card:focus-visible .story-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

/* Pagination Dots */
.stories-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.stories-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.stories-dot.active {
  background: #fff;
}

/* Discover More */
.stories-more {
  text-align: center;
}
.btn-discover {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-discover:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

@media (max-width: 900px) {
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .stories-grid { grid-template-columns: 1fr; }
}

/* ========================================================
   PARTNERS SECTION
   ======================================================== */
.partners-section {
  background: var(--bg-dark);
  padding: clamp(60px, 8vw, 100px) 0;
}
.partners-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.partners-header {
  text-align: center;
  margin-bottom: 56px;
}
.partners-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px 32px;
  align-items: center;
  justify-items: center;
}
.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  opacity: .5;
  transition: opacity .3s;
  cursor: default;
}
.partner-item:hover { opacity: .9; }
.partner-item span {
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.partner-logo-mask {
  display: inline-block;
  width: 160px;
  max-width: 100%;
  height: 114px;
  background-color: #ffffff;
  -webkit-mask-image: var(--logo-url);
  mask-image: var(--logo-url);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: .7;
  transition: background-color .3s ease, opacity .3s ease;
}
.partner-item:hover .partner-logo-mask {
  background-color: #3577b4;
  opacity: 1;
}

@media (max-width: 768px) {
  .partners-section { padding: 40px 0; }
  .partners-header { margin-bottom: 32px; }
  .partners-grid { grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
  .partner-item { padding: 8px 6px; }
  .partner-logo-mask { height: 44px; width: 90px; }
  .partner-item span { font-size: 12px; }
}
@media (max-width: 480px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ========================================================
   CONHEÇA A EQUIPA
   ======================================================== */
.team-section {
  background: var(--bg);
  padding: clamp(70px, 9vw, 110px) 0 0;
}
.team-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: clamp(40px, 6vw, 88px);
  align-items: flex-start;
  margin-bottom: 44px;
}
.team-intro {
  flex: 0 0 260px;
}
.team-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.team-line {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 22px;
}
.team-desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,.65);
  margin: 0 0 32px;
  max-width: 300px;
}
.team-nav { display: flex; gap: 12px; }
.team-nav button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
}
.team-nav button:hover { background: var(--accent); border-color: var(--accent); color: #1a1a1a; transform: translateY(-2px); }
.team-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.team-track-wrap { flex: 1; min-width: 0; align-self: center; }
.team-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.team-track::-webkit-scrollbar { display: none; }
.team-card {
  flex: 0 0 232px;
  scroll-snap-align: start;
}
.team-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  background: #222;
  isolation: isolate;
}
.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.001);
  transition: filter .5s ease, transform .6s cubic-bezier(.25,.8,.25,1);
}
.team-card:hover .team-card-photo img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.06);
}
.team-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 55%, transparent 100%);
  transition: background .4s ease;
}
.team-card:hover .team-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.96) 0%, rgba(0,0,0,.7) 60%, transparent 100%);
}
.team-card-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 3px;
  color: #fff;
}
.team-card-role {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .03em;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .team-card-photo img, .team-card-overlay, .team-nav button { transition: none !important; }
}
@media (max-width: 860px) {
  .team-layout { flex-direction: column; gap: 28px; }
  .team-intro { flex: none; }
}

/* Address / phone bar under the team carousel */
.location-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 32px;
  padding: 24px;
  margin-top: 48px;
  background: var(--bg-dark);
  text-align: center;
}
.location-bar-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.location-bar-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.location-bar-value {
  font-size: 14px;
  color: rgba(255,255,255,.75);
}
.location-bar-link {
  text-decoration: none;
  transition: color .2s;
}
.location-bar-link:hover {
  color: var(--ink);
}
.location-pin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.location-pin-btn:hover { background: var(--accent); border-color: var(--accent); color: #1a1a1a; transform: scale(1.08); }
.location-pin-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) {
  .location-bar { flex-direction: column; gap: 12px; padding: 20px; }
}

/* Map modal (triggered by the location pin button) */
.map-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.map-modal.open { opacity: 1; pointer-events: auto; }
.map-modal-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  background: #141414;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  overflow: hidden;
  transform: translateY(16px) scale(.98);
  transition: transform .3s ease;
}
.map-modal.open .map-modal-card { transform: translateY(0) scale(1); }
.map-modal-frame {
  width: 100%;
  height: 420px;
  display: block;
  filter: invert(92%) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.6);
}
.map-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.map-modal-close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }
.map-modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .map-modal, .map-modal-card, .map-modal-close { transition: none !important; }
}
@media (max-width: 640px) {
  .map-modal-frame { height: 320px; }
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  background: var(--bg);
  padding: 14px 32px;
  border-top: none;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-left {
  flex: 0 1 420px;
}
.footer-left p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.55;
}
.footer-left a {
  color: var(--accent);
  text-decoration: underline;
}
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-center-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-center-label {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.footer-social {
  display: flex;
  gap: 4px;
}
.footer-social a {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s;
}
.footer-social a.social-x     { background: #000; border: 1px solid rgba(255,255,255,.25); }
.footer-social a.social-fb    { background: #1877f2; }
.footer-social a.social-li    { background: #0a66c2; }
.footer-social a.social-yt    { background: #c4302b; }
.footer-social a.social-rss   { background: #f26522; }
.footer-social a:hover { opacity: .8; }

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-country {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-country-label {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.footer-country-flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  display: inline-flex;
}
.footer-country-name {
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
}
.footer-brand-logo {
  height: 56px;
  width: auto;
}

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-left, .footer-center, .footer-right { width: 100%; flex: none; }
}

/* ========================================================
   BUTTONS
   ======================================================== */
.btn {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 10px 24px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg-dark);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.btn-ghost {
  border-color: rgba(255,255,255,.4);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255,255,255,.06);
}

/* ========================================================
   SECTIONS — GENERAL
   ======================================================== */
.section {
  padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 80px);
  position: relative;
}
.section-label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

/* ========================================================
   WORDPRESS CORE / WIDGETS
   ======================================================== */
.widget-area { padding: 40px 0; }
.widget { margin-bottom: 32px; }
.widget-title {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget ul li a { color: var(--muted); font-size: 14px; transition: color .3s; }
.widget ul li a:hover { color: var(--accent); }

/* Blog / posts */
.post { margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: none; }
.post-meta { font-size: 12px; color: var(--muted); letter-spacing: .06em; margin-bottom: 12px; }
.post-title a { color: var(--ink); transition: color .3s; }
.post-title a:hover { color: var(--accent); }
.post-excerpt { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 12px; }
.post-thumbnail { margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; }
.post-thumbnail img { width: 100%; height: auto; display: block; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 40px 0; }
.pagination a, .pagination span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  transition: all .3s;
}
.pagination a:hover, .pagination .current {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========================================================
   ANIMATIONS
   ======================================================== */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ========================================================
   UTILITY
   ======================================================== */
.text-center { text-align: center; }
.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;
}

/* ========================================================
   SKIP LINK
   ======================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 24px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }
.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;
}

/* ========================================================
   SOCIAL SIDEBAR
   ======================================================== */
.social-sidebar {
  position: fixed;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  z-index: 500;
}
.social-sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  --social-color: var(--accent);
}
.social-sidebar-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--social-color);
  transform: scale(0);
  opacity: 0;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease;
}
.social-sidebar-link:hover::before {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 0 22px -2px var(--social-color);
}
.social-sidebar-link svg {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), color .2s ease;
}
.social-sidebar-link:hover svg {
  color: #ffffff;
  transform: scale(1.15) rotate(-10deg);
}
.social-sidebar-facebook  { --social-color: #1877F2; }
.social-sidebar-instagram { --social-color: #E4405F; }
.social-sidebar-youtube   { --social-color: #FF0000; }
.social-sidebar-linkedin  { --social-color: #0A66C2; }
.social-sidebar-tiktok    { --social-color: #FE2C55; }
@media (max-width: 900px) {
  .social-sidebar { display: none; }
}

/* ========================================================
   CHAT WIDGET PLACEHOLDER
   ======================================================== */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  color: #333;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  z-index: 999;
}
.chat-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,0,0,.3);
}
.chat-widget svg { flex-shrink: 0; }
