/* ============================================================
   MEDAFLORA WEBSITE — Design System & Styles
   Light Clinical Theme | Forest Green + Gold
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --green-900: #012E23;
  --green-800: #1B4235;
  --green-600: #3D7A5A;
  --green-500: #4A9670;
  --green-300: #85B89E;
  --green-200: #A8CBB8;
  --green-100: #D5EAE0;
  --green-50:  #F0F8F4;

  --gold:      #D89B3D;
  --gold-light:#F0C872;
  --gold-bg:   #FDF6E9;

  --grey-900:  #0F1923;
  --grey-700:  #374151;
  --grey-500:  #6B7280;
  --grey-300:  #D1D5DB;
  --grey-100:  #F3F4F6;
  --white:     #FFFFFF;

  --text-primary:   #1B4235;
  --text-secondary: #3D7A5A;
  --text-body:      #374151;
  --text-muted:     #6B7280;

  --border:         rgba(27,66,53,0.12);
  --border-strong:  rgba(27,66,53,0.25);

  --shadow-sm:  0 1px 3px rgba(27,66,53,0.08);
  --shadow-md:  0 4px 16px rgba(27,66,53,0.12);
  --shadow-lg:  0 8px 32px rgba(27,66,53,0.16);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
}

body.offcanvas-open { padding-right: 0 !important; }

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

/* ---- Navbar ---- */
.navbar-custom {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  padding: 1rem 0;
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-custom.scrolled {
  padding: 0.65rem 0;
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-800);
  letter-spacing: -0.02em;
}

.navbar-brand-text span { color: var(--gold); }

.navbar-brand-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--green-500);
  text-transform: uppercase;
  display: block;
  line-height: 1;
  margin-top: 1px;
}

.nav-link-custom {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body) !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-link-custom:hover,
.nav-link-custom.active-page {
  color: var(--green-800) !important;
  background: var(--green-50);
}

.nav-link-custom.active-page { font-weight: 600; }

/* ---- Buttons ---- */
.btn-primary-mf {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--green-800);
  color: var(--white) !important;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-primary-mf:hover {
  background: var(--green-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--white) !important;
}

.btn-gold-mf {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--gold);
  color: var(--white) !important;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-gold-mf:hover {
  background: #c08930;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--white) !important;
}

.btn-outline-mf {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: var(--green-800) !important;
  padding: 0.62rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--green-800);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-outline-mf:hover {
  background: var(--green-800);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* ---- Navbar Toggler ---- */
.navbar-toggler {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.3rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-800);
}

.navbar-toggler:focus { box-shadow: none !important; }

/* ---- Mobile Drawer ---- */
.mobile-drawer {
  --bs-offcanvas-bg: #F0F8F4;
  --bs-offcanvas-border-color: rgba(27,66,53,0.15);
  --bs-offcanvas-color: #1B4235;
  background: #F0F8F4 !important;
  border-right: 1px solid rgba(27,66,53,0.15) !important;
  width: 280px !important;
  color: #1B4235;
}

.mobile-drawer .offcanvas-body { padding: 1.5rem; }

.mobile-drawer .nav-link-custom {
  display: block;
  font-size: 1rem;
  padding: 0.7rem 0.25rem !important;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary) !important;
  font-weight: 500;
  background: none !important;
}

.mobile-drawer .nav-link-custom:last-of-type { border-bottom: none; }

.mobile-drawer .nav-link-custom.active-page {
  color: var(--green-600) !important;
  font-weight: 600;
}

/* ---- Sections ---- */
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 56px 0; }

.section-light { background: var(--white); }
.section-tint  { background: var(--green-50); }
.section-gold  { background: var(--gold-bg); }
.section-dark  {
  background: var(--green-900);
  color: var(--white);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--white); }
.section-dark .section-label { color: var(--green-300); }
.section-dark .section-subtitle { color: var(--green-200); }

/* ---- Hero ---- */
.hero-section {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 60%, var(--green-600) 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(216,155,61,0.15);
  border: 1px solid rgba(216,155,61,0.35);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-title .gold-word { color: var(--gold-light); }

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--green-200);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero inner pages (lighter) */
.hero-inner {
  background: var(--green-50);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-inner .hero-badge {
  background: rgba(27,66,53,0.08);
  border-color: var(--border-strong);
  color: var(--green-600);
}

.hero-inner .hero-title { color: var(--text-primary); }

.hero-inner .hero-subtitle { color: var(--text-muted); }

/* ---- Cards ---- */
.card-mf {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.card-mf:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--green-300);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.card-icon-green  { background: var(--green-100); color: var(--green-800); }
.card-icon-gold   { background: var(--gold-bg);   color: var(--gold);      }
.card-icon-teal   { background: #E0F2F1;           color: #00695C;          }
.card-icon-purple { background: #EDE7F6;           color: #5E35B1;          }

.card-mf h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card-mf p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* Audience card */
.audience-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.audience-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.audience-card-header {
  padding: 2rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.audience-card-body { padding: 1.75rem 2rem; }

.audience-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.pill-green  { background: var(--green-100); color: var(--green-800); }
.pill-gold   { background: var(--gold-bg);   color: #8B6000;          }
.pill-teal   { background: #E0F2F1;           color: #00695C;          }
.pill-purple { background: #EDE7F6;           color: #5E35B1;          }

.audience-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.audience-card .lead-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.92rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--grey-100);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li i { color: var(--green-500); font-size: 1rem; margin-top: 0.1rem; flex-shrink: 0; }

/* ---- Chain / Process Steps ---- */
.chain-section { background: var(--white); }

.chain-step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.chain-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-50);
  border: 2px solid var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  color: var(--green-800);
  transition: background 0.2s, border-color 0.2s;
}

.chain-step:hover .chain-icon {
  background: var(--green-100);
  border-color: var(--green-500);
}

.chain-arrow {
  font-size: 1.5rem;
  color: var(--green-300);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1.5rem;
}

.chain-step h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.chain-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Compliance Block ---- */
.compliance-block {
  background: var(--green-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
}

.compliance-block .compliance-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--green-800);
  margin-bottom: 1rem;
}

.compliance-block h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.compliance-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ---- Stats Bar ---- */
.stats-bar { background: var(--green-800); padding: 48px 0; }

.stat-item { text-align: center; padding: 0.5rem 1rem; }

.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-number span { color: var(--gold-light); }

.stat-label {
  font-size: 0.85rem;
  color: var(--green-200);
  font-weight: 400;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  align-self: center;
}

/* ---- Process Steps (numbered) ---- */
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-100);
  border: 2px solid var(--green-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-800);
  flex-shrink: 0;
}

.step-connector {
  width: 2px;
  flex: 1;
  min-height: 24px;
  background: var(--green-200);
  margin: 4px 0 4px 19px;
}

/* ---- Onboarding Form ---- */
.form-section {
  background: var(--green-50);
  border-radius: var(--radius-xl);
  padding: 3rem;
  border: 1px solid var(--border);
}

.form-label-mf {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.form-control-mf {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-body);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control-mf:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(74,150,112,0.15);
}

.form-control-mf::placeholder { color: var(--text-muted); }

select.form-control-mf { appearance: none; cursor: pointer; }

.form-result {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.75rem;
  display: none;
}

.form-result.success {
  background: rgba(74,150,112,0.12);
  border: 1px solid rgba(74,150,112,0.3);
  color: var(--green-800);
  display: block;
}

.form-result.error {
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.2);
  color: #991B1B;
  display: block;
}

/* ---- FAQ ---- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--green-50); }

.faq-question .faq-icon {
  font-size: 1.1rem;
  color: var(--green-500);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-question.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer.open { max-height: 600px; }

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
}

/* ---- Testimonial / Quote ---- */
.quote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--green-200);
  font-family: Georgia, serif;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.quote-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
  margin: 1.5rem 0 1rem;
  font-style: italic;
}

.quote-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.quote-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Divider ---- */
.divider-mf {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---- Pill Tags ---- */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  background: var(--green-100);
  color: var(--green-800);
}

/* ---- Legal links ---- */
.legal-link {
  font-size: 0.82rem;
  color: var(--green-300);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-link:hover { color: var(--white); }

/* ---- Footer ---- */
.footer-mf {
  background: var(--green-900);
  color: var(--green-200);
  padding: 56px 0 32px;
}

.footer-brand-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer-brand-text span { color: var(--gold); }

.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-300);
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 1rem;
}

.footer-link {
  display: block;
  font-size: 0.88rem;
  color: var(--green-200);
  padding: 0.2rem 0;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--green-300);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-200);
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--green-600);
  color: var(--white);
}

/* ---- Scroll Reveal ---- */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal         { transform: translateY(28px); }
.reveal-left    { transform: translateX(-28px); }
.reveal-right   { transform: translateX(28px); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* ---- Utility ---- */
.gap-8px { gap: 8px; }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .section-pad   { padding: 60px 0; }
  .section-pad-sm{ padding: 40px 0; }
  .hero-section  { padding: 72px 0 60px; }
  .form-section  { padding: 2rem 1.5rem; }
  .compliance-block { padding: 1.5rem; }
  .stat-divider  { display: none; }
}

@media (max-width: 767.98px) {
  .section-pad   { padding: 48px 0; }
  .audience-card-header,
  .audience-card-body { padding: 1.5rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .chain-arrow { display: none; }
  .d-none-mobile { display: none !important; }
}
