/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #eaf5f3;
  --bg-2:      #d6ece8;
  --paper:     #fdfdfd;          /* matches the logo's background */
  --ink:       #1f3b39;
  --ink-soft:  #3f5f5c;
  --ink-mute:  #7a9592;
  --teal:      #5fb8b0;
  --teal-deep: #3f8f88;
  --teal-dark: #2f6f6a;
  --wa:        #1faa59;
  --line:      rgba(63,143,136,.22);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 28px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1 { text-wrap: balance; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 4px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 99;
  padding: .6rem 1rem; background: var(--paper); color: var(--ink);
  border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Background
   ============================================================= */
.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: var(--bg);
}
.bg-photo {
  position: absolute; inset: -2%;
  width: 104%; height: 104%;
  object-fit: cover; object-position: 40% 50%;
  filter: saturate(.85) blur(2px);
  animation: photoIn 1.6s var(--ease-out) both;
}
.bg::after {                  /* teal veil so the card stays the hero */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 50%, rgba(234,245,243,.55) 0%, rgba(234,245,243,.25) 70%),
    linear-gradient(180deg, rgba(95,184,176,.28), rgba(47,111,106,.38));
}
.bg-orb { z-index: 1; }
.bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.bg-orb--a { width: 46vmax; height: 46vmax; top: -18vmax; right: -14vmax; background: #bfe4df; }
.bg-orb--b { width: 38vmax; height: 38vmax; bottom: -16vmax; left: -12vmax; background: #cfeee6; animation-delay: -9s; }

/* =============================================================
   5. Card
   ============================================================= */
.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.25rem;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  perspective: 1200px;
}

.card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%;
  position: relative;
  width: min(100%, 400px);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 2px 6px rgba(31,59,57,.05),
    0 24px 60px -18px rgba(47,111,106,.35);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  overflow: hidden;
}
.card::before {               /* fine teal hairline frame */
  content: ""; position: absolute; inset: 10px;
  border: 1px solid var(--line); border-radius: calc(var(--radius) - 10px);
  pointer-events: none;
}
.card-glare {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(95,184,176,.10), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.card:hover .card-glare { opacity: 1; }

.card-logo {
  width: 74%;
  margin: 0 auto -.5rem;
  animation: logoIn 1.1s var(--ease-out) both;
}
.card-logo { mix-blend-mode: multiply; } /* melts the logo's white box into the card */
.card-logo img { width: 100%; }

.card-body { position: relative; }

.eyebrow {
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

.name {
  margin-top: .35rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 6.4vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -.005em;
  color: var(--ink);
}
.name span { color: var(--teal-deep); font-weight: 600; }

.divider {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  margin: 1rem auto .85rem; color: var(--teal);
}
.divider span { width: 48px; height: 1px; background: var(--line); }
.divider i { font-style: normal; font-size: .75rem; }

.specialty {
  font-size: .95rem; color: var(--ink-soft); font-weight: 500;
}
.specialty em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--teal-dark);
  line-height: 1.2;
}
.tagline {
  margin-top: .7rem;
  font-size: .84rem;
  color: var(--ink-mute);
  line-height: 1.55;
}
.br-wide { display: none; }

/* =============================================================
   6. WhatsApp module
   ============================================================= */
.contact { margin-top: 1.4rem; }

.wa {
  position: relative;
  display: flex; align-items: center; gap: .85rem;
  padding: .7rem .9rem .7rem .7rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #f3faf8, #e8f5f1);
  border: 1px solid var(--line);
  text-align: left;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background .45s var(--ease-out);
}
.wa:hover {
  box-shadow: 0 14px 30px -14px rgba(31,170,89,.45);
  background: linear-gradient(135deg, #f1fbf5, #e3f6ea);
}
.wa:active { transform: scale(.98); }

.wa-icon {
  position: relative;
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--wa); color: #fff;
  box-shadow: 0 6px 14px -6px rgba(31,170,89,.7);
}
.wa-icon::after {            /* gentle "online" pulse */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(31,170,89,.45);
  animation: pulse 2.8s ease-out infinite;
}

.wa-text { flex: 1; display: grid; line-height: 1.25; }
.wa-text strong { font-size: .98rem; font-weight: 600; color: var(--ink); }
.wa-text small { font-size: .78rem; color: var(--ink-mute); letter-spacing: .02em; }

.wa-arrow {
  font-size: 1.1rem; color: var(--teal-deep);
  transition: transform .45s var(--ease-out);
}
.wa:hover .wa-arrow { transform: translateX(4px); }

.addr {
  display: flex; align-items: center; gap: .75rem;
  margin-top: .6rem;
  padding: .55rem .9rem .55rem .7rem;
  border-radius: 16px;
  text-align: left;
  color: var(--ink-soft);
  transition: background .45s var(--ease-out);
}
.addr:hover { background: #f3faf8; }
.addr-icon {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 36px; color: var(--teal-deep);
}
.addr-text { flex: 1; display: grid; font-size: .84rem; line-height: 1.3; font-weight: 500; }
.addr-text small {
  font-size: .74rem; color: var(--teal-deep); font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line);
}
.addr-arrow { color: var(--teal-deep); transition: transform .45s var(--ease-out); }
.addr:hover .addr-arrow { transform: translate(2px, -2px); }

.foot {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(31,59,57,.45);
  letter-spacing: .04em;
}

/* =============================================================
   7. Effects
   ============================================================= */
.reveal { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms + 250ms); }

@keyframes rise   { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes logoIn { from { opacity: 0; transform: scale(.94); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pulse  { 0% { box-shadow: 0 0 0 0 rgba(31,170,89,.45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(31,170,89,0); } }
@keyframes photoIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes drift { to { transform: translate(4vmax, 3vmax) scale(1.08); } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .card { padding: 1.5rem 2.25rem 2rem; }
  .br-wide { display: inline; }
}

/* =============================================================
   9. Reduced motion — only intrusive loops
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .bg-orb { animation: none; }
  .wa-icon::after { animation: none; }
}
