/* VALMA — vitrine minimaliste */

:root {
  --color-white: #fafbfc;
  --color-surface: rgba(255, 255, 255, 0.72);
  --color-border: rgba(56, 120, 180, 0.12);
  --color-text: #1a2332;
  --color-text-muted: #5c6b7a;
  --color-sky: #5eb3e8;
  --color-sky-deep: #3a8cc7;
  --color-gray: #e8eef3;
  --shadow-soft: 0 4px 24px rgba(30, 80, 120, 0.08);
  --shadow-card: 0 8px 40px rgba(30, 90, 140, 0.1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --space-section: clamp(1.25rem, 3vw, 2.25rem);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #dcecf6 0%,
    #e3f0f8 32%,
    #eef6fb 68%,
    #f5f9fc 100%
  );
}

.bg-grid {
  position: absolute;
  inset: -50%;
  background-image: linear-gradient(
      rgba(90, 160, 210, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(90, 160, 210, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, black 20%, transparent 75%);
  animation: grid-drift 80s linear infinite;
}

@keyframes grid-drift {
  to {
    transform: translate(48px, 48px);
  }
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  animation: orb-float 18s var(--ease-out) infinite alternate;
}

.bg-orb--1 {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: -8%;
  right: -10%;
  background: radial-gradient(circle, rgba(232, 240, 247, 0.95) 0%, transparent 72%);
}

.bg-orb--2 {
  width: min(45vw, 340px);
  height: min(45vw, 340px);
  bottom: 15%;
  left: -8%;
  background: radial-gradient(circle, rgba(236, 242, 248, 0.85) 0%, transparent 72%);
  animation-delay: -6s;
  animation-duration: 22s;
}

@keyframes orb-float {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-24px, 20px) scale(1.05);
  }
}

.nav {
  flex: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem clamp(3rem, 11vw, 8rem);
  background: rgba(250, 251, 252, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56, 120, 180, 0.14);
  animation: nav-enter 0.75s var(--ease-out) both;
}

@keyframes nav-enter {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav__brand {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  transition:
    color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.nav__brand:hover {
  color: var(--color-sky-deep);
  transform: translateY(-1px);
}

.nav__country {
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

@media (max-width: 600px) {
  .nav {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.main {
  --layout-chrome: 5.75rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vmin, 1.75rem);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-section) 1.25rem;
  min-height: max(calc(100dvh - var(--layout-chrome)), 0px);
}

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 1.4vmin, 1rem);
  width: 100%;
}

.hero__eyebrow {
  margin: 0;
  font-size: clamp(0.7rem, 0.65rem + 0.35vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sky-deep);
}

.hero__eyebrow.is-visible {
  animation: eyebrow-glow 3.2s ease-in-out 0.9s infinite alternate;
}

@keyframes eyebrow-glow {
  from {
    text-shadow: 0 0 0 transparent;
    opacity: 1;
  }
  to {
    text-shadow: 0 0 18px rgba(58, 140, 199, 0.22);
    opacity: 0.92;
  }
}

.hero__title {
  margin: 0;
  line-height: 1;
}

.hero__logo {
  display: block;
  width: clamp(10.625rem, 28vmin, 18.75rem);
  height: auto;
  margin: 0 auto;
  user-select: none;
  -webkit-user-drag: none;
}

.hero__lead {
  margin: 0;
  max-width: none;
  font-size: clamp(0.875rem, 0.82rem + 0.25vw, 1rem);
  font-weight: 400;
  color: var(--color-text-muted);
}

@media (max-width: 600px) {
  .hero__lead-br {
    display: none;
  }
}

.specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.specialties__item {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
  padding: 0.3rem 0.75rem;
  font-size: clamp(0.65rem, 0.6rem + 0.2vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    transform 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    color 0.28s var(--ease-out);
}

.specialties__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.specialties__icon {
  flex-shrink: 0;
  width: clamp(14px, 0.85rem + 0.35vmin, 17px);
  height: clamp(14px, 0.85rem + 0.35vmin, 17px);
  opacity: 0.88;
}

.specialties__item:hover .specialties__icon {
  opacity: 1;
}

.specialties__item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 65% at var(--mx) var(--my),
    rgba(255, 255, 255, 0.72) 0%,
    rgba(160, 215, 248, 0.45) 32%,
    rgba(94, 179, 232, 0.18) 52%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

.specialties.is-visible .specialties__item {
  animation: pill-rise 0.55s var(--ease-out) both;
}

.specialties.is-visible .specialties__item:nth-child(1) {
  animation-delay: 0.28s;
}
.specialties.is-visible .specialties__item:nth-child(2) {
  animation-delay: 0.4s;
}
.specialties.is-visible .specialties__item:nth-child(3) {
  animation-delay: 0.52s;
}

@keyframes pill-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.specialties__item:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 179, 232, 0.45);
  color: var(--color-text);
  box-shadow:
    0 8px 26px rgba(30, 90, 140, 0.14),
    0 0 20px rgba(94, 179, 232, 0.28);
}

.specialties__item:hover::before {
  opacity: 1;
}

.contact {
  width: 100%;
  max-width: 540px;
  margin-top: clamp(0.25rem, 0.5rem + 1vmin, 2rem);
}

.contact__inner {
  position: relative;
  padding: clamp(1rem, 0.85rem + 0.8vmin, 1.5rem) clamp(1rem, 2.5vw, 1.75rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.contact__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(94, 179, 232, 0.55),
    rgba(58, 140, 199, 0.65),
    rgba(94, 179, 232, 0.55),
    transparent
  );
  background-size: 200% 100%;
  opacity: 0;
  animation: contact-accent-sweep 4s ease-in-out infinite;
  pointer-events: none;
}

.contact__inner.is-visible::before {
  opacity: 1;
}

@keyframes contact-accent-sweep {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.contact__heading {
  margin: 0;
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact__inner.is-visible .contact__heading {
  animation: heading-underline 0.9s var(--ease-out) 0.35s both;
}

@keyframes heading-underline {
  from {
    letter-spacing: -0.06em;
    opacity: 0.85;
  }
  to {
    letter-spacing: -0.02em;
    opacity: 1;
  }
}

.contact__sub {
  margin: 0.3rem 0 0.9rem;
  font-size: clamp(0.8125rem, 0.76rem + 0.22vw, 0.9rem);
  color: var(--color-text-muted);
}

.form__row {
  margin-bottom: 0.55rem;
}

.form__label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: clamp(0.7rem, 0.64rem + 0.18vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form__input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: clamp(0.85rem, 0.8rem + 0.22vw, 0.95rem);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(30, 80, 120, 0.04);
  transition:
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    transform 0.22s var(--ease-out);
}

.form__input::placeholder {
  color: #9aa8b5;
}

.form__input:hover {
  border-color: rgba(56, 120, 180, 0.22);
}

.form__input:focus {
  outline: none;
  border-color: var(--color-sky);
  box-shadow: 0 0 0 3px rgba(94, 179, 232, 0.22);
  transform: translateY(-1px);
}

.form__textarea {
  resize: vertical;
  min-height: clamp(3.75rem, 3.25rem + 2.5vmin, 5.625rem);
}

.form__submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-weight: 600;
  font-size: clamp(0.85rem, 0.8rem + 0.2vw, 0.9375rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--color-sky) 0%, var(--color-sky-deep) 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(58, 140, 199, 0.35);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.form__submit-text {
  position: relative;
  z-index: 1;
}

.form__submit::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -120%;
  z-index: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 45%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0.18) 55%,
    transparent 100%
  );
  transform: skewX(-12deg);
  transition: left 0.55s var(--ease-out);
  pointer-events: none;
}

.form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(58, 140, 199, 0.4);
}

.form__submit:hover::after {
  left: 120%;
}

.form__submit:active {
  transform: translateY(0);
}

.contact__inner.is-visible .form .form__row,
.contact__inner.is-visible .form .form__submit,
.contact__inner.is-visible .form .form__status {
  animation: form-stagger 0.5s var(--ease-out) both;
}

.contact__inner.is-visible .form .form__row:nth-child(1) {
  animation-delay: 0.18s;
}
.contact__inner.is-visible .form .form__row:nth-child(2) {
  animation-delay: 0.28s;
}
.contact__inner.is-visible .form .form__row:nth-child(3) {
  animation-delay: 0.38s;
}
.contact__inner.is-visible .form .form__submit {
  animation-delay: 0.52s;
}
.contact__inner.is-visible .form .form__status {
  animation-delay: 0.6s;
}

@keyframes form-stagger {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form__submit:disabled::after {
  opacity: 0;
  transition: none;
}

.form__status {
  min-height: 1rem;
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.form__status--ok {
  color: #2a7a5a;
}

.form__status--err {
  color: #b03a3a;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-visible {
  animation: reveal-up 0.85s var(--ease-out) forwards;
}

.reveal[data-reveal]:nth-child(1) {
  animation-delay: 0.05s;
}
.reveal[data-reveal]:nth-child(2) {
  animation-delay: 0.12s;
}
.reveal[data-reveal]:nth-child(3) {
  animation-delay: 0.19s;
}
.reveal[data-reveal]:nth-child(4) {
  animation-delay: 0.26s;
}
.reveal[data-reveal]:nth-child(5) {
  animation-delay: 0.33s;
}
.reveal[data-reveal]:nth-child(6) {
  animation-delay: 0.4s;
}
.reveal[data-reveal]:nth-child(7) {
  animation-delay: 0.47s;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  flex: 0 0 auto;
  padding: 0.5rem 1.25rem 0.75rem;
  text-align: center;
  animation: footer-enter 0.85s var(--ease-out) 0.45s both;
}

@keyframes footer-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer__text {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.footer__link {
  color: inherit;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: none;
}

.footer__link:hover {
  color: var(--color-sky-deep);
  text-decoration: underline;
}

@media (max-height: 720px) {
  .main {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    gap: clamp(0.65rem, 2vmin, 1.25rem);
  }

  .hero__lead {
    font-size: clamp(0.8125rem, 0.78rem + 0.2vw, 0.95rem);
  }
}

@media (max-height: 600px) {
  .specialties {
    gap: 0.3rem 0.4rem;
  }

  .specialties__item {
    padding: 0.25rem 0.6rem;
    font-size: clamp(0.6rem, 0.58rem + 0.15vw, 0.72rem);
  }
}
