/* ============================================================
   FLC — Follow Up For Clinics
   Shared stylesheet — dark theme, animation, 3D scroll effects
   ============================================================ */

:root {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --bg-panel: #0d0d0d;
  --border: #1e1e1e;
  --orange: #FF7A1A;
  --orange-light: #FF9142;
  --orange-hover: #ffab5e;
  --text: #f2f2f2;
  --text-dim: #bbbbbb;
  --text-dimmer: #999999;
  --text-faint: #666666;
  --radius: 14px;
  --max-width: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.15; }
p { margin: 0; }

.eyebrow {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}

.section {
  padding: 100px 0;
  position: relative;
}
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-black { background: #050505; border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a; }

.text-center { text-align: center; }
.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-head p.lead { color: var(--text-dimmer); font-size: 15px; margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), #ff5f1a);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(255, 122, 26, 0.6);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -8px rgba(255, 122, 26, 0.75); }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.06); transform: translateY(-3px); }

/* Shimmer sweep — used on the header "Book a Free Demo" button */
.btn-shimmer { position: relative; overflow: hidden; }
.btn-shimmer::after {
  content: '';
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  animation: shimmersweep 3.2s ease-in-out infinite;
}
@keyframes shimmersweep {
  0% { left: -60%; }
  45% { left: 130%; }
  100% { left: 130%; }
}

/* ---------- Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled { background: rgba(0,0,0,0.85); padding: 12px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-size: 33px; font-weight: 800; letter-spacing: 0.5px;
  background: linear-gradient(90deg, #fff, var(--orange-light), #fff, var(--orange), #fff);
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brandglow 5s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 122, 26, 0.35));
}
.brand span { color: var(--orange); -webkit-text-fill-color: var(--orange); }
@keyframes brandglow {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text-dim); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: #fff; }
.nav-links .has-dropdown {
  position: relative;
  /* extend the hoverable hit-box down to meet the dropdown, closing the dead gap */
  padding-bottom: 26px; margin-bottom: -26px;
}
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-8px);
  margin-top: 22px;
  background: #0d0d0d; border: 1px solid #222; border-radius: 12px;
  padding: 10px; min-width: 240px; opacity: 0; visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.35s;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.6);
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0s;
}
.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; }
.dropdown a:hover { background: rgba(255,122,26,0.1); color: var(--orange-light); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 22px; font-size: 13.5px; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: #000; flex-direction: column; justify-content: flex-start; padding: 40px 24px; gap: 22px; transform: translateX(100%); transition: transform 0.35s var(--ease); }
  .nav-links.open { transform: translateX(0); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; margin-top: 8px; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  padding-top: 130px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}
@media (max-width: 600px) { .hero { padding-top: 150px; } }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.1);
  will-change: transform;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 60%, #000 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 800px; padding: 0 24px 64px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); color: #fff; margin-bottom: 22px; }
.hero .lead { color: #ccc; font-size: 18px; max-width: 620px; margin: 0 auto 34px; }
.hero-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.hero .phone-line { color: var(--text-dimmer); font-size: 13px; }
.hero .phone-line strong { color: var(--orange-light); }
.scroll-cue {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 32px; border: 2px solid rgba(255,255,255,0.3); border-radius: 12px;
  z-index: 1;
}
.scroll-cue::before {
  content: ''; position: absolute; top: 5px; left: 50%; width: 3px; height: 7px;
  background: var(--orange); border-radius: 2px; transform: translateX(-50%);
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue { 0% { opacity: 1; top: 5px; } 70% { opacity: 0; top: 17px; } 100% { opacity: 0; top: 5px; } }
@media (max-height: 760px) { .scroll-cue { display: none; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-scale.in { opacity: 1; transform: scale(1); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-right.in { opacity: 1; transform: translateX(0); }
.stagger > * { transition-delay: calc(var(--i, 0) * 0.09s); }

/* ---------- 3D tilt cards ---------- */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.tilt-card:hover { box-shadow: 0 24px 48px -16px rgba(255, 122, 26, 0.25); }

/* ---------- Stat rings ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.stat-item { text-align: center; }
.stat-item .ring-wrap { position: relative; width: 130px; height: 130px; margin: 0 auto 16px; }
.stat-item .ring-wrap::before {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(255,122,26,0.5);
  animation: ringpulse 2.6s ease-out infinite;
}
@keyframes ringpulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.25); opacity: 0; }
}
.stat-item img { width: 130px; height: 130px; border-radius: 50%; border: 3px solid rgba(255,122,26,0.35); animation: floaty 5s ease-in-out infinite; }
.stat-item:nth-child(2) img { animation-delay: 0.5s; }
.stat-item:nth-child(3) img { animation-delay: 1s; }
.stat-item p { color: var(--text-dim); font-size: 13.5px; }
@media (max-width: 720px) { .stat-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Clinic type cards ---------- */
.clinic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.clinic-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid #1c1c1c; background: var(--bg-panel);
  box-shadow: 0 20px 44px -22px rgba(0,0,0,0.7);
}
.clinic-card img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.6s var(--ease); border-radius: var(--radius) var(--radius) 0 0; }
.clinic-card:hover img { transform: scale(1.08); }
.clinic-card .clinic-body { padding: 24px 22px 28px; }
.clinic-card h3 { font-size: 17px; color: #fff; margin-bottom: 8px; }
.clinic-card p { color: var(--text-dimmer); font-size: 13px; }
.clinic-card:hover { box-shadow: 0 20px 44px -18px rgba(255,122,26,0.4); border-color: rgba(255,122,26,0.4); }
.clinic-card { animation: cardglow 7s ease-in-out infinite; }
.clinic-card:nth-child(2) { animation-delay: 1.2s; }
.clinic-card:nth-child(3) { animation-delay: 2.4s; }
@keyframes cardglow {
  0%, 100% { box-shadow: 0 20px 44px -22px rgba(0,0,0,0.7); }
  50% { box-shadow: 0 20px 44px -18px rgba(255,122,26,0.28); }
}
@media (max-width: 860px) { .clinic-grid { grid-template-columns: 1fr; } }

/* ---------- Problem rows ---------- */
.problem-row { display: grid; grid-template-columns: 38% 62%; gap: 50px; align-items: center; margin-top: 60px; }
.problem-row.reverse { grid-template-columns: 62% 38%; }
.problem-row.reverse .problem-copy { order: -1; }
.problem-row img { border-radius: 18px; width: 100%; box-shadow: 0 24px 50px -22px rgba(0,0,0,0.75); border: 1px solid #1c1c1c; }
.problem-copy h3 { font-size: 19px; color: #fff; margin-bottom: 10px; }
.problem-copy p { color: var(--text-dimmer); font-size: 13.5px; }
@media (max-width: 780px) {
  .problem-row, .problem-row.reverse { grid-template-columns: 1fr; }
  .problem-row.reverse .problem-copy { order: 0; }
}

/* ---------- Channel cards ---------- */
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.channel-card {
  text-align: center; background: var(--bg-panel); border: 1px solid #1a1a1a;
  border-radius: var(--radius); padding: 34px 26px 30px;
  box-shadow: 0 20px 44px -24px rgba(0,0,0,0.7);
}
.channel-card img { width: 190px; margin: 0 auto 20px; border-radius: 16px; box-shadow: 0 16px 30px -14px rgba(0,0,0,0.6); animation: floaty 5.5s ease-in-out infinite; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.channel-card:nth-child(2) img { animation-delay: 0.6s; }
.channel-card:nth-child(3) img { animation-delay: 1.2s; }
.channel-card:hover img { transform: scale(1.06); box-shadow: 0 20px 40px -12px rgba(255,122,26,0.4); }
.channel-card .ch-tag { color: var(--orange-light); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; display: block; }
.channel-card h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.channel-card p { color: var(--text-dimmer); font-size: 13.5px; margin-bottom: 14px; }
.channel-card a.explore { color: var(--orange); font-weight: 700; font-size: 13px; }
@media (max-width: 860px) { .channel-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
.testimonial-card { background: var(--bg-panel); border-radius: var(--radius); padding: 28px 24px; }
.testimonial-card p.quote { color: #ccc; font-size: 13.5px; font-style: italic; margin-bottom: 20px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-person img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testimonial-person .name { color: #fff; font-weight: 700; font-size: 12px; }
.testimonial-person .role { color: #888; font-size: 12px; }
.testimonial-note { text-align: center; color: var(--text-faint); font-size: 11px; margin-top: 30px; }
@media (max-width: 980px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ---------- Feature grid (service pages) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.feature-card { background: var(--bg-panel); border: 1px solid #1a1a1a; border-radius: var(--radius); padding: 30px 26px; }
.feature-card .icon { font-size: 26px; margin-bottom: 16px; }
.feature-card h3 { color: #fff; font-size: 17px; margin-bottom: 10px; }
.feature-card p { color: var(--text-dimmer); font-size: 13.5px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta-section { background: #0d0500; border-top: 1px solid #1a1a1a; text-align: center; }
.cta-section h2 { font-size: clamp(26px, 4vw, 34px); color: #fff; margin-bottom: 16px; }
.cta-section p { color: #aaa; font-size: 15px; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: #000; border-top: 1px solid #1a1a1a; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-brand p { color: var(--text-dimmer); font-size: 13.5px; margin-top: 14px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-dimmer); font-size: 13.5px; margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange-light); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { color: var(--text-faint); font-size: 12.5px; margin-bottom: 10px; }
.footer-connect {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  border-top: 1px solid #1a1a1a; padding: 28px 0; margin-bottom: 6px;
}
.footer-connect .contact-details { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-dim); }
.footer-connect .contact-details a:hover { color: var(--orange-light); }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.social-icons a svg { width: 17px; height: 17px; fill: var(--text-dim); transition: fill 0.25s; }
.social-icons a:hover { border-color: var(--orange); background: rgba(255,122,26,0.1); transform: translateY(-3px); }
.social-icons a:hover svg { fill: var(--orange-light); }
.social-icons a.linkedin-badge {
  background: #0A66C2; border-radius: 8px; border: none;
}
.social-icons a.linkedin-badge svg { fill: #fff; width: 20px; height: 20px; }
.social-icons a.linkedin-badge:hover { background: #0d7ae0; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid #1a1a1a; padding-top: 24px; text-align: center; color: var(--text-faint); font-size: 12.5px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (service pages) ---------- */
.page-hero { padding: 170px 0 90px; text-align: center; background: linear-gradient(180deg, #0a0a0a, #000); }
.page-hero h1 { font-size: clamp(28px, 5vw, 44px); color: #fff; margin-bottom: 18px; }
.page-hero p.lead { color: var(--text-dimmer); font-size: 16px; max-width: 620px; margin: 0 auto 30px; }

/* ---------- Compliance badges ---------- */
.compliance-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.compliance-badges span { border: 1px solid #2a2a2a; border-radius: 30px; padding: 8px 18px; font-size: 12px; color: var(--text-dim); }

/* ---------- Parallax float ---------- */
.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 50px auto 0; }
.faq-item {
  background: var(--bg-panel); border: 1px solid #1a1a1a; border-radius: var(--radius);
  padding: 6px 24px; margin-bottom: 14px;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative;
  color: #fff; font-weight: 700; font-size: 15px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 16px; font-size: 20px; color: var(--orange);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-dimmer); font-size: 13.5px; padding-bottom: 20px; line-height: 1.7; }

/* ---------- Trust bar ---------- */
.trust-bar { color: var(--text-faint); font-size: 12.5px; letter-spacing: 0.3px; }
.trust-bar strong { color: var(--orange-light); }

/* ---------- Utility ---------- */
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
