/* ===================================================
   FITNESS MED CARE CLINIC — styles.css
   Author: Exact Health Solutions
   =================================================== */

/* ---- CSS Variables ---- */
:root {
  --primary: #0d6e4f;
  --primary-light: #1a9468;
  --primary-dark: #094d38;
  --accent: #2bb576;
  --accent-2: #f0a500;
  --bg-light: #f4fbf7;
  --bg-dark: #0a1f16;
  --text-main: #1a2e24;
  --text-muted: #5a7367;
  --white: #ffffff;
  --card-shadow: 0 8px 32px rgba(13, 110, 79, 0.10);
  --card-shadow-hover: 0 16px 48px rgba(13, 110, 79, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.32s cubic-bezier(.4,0,.2,1);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-main);
  background: var(--white);
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
}

em {
  font-style: italic;
  color: var(--primary);
}

img { max-width: 100%; }

/* ---- Smooth scroll offset for sticky nav ---- */
section {
  scroll-margin-top: 72px;
}

/* ========== NAVBAR ========== */
#mainNav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13,110,79,0.08);
  padding: 12px 0;
  transition: var(--transition);
  z-index: 1000;
}

#mainNav.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 24px rgba(13,110,79,0.10);
}

/* Brand */
.brand-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.brand-icon.small { width: 32px; height: 32px; font-size: 0.95rem; border-radius: 8px; }

.brand-text {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  line-height: 1.1;
}
.brand-accent { color: var(--primary); display: block; font-size: 0.85rem; font-weight: 400; }

/* Nav links */
.navbar-nav .nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px !important;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
  background: rgba(13,110,79,0.07);
}
.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 6px 18px !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; color: white !important; }

.toggler-icon { font-size: 1.5rem; color: var(--primary); }
.navbar-toggler { border: none; padding: 4px 8px; }
.navbar-toggler:focus { box-shadow: none; }

/* ========== SHARED SECTION STYLES ========== */
.section-pad { padding: 90px 0; }
.bg-light-green { background: var(--bg-light); }

.section-label {
  display: inline-block;
  background: rgba(13,110,79,0.10);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-label.light {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ========== HERO ========== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(43,181,118,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(13,110,79,0.12) 0%, transparent 60%),
    linear-gradient(155deg, #0a1f16 0%, #0d3322 40%, #0f4a30 70%, #0a2e1c 100%);
}

/* Decorative mesh circles */
.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(43,181,118,0.15);
}
.hero-bg::before {
  width: 600px; height: 600px;
  top: -100px; right: -100px;
}
.hero-bg::after {
  width: 400px; height: 400px;
  bottom: -50px; left: -80px;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(43,181,118,0.12)'/%3E%3C/svg%3E");
}

/* Floating Cards */
.floating-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 5;
  animation: floatUpDown 4s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.4);
}
.floating-card-left {
  left: 5%; top: 50%;
  animation-delay: 0s;
}
.floating-card-right {
  right: 5%; top: 38%;
  animation-delay: 2s;
}
@keyframes floatUpDown {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.fc-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #e8f4fd, #b3d9f7);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #2196f3;
  flex-shrink: 0;
}
.fc-icon.fc-green {
  background: linear-gradient(135deg, #e8fdf0, #b3f0cc);
  color: #0d6e4f;
}
.fc-text {
  display: flex; flex-direction: column;
}
.fc-label { font-size: 0.7rem; color: #888; font-weight: 500; }
.fc-value { font-size: 0.88rem; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 6px; }
.fc-badge {
  font-size: 0.6rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}
.fc-badge.normal { background: #e3f2fd; color: #1565c0; }
.fc-badge.excellent { background: #e8fdf0; color: #0d6e4f; }

/* Hero Content */
.hero-content { position: relative; z-index: 4; padding: 80px 0; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title em {
  color: var(--accent);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Hero Buttons */
.btn-hero-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-hero-primary:hover {
  background: #24a267;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43,181,118,0.35);
}
.btn-hero-secondary {
  background: rgba(255,255,255,0.10);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.18);
  color: white;
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats { gap: 40px !important; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 4px; letter-spacing: 0.04em; }
.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  align-self: center;
}

/* ========== ABOUT ========== */
.about-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid rgba(13,110,79,0.06);
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.about-card.horizontal {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.about-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #e8f4fd, #b3d9f7);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: #2196f3;
  flex-shrink: 0;
  margin-bottom: 14px;
}
.about-icon.green { background: linear-gradient(135deg, #e8fdf0, #b3f0cc); color: var(--primary); }
.about-icon.teal { background: linear-gradient(135deg, #e8f7fd, #b3e8f7); color: #00acc1; margin-bottom: 0; }
.about-card h5 { font-size: 1rem; margin-bottom: 6px; }
.about-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ========== SERVICES ========== */
.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(13,110,79,0.06);
  transition: var(--transition);
  height: 100%;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent);
}
.svc-icon-wrap {
  width: 52px; height: 52px;
  background: var(--ic, #e8fdf0);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--ic2, var(--primary));
  margin-bottom: 16px;
  transition: var(--transition);
}
.service-card:hover .svc-icon-wrap {
  transform: scale(1.1);
}
.service-card h5 { font-size: 1rem; margin-bottom: 6px; }
.service-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.svc-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: var(--transition);
}
.svc-link:hover { gap: 8px; color: var(--primary-light); }

.service-card-cta {
  background: linear-gradient(135deg, var(--bg-light), white);
  border: 2px dashed rgba(13,110,79,0.25);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.cta-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ========== WHY US ========== */
.why-section {
  background: linear-gradient(155deg, #0a1f16 0%, #0d3322 50%, #0a2e1c 100%);
  position: relative;
  overflow: hidden;
}
.why-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(43,181,118,0.12) 0%, transparent 70%);
}

.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  transition: var(--transition);
  height: 100%;
}
.why-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(43,181,118,0.35);
  transform: translateY(-4px);
}
.why-num {
  font-family: 'Fraunces', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.why-icon {
  width: 50px; height: 50px;
  background: rgba(43,181,118,0.15);
  border: 1px solid rgba(43,181,118,0.25);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.why-card h5 { color: white; font-size: 1.05rem; margin-bottom: 10px; }
.why-card p { color: rgba(255,255,255,0.55); font-size: 0.88rem; line-height: 1.65; margin: 0; }
.text-white-60 { color: rgba(255,255,255,0.6) !important; }

/* ========== SUBSCRIBE ========== */
.subscribe-form .form-label-custom {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
  text-align: left;
}

/* ========== FORMS - Shared ========== */
.form-control-custom {
  background: white;
  border: 1.5px solid rgba(13,110,79,0.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,110,79,0.12);
  outline: none;
}
.form-control-custom::placeholder { color: #aab8b0; }
.form-control-custom.is-invalid { border-color: #dc3545; }
textarea.form-control-custom { resize: vertical; min-height: 130px; }

/* Primary button */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,110,79,0.30);
}

/* ========== FAQ ========== */
.faq-accordion { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: white;
  border: 1px solid rgba(13,110,79,0.10) !important;
  border-radius: var(--radius) !important;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13,110,79,0.05);
}

.faq-btn {
  background: white !important;
  color: var(--text-main) !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 18px 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  border: none !important;
  box-shadow: none !important;
}
.faq-btn:focus { box-shadow: none !important; }

/* FAQ +/- icon */
.faq-icon {
  width: 28px; height: 28px;
  background: rgba(13,110,79,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}
.faq-btn:not(.collapsed) .faq-icon {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}

.faq-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding: 4px 20px 20px 60px !important;
}

/* ========== PRIVACY / TERMS ========== */
.policy-block {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid rgba(13,110,79,0.08);
  box-shadow: var(--card-shadow);
}
.policy-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  display: flex; align-items: center;
}
.policy-block h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin: 24px 0 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
}
.policy-block h4:first-of-type { margin-top: 0; }
.policy-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.policy-link { color: var(--primary); font-weight: 500; text-decoration: none; }
.policy-link:hover { text-decoration: underline; }

/* ========== CONTACT ========== */
.contact-info-box {
  background: linear-gradient(155deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  padding: 36px 32px;
  color: white;
  height: 100%;
}
.contact-info-title {
  font-size: 1.25rem;
  font-family: 'Fraunces', serif;
  margin-bottom: 28px;
  color: white;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.ci-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 4px;
}
.contact-info-item p {
  font-size: 0.88rem;
  margin: 0;
  opacity: 0.9;
  line-height: 1.6;
}
.emergency-badge {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.contact-form-box {
  background: white;
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(13,110,79,0.06);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-dark);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 6px;
  transition: var(--transition);
}
.footer-nav a:hover { color: var(--accent); background: rgba(43,181,118,0.08); }
.footer-copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  margin: 0;
}

/* ========== SUCCESS OVERLAY ========== */
.success-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.success-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.success-card {
  background: white;
  border-radius: var(--radius);
  padding: 50px 40px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
.success-overlay.active .success-card {
  transform: scale(1) translateY(0);
}
.success-icon {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 16px;
  animation: popIn 0.5s cubic-bezier(.4,0,.2,1) 0.2s both;
}
@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
.success-card h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.success-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .floating-card { display: none; }
  .hero-content { padding: 60px 0; }
}
@media (max-width: 767px) {
  .section-pad { padding: 60px 0; }
  .policy-block { padding: 24px; }
  .contact-info-box, .contact-form-box { padding: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .stat-divider { display: none; }
  .hero-stats { gap: 24px !important; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }
  .contact-info-title { font-size: 1.1rem; }
}
