/* ============================================================
   Campani Audio — style.css
   Self-hosted fonts, brand palette, no external dependencies.
   ============================================================ */

/* ---------- Fonts (local, relative paths) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/montserrat-300.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-400.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/montserrat-500.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/montserrat-600.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/montserrat-700.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/montserrat-800.woff2") format("woff2");
}

/* ---------- Design tokens (brand palette) ---------- */
:root {
  --paper: #f7f6f2;      /* Branco Suave */
  --mist: #e6e7e9;       /* Cinza Claro */
  --ink: #2b2e31;        /* Cinza Chumbo */
  --petrol: #173943;     /* Azul Petróleo */
  --white: #ffffff;

  --ink-70: rgba(43, 46, 49, 0.7);
  --ink-55: rgba(43, 46, 49, 0.55);
  --ink-12: rgba(43, 46, 49, 0.12);
  --petrol-12: rgba(23, 57, 67, 0.12);
  --paper-70: rgba(247, 246, 242, 0.72);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

.bg-paper {
  background: var(--paper);
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--petrol);
  color: var(--paper);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(72px, 10vw, 140px) 0;
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

h3 {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--petrol);
  position: relative;
}
.eyebrow-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--petrol);
  opacity: 0.4;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.6; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

.section-lead {
  color: var(--ink-70);
  font-size: 1.075rem;
  max-width: 60ch;
}

/* ---------- Brand lockup ---------- */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.brand-wave {
  width: 92px;
  height: 26px;
  color: var(--ink);
  fill: currentColor;
}

.brand-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.brand-name {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  color: var(--ink);
}

.brand-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: var(--petrol);
}

.brand-line {
  width: 16px;
  height: 1px;
  background: var(--petrol);
  opacity: 0.6;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: var(--paper-70);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--ink-12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

/* compact brand in the header bar */
.site-header .brand {
  flex-direction: row;
  gap: 12px;
}
.site-header .brand-wave {
  width: 54px;
  height: 20px;
}
.site-header .brand-word {
  align-items: flex-start;
  gap: 2px;
}
.site-header .brand-name {
  font-size: 0.98rem;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
}
.site-header .brand-sub {
  font-size: 0.55rem;
  letter-spacing: 0.34em;
  padding-left: 0;
}
.site-header .brand-sub .brand-line {
  width: 12px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}

.main-nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-70);
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--petrol);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover {
  color: var(--ink);
}
.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: var(--petrol);
  padding: 11px 22px;
  border-radius: 100px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.header-cta:hover {
  transform: translateY(-2px);
  background: var(--ink);
}

/* mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--paper);
  border-bottom: 1px solid var(--ink-12);
  padding: 8px 24px 20px;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  padding: 14px 4px;
  border-bottom: 1px solid var(--ink-12);
}
.mobile-nav a:last-child {
  border-bottom: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}
.btn-primary {
  background: var(--petrol);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-2px);
}
.btn-primary:hover svg {
  transform: translateX(4px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-12);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(247, 246, 242, 0.35);
  padding: 15px 28px;
  border-radius: 100px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-ghost-light:hover {
  border-color: var(--paper);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: 150px;
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(23, 57, 67, 0.06), transparent 70%),
    var(--paper);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin-bottom: 28px;
}
.hero-title .line {
  display: block;
}
.hero-title em {
  font-style: normal;
  font-weight: 600;
  color: var(--petrol);
}

.hero-text {
  font-size: 1.15rem;
  color: var(--ink-70);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
}

/* hero media */
.hero-media {
  position: relative;
}
.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-12);
  box-shadow: 0 30px 60px -30px rgba(23, 57, 67, 0.35);
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3.4;
}

.hero-eq {
  position: absolute;
  left: -18px;
  bottom: 28px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 56px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: 14px;
  box-shadow: 0 16px 30px -18px rgba(23, 57, 67, 0.4);
}
.hero-eq span {
  width: 4px;
  border-radius: 3px;
  background: var(--petrol);
  animation: eq 1.1s var(--ease) infinite;
}
.hero-eq span:nth-child(odd) { background: var(--ink); }
.hero-eq span:nth-child(3n) { animation-duration: 0.85s; }
.hero-eq span:nth-child(3n + 1) { animation-duration: 1.35s; }
.hero-eq span:nth-child(4n) { animation-duration: 0.7s; }

@keyframes eq {
  0%, 100% { height: 22%; }
  50% { height: 100%; }
}

/* ---------- Pillars band ---------- */
.pillars {
  border-top: 1px solid var(--ink-12);
  border-bottom: 1px solid var(--ink-12);
  background: var(--white);
}
.pillars-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 34px 28px;
  border-left: 1px solid var(--ink-12);
}
.pillar:first-child {
  border-left: none;
}
.pillar-wave {
  width: 44px;
  height: 16px;
  color: var(--petrol);
  fill: currentColor;
  opacity: 0.85;
  margin-bottom: 10px;
}
.pillar-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.pillar-desc {
  font-size: 0.92rem;
  color: var(--ink-55);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--ink);
  padding: 18px 0;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}
.marquee-track .dot {
  color: var(--petrol);
  font-size: 1rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}

.about-media {
  position: relative;
}
.about-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-12);
  box-shadow: 0 30px 60px -34px rgba(23, 57, 67, 0.4);
}
.about-photo-frame img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 4.4;
}
.about-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: 12px;
  box-shadow: 0 16px 30px -20px rgba(23, 57, 67, 0.45);
}
.badge-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.badge-role {
  font-size: 0.8rem;
  color: var(--petrol);
  letter-spacing: 0.02em;
}

.about-content h2 {
  margin-bottom: 22px;
}
.about-content p {
  color: var(--ink-70);
  margin-bottom: 16px;
  max-width: 54ch;
}

.about-highlights {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-highlights li {
  position: relative;
  padding-left: 30px;
  font-weight: 500;
  color: var(--ink);
}
.about-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 2px;
  background: var(--petrol);
}

/* ---------- Section head ---------- */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 {
  margin-bottom: 18px;
}

/* ---------- Cards grid ---------- */
.cards-grid {
  display: grid;
  gap: 22px;
}
.modules {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--petrol-12);
  box-shadow: 0 26px 50px -30px rgba(23, 57, 67, 0.4);
}

/* module cards */
.module-card {
  position: relative;
  overflow: hidden;
}
.card-index {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--ink-12);
  margin-bottom: 20px;
  transition: color 0.35s var(--ease), -webkit-text-stroke-color 0.35s var(--ease);
}
.module-card:hover .card-index {
  color: var(--petrol);
  -webkit-text-stroke-color: var(--petrol);
}
.module-card h3 {
  margin-bottom: 12px;
}
.module-card p {
  color: var(--ink-70);
  font-size: 0.98rem;
}
.card-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--petrol);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.module-card:hover .card-line {
  transform: scaleX(1);
}

/* ---------- Services ---------- */
.services {
  background: var(--mist);
}
.services-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
.services-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-12);
  box-shadow: 0 30px 60px -36px rgba(23, 57, 67, 0.4);
}
.services-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}
.services-cards {
  grid-template-columns: 1fr;
}
.service-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.service-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--petrol);
  color: var(--paper);
  transition: transform 0.35s var(--ease);
}
.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.05);
}
.service-icon svg {
  width: 26px;
  height: 26px;
}
.service-card h3 {
  margin-bottom: 6px;
}
.service-card p {
  color: var(--ink-70);
  font-size: 0.98rem;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--paper);
}
.contact-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 80px);
  text-align: center;
}
.contact-card .eyebrow {
  color: var(--paper);
  justify-content: center;
  width: 100%;
}
.contact-card h2 {
  color: var(--paper);
  margin-bottom: 20px;
}
.contact-card .section-lead {
  color: rgba(247, 246, 242, 0.75);
  margin: 0 auto 34px;
  text-align: center;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.contact-eq {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  height: 70px;
  opacity: 0.4;
}
.contact-eq span {
  width: 4px;
  border-radius: 0 0 3px 3px;
  background: var(--petrol);
  animation: eq-down 1.2s var(--ease) infinite;
}
.contact-eq span:nth-child(even) { background: rgba(247, 246, 242, 0.4); }
.contact-eq span:nth-child(3n) { animation-duration: 0.9s; }
.contact-eq span:nth-child(4n) { animation-duration: 1.5s; }
@keyframes eq-down {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--ink-12);
  padding: 64px 0 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-brand .brand-wave {
  width: 80px;
  height: 24px;
}
.footer-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-70);
}
.footer-meta a:hover {
  color: var(--petrol);
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--ink-55);
  margin-top: 4px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.cards-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.pillars-inner .reveal:nth-child(2) { transition-delay: 0.08s; }
.pillars-inner .reveal:nth-child(3) { transition-delay: 0.16s; }
.pillars-inner .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
    max-width: 480px;
  }
  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-media {
    max-width: 460px;
  }
  .services-layout {
    grid-template-columns: 1fr;
  }
  .pillars-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillar {
    border-top: 1px solid var(--ink-12);
  }
  .pillar:nth-child(odd) {
    border-left: none;
  }
  .pillar:nth-child(1),
  .pillar:nth-child(2) {
    border-top: none;
  }
}

@media (max-width: 720px) {
  .main-nav,
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .modules {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 120px;
  }
}

@media (max-width: 460px) {
  .pillars-inner {
    grid-template-columns: 1fr;
  }
  .pillar {
    border-left: none;
    border-top: 1px solid var(--ink-12);
  }
  .pillar:first-child {
    border-top: none;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
