/* Favour Medical Services — shared styles */

:root {
  /* Color system — hospital blues on white */
  --c-primary: oklch(0.48 0.13 245);
  --c-primary-dark: oklch(0.32 0.11 250);
  --c-primary-soft: oklch(0.96 0.025 245);
  --c-primary-tint: oklch(0.88 0.05 245);

  --c-accent: oklch(0.7 0.13 220);
  --c-accent-dark: oklch(0.58 0.13 220);
  --c-accent-soft: oklch(0.96 0.04 220);

  --c-emergency: oklch(0.58 0.18 25);
  --c-emergency-dark: oklch(0.48 0.18 25);

  --c-bg: oklch(1 0 0);
  --c-bg-warm: oklch(0.985 0.01 245);
  --c-bg-cream: oklch(0.97 0.018 245);
  --c-surface: oklch(1 0 0);

  --c-ink: oklch(0.22 0.03 250);
  --c-ink-soft: oklch(0.42 0.02 250);
  --c-ink-mute: oklch(0.58 0.015 250);
  --c-line: oklch(0.92 0.01 245);
  --c-line-strong: oklch(0.82 0.015 245);

  /* Type */
  --f-display: "Libre Caslon Text", "Cormorant Garamond", Georgia, serif;
  --f-body: "Nunito", "Source Sans 3", system-ui, sans-serif;

  /* Spacing rhythm */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 200 / 0.06), 0 2px 8px oklch(0.2 0.02 200 / 0.04);
  --shadow-md: 0 4px 16px oklch(0.2 0.02 200 / 0.08), 0 2px 4px oklch(0.2 0.02 200 / 0.04);
  --shadow-lg: 0 18px 40px oklch(0.2 0.02 200 / 0.12), 0 4px 12px oklch(0.2 0.02 200 / 0.06);

  --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--c-primary);
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(1 0 0 / 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  background: var(--c-bg);
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-line);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text { line-height: 1.1; }
.brand-name {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 11px;
  color: var(--c-ink-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--c-primary); }
.nav-links a.active { color: var(--c-primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-emergency);
  color: white;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 14px;
  position: relative;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover { background: var(--c-emergency-dark); transform: translateY(-1px); }

.nav-cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--r-pill);
  border: 2px solid var(--c-emergency);
  opacity: 0.5;
  animation: pulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.18); opacity: 0; }
}

.nav-cta svg { width: 16px; height: 16px; }

.menu-btn { display: none; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-bg);
    padding: 24px 32px;
    border-bottom: 1px solid var(--c-line);
    align-items: flex-start;
    gap: 16px;
  }
  .menu-btn {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--c-line-strong);
  }
  .menu-btn svg { width: 18px; height: 18px; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 12px; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--r-pill);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--c-primary);
  color: var(--c-bg);
  box-shadow: 0 4px 14px oklch(0.48 0.13 245 / 0.22);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px oklch(0.48 0.13 245 / 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--c-emergency);
  border: 1.5px solid var(--c-emergency);
}
.btn-outline:hover {
  background: var(--c-emergency);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--c-primary);
  padding: 10px 0;
}
.btn-ghost:hover { gap: 14px; }

.btn svg { width: 18px; height: 18px; }

/* ============ FOOTER ============ */
.footer {
  background: var(--c-primary-dark);
  color: oklch(0.92 0.02 245);
  padding: 80px 0 32px;
  margin-top: 120px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid oklch(0.45 0.08 250);
}

.footer h4 {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 20px;
}

.footer-brand .brand-mark { background: var(--c-bg); border-color: oklch(0.45 0.08 250); }
.footer-brand .brand-name { color: var(--c-bg); }
.footer-brand .brand-sub { color: oklch(0.78 0.04 245); }

.footer-tagline {
  margin-top: 20px;
  max-width: 320px;
  color: oklch(0.85 0.025 245);
  font-size: 14px;
  line-height: 1.7;
}

.footer-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-list a, .footer-list li {
  font-size: 14px;
  color: oklch(0.85 0.025 245);
  transition: color 0.2s ease;
}
.footer-list a:hover { color: var(--c-accent); }

.footer-list .ico {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-list .ico svg { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; color: var(--c-accent); }

.newsletter {
  display: flex;
  margin-top: 16px;
  border-radius: var(--r-pill);
  overflow: hidden;
  background: oklch(0.32 0.08 250);
}
.newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--c-bg);
  outline: none;
}
.newsletter input::placeholder { color: oklch(0.7 0.04 245); }
.newsletter button {
  background: var(--c-accent);
  color: var(--c-primary-dark);
  padding: 0 22px;
  font-weight: 700;
  font-size: 13px;
}
.newsletter button:hover { background: var(--c-accent-dark); color: white; }

.socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid oklch(0.45 0.08 250);
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.socials a:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-primary-dark); }
.socials svg { width: 14px; height: 14px; }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: oklch(0.78 0.04 245);
}

.rupha-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid oklch(0.45 0.08 250);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rupha-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding-top: 56px; }
}

/* ============ WHATSAPP FAB ============ */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab:hover { transform: scale(1.1); box-shadow: 0 10px 28px rgba(37,211,102,0.55); }
.wa-fab::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.5;
  animation: wa-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ============ FEEDBACK TAB ============ */
.feedback-tab {
  position: fixed;
  right: -38px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  z-index: 900;
  background: var(--c-primary);
  color: white;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  box-shadow: -2px 0 12px oklch(0.48 0.13 245 / 0.25);
  transition: right 0.25s ease, background 0.2s ease;
  white-space: nowrap;
}
.feedback-tab:hover { right: -30px; background: var(--c-primary-dark); }

/* ============ FADE-IN ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ PLACEHOLDER IMAGE ============ */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      oklch(0.94 0.03 245) 0,
      oklch(0.94 0.03 245) 8px,
      oklch(0.97 0.018 245) 8px,
      oklch(0.97 0.018 245) 16px);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--c-primary-dark);
}
.ph-label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--c-bg);
  padding: 6px 12px;
  border: 1px solid var(--c-primary-tint);
  border-radius: 4px;
}
