:root {
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  color: #153035;
  background-color: #fbfdfd;
  line-height: 1.7;
}

h1, h2, h3, h4, .font-display {
  font-family: "Fraunces", serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* noise texture overlay, used on dark hero sections for depth */
.noise::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* layered radial-gradient mesh for hero/dark sections */
.brand-mesh {
  background-color: #062f35;
  background-image:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(10, 208, 229, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(9, 186, 204, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(5, 132, 154, 0.35), transparent 70%);
}

.brand-mesh-light {
  background-color: #dcebec;
  background-image:
    radial-gradient(ellipse 55% 45% at 85% 0%, rgba(10, 208, 229, 0.28), transparent 62%),
    radial-gradient(ellipse 65% 55% at 0% 100%, rgba(5, 132, 154, 0.24), transparent 68%);
}

/* surface depth system: base -> elevated -> floating */
.surface-elevated {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(6, 47, 53, 0.06), 0 8px 24px -8px rgba(5, 132, 154, 0.18);
}

.surface-floating {
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(6, 47, 53, 0.10), 0 28px 60px -16px rgba(9, 186, 204, 0.32);
}

/* animation: fade + rise on scroll-in, transform/opacity only */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--spring), transform 0.7s var(--spring);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* nav link underline grow on hover */
.nav-link {
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0%;
  background: #0ad0e5;
  transition: width 0.35s var(--spring);
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  width: 100%;
}

/* focus-visible ring, consistent across interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0ad0e5;
  outline-offset: 2px;
  border-radius: 4px;
}

/* image color treatment, used over photography */
.img-treat {
  position: relative;
}
.img-treat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 47, 53, 0.65), transparent 55%);
}
.img-treat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #05849a;
  mix-blend-mode: multiply;
  opacity: 0.18;
}

.btn-primary {
  background: #09bacc;
  color: #062f35;
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
  box-shadow: 0 1px 2px rgba(6, 47, 53, 0.08), 0 10px 24px -8px rgba(9, 186, 204, 0.45);
}
.btn-primary:hover {
  background: #0ad0e5;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(6, 47, 53, 0.10), 0 16px 32px -8px rgba(10, 208, 229, 0.55);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  border: 1px solid rgba(21, 48, 53, 0.18);
  color: #153035;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.3s var(--spring);
}
.btn-ghost:hover {
  border-color: #09bacc;
  background-color: rgba(9, 186, 204, 0.06);
  transform: translateY(-2px);
}

.card-hover {
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--ease);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(6, 47, 53, 0.10), 0 28px 60px -16px rgba(9, 186, 204, 0.32);
}

.client-logo {
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.4s var(--ease), opacity 0.4s var(--ease);
}
.client-logo:hover {
  filter: grayscale(0) opacity(1);
}

.whatsapp-float {
  box-shadow: 0 2px 6px rgba(6, 47, 53, 0.18), 0 10px 28px -6px rgba(37, 211, 102, 0.55);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(6, 47, 53, 0.22), 0 14px 32px -6px rgba(37, 211, 102, 0.65);
}
.whatsapp-float:active {
  transform: scale(0.96);
}
