/* AGC professional enhancements - safe visual/technical refinements */
:root {
  --agc-radius: 1.25rem;
  --agc-focus: #f59e0b;
}

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

body {
  overflow-x: hidden;
}

img, video, svg {
  max-width: 100%;
}

img {
  image-rendering: auto;
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--agc-focus);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: 96px;
}

nav {
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.18);
}

.hero-title,
h1 {
  text-wrap: balance;
  letter-spacing: -0.02em;
}

p, li {
  line-height: 1.85;
}

.card,
.service-card,
.project-card,
article,
[class*="rounded-3xl"],
[class*="rounded-2xl"] {
  backface-visibility: hidden;
}

[class*="hover:scale-105"] {
  transform-origin: center;
}

footer a,
nav a {
  text-underline-offset: 6px;
}

.agc-wa-button {
  box-shadow: 0 18px 45px rgba(34, 197, 94, 0.28);
}

.agc-language-toggle {
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.22);
}

@media (max-width: 768px) {
  h1 {
    line-height: 1.18 !important;
  }

  .agc-wa-button {
    bottom: 1rem !important;
    right: 1rem !important;
    padding: 0.9rem !important;
  }

  .agc-language-toggle {
    top: 5.2rem !important;
    right: 1rem !important;
  }

  .grid {
    row-gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
