@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  /* Paleta extraída de assets/bg.png */
  --navy-950: #000020;
  --navy-900: #0a0c33;
  --navy-850: #171a4a;
  --navy-800: #232362;
  --navy-700: #2f2c79;
  --gold-bright: #ffcc50;
  --gold-light: #ffb52c;
  --gold-main: #ff9800;
  --gold-deep: #bf7200;
  --ivory: #fff6ea;
  --soft-gray: #cbb98f;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--navy-950);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ivory);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  background: #000020;
}

body::before {
  position: fixed;
  inset: -48px;
  z-index: -2;
  content: "";
  background-image: url("../assets/bg.png");
  background-position: center;
  background-size: cover;
  filter: blur(30px) saturate(0.85) brightness(0.42);
  transform: scale(1.1);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12% 16%, rgb(255 181 44 / 0.2), transparent 24%),
    radial-gradient(circle at 88% 68%, rgb(255 152 0 / 0.14), transparent 26%),
    linear-gradient(180deg, rgb(0 0 18 / 0.45), rgb(0 0 10 / 0.85));
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.site-shell {
  width: 100%;
  min-height: 100vh;
  padding: 32px 18px;
}

.bio-card {
  width: min(100%, 650px);
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-850) 0%, var(--navy-950) 52%, var(--navy-900) 100%);
  border: 1px solid rgb(255 204 80 / 0.26);
  border-radius: 42px;
  box-shadow:
    0 30px 60px rgb(0 0 0 / 0.55),
    0 8px 18px rgb(0 0 0 / 0.45),
    inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.hero {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: visible;
  background: var(--navy-950);
}

.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgb(0 0 32 / 0) 0%,
    rgb(0 0 32 / 0) 78%,
    rgb(0 0 32 / 0.65) 90%,
    var(--navy-950) 100%
  );
}

.share-button {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 4;
  width: 58px;
  height: 58px;
  padding: 14px;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  cursor: pointer;
  background: radial-gradient(
    circle at 35% 30%,
    rgb(47 44 121 / 0.92) 0%,
    rgb(0 0 20 / 0.96) 72%,
    var(--navy-950) 100%
  );
  border: 1px solid var(--gold-main);
  border-radius: 50%;
  box-shadow:
    0 6px 14px rgb(0 0 0 / 0.48),
    0 0 14px rgb(255 181 44 / 0.22),
    inset 0 1px 0 rgb(255 255 255 / 0.12);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.share-button:hover {
  border-color: var(--gold-bright);
  box-shadow:
    0 9px 20px rgb(0 0 0 / 0.52),
    0 0 20px rgb(255 181 44 / 0.3),
    inset 0 1px 0 rgb(255 255 255 / 0.16);
  transform: translateY(-2px);
}

.share-button:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.share-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-section {
  position: relative;
  margin-top: -56px;
  padding: 56px 28px 30px;
}

.service-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 0;
  height: 90px;
  background: linear-gradient(
    180deg,
    var(--navy-950) 0%,
    rgb(0 0 32 / 0.85) 45%,
    rgb(0 0 32 / 0) 100%
  );
  pointer-events: none;
}

.service-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  min-height: 168px;
  padding: 20px 14px 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(120deg, rgb(255 255 255 / 0.11) 0%, rgb(255 255 255 / 0.025) 22%, transparent 44%),
    linear-gradient(145deg, rgb(47 44 121 / 0.92) 0%, rgb(35 35 98 / 0.95) 48%, rgb(10 12 51 / 0.98) 100%);
  border: 1px solid var(--gold-main);
  border-radius: 20px;
  box-shadow:
    0 7px 16px rgb(0 0 0 / 0.42),
    0 0 12px rgb(255 152 0 / 0.12),
    inset 0 1px 0 rgb(255 204 80 / 0.16);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:not(.service-card-empty):hover {
  border-color: var(--gold-bright);
  box-shadow:
    0 11px 24px rgb(0 0 0 / 0.48),
    0 0 16px rgb(255 204 80 / 0.35),
    0 0 30px rgb(255 204 80 / 0.16),
    inset 0 1px 0 rgb(255 236 196 / 0.32);
  transform: translateY(-3px);
}

.service-card:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

.service-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  color: var(--gold-light);
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.65));
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card strong {
  color: var(--gold-main);
  font-size: clamp(0.96rem, 3.5vw, 1.18rem);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 2px rgb(0 0 0 / 0.7);
}

.service-card > span:last-child {
  margin-top: 6px;
  color: var(--ivory);
  font-size: clamp(0.72rem, 2.8vw, 0.9rem);
  line-height: 1.25;
}

.service-card-empty {
  pointer-events: none;
  border-color: rgb(255 152 0 / 0.4);
  box-shadow: inset 0 1px 0 rgb(255 204 80 / 0.08);
}

.contact-grid {
  padding: 0 28px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}

.contact-button {
  min-height: 70px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold-main);
  text-align: center;
  background:
    linear-gradient(120deg, rgb(255 255 255 / 0.09) 0%, transparent 42%),
    linear-gradient(145deg, rgb(47 44 121 / 0.92), rgb(10 12 51 / 0.98));
  border: 1px solid var(--gold-main);
  border-radius: 18px;
  box-shadow:
    0 7px 16px rgb(0 0 0 / 0.38),
    0 0 10px rgb(255 152 0 / 0.1),
    inset 0 1px 0 rgb(255 204 80 / 0.14);
  font-size: clamp(0.88rem, 3.2vw, 1.02rem);
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-button:hover {
  border-color: var(--gold-bright);
  box-shadow:
    0 10px 22px rgb(0 0 0 / 0.45),
    0 0 17px rgb(255 181 44 / 0.3);
  transform: translateY(-2px);
}

.contact-button:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

.contact-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  color: var(--gold-light);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  margin: 0 28px 28px;
  padding: 18px 16px;
  color: var(--soft-gray);
  text-align: center;
  background: linear-gradient(180deg, rgb(35 35 98 / 0.94), rgb(10 12 51 / 0.98));
  border: 1px solid rgb(255 152 0 / 0.38);
  border-radius: 18px;
  box-shadow:
    0 6px 14px rgb(0 0 0 / 0.25),
    inset 0 1px 0 rgb(255 255 255 / 0.04);
}

.site-footer p {
  margin: 0;
  font-size: clamp(0.68rem, 2.5vw, 0.8rem);
  line-height: 1.55;
}

.site-footer a {
  color: var(--gold-main);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  color: var(--ivory);
  pointer-events: none;
  background: rgb(0 0 32 / 0.96);
  border: 1px solid var(--gold-main);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.45);
  font-size: 0.84rem;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.notice-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #25d366;
  border-radius: 50%;
  box-shadow:
    0 8px 20px rgb(0 0 0 / 0.45),
    0 0 0 1px rgb(255 255 255 / 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover {
  box-shadow:
    0 10px 24px rgb(0 0 0 / 0.5),
    0 0 18px rgb(37 211 102 / 0.55);
  transform: translateY(-3px) scale(1.05);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-float-ring {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.55;
  animation: whatsapp-pulse 2.2s ease-out infinite;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@media (max-width: 540px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float-ring {
    animation: none;
    display: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 540px) {
  .site-shell {
    padding: 0;
  }

  .bio-card {
    border: 0;
    border-radius: 0;
  }

  .service-section {
    margin-top: -46px;
    padding: 46px 14px 24px;
  }

  .share-button {
    top: 18px;
    right: 16px;
    width: 52px;
    height: 52px;
    padding: 13px;
  }

  .service-grid {
    gap: 11px;
  }

  .service-card {
    min-height: 150px;
    padding: 17px 9px 14px;
    border-radius: 17px;
  }

  .service-icon {
    width: 47px;
    height: 47px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    padding: 0 14px 16px;
    gap: 11px;
  }

  .contact-button {
    min-height: 60px;
    padding: 12px 14px;
    gap: 10px;
    border-radius: 16px;
  }

  .contact-icon {
    width: 24px;
    height: 24px;
  }

  .site-footer {
    margin: 0 14px 18px;
    padding: 16px 12px;
    border-radius: 16px;
  }
}

@media (max-width: 350px) {
  .service-card {
    min-height: 142px;
  }
}

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