/*
Theme Name: Hidrogenios
Theme URI: https://hidrogenios.com
Author: Hidrogenios
Description: Tema personalizado para a Hidrogenios - Websites & Servidores
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: hidrogenios
*/

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

:root {
  --bg: hsl(0, 0%, 99%);
  --fg: hsl(0, 0%, 13%);
  --card: hsl(0, 0%, 100%);
  --primary: hsl(0, 78%, 48%);
  --primary-fg: hsl(0, 0%, 100%);
  --secondary-bg: hsl(0, 0%, 95%);
  --secondary-fg: hsl(0, 0%, 20%);
  --muted: hsl(0, 0%, 96%);
  --muted-fg: hsl(0, 0%, 45%);
  --border: hsl(0, 0%, 90%);
  --radius: 0.5rem;
  --font: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== TYPOGRAPHY ===== */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ===== SECTION PADDING ===== */
.section-padding {
  padding: 5rem 1.5rem;
}
@media (min-width: 768px) {
  .section-padding { padding: 7rem 3rem; }
}
@media (min-width: 1024px) {
  .section-padding { padding: 8rem 5rem; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsla(0, 0%, 100%, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .navbar-links { display: flex; }
}

.navbar-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--fg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s ease-out;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 10px 15px -3px hsla(0, 78%, 48%, 0.2);
}
.btn-primary:hover {
  background: hsl(0, 78%, 43%);
  box-shadow: 0 20px 25px -5px hsla(0, 78%, 48%, 0.3);
}

.btn-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  border-radius: calc(var(--radius) - 2px);
}

.btn-lg {
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
  border-radius: calc(var(--radius) - 2px);
}

.btn-hero {
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px hsla(0, 78%, 48%, 0.25);
}
.btn-hero:hover {
  background: hsl(0, 78%, 43%);
  box-shadow: 0 20px 25px -5px hsla(0, 78%, 48%, 0.35);
}
@media (min-width: 768px) {
  .btn-hero { font-size: 1.125rem; padding: 1rem 2rem; }
}

.btn-outline {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: hsl(0, 0%, 93%);
}

/* Mobile toggle */
.navbar-toggle {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
}
@media (min-width: 768px) {
  .navbar-toggle { display: none; }
}

.navbar-mobile {
  display: none;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem 1.5rem;
}
.navbar-mobile.open { display: block; }
@media (min-width: 768px) {
  .navbar-mobile { display: none !important; }
}

.navbar-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.navbar-mobile a:hover { color: var(--fg); }

.navbar-mobile .btn { width: 100%; margin-top: 0.5rem; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding-top: 10rem; }
}

.hero-bg-accent {
  position: absolute;
  top: 0; right: 0;
  width: 500px; height: 500px;
  background: hsla(0, 78%, 48%, 0.05);
  border-radius: 50%;
  filter: blur(48px);
  transform: translate(25%, -50%);
  pointer-events: none;
}

.hero-content { max-width: 42rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: hsla(0, 78%, 48%, 0.08);
  border: 1px solid hsla(0, 78%, 48%, 0.15);
  margin-bottom: 2rem;
}
.hero-badge-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}
.hero-badge span:last-child {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 2rem;
}
.hero h1 .accent { color: var(--primary); }

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--muted-fg);
  line-height: 1.7;
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
}

/* ===== ICON ===== */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-box {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  background: hsla(0, 78%, 48%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.icon-box svg { width: 24px; height: 24px; }

.icon-box-lg {
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  background: hsla(0, 78%, 48%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.icon-box-lg svg { width: 26px; height: 26px; }

.icon-box-sm {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  background: hsla(0, 78%, 48%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.icon-box-sm svg { width: 18px; height: 18px; }

/* ===== PROBLEMS ===== */
.problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 48rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .problems-grid { grid-template-columns: 1fr 1fr; }
}

.problem-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}
.problem-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.problem-card p { font-weight: 500; line-height: 1.6; }

/* ===== SOLUTION ===== */
.solution-text {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.solution-text > p {
  font-size: 1.125rem;
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.solution-checks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .solution-checks { flex-direction: row; justify-content: center; }
}
.solution-check {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.solution-check svg {
  width: 20px; height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}
.solution-check span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
}

/* ===== SERVICES ===== */
.bg-secondary-50 { background: hsla(0, 0%, 95%, 0.5); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

.service-card {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}
.service-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
}

.service-card .icon-box { margin-bottom: 1.5rem; transition: background 0.2s; }
.service-card:hover .icon-box { background: hsla(0, 78%, 48%, 0.15); }

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.service-card > p {
  color: var(--muted-fg);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-features { display: flex; flex-direction: column; gap: 0.75rem; }
.service-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--fg);
}
.service-feature .dot {
  width: 0.375rem; height: 0.375rem;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 48rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

.benefit-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 0.75rem;
  transition: background 0.3s;
}
.benefit-card:hover { background: hsla(0, 0%, 95%, 0.6); }

.benefit-card .icon-box {
  margin: 0 auto 1rem;
}
.benefit-card h3 {
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.benefit-card p {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

.step-card { position: relative; }
.step-num {
  font-size: 3rem;
  font-weight: 700;
  color: hsla(0, 78%, 48%, 0.1);
  position: absolute;
  top: -0.5rem;
  left: -0.25rem;
  line-height: 1;
}
.step-body { padding-top: 2.5rem; }
.step-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.step-body p { color: var(--muted-fg); line-height: 1.6; }

/* ===== CREDIBILITY ===== */
.cred-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .cred-grid { grid-template-columns: repeat(3, 1fr); }
}

.cred-card {
  text-align: center;
  padding: 2rem;
}
.cred-card .icon-box-lg { margin: 0 auto 1.25rem; }
.cred-card h3 {
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.cred-card p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact-section {
  background: var(--fg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 56rem;
  margin: 0 auto;
  align-items: center;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.contact-left .section-label { color: var(--primary); }
.contact-left h2 {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.contact-left > p {
  color: hsla(0, 0%, 99%, 0.7);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.contact-response {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: hsla(0, 0%, 99%, 0.5);
  font-size: 0.875rem;
}
.contact-response svg { color: var(--primary); width: 16px; height: 16px; }

.contact-form {
  background: hsla(0, 0%, 99%, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid hsla(0, 0%, 99%, 0.1);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsla(0, 0%, 99%, 0.8);
  margin-bottom: 0.375rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: hsla(0, 0%, 99%, 0.1);
  border: 1px solid hsla(0, 0%, 99%, 0.15);
  color: var(--bg);
  font-family: var(--font);
  font-size: 0.875rem;
  transition: all 0.2s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: hsla(0, 0%, 99%, 0.4);
}
.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 2px hsla(0, 78%, 48%, 0.5);
}
.form-group textarea { resize: none; }

.contact-form .btn { width: 100%; }

/* Success message */
.contact-success {
  background: hsla(0, 0%, 99%, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid hsla(0, 0%, 99%, 0.1);
}
.contact-success .icon-box-lg {
  background: hsla(0, 78%, 48%, 0.2);
  margin: 0 auto 1rem;
}
.contact-success h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 0.5rem;
}
.contact-success p { color: hsla(0, 0%, 99%, 0.7); }

/* ===== FOOTER ===== */
.site-footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .site-footer { padding: 2.5rem 3rem; }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

.footer-brand {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-links a {
  font-size: 0.75rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--fg); }
.footer-links .sep {
  font-size: 0.75rem;
  color: var(--muted-fg);
}
.footer-links .copy {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

/* ===== ANIMATIONS ===== */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.reveal {
  animation: reveal-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.reveal-delay-1 { animation-delay: 80ms; }
.reveal-delay-2 { animation-delay: 160ms; }
.reveal-delay-3 { animation-delay: 240ms; }
.reveal-delay-4 { animation-delay: 320ms; }
.reveal-delay-5 { animation-delay: 400ms; }

/* Section text center helper */
.section-header {
  max-width: 42rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}
