/*
Theme Name: Automation Landing
Theme URI: https://example.com/automation-landing
Author: Gabriel Suarez & Ezequiel Carro
Description: One-page bilingual landing theme for process automation services.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: automation-landing
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Manrope:wght@400;600;700;800&display=swap');

:root {
  --bg: #eaf0f8;
  --bg-accent: #dce8f7;
  --ink: #0f172a;
  --ink-soft: #334155;
  --primary: #0b5fff;
  --secondary: #06b6d4;
  --card: #f8fbff;
  --line: #c6d5eb;
  --ok: #166534;
  --danger: #991b1b;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(11, 95, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 95, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 80% 10%, rgba(11, 95, 255, 0.16), transparent 42%),
    radial-gradient(circle at 12% 20%, rgba(6, 182, 212, 0.16), transparent 44%),
    linear-gradient(180deg, var(--bg), #edf3fc 45%, #e5eefb 100%);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  line-height: 1.45;
}

h1,
h2,
h3,
.logo {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
}

a {
  color: var(--primary);
}

.container {
  width: min(1120px, calc(100% - 2.2rem));
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(234, 240, 248, 0.86);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
}

.language-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.language-switch button {
  border: 0;
  background: transparent;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-soft);
}

.language-switch button.is-active {
  background: var(--primary);
  color: #fff;
}

.hero {
  padding: 6rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.hero p {
  font-size: 1.15rem;
  margin: 0;
  color: var(--ink-soft);
}

.metric-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}

.metric-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(11, 95, 255, 0.08), transparent 45%);
}

.metric-panel h3 {
  margin: 0;
  font-size: 1.15rem;
}

.metric {
  margin-top: 1rem;
  padding: 0.9rem;
  border-left: 4px solid var(--primary);
  background: linear-gradient(90deg, rgba(11, 95, 255, 0.1), transparent 75%);
  font-weight: 700;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.card h3,
.card h4 {
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

.section-title {
  margin: 0 0 1.3rem;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.case {
  background: linear-gradient(140deg, rgba(11, 95, 255, 0.12), rgba(6, 182, 212, 0.12));
  border-radius: 18px;
  border: 1px solid rgba(11, 95, 255, 0.2);
  padding: 1.4rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.team-card .name {
  margin: 0;
  font-size: 1.2rem;
}

.team-card .role {
  margin: 0.3rem 0 0.9rem;
  color: var(--ink-soft);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-card {
  background: #f9fbff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
}

label {
  font-weight: 700;
  display: block;
  margin: 0.75rem 0 0.35rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid #b8c7e2;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #ffffff;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(11, 95, 255, 0.24);
  border-color: var(--primary);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.bot-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-wrap {
  margin-top: 1rem;
}

button[type='submit'] {
  margin-top: 1rem;
  border: 0;
  background: linear-gradient(120deg, var(--primary), #1d4ed8);
  color: #fff;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.notice {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.notice.success {
  background: #dcfce7;
  color: var(--ok);
}

.notice.error {
  background: #fee2e2;
  color: var(--danger);
}

.site-footer {
  border-top: 1px solid rgba(16, 33, 38, 0.15);
  margin-top: 3rem;
  padding: 1.1rem 0 2rem;
  color: var(--ink-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .contact-wrap,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
  }
}
