/* =============================================
   GValle - Main Stylesheet
   ============================================= */

:root {
  --bg: #0f172a;
  --bg-light: #111827;
  --accent: #3895d3;
  --accent-hover: #2a7ab8;
  --accent-soft: rgba(56, 149, 211, 0.1);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --header-height: 70px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #1f2937, #020617);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   Header & Navigation
   ============================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 1.4rem;
  color: var(--text);
  position: relative;
  z-index: 101;
}

.logo:hover {
  color: var(--text);
}

.logo-icon {
  width: 28px;
  height: 28px;
  max-width: 32px;
  max-height: 32px;
  flex-shrink: 0;
  display: block;
}

.nav-desktop ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-desktop a:hover {
  color: var(--accent);
}

.header-cta {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* Desktop only - esconder em mobile */
.desktop-only {
  display: inline-flex;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: background 0.2s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text);
  left: 0;
  transition: transform 0.3s ease;
}

.hamburger::before {
  top: -7px;
}
.hamburger::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.nav-mobile.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.nav-mobile a:hover {
  background: var(--accent-soft);
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #022c22;
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #022c22;
}

.btn-outline {
  border-color: var(--border);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  opacity: 0.9;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
  padding: calc(var(--header-height) + 3rem) 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
}

.badge {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  background: rgba(15, 23, 42, 0.8);
}

.hero-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
  background: radial-gradient(
    circle at top,
    rgba(34, 197, 94, 0.08),
    rgba(15, 23, 42, 0.95)
  );
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.8);
  font-size: 0.9rem;
}

.hero-card h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.hero-card ul {
  list-style: none;
}
.hero-card li {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

/* =============================================
   Sections
   ============================================= */
section {
  padding: 4rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.7);
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

section > .container > p:first-of-type {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  max-width: 600px;
}

/* =============================================
   Grid & Cards
   ============================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  border-radius: 1.2rem;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.85);
  padding: 1.2rem;
  font-size: 0.9rem;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--muted);
}

/* =============================================
   Steps
   ============================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.step-number {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* =============================================
   Pricing
   ============================================= */
.pricing-section {
  text-align: center;
}

.pricing-section .container > h2,
.pricing-section .container > p {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  max-width: 420px;
  margin: 1.5rem auto 0;
  border-radius: 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top, var(--accent-soft), #020617);
  padding: 1.5rem;
  text-align: left;
}

.price {
  font-size: 2rem;
  font-weight: 600;
  margin: 0.4rem 0;
}

.price span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
}

.pricing-card ul {
  list-style: none;
  margin: 1rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.pricing-card li {
  margin-bottom: 0.3rem;
}

.pricing-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: center;
}

/* =============================================
   Forms
   ============================================= */
.form-section {
  text-align: center;
}

.form-section .container > h2,
.form-section .container > p {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-wrapper {
  margin: 1.5rem auto 0;
  border-radius: 1.4rem;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.85);
  padding: 1.5rem;
  max-width: 480px;
  text-align: left;
}

form {
  display: grid;
  gap: 0.9rem;
}

label {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  background: #020617;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  padding: 0.6rem 0.7rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

textarea {
  min-height: 90px;
  resize: vertical;
  font-family: inherit;
}

/* =============================================
   Status Messages
   ============================================= */
.status {
  margin-bottom: 0.8rem;
  font-size: 0.86rem;
  border-radius: 0.7rem;
  padding: 0.6rem 0.8rem;
}

.status-ok {
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.status-erro {
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* =============================================
   CTA Final
   ============================================= */
.cta-final {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

.cta-final p {
  margin-bottom: 1rem;
}

/* =============================================
   Social Section
   ============================================= */
.social-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s ease;
}

.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.social-links svg {
  width: 22px;
  height: 22px;
}

/* =============================================
   Footer
   ============================================= */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.footer-brand .logo {
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  text-align: right;
}

.footer-dev a {
  color: var(--accent);
}

/* =============================================
   Floating WhatsApp
   ============================================= */
.floating-whats {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #022c22;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whats:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(34, 197, 94, 0.5);
  color: #022c22;
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid-3,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-copy {
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .nav-desktop,
  .header-cta {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .menu-toggle {
    display: block;
  }

  .nav-mobile {
    display: block;
  }

  .hero {
    padding-top: calc(var(--header-height) + 2rem);
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3rem 0;
  }

  .pricing-card {
    max-width: 100%;
  }

  .form-wrapper {
    max-width: 100%;
  }

  .social-links {
    gap: 1rem;
  }

  .social-links a {
    width: 44px;
    height: 44px;
  }

  .footer-links {
    gap: 1rem;
    font-size: 0.8rem;
  }
}

/* =============================================
   Portfolio Section
   ============================================= */
.portfolio-section {
  padding: 4rem 0;
  background: var(--bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.portfolio-card {
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--bg);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-info {
  padding: 0.75rem 1rem;
  text-align: center;
}

.portfolio-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .price {
    font-size: 1.6rem;
  }

  .floating-whats {
    right: 1rem;
    bottom: 1rem;
    width: 50px;
    height: 50px;
  }

  .floating-whats svg {
    width: 24px;
    height: 24px;
  }
}
