/* ============================================================
   JPWEBER MÍDIA TECH — style.css
   Paleta: Oceano Profundo · Azul Oceano · Dourado Veleiro
   Tipografia: Montserrat + Open Sans
   ============================================================ */

/* ── RESET & VARIÁVEIS ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ocean:      #0A1628;
  --ocean-mid:  #0D2E5C;
  --blue:       #1565C0;
  --blue-sky:   #42A5F5;
  --gold:       #D4A843;
  --gold-light: #F5E6C8;
  --white:      #FFFFFF;
  --mist:       #F0F4F8;
  --navy:       #0D2E5C;

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(10,22,40,0.18);
  --shadow-gold: 0 4px 24px rgba(212,168,67,0.18);

  --transition: 0.3s cubic-bezier(.25,.8,.25,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--ocean);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.gold { color: var(--gold); }
.desktop-only { display: none; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--white);
}
.logo-svg { width: 36px; height: 36px; }
.logo-svg.small { width: 28px; height: 28px; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 800; font-size: 1rem;
  letter-spacing: 0.5px;
}
.logo-sub {
  display: block;
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 2px; color: var(--gold);
}

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.nav-links {
  display: none; flex-direction: column;
  position: absolute; top: 100%; left: 0; width: 100%;
  background: rgba(10,22,40,0.98);
  padding: 24px 20px; list-style: none; gap: 4px;
  border-top: 1px solid rgba(212,168,67,0.2);
}
.nav-links.open { display: flex; }
.nav-links li a {
  display: block; padding: 10px 0;
  color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  transition: color var(--transition);
}
.nav-links li a:hover { color: var(--gold); }
.nav-cta {
  display: inline-block !important;
  background: var(--gold) !important; color: var(--ocean) !important;
  padding: 10px 22px !important; border-radius: 50px !important;
  margin-top: 8px; font-weight: 700 !important;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  position: relative; display: flex; align-items: center;
  overflow: hidden; padding: 100px 20px 60px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 60% 40%, #0D2E5C 0%, #0A1628 70%);
}
#waveCanvas {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 220px;
  opacity: 0.35;
}
.compass-bg {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 340px; height: 340px; opacity: 0.4;
  animation: compassSpin 60s linear infinite;
}
@keyframes compassSpin { to { transform: translateY(-50%) rotate(360deg); } }

.hero-content {
  position: relative; z-index: 1;
  max-width: 600px; margin: 0 auto;
  text-align: center;
}
.hero-sailboat {
  width: 90px; margin: 0 auto 24px;
  animation: boatFloat 4s ease-in-out infinite;
}
@keyframes boatFloat {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-12px) rotate(2deg); }
}
.hero-label {
  font-family: var(--font-head); font-size: 0.68rem;
  letter-spacing: 3px; color: var(--gold);
  margin-bottom: 18px; opacity: 0.85;
}
.hero-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 1.08; letter-spacing: -0.5px;
  margin-bottom: 20px;
  animation: fadeUp 0.9s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: rgba(255,255,255,0.78);
  margin-bottom: 32px;
  animation: fadeUp 0.9s 0.2s ease both;
}
.hero-actions {
  display: flex; flex-direction: column; gap: 12px;
  align-items: center;
  animation: fadeUp 0.9s 0.4s ease both;
}
.hero-tagline {
  display: flex; align-items: center; gap: 12px;
  margin-top: 40px; justify-content: center;
  animation: fadeUp 0.9s 0.6s ease both;
}
.tagline-line { flex: 1; height: 1px; max-width: 60px; background: rgba(212,168,67,0.4); }
.hero-tagline p { font-family: var(--font-body); font-style: italic; font-size: 0.85rem; color: var(--gold-light); opacity: 0.85; }

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 2; text-align: center;
  animation: fadeIn 1.5s 1s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.scroll-hint span {
  display: block; font-size: 0.7rem; letter-spacing: 2px;
  color: rgba(255,255,255,0.4); margin-bottom: 6px;
  font-family: var(--font-head);
}
.scroll-arrow { animation: arrowBounce 2s ease-in-out infinite; }
@keyframes arrowBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.9rem; letter-spacing: 0.5px;
  text-decoration: none; border: none; cursor: pointer;
  padding: 14px 28px; border-radius: 50px;
  transition: var(--transition);
}
.btn-primary {
  background: var(--gold); color: var(--ocean);
}
.btn-primary:hover {
  background: #e8bc55; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,168,67,0.35);
}
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline:hover {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-2px);
}
.btn.full { width: 100%; }

/* ── STATS BAR ───────────────────────────────────────────────── */
.stats-bar {
  background: var(--ocean-mid);
  border-top: 1px solid rgba(212,168,67,0.2);
  border-bottom: 1px solid rgba(212,168,67,0.2);
  padding: 32px 20px;
}
.stats-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 0;
  justify-content: space-around; align-items: center;
}
.stat-item {
  text-align: center; padding: 12px 16px;
  flex: 1 1 120px;
}
.stat-num {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: var(--gold);
}
.stat-unit { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--gold); }
.stat-item p { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 4px; line-height: 1.4; }
.stat-divider { width: 1px; height: 50px; background: rgba(212,168,67,0.2); flex-shrink: 0; }

/* ── SECTION SHARED ──────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  font-family: var(--font-head); font-size: 0.68rem;
  letter-spacing: 3px; color: var(--gold);
  margin-bottom: 12px; display: block;
}
.section-label.light { color: var(--gold); }
.section-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.2; margin-bottom: 16px;
}
.section-title.light { color: var(--white); }
.section-desc { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto; }

/* ── SERVICES ────────────────────────────────────────────────── */
.services {
  padding: 90px 0;
  background: linear-gradient(180deg, var(--ocean) 0%, #0B1E38 100%);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.service-card {
  background: rgba(13,46,92,0.5);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  opacity: 0; transform: translateY(30px);
}
.service-card.visible { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--transition), border-color var(--transition); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  border-color: rgba(212,168,67,0.3);
}
.service-card.featured {
  border-color: rgba(212,168,67,0.4);
  background: rgba(21,101,192,0.25);
}
.service-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  opacity: 0; transition: opacity var(--transition);
}
.service-card:hover::before { opacity: 1; }
.card-badge {
  position: absolute; top: 20px; right: 20px;
  background: var(--gold); color: var(--ocean);
  font-family: var(--font-head); font-size: 0.65rem;
  font-weight: 700; letter-spacing: 1.5px;
  padding: 4px 10px; border-radius: 20px;
}
.card-icon { width: 52px; height: 52px; margin-bottom: 16px; }
.service-card h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.1rem; margin-bottom: 10px; color: var(--white);
}
.service-card p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.card-list {
  list-style: none; margin-bottom: 20px;
}
.card-list li {
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  padding: 4px 0; display: flex; align-items: center; gap: 8px;
}
.card-list li::before { content: '—'; color: var(--gold); }
.card-link {
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
  color: var(--gold); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--transition), color var(--transition);
}
.card-link:hover { gap: 10px; color: #e8bc55; }

/* ── FILOSOFIA ───────────────────────────────────────────────── */
.filosofia {
  position: relative; padding: 90px 0;
  background: var(--ocean-mid);
  overflow: hidden;
}
.filosofia-bg { position: absolute; inset: 0; pointer-events: none; }
.wave-line {
  position: absolute; left: -10%; width: 120%;
  height: 80px; opacity: 0.06;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80'%3E%3Cpath d='M0 40 C200 10 400 70 600 40 S1000 10 1200 40 V80 H0Z' fill='%23D4A843'/%3E%3C/svg%3E") repeat-x;
}
.wave-line.top { top: 0; }
.wave-line.bottom { bottom: 0; transform: scaleY(-1); }
.filosofia-inner {
  display: flex; flex-direction: column; gap: 40px;
  align-items: center; text-align: center;
}
.filosofia-icon { width: 100px; animation: boatFloat 5s ease-in-out infinite; }
.filosofia-text h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.25; margin-bottom: 20px;
}
.filosofia-body {
  color: rgba(255,255,255,0.75); max-width: 600px;
  margin: 0 auto 32px; font-size: 0.95rem;
}
.filosofia-pillars {
  display: flex; flex-direction: column; gap: 20px;
  text-align: left; max-width: 600px; margin: 0 auto;
}
.pillar {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius); padding: 16px 18px;
  border: 1px solid rgba(212,168,67,0.12);
}
.pillar-icon { font-size: 1.4rem; flex-shrink: 0; }
.pillar strong {
  display: block; font-family: var(--font-head);
  font-weight: 700; color: var(--gold); margin-bottom: 2px;
}
.pillar p { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin: 0; }

/* ── SOBRE ───────────────────────────────────────────────────── */
.sobre {
  padding: 90px 0;
  background: linear-gradient(180deg, #0B1E38 0%, var(--ocean) 100%);
}
.sobre-inner {
  display: flex; flex-direction: column; gap: 48px; align-items: center;
}
.sobre-visual { position: relative; text-align: center; }
.sobre-card {
  background: rgba(13,46,92,0.6);
  border: 1px solid rgba(212,168,67,0.25);
  border-radius: var(--radius-lg);
  padding: 32px; display: inline-block;
}
.sobre-avatar { width: 120px; margin: 0 auto 20px; }
.sobre-avatar svg { width: 100%; }
.badge-area, .sobre-badge-area {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.badge {
  background: rgba(21,101,192,0.3);
  border: 1px solid rgba(66,165,245,0.3);
  color: var(--blue-sky);
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.5px; padding: 4px 12px; border-radius: 20px;
}
.sobre-float {
  position: absolute; top: -20px; right: -20px; width: 60px;
  animation: compassSpin 30s linear infinite;
  opacity: 0.5;
}
.sobre-content { text-align: center; }
.sobre-content p {
  color: rgba(255,255,255,0.75); margin-bottom: 16px; font-size: 0.95rem;
}
.sobre-content strong { color: var(--gold); }
.sobre-cta { margin-top: 28px; }

/* ── CONTATO ─────────────────────────────────────────────────── */
.contato {
  padding: 90px 0;
  background: var(--ocean-mid);
  border-top: 1px solid rgba(212,168,67,0.15);
}
.contato-grid {
  display: flex; flex-direction: column; gap: 40px;
}
.contato-info {
  display: flex; flex-direction: column; gap: 20px;
}
.info-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius); padding: 16px;
  border: 1px solid rgba(255,255,255,0.07);
}
.info-item strong { display: block; font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 1px; color: var(--gold); margin-bottom: 2px; }
.info-item a, .info-item span { font-size: 0.9rem; color: rgba(255,255,255,0.8); text-decoration: none; }
.info-item a:hover { color: var(--gold); }
.contato-quote {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.2rem; line-height: 1.4;
  color: var(--gold);
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(212,168,67,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* FORM */
.contato-form-wrap {
  background: rgba(10,22,40,0.6);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-family: var(--font-head);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px;
  color: rgba(255,255,255,0.7); margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 12px 14px;
  color: var(--white); font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(212,168,67,0.06);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group textarea { resize: vertical; }
.checkbox-group {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px;
}
.check-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: rgba(255,255,255,0.7);
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 6px 12px;
  transition: border-color var(--transition), background var(--transition);
}
.check-label:hover { border-color: var(--gold); background: rgba(212,168,67,0.07); }
.check-label input { accent-color: var(--gold); width: 14px; height: 14px; }

.form-success {
  text-align: center; padding: 40px 20px;
}
.form-success svg { margin-bottom: 16px; }
.form-success h3 { font-family: var(--font-head); font-size: 1.3rem; color: var(--gold); margin-bottom: 8px; }
.form-success p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: rgba(5,12,22,0.95);
  border-top: 1px solid rgba(212,168,67,0.12);
  padding: 28px 20px;
}
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px; text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo-text {
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
}
.footer-tagline { font-style: italic; font-size: 0.8rem; color: var(--gold); opacity: 0.8; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.35); }

/* ── ANIMAÇÕES DE ENTRADA ────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── MEDIA QUERIES ───────────────────────────────────────────── */

/* Tablet ≥ 640px */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; justify-content: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .filosofia-pillars { flex-direction: row; }
  .stats-inner { flex-wrap: nowrap; }
  .desktop-only { display: inline; }
}

/* Desktop ≥ 900px */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex !important; flex-direction: row;
    position: static; background: none; padding: 0;
    border: none; gap: 0; width: auto;
    align-items: center;
  }
  .nav-links li { margin-left: 28px; }
  .nav-links li:first-child { margin-left: 0; }
  .nav-cta { margin-top: 0 !important; }

  .hero-content { text-align: left; margin: 0; }
  .hero-sailboat { margin: 0 0 24px; }
  .hero-actions { justify-content: flex-start; }
  .hero-tagline { justify-content: flex-start; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .filosofia-inner { flex-direction: row; text-align: left; gap: 60px; align-items: flex-start; }
  .filosofia-text h2 { text-align: left; }
  .filosofia-body { margin: 0 0 32px; }
  .filosofia-pillars { text-align: left; }

  .sobre-inner { flex-direction: row; gap: 64px; align-items: center; }
  .sobre-content { text-align: left; }

  .contato-grid { flex-direction: row; gap: 48px; }
  .contato-info { flex: 0 0 320px; }
  .contato-form-wrap { flex: 1; padding: 36px 32px; }

  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }

  .compass-bg { right: 80px; opacity: 0.5; }
}

@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── ACESSIBILIDADE ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}