/* ── Flojas shared styles ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

/* Prevent horizontal overflow on every viewport */
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

/* Global image safety — never overflow their container */
img { max-width: 100%; height: auto; display: block; }

/* Selection */
::selection { background: rgba(0,229,255,0.18); color: #fff; }

/* Scrollbar — webkit */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #020814; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,229,255,0.45); }
/* Scrollbar — Firefox */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) #020814; }

/* Keyboard focus — visible outline for accessibility */
:focus-visible { outline: 2px solid rgba(0,229,255,0.55); outline-offset: 3px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

body {
  background-color: #020814;
  color: #e0e0e0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: #00e5ff; text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { text-decoration: underline; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(2, 8, 20, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
  gap: 16px;
}
.nav-brand { display: flex; flex-direction: row; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo { border-radius: 9px; display: block; flex-shrink: 0; }
.nav-brand-tag { font-size: 10px; color: #00e5ff; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 20px; min-width: 0; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: #777; font-size: 14px; font-weight: 500; transition: color 0.2s;
  position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: #00e5ff; border-radius: 1px;
  transition: width 0.25s ease;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: #00e5ff; }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center;
  background: #00e5ff; color: #020814;
  padding: 8px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  transition: box-shadow 0.15s, transform 0.15s;
  white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover { box-shadow: 0 4px 16px rgba(0,229,255,0.35); transform: translateY(-1px); text-decoration: none; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
  flex-shrink: 0; touch-action: manipulation;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #999; border-radius: 2px; transition: all 0.25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #fff; }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #fff; }
.nav-mobile {
  display: none; flex-direction: column;
  background: rgba(2,8,20,0.98); border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 24px 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { color: #999; font-size: 15px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); transition: color 0.2s; }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover, .nav-mobile a.active { color: #00e5ff; text-decoration: none; }
.nav-cta-mobile {
  display: block; margin-top: 12px; text-align: center;
  background: #00e5ff; color: #020814;
  padding: 12px; border-radius: 10px; font-weight: 700; font-size: 15px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600; font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer; border: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: scale(0.97) translateY(0); transition-duration: 0.08s; }
.btn-primary {
  background: linear-gradient(135deg, #00e5ff 0%, #00c0d8 100%);
  color: #020814;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #18ecff 0%, #00d4f0 100%);
  box-shadow: 0 4px 24px rgba(0,229,255,0.4);
}
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: rgba(255,255,255,0.4); }
.btn-sm { padding: 10px 20px; font-size: 13px; border-radius: 8px; }
.btn-icon { font-size: 20px; line-height: 1; }

/* ── Content wrap (inner pages) ── */
.wrap { max-width: 740px; margin: 0 auto; padding: 40px 24px 80px; }

/* ── Medical Banner ── */
.medical-banner {
  background: rgba(245,158,11,0.06); border-bottom: 1px solid rgba(245,158,11,0.18);
  padding: 10px 20px; text-align: center; font-size: 13px; color: #c8a44a; line-height: 1.5;
}
.medical-banner strong { color: #f59e0b; font-weight: 700; }

/* ── Medical Callout ── */
.medical-callout { max-width: 740px; margin: 0 auto 56px; padding: 0 24px; }
.medical-callout-inner {
  background: rgba(245,158,11,0.04); border: 1px solid rgba(245,158,11,0.15);
  border-left: 4px solid #f59e0b; border-radius: 12px; padding: 24px 28px;
}
.medical-callout-inner h3 { font-size: 12px; font-weight: 700; color: #f59e0b; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 10px; }
.medical-callout-inner p { font-size: 13px; color: #777; line-height: 1.75; margin: 0; }

/* ── Team Photos ── */
.team-photo-ring {
  width: 100px; height: 100px; border-radius: 50%; padding: 3px;
  background: linear-gradient(135deg, #a07420 0%, #f5d675 35%, #e8c84a 65%, #a07420 100%);
  margin: 0 auto 28px; position: relative; flex-shrink: 0;
}
.team-photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.team-seal-badge {
  position: absolute; bottom: -13px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* ── Footer ── */
footer {
  border-top: none; padding: 56px 40px 32px; position: relative;
}
footer::before {
  content: '';
  display: block;
  position: absolute; top: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1) 25%, rgba(0,229,255,0.25) 50%, rgba(255,255,255,0.1) 75%, transparent);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand-name { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.footer-brand-tag { font-size: 10px; color: #00e5ff; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.footer-brand-copy { font-size: 12px; color: #3a3a3a; line-height: 1.8; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col-title { font-size: 11px; font-weight: 700; color: #fff; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: #555; transition: color 0.2s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 12px; color: #333; text-align: center; line-height: 1.8;
}

/* ── Fade-in ── */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  footer { padding: 40px 24px 28px; }
  .wrap { padding: 32px 16px 64px; }
  .medical-callout { padding: 0 16px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand { grid-column: auto; }
}
/* Hide tagline on very small screens to prevent nav overflow */
@media (max-width: 380px) {
  .nav-brand-tag { display: none; }
}
