/*
  Projeto: Caetanobrn Technologies
  Autor: Bruno Caetano
  Tema: Dark + Neon Orange
*/

/* ======================================================
   TOKENS
====================================================== */
:root {
  --orange: #ff6a00;
  --orange-dim: rgba(255, 106, 0, 0.18);
  --orange-border: rgba(255, 106, 0, 0.4);
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-alt: #0f0f0f;
  --surface: #161616;
  --text: #ebebeb;
  --muted: #777777;
  --border: rgba(255, 255, 255, 0.07);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

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

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

/* ======================================================
   TYPOGRAPHY
====================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
}

/* ======================================================
   UTILITIES
====================================================== */
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.section-head {
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* ======================================================
   BUTTONS
====================================================== */
.btn-orange {
  display: inline-block;
  background: var(--orange);
  color: #0a0a0a;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  letter-spacing: 0.3px;
}

.btn-orange:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  color: #0a0a0a;
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: var(--text);
}

/* ======================================================
   REVEAL ANIMATION
====================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================================
   HEADER
====================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--orange-border);
  padding: 1.1rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.logo span { color: var(--orange); }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}

.desktop-nav a:hover { color: #fff; }

.nav-cta {
  background: var(--orange) !important;
  color: #0a0a0a !important;
  font-weight: 700 !important;
  padding: 8px 20px;
  border-radius: 7px;
  font-size: 13px !important;
}

.nav-cta:hover { opacity: 0.85; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--border);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 0.75rem 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

/* ======================================================
   HERO
====================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,106,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,106,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(255,106,0,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  background: var(--orange-dim);
  border: 1px solid var(--orange-border);
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 99px;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin-bottom: 1.2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ======================================================
   SERVICES
====================================================== */
.services {
  padding: clamp(4rem, 7vw, 7rem) 0;
  background: var(--bg-alt);
}

.scard {
  background: var(--surface);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  transition: border-color var(--transition), transform var(--transition);
}

.scard:hover {
  border-color: var(--orange);
  transform: translateY(-5px);
}

.scard-icon {
  font-size: 24px;
  color: var(--orange);
  margin-bottom: 1rem;
}

.scard h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.scard p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* ======================================================
   PROCESS
====================================================== */
.process {
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.step h4 {
  font-size: 1rem;
  margin: 0;
}

.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.step-line {
  width: 40px;
  height: 1px;
  background: var(--orange-border);
  margin-top: 1.2rem;
  flex-shrink: 0;
}

/* ======================================================
   PORTFOLIO
====================================================== */
.portfolio {
  padding: clamp(4rem, 7vw, 7rem) 0;
  background: var(--bg-alt);
}

.port-item {
  position: relative;
  height: 200px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.port-item:hover {
  border-color: var(--orange-border);
  transform: scale(1.02);
}

.port-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

/* ======================================================
   PLANS
====================================================== */
.plans {
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  height: 100%;
  transition: border-color var(--transition);
  position: relative;
}

.plan-card.plan-featured {
  border-color: var(--orange-border);
}

.plan-badge {
  display: inline-block;
  background: var(--orange-dim);
  border: 1px solid var(--orange-border);
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 1.2rem;
}

.plan-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.plan-card > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 1.2rem;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.8rem;
}

.plan-card ul li {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-card ul li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
}

/* ======================================================
   ABOUT
====================================================== */
.about {
  padding: clamp(4rem, 7vw, 7rem) 0;
  background: var(--bg-alt);
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

/* ======================================================
   CTA BANNER
====================================================== */
.cta-banner {
  padding: clamp(4rem, 7vw, 7rem) 0;
  background: var(--surface);
  border-top: 1px solid var(--orange-border);
  border-bottom: 1px solid var(--orange-border);
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0.8rem;
}

.cta-banner p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 2rem;
}

/* ======================================================
   CONTACT
====================================================== */
.contact {
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.contact-form {
  max-width: 720px;
  margin: 0 auto;
}

.form-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}

.form-input::placeholder { color: #444; }

.form-input:focus {
  border-color: var(--orange-border);
}

/* ======================================================
   FOOTER
====================================================== */
.footer {
  padding: 1.8rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.logo-sm {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.logo-sm span { color: var(--orange); }

/* ======================================================
   SCROLLBAR
====================================================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 99px; }

/* ======================================================
   RESPONSIVO
====================================================== */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }

  .process-steps { flex-direction: column; gap: 2rem; }
  .step-line { display: none; }

  .about-inner { flex-direction: column; gap: 2rem; }
  .about-stats { gap: 1.5rem; }

  .footer { text-align: center; }
  .footer .container { flex-direction: column; align-items: center; }
}

.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  background: #25D366;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 28px rgba(37, 211, 102, 0.6);
}