/* ============================================================
   CYL BASE STYLES — Shared across all pages
   Version: 2.0 | Hono + Cloudflare Pages Architecture
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --bg:            #06070a;
  --bg-2:          #0a0b10;
  --panel:         rgba(255,255,255,0.045);
  --panel-2:       rgba(255,255,255,0.03);
  --text:          rgba(255,255,255,0.96);
  --text-soft:     rgba(255,255,255,0.76);
  --text-muted:    rgba(255,255,255,0.52);
  --line:          rgba(255,255,255,0.11);
  --line-strong:   rgba(255,255,255,0.18);
  --glass:         rgba(255,255,255,0.05);
  --glass-2:       rgba(255,255,255,0.035);
  --black-glass:   rgba(0,0,0,0.24);
  --shadow:        0 20px 70px rgba(0,0,0,0.32);
  --radius-xl:     34px;
  --radius-lg:     24px;
  --radius-md:     18px;
  --radius-pill:   999px;
  --max:           1320px;
  --gold:          #d6b36a;
  --gold-soft:     rgba(214,179,106,0.18);
  --gold-line:     rgba(214,179,106,0.38);
  --gold-glow:     rgba(214,179,106,0.22);
  --transition:    0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', 'Noto Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(110,120,255,0.18), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.09), transparent 20%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
h1,h2,h3,h4,h5,h6 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ── Layout ── */
.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

/* ── Typography ── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.62);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.sparkle {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(255,255,255,0.2));
  box-shadow: 0 0 18px rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.eyebrow, .kicker {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current,
.breadcrumb [aria-current="page"] { color: var(--gold); pointer-events: none; }
.breadcrumb a { transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb a + a::before { content: "/"; opacity: 0.5; margin-right: 8px; }

/* ── Buttons ── */
.btn,
.primary-btn,
.secondary-btn,
.ghost-btn,
.cta-btn,
.top-cta,
.footer-cta,
.more-btn,
.card-btn,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 0;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.primary-btn,
.cta-btn,
.top-cta,
.footer-cta.primary,
.more-btn {
  background: linear-gradient(135deg, #f5e2a9, var(--gold));
  color: #111;
  box-shadow: 0 14px 38px var(--gold-glow);
}
.primary-btn:hover, .cta-btn:hover, .top-cta:hover,
.footer-cta.primary:hover, .more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(214,179,106,0.32);
}

.secondary-btn,
.ghost-btn,
.footer-cta.secondary,
.footer-cta.ghost,
.btn {
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--line-strong);
  color: rgba(255,255,255,0.92);
}
.secondary-btn:hover, .ghost-btn:hover,
.footer-cta.secondary:hover, .footer-cta.ghost:hover,
.btn:hover {
  border-color: var(--gold-line);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--gold-glow);
}

.btn.primary-sm {
  background: rgba(214,179,106,0.12);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size: 12px;
  min-height: 38px;
  padding: 0 14px;
}

/* ── Cards ── */
.panel, .section-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  padding: 30px;
}

.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 18px 50px rgba(0,0,0,0.16);
  transition: transform var(--transition), background var(--transition),
              border-color var(--transition), box-shadow var(--transition);
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(214,179,106,0.22), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(110,120,255,0.18), transparent 30%);
  transition: opacity var(--transition);
}
.glass-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 24px 65px rgba(0,0,0,0.24), 0 0 0 1px rgba(214,179,106,0.08);
}
.glass-card:hover::before { opacity: 1; }

/* ── Navigation Chips / SubNav ── */
.subnav-wrap, .category-tabs, .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subnav-chip, .category-tab, .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.74);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}
.subnav-chip.active, .subnav-chip:hover,
.category-tab.active, .category-tab:hover,
.chip.active, .chip:hover {
  border-color: var(--gold-line);
  color: var(--gold);
  background: rgba(214,179,106,0.08);
}

/* ── Arrow ── */
.arrow { font-size: 18px; transition: transform var(--transition); }
.glass-card:hover .arrow { transform: translateX(4px); }

/* ── Animations ── */
@keyframes appleReveal {
  0%   { opacity:0; transform:translateY(34px) scale(0.985); filter:blur(10px); }
  60%  { opacity:1; transform:translateY(0) scale(1); filter:blur(0); }
  100% { opacity:1; transform:translateY(0) scale(1); filter:blur(0); }
}
@keyframes pulsePoint {
  0%,100% { transform:scale(1); box-shadow: 0 0 0 6px rgba(214,179,106,0.12), 0 0 22px rgba(214,179,106,0.35); }
  50%      { transform:scale(1.15); box-shadow: 0 0 0 10px rgba(214,179,106,0.08), 0 0 28px rgba(214,179,106,0.5); }
}
@keyframes dashFlow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -120; }
}
@keyframes menuIn {
  to { opacity:1; transform:translateX(0); }
}
@keyframes cinematicZoom {
  0%   { transform: scale(1.08) translate3d(0,0,0); }
  50%  { transform: scale(1.16) translate3d(0,-8px,0); }
  100% { transform: scale(1.08) translate3d(0,0,0); }
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  filter: blur(10px);
  animation: appleReveal 1.15s cubic-bezier(.16,1,.3,1) forwards;
}
.delay-1 { animation-delay: .16s; }
.delay-2 { animation-delay: .34s; }
.delay-3 { animation-delay: .52s; }

/* ── Section Layout ── */
.section {
  position: relative;
  z-index: 5;
  padding: 80px 0 36px;
}
.section:last-of-type { padding-bottom: 120px; }

.section-head {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head h2,
.section-shell h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 620;
}
.section-head p,
.section-shell p {
  color: rgba(255,255,255,0.62);
  line-height: 1.9;
  font-size: 15px;
}

.section-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.035);
  padding: 34px;
}

/* ── Footer ── */
.site-footer { padding: 36px 0 42px; }
.footer-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 22px 70px rgba(0,0,0,0.28);
  padding: 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-kicker {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-brand h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.footer-brand p {
  color: rgba(255,255,255,0.72);
  line-height: 1.9;
  font-size: 15px;
  max-width: 760px;
}
.footer-cta-group { display: grid; gap: 12px; }
.footer-cta {
  min-height: 54px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition), color var(--transition), background var(--transition);
}
.footer-cta:hover { transform: translateY(-2px); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 22px;
  padding: 26px 0 18px;
}
.footer-col h3 {
  margin: 0 0 14px;
  color: rgba(255,255,255,0.94);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.footer-col a, .footer-col span {
  display: block;
  color: rgba(255,255,255,0.66);
  font-size: 14px;
  line-height: 1.95;
  transition: color var(--transition), transform var(--transition);
}
.footer-col a:hover { color: var(--gold); transform: translateX(2px); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.footer-legal a { color: rgba(255,255,255,0.6); font-size: 13px; }
.footer-legal a:hover { color: var(--gold); }
.footer-copy { color: rgba(255,255,255,0.5); font-size: 13px; }

/* ── Inner Page — Hero Shell (shared across all inner pages) ── */
.hero-shell {
  padding: 36px 0 20px;
  position: relative;
}
.hero-shell::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(214,179,106,.08), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(110,120,255,.12), transparent 26%);
}

/* ── Inner Page — Typography ── */
.page-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.62);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.page-title {
  margin: 0 0 18px;
  font-size: clamp(36px,5vw,80px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 650;
}
.page-subtitle {
  font-size: clamp(16px,1.3vw,20px);
  color: rgba(255,255,255,.76);
  line-height: 1.65;
  max-width: 860px;
  margin-bottom: 24px;
}

/* ── Inner Page — Content Grid ── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  backdrop-filter: blur(16px);
  padding: 28px;
}
.content-card h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
.content-card p  { margin: 0; color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.9; }
.content-card .kicker { margin-bottom: 10px; }

/* ── Inner Page — Value / Guide Lists ── */
.value-list  { display: grid; gap: 16px; margin-top: 24px; }
.guide-steps { display: grid; gap: 16px; margin-top: 24px; }

.value-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px;
  border: 1px solid var(--line); border-radius: 22px;
  background: rgba(255,255,255,.03);
}
.value-num {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold-line); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; letter-spacing: .04em; flex-shrink: 0;
}
.value-text h4 { margin: 0 0 6px; font-size: 17px; color: #fff; }
.value-text p  { margin: 0; font-size: 14px; color: rgba(255,255,255,.62); line-height: 1.8; }

.guide-step {
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  padding: 24px;
  border: 1px solid var(--line); border-radius: 24px;
  background: rgba(255,255,255,.03);
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(214,179,106,.12); border: 1px solid var(--gold-line);
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.step-content h4 { margin: 0 0 8px; font-size: 18px; }
.step-content p  { margin: 0; font-size: 14px; color: rgba(255,255,255,.62); line-height: 1.8; }

/* ── Inner Page — Team Cards ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px; margin-top: 28px;
}
.team-card {
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: var(--panel); backdrop-filter: blur(16px); overflow: hidden;
}
.team-avatar {
  height: 200px;
  background:
    linear-gradient(135deg, rgba(214,179,106,.15), rgba(255,255,255,.02)),
    radial-gradient(circle at 50% 50%, rgba(214,179,106,.12), transparent 50%),
    linear-gradient(180deg, #151922, #0b0d12);
  display: flex; align-items: center; justify-content: center;
}
.team-avatar-initial { font-size: 52px; font-weight: 700; color: var(--gold); letter-spacing: -.02em; }
.team-body { padding: 22px; }
.team-body h3   { margin: 0 0 4px; font-size: 20px; letter-spacing: -.02em; }
.team-body .role {
  color: var(--gold); font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 10px;
}
.team-body p { margin: 0; font-size: 14px; color: rgba(255,255,255,.62); line-height: 1.8; }

/* ── Inner Page — News ── */
.news-grid { display: grid; gap: 16px; margin-top: 20px; }
.news-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px; border: 1px solid var(--line); border-radius: 22px;
  background: rgba(255,255,255,.03);
  transition: all var(--transition);
}
.news-item:hover {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.18);
  transform: translateX(4px);
}
.news-thumb {
  width: 80px; height: 80px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(214,179,106,.15), rgba(110,120,255,.15), #151922);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--gold);
}
.news-body { flex: 1; }
.news-body .tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(214,179,106,.1); border: 1px solid var(--gold-line);
  color: var(--gold); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 8px;
}
.news-body h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; letter-spacing: -.02em; }
.news-body p  { margin: 0; font-size: 14px; color: rgba(255,255,255,.62); line-height: 1.7; }
.news-body .date { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.42); }

/* ── Inner Page — Global Network Countries ── */
.network-countries-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px; margin-top: 24px;
}
.country-card {
  border: 1px solid var(--line); border-radius: 22px;
  background: var(--panel); backdrop-filter: blur(16px); padding: 24px;
  transition: all var(--transition);
}
.country-card:hover {
  border-color: var(--gold-line);
  background: rgba(214,179,106,.06);
  transform: translateY(-4px);
}
.country-flag { font-size: 36px; margin-bottom: 12px; }
.country-card h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.country-card p  { margin: 0 0 14px; font-size: 14px; color: rgba(255,255,255,.62); line-height: 1.8; }
.country-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.country-tag {
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 12px; color: rgba(255,255,255,.62);
}

/* ── Inner Page — Clinic Section Overrides ── */
.section-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  backdrop-filter: blur(16px);
  padding: 28px;
}
.section-panel .section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 18px; margin-bottom: 20px;
}
.section-panel .section-head h2 {
  margin: 0; font-size: clamp(24px,2.8vw,40px); letter-spacing: -.04em;
}
.section-panel .section-head p {
  margin: 0; color: rgba(255,255,255,.52); font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 1180px) {
  .footer-top, .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .content-grid, .team-grid, .network-countries-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
  .panel, .section-panel, .section-shell { padding: 22px; }
  .footer-shell { width: min(calc(100% - 24px), var(--max)); padding: 22px; }
  .footer-top, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .section { padding-top: 60px; }
  .content-grid, .team-grid, .network-countries-grid { grid-template-columns: 1fr; }
  .page-title { font-size: clamp(32px, 9vw, 64px); }
}
