/* ============================================
   VAANYA CLINIC — FOOTER STYLE
   File: /css/footer.css
   ============================================ */

/* -------- Root Variables (aligned with header) -------- */
:root {
  --bg: #ffffff;
  --text: #101828;
  --muted: #667085;
  --brand: #0ea5e9;
  --brand-dark: #075985;
  --ring: rgba(14,165,233,0.35);
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --radius: 14px;
  --container: 1200px;
  --footer-bg: #0a0f16;       /* deep charcoal */
  --footer-ink: #e5eef6;      /* light text */
  --footer-muted: #9fb0c1;    /* muted text */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --text: #ecf0f5;
    --muted: #94a3b8;
    --brand: #22d3ee;
    --brand-dark: #06b6d4;
    --footer-bg: #05090f;
    --footer-ink: #eaf2fa;
    --footer-muted: #a8b8c9;
  }
}

/* -------- Base -------- */
.footer {
  background:
    radial-gradient(1200px 300px at 20% -20%, rgba(34,211,238,0.10), transparent 60%),
    radial-gradient(900px 240px at 120% 0%, rgba(7,89,133,0.18), transparent 60%),
    linear-gradient(180deg, #0b141d, var(--footer-bg));
  color: var(--footer-ink);
  padding: 52px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 -6px 18px rgba(0,0,0,0.25) inset;
}

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

/* -------- Container -------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* -------- Grid -------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr; /* Brand | Links | Contact */
  gap: 32px;
  align-items: start;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* -------- Brand block -------- */
.footer-brand {
  display: grid;
  gap: 14px;
}

.footer-logo {
  height: 154px;
  width: auto;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  display: block;
}

.footer-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--footer-muted);
}

/* -------- Headings -------- */
.footer h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #eaf6ff;
}

/* -------- Useful Links -------- */
.footer-links .link-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 3fr));
  gap: 12px 24px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14.5px;
  color: var(--footer-muted);
  border-radius: 10px;
  transition: color .2s ease, background-color .2s ease, transform .05s ease;
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), transparent);
  transition: width .25s ease;
  border-radius: 2px;
  opacity: 0.9;
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.04);
  padding-left: 10px;
}

.footer-links a:hover::after {
  width: 60%;
}

/* -------- Contact -------- */
.footer-contact p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--footer-muted);
}

.footer-contact strong {
  font-weight: 700;
  color: #eaf6ff;
}

.footer-contact a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(34,211,238,0.55);
  text-underline-offset: 3px;
}

.footer-contact a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

/* -------- Divider -------- */
.divider {
  margin: 26px 0 18px;
  border: none;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
}

/* -------- Bottom area -------- */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

@media (max-width: 760px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 8px;
  }
}

.footer-disclaimer {
  margin: 0;
  font-size: 13.5px;
  color: rgba(234, 246, 255, 0.75);
}

.footer-credit {
  margin: 0;
  font-size: 13.5px;
  color: rgba(234, 246, 255, 0.55);
}

.footer-credit a {
  color: var(--brand);
  font-weight: 600;
}

.footer-credit a:hover {
  color: #fff;
}

/* -------- Interactive states & a11y -------- */
.footer a:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(10,15,22,0.65),
    0 0 0 6px var(--ring);
  border-radius: 10px;
}

/* -------- Subtle lift on brand/logo hover -------- */
.footer-brand .footer-logo:hover {
  transform: translateY(-1px);
  transition: transform .12s ease;
}

/* -------- Reduce motion -------- */
@media (prefers-reduced-motion: reduce) {
  .footer a,
  .footer-links a::after,
  .footer-brand .footer-logo {
    transition: none !important;
  }
}
