/* =========================================================================
   Yafa Fix — links.cybexs.com
   Premium mobile-first link page. Pure CSS, no framework.
   LIGHT theme — white background to match the logo's white background.
   Edit the design tokens in :root to re-theme quickly.
   ========================================================================= */

:root {
  /* Light premium palette (matches the white logo background) */
  --bg: #fefefe;            /* page background — same as the logo background */
  --surface: #ffffff;       /* card */
  --ink: #16202b;           /* headings / primary text */
  --ink-soft: #3f4b59;      /* body text */
  --ink-muted: #6b7886;     /* sublabels */
  --ink-faint: #9aa6b2;     /* chevrons, legal text */

  --accent: #12b3c0;        /* deep dental teal — readable on white */
  --accent-bright: #34e0d6; /* brand turquoise — for fills / glows */
  --accent-deep: #0a8d99;   /* darkest teal — icons / hover text */

  --line: rgba(16, 32, 43, 0.10);
  --line-soft: rgba(16, 32, 43, 0.06);

  /* Optional background photo.
     To use a real dental-clinic photo:
       1) drop the image at  assets/background.jpg
       2) set --bg-photo below to:  url("assets/background.jpg")
       3) set --bg-blur to about 3px
     Leave as-is to use the built-in light gradient. */
  --bg-photo: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)); /* no-op layer */
  --bg-blur: 0px;

  --radius-card: 28px;
  --radius-btn: 18px;

  --shadow-card: 0 30px 70px -32px rgba(15, 50, 70, 0.30),
                 0 8px 24px -16px rgba(15, 40, 60, 0.16);
  --shadow-btn: 0 8px 20px -16px rgba(15, 40, 60, 0.45);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  background: var(--bg);
  color-scheme: light;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Background ---------------------------------------------------- */

.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg__image, .bg__overlay, .bg__grain { position: absolute; inset: 0; }

.bg__image {
  inset: -5%;
  background-color: var(--bg);
  background-image:
    var(--bg-photo),
    radial-gradient(900px 620px at 82% 4%, rgba(52, 224, 214, 0.12), transparent 60%),
    radial-gradient(760px 560px at 6% 98%, rgba(60, 150, 210, 0.08), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f5f9fb 58%, #eef4f7 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--bg-blur)) saturate(1.02);
  transform: scale(1);
  animation: slowZoom 34s ease-in-out infinite alternate;
  will-change: transform;
}

.bg__overlay {
  background: radial-gradient(130% 120% at 50% 18%, transparent 55%, rgba(15, 45, 65, 0.05) 100%);
}

/* Subtle "tech" dot texture */
.bg__grain {
  background-image: radial-gradient(rgba(16, 32, 43, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.6;
  mask-image: radial-gradient(120% 100% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 30%, #000 30%, transparent 75%);
}

/* ---------- Layout ------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center; /* never clip the top when content overflows */
  gap: 18px;
  padding: calc(30px + env(safe-area-inset-top)) 18px
           calc(28px + env(safe-area-inset-bottom));
}

/* ---------- Card --------------------------------------------------------- */

.card {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 30px 22px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Thin teal accent line along the top edge */
.card::before {
  content: "";
  position: absolute;
  left: 26px; right: 26px; top: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(18, 179, 192, 0.6), transparent);
}

/* ---------- Brand / logo ------------------------------------------------- */

.brand { display: flex; justify-content: center; padding: 2px 0 2px; }
.brand__logo {
  height: 56px;
  width: auto;
  max-width: 82%;
  object-fit: contain;
}
/* CSS wordmark — only shown if assets/logo.svg fails to load */
.wordmark {
  display: none;
  align-items: baseline;
  gap: 0.18em;
  font-family: "Sora", "Segoe UI", Inter, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.wordmark span { color: var(--accent); }

/* ---------- Verified badge ----------------------------------------------- */

.verified { display: flex; justify-content: center; margin-top: 16px; }
.verified__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(18, 179, 192, 0.09);
  border: 1px solid rgba(18, 179, 192, 0.28);
  color: #0a7b86;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.verified__pill svg { color: var(--accent); flex: 0 0 auto; }

/* ---------- Hero --------------------------------------------------------- */

.hero { text-align: center; margin: 22px 4px 24px; }
.hero h1 {
  margin: 0 0 10px;
  font-family: "Sora", "Segoe UI", Inter, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 6.2vw, 1.95rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(180deg, #16202b, #33424f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
.hero__sub {
  margin: 0 auto;
  max-width: 34ch;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* ---------- Action buttons ---------------------------------------------- */

.actions { display: flex; flex-direction: column; gap: 12px; }
.actions--extra { margin-top: 12px; }

.btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--line);
  background: #f6f9fb;
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow-btn);
  transition: transform 0.18s ease, background 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px) scale(1.01);
  background: #ffffff;
  border-color: rgba(18, 179, 192, 0.45);
  box-shadow: 0 16px 30px -18px rgba(15, 40, 60, 0.45);
}
.btn:active { transform: scale(0.985); }

/* Soft teal sheen sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 32%,
    rgba(18, 179, 192, 0.10) 50%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }

.btn__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(18, 179, 192, 0.10);
  border: 1px solid rgba(18, 179, 192, 0.20);
  color: var(--accent-deep);
}
.btn__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.btn__label { font-weight: 600; font-size: 1.02rem; letter-spacing: 0.2px; }
.btn__sub {
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn__chev {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--ink-faint);
  transition: transform 0.2s ease, color 0.2s ease;
}
.btn:hover .btn__chev { transform: translateX(3px); color: var(--accent); }

/* Primary (Visit Website) — bright teal with dark text for strong contrast */
.btn--primary {
  background: linear-gradient(135deg, var(--accent-bright), #11b1bf);
  border-color: transparent;
  color: #04303a;
  box-shadow: 0 16px 30px -14px rgba(18, 179, 192, 0.5);
}
.btn--primary .btn__icon {
  background: rgba(4, 40, 48, 0.12);
  border-color: rgba(4, 40, 48, 0.16);
  color: #04303a;
}
.btn--primary .btn__sub { color: rgba(4, 40, 48, 0.72); }
.btn--primary .btn__chev { color: rgba(4, 40, 48, 0.6); }
.btn--primary:hover {
  border-color: transparent;
  filter: brightness(1.04);
  background: linear-gradient(135deg, var(--accent-bright), #0fa3b0);
}

/* Save Contact — subtle teal emphasis */
.btn--save {
  background: rgba(18, 179, 192, 0.07);
  border-color: rgba(18, 179, 192, 0.30);
}
.btn--save:hover { background: rgba(18, 179, 192, 0.12); }

/* ---------- Service chips ------------------------------------------------ */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin-top: 24px;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  padding: 8px 13px;
  border-radius: 999px;
  background: #f6f9fb;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: transform 0.18s ease, background 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
}
.chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  opacity: 0.9;
}
.chip:hover {
  transform: translateY(-2px);
  background: rgba(18, 179, 192, 0.08);
  border-color: rgba(18, 179, 192, 0.40);
  color: var(--accent-deep);
}

/* ---------- Footer ------------------------------------------------------- */

.foot { text-align: center; max-width: 480px; }
.foot__title {
  margin: 0 0 4px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #2a3744;
}
.foot__sub { margin: 0; font-size: 0.76rem; color: var(--ink-muted); }
.foot__legal { margin: 12px 0 0; font-size: 0.7rem; color: var(--ink-faint); }

/* ---------- Entrance animation (staggered) ------------------------------- */

.brand { animation: fadeUp 0.7s ease both; animation-delay: 0.05s; }
.verified { animation: fadeUp 0.7s ease both; animation-delay: 0.12s; }
.hero { animation: fadeUp 0.7s ease both; animation-delay: 0.18s; }
.actions .btn:nth-child(1) { animation: fadeUp 0.7s ease both; animation-delay: 0.24s; }
.actions .btn:nth-child(2) { animation: fadeUp 0.7s ease both; animation-delay: 0.30s; }
.actions .btn:nth-child(3) { animation: fadeUp 0.7s ease both; animation-delay: 0.36s; }
.actions .btn:nth-child(4) { animation: fadeUp 0.7s ease both; animation-delay: 0.42s; }
.chips { animation: fadeUp 0.7s ease both; animation-delay: 0.48s; }
.foot { animation: fadeUp 0.7s ease both; animation-delay: 0.54s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* ---------- Focus + accessibility --------------------------------------- */

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .bg__image { animation: none !important; }
}

/* ---------- Small-screen tuning ------------------------------------------ */

@media (max-width: 360px) {
  .card { padding: 26px 17px 22px; }
  .btn__sub { font-size: 0.76rem; }
  .hero { margin: 18px 2px 20px; }
  .brand__logo { height: 50px; }
}
