/* ============================================================
   Ontario Certified Translation — Design System
   ============================================================ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --background: 210 40% 99%;
  --foreground: 222 47% 11%;
  --primary: 222 72% 24%;
  --primary-foreground: 210 40% 98%;
  --brand: 221 83% 53%;
  --accent: 187 88% 42%;
  --accent-light: 187 80% 58%;
  --accent-dark: 191 84% 32%;
  --secondary: 210 40% 96%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --success: 152 60% 40%;
  --destructive: 0 84% 60%;
  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 187 88% 42%;
  --radius: 0.75rem;

  --gradient-hero: linear-gradient(135deg, hsl(222 72% 16%), hsl(221 70% 28%) 45%, hsl(191 80% 30%));
  --gradient-brand: linear-gradient(135deg, hsl(221 83% 53%), hsl(187 88% 42%));
  --gradient-accent: linear-gradient(135deg, hsl(187 88% 46%), hsl(174 72% 45%));
  --gradient-subtle: linear-gradient(180deg, hsl(210 40% 99%), hsl(210 40% 96%));
  --gradient-card: linear-gradient(135deg, hsl(210 40% 99%), hsl(214 32% 96%));

  --wa-green: #25D366;
  --font-display: 'Sora', sans-serif;
  --font-sans: 'Inter', sans-serif;
}

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1024px) {
  .container { padding-left: 2.5rem; padding-right: 2.5rem; }
}

.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .section-padding { padding-top: 5rem; padding-bottom: 5rem; }
}

@media (min-width: 1024px) {
  .section-padding { padding-top: 7rem; padding-bottom: 7rem; }
}

/* ── Background Utilities ── */
.bg-gradient-hero { background: var(--gradient-hero); }
.bg-gradient-brand { background: var(--gradient-brand); }
.bg-gradient-accent { background: var(--gradient-accent); }
.bg-gradient-subtle { background: var(--gradient-subtle); }
.bg-gradient-card { background: var(--gradient-card); }
.bg-primary { background: hsl(var(--primary)); }
.bg-background { background: hsl(var(--background)); }
.bg-secondary { background: hsl(var(--secondary)); }

/* ── Text Utilities ── */
.text-gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-primary { color: hsl(var(--primary)); }
.text-brand { color: hsl(var(--brand)); }
.text-accent { color: hsl(var(--accent)); }
.text-accent-light { color: hsl(var(--accent-light)); }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-white { color: #fff; }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }

/* ── Shadows ── */
.shadow-soft { box-shadow: 0 2px 8px -2px rgba(0,0,0,.08), 0 4px 12px -4px rgba(0,0,0,.05); }
.shadow-card { box-shadow: 0 4px 16px -4px rgba(0,0,0,.1), 0 2px 6px -2px rgba(0,0,0,.06); }
.shadow-elevated { box-shadow: 0 8px 30px -6px rgba(0,0,0,.12), 0 4px 12px -4px rgba(0,0,0,.08); }

/* ── Eyebrow Label ── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--accent));
  margin-bottom: 0.75rem;
}

.eyebrow-white {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--accent-light));
  margin-bottom: 0.75rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-brand {
  background: var(--gradient-brand);
  color: #fff;
}

.btn-brand:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px -4px hsla(var(--brand), 0.4);
}

.btn-white {
  background: #fff;
  color: hsl(var(--primary));
}

.btn-white:hover {
  background: hsl(var(--secondary));
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: var(--wa-green);
  color: #fff;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: hsl(var(--primary));
  border: 1.5px solid hsl(var(--border));
}

.btn-outline:hover {
  border-color: hsl(var(--brand));
  color: hsl(var(--brand));
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-block { width: 100%; }

.shine {
  position: relative;
  overflow: hidden;
}

.shine::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.shine:hover::after { left: 100%; }

/* ── Dot Grid Background ── */
.bg-dot-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 16px -4px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.card-glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
  height: 4rem;
  transition: box-shadow 0.3s;
}

@media (min-width: 1024px) {
  .site-nav { height: 4.25rem; }
}

.site-nav.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo img {
  height: 2.5rem;
  width: auto;
}

@media (min-width: 640px) {
  .nav-logo img { height: 2.75rem; }
}

@media (min-width: 1024px) {
  .nav-logo img { height: 3rem; }
}

.nav-links {
  display: none;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: hsl(var(--primary));
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-phone {
  display: none;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

@media (min-width: 1024px) {
  .nav-phone { display: flex; }
}

.nav-cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav-cta { display: inline-flex; }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 4rem;
  left: 0;
  height: 2px;
  background: var(--gradient-brand);
  z-index: 49;
  transition: width 0.1s linear;
}

@media (min-width: 1024px) {
  .scroll-progress { top: 4.25rem; }
}

/* Mobile Menu */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--foreground));
}

@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem;
  z-index: 48;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: hsl(var(--secondary));
}

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

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  padding: 7rem 0 4rem;
  overflow: hidden;
  scroll-margin-top: 0;
}

@media (min-width: 1024px) {
  .hero { padding: 8rem 0 5rem; }
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr minmax(340px, 460px); gap: 3rem; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3.2rem; }
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  max-width: 520px;
}

@media (min-width: 640px) {
  .hero-desc { font-size: 1.125rem; }
}

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.hero-highlight {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-highlight-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Rotating Word */
.rotating-word-wrapper {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.2em;
}

.rotating-word {
  display: block;
  color: hsl(var(--accent-light));
  animation: rotateWord 17.6s infinite;
}

@keyframes rotateWord {
  0%, 10%     { transform: translateY(0); opacity: 1; }
  11%, 12.5%  { transform: translateY(-100%); opacity: 0; }
  12.5%, 22.5%{ transform: translateY(0); opacity: 1; }
  23.5%, 25%  { transform: translateY(-100%); opacity: 0; }
  25%, 35%    { transform: translateY(0); opacity: 1; }
  36%, 37.5%  { transform: translateY(-100%); opacity: 0; }
  37.5%, 47.5%{ transform: translateY(0); opacity: 1; }
  48.5%, 50%  { transform: translateY(-100%); opacity: 0; }
  50%, 60%    { transform: translateY(0); opacity: 1; }
  61%, 62.5%  { transform: translateY(-100%); opacity: 0; }
  62.5%, 72.5%{ transform: translateY(0); opacity: 1; }
  73.5%, 75%  { transform: translateY(-100%); opacity: 0; }
  75%, 85%    { transform: translateY(0); opacity: 1; }
  86%, 87.5%  { transform: translateY(-100%); opacity: 0; }
  87.5%, 97.5%{ transform: translateY(0); opacity: 1; }
  98.5%, 100% { transform: translateY(-100%); opacity: 0; }
}

/* Hero Decorative Elements */
.hero-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  animation: aurora 8s ease-in-out infinite alternate;
}

.hero-aurora-1 {
  width: 400px; height: 400px;
  background: hsl(var(--accent));
  top: -100px; right: -100px;
}

.hero-aurora-2 {
  width: 300px; height: 300px;
  background: hsl(var(--brand));
  bottom: -50px; left: -50px;
  animation-delay: -4s;
}

@keyframes aurora {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

/* Wave Divider */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 48px;
}

@media (min-width: 768px) {
  .wave-divider svg { height: 64px; }
}

/* ── Quote Widget ── */
.quote-widget {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 8px 30px -6px rgba(0,0,0,.12), 0 4px 12px -4px rgba(0,0,0,.08);
}

@media (min-width: 640px) {
  .quote-widget { padding: 1.75rem; }
}

.quote-widget-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--brand));
}

.quote-widget h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1.25rem;
}

.quote-widget .form-group {
  margin-bottom: 0.875rem;
}

.quote-widget label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.quote-widget input,
.quote-widget select,
.quote-widget textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: border-color 0.2s;
  font-family: var(--font-sans);
}

.quote-widget input:focus,
.quote-widget select:focus,
.quote-widget textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsla(var(--ring), 0.15);
}

.quote-widget .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.quote-widget .submit-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.quote-widget .trust-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.quote-widget .trust-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.quote-note {
  text-align: center;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.5rem;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: #fff;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  padding: 1.25rem 0;
}

.trust-bar-inner {
  text-align: center;
}

.trust-bar-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.trust-badge-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

/* ============================================================
   ATIO SECTION
   ============================================================ */
.atio-section {
  background: hsl(var(--background));
}

.atio-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .atio-grid { grid-template-columns: 1fr 1fr; }
}

.atio-content h2 {
  font-size: 1.875rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .atio-content h2 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .atio-content h2 { font-size: 2.6rem; }
}

.atio-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .atio-content p { font-size: 1.125rem; }
}

.atio-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Sample Card */
.sample-card {
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 30px -6px rgba(0,0,0,.12);
  transition: transform 0.3s, box-shadow 0.3s;
}

.sample-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -8px rgba(0,0,0,.15);
}

.sample-card-img {
  position: relative;
  background: hsl(var(--secondary));
  aspect-ratio: 8.5/11;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sample-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sample-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0.75rem 1rem;
}

.sample-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  position: relative;
  color: #fff;
}

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

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item { text-align: center; }

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: hsl(var(--accent-light));
  line-height: 1;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .stat-value { font-size: 3rem; }
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section { background: #fff; }

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-heading h2 {
  font-size: 1.875rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .section-heading h2 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .section-heading h2 { font-size: 2.6rem; }
}

.section-heading p {
  font-size: 1rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 640px) {
  .section-heading p { font-size: 1.125rem; }
}

.steps-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: var(--gradient-brand);
  border-radius: 1rem;
  position: relative;
}

.step-number span {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--accent));
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.step-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

/* ============================================================
   DOCUMENTS SECTION
   ============================================================ */
.docs-section { background: var(--gradient-subtle); }

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .docs-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

.doc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  transition: all 0.2s;
  cursor: pointer;
}

.doc-card:hover {
  border-color: hsl(var(--brand));
  color: hsl(var(--brand));
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.doc-card svg {
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.doc-card:hover svg { opacity: 1; }

.docs-fallback {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================================
   GUARANTEE SECTION
   ============================================================ */
.guarantee-section {
  position: relative;
  overflow: hidden;
}

.guarantee-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .guarantee-grid { grid-template-columns: 1fr 1fr; }
}

.guarantee-content h2 {
  font-size: 1.875rem;
  color: #fff;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .guarantee-content h2 { font-size: 2.25rem; }
}

.guarantee-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}

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

.promise-card {
  padding: 1.25rem;
}

.promise-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--accent-light));
}

.promise-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.375rem;
}

.promise-card p {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
}

/* ============================================================
   LANGUAGES SECTION (MARQUEE)
   ============================================================ */
.languages-section { background: hsl(var(--background)); overflow: hidden; }

.marquee-wrapper {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 0.75rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-track.reverse { animation-direction: reverse; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.lang-pill:hover {
  border-color: hsl(var(--brand));
  color: hsl(var(--brand));
}

.lang-flag { font-size: 1.25rem; }

/* ============================================================
   TESTIMONIALS (MARQUEE)
   ============================================================ */
.testimonials-section { background: #fff; overflow: hidden; }

.testimonial-card {
  width: 330px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: box-shadow 0.3s;
}

.testimonial-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.testimonial-quote {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
  color: #facc15;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.testimonial-role {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.review-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.review-stars { color: #facc15; display: flex; gap: 2px; }

/* ============================================================
   START CTA SECTION
   ============================================================ */
.start-section {
  position: relative;
  overflow: hidden;
}

.start-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .start-grid { grid-template-columns: 1fr minmax(340px, 460px); }
}

.start-content h2 {
  font-size: 1.875rem;
  color: #fff;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .start-content h2 { font-size: 2.25rem; }
}

.start-content > p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  transition: transform 0.2s, background 0.2s;
}

.contact-card:hover { transform: translateY(-1px); }

.contact-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.contact-card-wa .contact-card-icon { background: var(--wa-green); color: #fff; }
.contact-card-email .contact-card-icon { background: hsl(var(--brand)); color: #fff; }
.contact-card-phone .contact-card-icon { background: hsl(var(--accent)); color: #fff; }

.contact-card-text h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.125rem;
}

.contact-card-text p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
}

.contact-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--wa-green);
  color: #fff;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { background: var(--gradient-subtle); }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open {
  border-color: hsl(var(--accent));
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.125rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}

.faq-chevron {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s;
  color: hsl(var(--muted-foreground));
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.faq-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.faq-footer a {
  color: hsl(var(--brand));
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-top: 1rem;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 0.5rem;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   FLOATING ACTIONS
   ============================================================ */
.floating-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.wa-fab {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wa-green);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s;
  position: relative;
}

.wa-fab:hover { transform: scale(1.08); }

.wa-fab .ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa-green);
  animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
  opacity: 0;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

.mobile-quote-pill {
  display: none;
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
}

.mobile-quote-pill.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1023px) {
  .mobile-quote-pill { display: inline-flex; }
}

/* ============================================================
   LEGAL MODAL
   ============================================================ */
.legal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.legal-overlay.open { display: flex; }

.legal-modal {
  background: #fff;
  border-radius: 1rem;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.legal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  transition: background 0.2s;
}

.legal-close:hover { background: hsl(var(--secondary)); }

.legal-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-modal .legal-date {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.legal-modal h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-modal p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.21, 0.47, 0.32, 0.98),
              transform 0.6s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   WPForms Overrides (match our design)
   ============================================================ */
.wpforms-container .wpforms-form .wpforms-field-label {
  font-family: var(--font-sans) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: hsl(var(--foreground)) !important;
}

.wpforms-container .wpforms-form input,
.wpforms-container .wpforms-form select,
.wpforms-container .wpforms-form textarea {
  border: 1px solid hsl(var(--border)) !important;
  border-radius: calc(var(--radius) - 2px) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.875rem !important;
  padding: 0.625rem 0.75rem !important;
  background: hsl(var(--background)) !important;
}

.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form select:focus,
.wpforms-container .wpforms-form textarea:focus {
  border-color: hsl(var(--ring)) !important;
  box-shadow: 0 0 0 3px hsla(var(--ring), 0.15) !important;
}

.wpforms-container .wpforms-form .wpforms-submit-container button {
  background: var(--gradient-brand) !important;
  color: #fff !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 0.875rem 1.5rem !important;
  border-radius: var(--radius) !important;
  border: none !important;
  width: 100% !important;
  transition: opacity 0.2s !important;
}

.wpforms-container .wpforms-form .wpforms-submit-container button:hover {
  opacity: 0.9 !important;
}

/* ── Print ── */
@media print {
  .site-nav, .floating-actions, .scroll-progress { display: none !important; }
  body { font-size: 12pt; }
}
