/* ========================================
   I693 Clinic - Stylesheet
   Clean medical design - Navy + Teal
   ======================================== */

:root {
  --navy: #0F2940;
  --navy-dark: #081929;
  --navy-light: #1E3A5F;
  --teal: #14B8A6;
  --teal-dark: #0F9488;
  --teal-light: #5EEAD4;
  --bg: #F9FAFB;
  --white: #FFFFFF;
  --text: #1F2937;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --success: #10B981;
  --warning: #F59E0B;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(15, 41, 64, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 41, 64, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--navy); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ========== Typography ========== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--navy); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text); }
.lead { font-size: 1.25rem; color: var(--text-muted); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: all 0.2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-lg { padding: 16px 32px; font-size: 1.0625rem; }

/* ========== Header ========== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
/* Compact top bar: phone left, language dropdown right */
.header-top {
  background: var(--navy); color: var(--white); font-size: 0.8125rem;
  padding: 6px 0;
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header-top a { color: var(--white); }
.header-top a:hover { color: var(--teal-light); }

/* Inline language pills — compact, all 6 visible */
.lang-switcher {
  display: flex; gap: 2px; align-items: center; flex-wrap: wrap;
}
.lang-switcher a {
  padding: 3px 9px; border-radius: 999px;
  font-size: 0.8125rem; line-height: 1.4;
  border: 1px solid transparent; color: var(--white);
  transition: all 0.15s; white-space: nowrap;
}
.lang-switcher a:not(.active):hover {
  background: rgba(255,255,255,0.12); color: var(--teal-light);
}
.lang-switcher a.active {
  background: var(--teal); color: var(--white); border-color: var(--teal);
  font-weight: 600;
}
.lang-switcher .sep {
  color: rgba(255,255,255,0.25); font-size: 0.75rem; user-select: none;
}
@media (max-width: 640px) {
  .header-top .container { flex-wrap: wrap; }
  .lang-switcher { gap: 0; }
  .lang-switcher a { padding: 3px 7px; font-size: 0.75rem; }
}

.header-main { padding: 12px 0; }
.header-main .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; background: var(--navy);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 800; font-size: 0.8125rem; letter-spacing: -0.02em;
}
.brand-name { font-weight: 800; color: var(--navy); font-size: 1.125rem; letter-spacing: -0.02em; line-height: 1.1; }

.main-nav { display: flex; gap: 2px; align-items: center; }
.main-nav a {
  padding: 8px 12px; color: var(--text); font-weight: 500; font-size: 0.9375rem;
  border-radius: 8px; transition: all 0.15s; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: var(--bg); color: var(--navy); }

.header-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.header-cta .btn { padding: 10px 18px; font-size: 0.9375rem; }
.header-phone {
  color: var(--navy); font-weight: 700; font-size: 0.9375rem;
  display: inline-flex; align-items: center; gap: 6px;
}

.mobile-toggle {
  display: none; background: none; border: 0; padding: 6px;
  cursor: pointer; color: var(--navy);
}
.mobile-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .header-phone { display: none; }
}
@media (max-width: 980px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .header-cta .btn { display: none; }
}

.mobile-menu {
  display: none; background: var(--white); border-top: 1px solid var(--border);
  padding: 16px 0;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 24px; color: var(--text); font-weight: 500; }
.mobile-menu a:hover { background: var(--bg); color: var(--navy); }
.mobile-menu .btn { margin: 16px 24px 0; display: inline-flex; }

/* ========== Hero ========== */
.hero {
  position: relative; overflow: hidden;
  color: var(--white); padding: 80px 0 64px;
  background-color: var(--navy);
}
/* Background image layer (auto-uses journey.jpg if present) */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../images/journey.jpg');
  background-size: cover; background-position: center right;
  opacity: 0.45;
  pointer-events: none;
}
/* Dark gradient overlay for legibility — heavy on the left so text reads cleanly */
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(15,41,64,0.96) 0%,
    rgba(15,41,64,0.88) 35%,
    rgba(15,41,64,0.55) 75%,
    rgba(15,41,64,0.35) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 900px; }
.hero h1 .accent { color: var(--teal-light); }
.hero .lead { color: rgba(255,255,255,0.85); max-width: 760px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badges {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-top: 32px;
}
.hero-badge {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  padding: 16px; border-radius: var(--radius); backdrop-filter: blur(8px);
}
.hero-badge .num { font-size: 1.5rem; font-weight: 800; color: var(--teal-light); display: block; }
.hero-badge .label { font-size: 0.875rem; color: rgba(255,255,255,0.85); }

/* ========== Sections ========== */
section.section { padding: 72px 0; }
section.section.alt { background: var(--bg); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow {
  display: inline-block; background: rgba(20,184,166,0.1); color: var(--teal-dark);
  padding: 6px 14px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px;
}

/* ========== Card Grid ========== */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--teal-light); }
.card-icon {
  width: 48px; height: 48px; background: rgba(20,184,166,0.1);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--teal-dark); font-size: 1.5rem;
}

/* ========== Trust Bar ========== */
.trust-bar {
  background: var(--white); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 24px 0;
}
.trust-bar .container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; align-items: center;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .icon {
  width: 40px; height: 40px; flex-shrink: 0; background: rgba(20,184,166,0.1);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--teal-dark); font-size: 1.25rem;
}
.trust-item .text { font-size: 0.9375rem; }
.trust-item .text strong { color: var(--navy); display: block; }
.trust-item .text span { color: var(--text-muted); font-size: 0.875rem; }

/* ========== Languages Banner ========== */
.languages-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white); padding: 32px 0; text-align: center;
}
.languages-banner h3 { color: var(--white); margin-bottom: 12px; }
.languages-banner .lang-chips {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px;
}
.languages-banner .chip {
  background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500;
}

/* ========== Pricing ========== */
.pricing-box {
  background: var(--white); border: 2px solid var(--teal);
  border-radius: var(--radius-lg); padding: 40px; max-width: 540px; margin: 0 auto;
  text-align: center; box-shadow: var(--shadow);
}
.pricing-box .amount { font-size: 3.5rem; font-weight: 800; color: var(--navy); line-height: 1; }
.pricing-box .amount .sup { font-size: 1.5rem; vertical-align: super; color: var(--teal-dark); }
.pricing-box .desc { color: var(--text-muted); margin: 12px 0 24px; }
.pricing-features { text-align: left; margin: 24px 0; }
.pricing-features li {
  list-style: none; padding: 8px 0 8px 32px; position: relative;
}
.pricing-features li::before {
  content: '✓'; position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; background: var(--teal); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}

/* ========== FAQ ========== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; padding: 20px 24px; background: none; border: 0;
  text-align: left; font-size: 1.0625rem; font-weight: 600; color: var(--navy);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; font-family: inherit;
}
.faq-q:hover { background: var(--bg); }
.faq-q .arrow { transition: transform 0.2s; flex-shrink: 0; color: var(--teal-dark); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
}
.faq-item.open .faq-a { padding: 0 24px 20px; max-height: 1000px; }

/* ========== Forms ========== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: 0.9375rem; }
.form-control {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  border: 1.5px solid var(--border); border-radius: 8px; background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.15);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-note {
  background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E;
  padding: 12px 16px; border-radius: 8px; font-size: 0.875rem; margin-bottom: 20px;
}

/* ========== Two-column ========== */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* ========== Lists ========== */
ul.check-list { list-style: none; }
ul.check-list li {
  padding: 8px 0 8px 32px; position: relative;
}
ul.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 10px;
  color: var(--teal-dark); font-weight: 700; font-size: 1.125rem;
}

/* ========== Doctor Card ========== */
.doctor-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  text-align: center;
}
.doctor-card .credentials li {
  padding: 6px 0; border-bottom: 1px dashed var(--border-light); list-style: none;
}
.doctor-card .credentials li:last-child { border-bottom: 0; }
.doctor-card .credentials strong { color: var(--navy); }

/* Doctor photo */
.doctor-photo {
  width: 168px; height: 168px; border-radius: 50%;
  object-fit: cover; display: block; margin: 0 auto 20px;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px var(--teal-light), 0 12px 32px rgba(15,41,64,0.18);
  background: var(--bg);
}
.doctor-photo-sm {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; display: block; flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--teal-light), 0 6px 20px rgba(15,41,64,0.12);
  background: var(--bg);
}
.doctor-preview {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); padding: 20px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 20px;
}
.doctor-preview .doctor-name { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.doctor-preview .doctor-cred { font-size: 0.9375rem; color: var(--text-muted); margin: 0; }

/* ========== CTA Banner ========== */
.cta-banner {
  background: var(--navy); color: var(--white);
  padding: 56px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(20,184,166,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 24px; font-size: 1.125rem; }
.cta-banner .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========== Footer ========== */
.site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.8);
  padding: 56px 0 24px;
}
.site-footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .site-footer .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .container { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,0.7); display: block; padding: 4px 0; font-size: 0.9375rem; }
.site-footer a:hover { color: var(--teal-light); }
.site-footer .brand-name { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 24px;
  text-align: center; font-size: 0.875rem; color: rgba(255,255,255,0.5);
}
.disclaimer {
  font-size: 0.8125rem; color: rgba(255,255,255,0.5);
  max-width: 900px; margin: 16px auto 0; line-height: 1.6;
}

/* ========== Journey section (image left, text right) ========== */
.journey-section { padding: 80px 0; background: var(--bg); }
.journey-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .journey-grid { grid-template-columns: 1fr; gap: 32px; } }
.journey-image {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
  aspect-ratio: 3 / 2;
}
.journey-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.journey-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(15,41,64,0.18) 100%);
  pointer-events: none;
}
.journey-content h2 { margin-bottom: 14px; }
.journey-content p { color: var(--text-muted); font-size: 1.0625rem; }
.journey-highlights {
  margin-top: 20px; padding: 0; list-style: none;
}
.journey-highlights li {
  padding: 12px 0 12px 36px; position: relative;
  border-bottom: 1px solid var(--border-light);
  font-weight: 500; color: var(--text);
}
.journey-highlights li:last-child { border-bottom: 0; }
.journey-highlights li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 22px; height: 22px; background: var(--teal); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpolyline points='4 12 10 18 20 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 14px;
}

/* ========== Form download cards ========== */
.form-downloads {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin: 24px 0;
}
.form-download {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: all 0.2s; text-decoration: none;
}
.form-download:hover {
  border-color: var(--teal); transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.form-download .icon {
  width: 48px; height: 56px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 800; font-size: 0.75rem;
  letter-spacing: 0.05em;
  position: relative;
}
.form-download .icon::after {
  content: ''; position: absolute; top: 0; right: 0;
  border-width: 0 12px 12px 0; border-style: solid;
  border-color: transparent var(--white) transparent transparent;
}
.form-download .body { flex: 1; }
.form-download .title {
  font-weight: 700; color: var(--navy); font-size: 1.0625rem;
  margin-bottom: 4px;
}
.form-download .desc {
  font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 10px;
}
.form-download .meta {
  font-size: 0.8125rem; color: var(--teal-dark); font-weight: 600;
}

/* ========== Map embed ========== */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ========== Booking embed area ========== */
.booking-area {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.booking-placeholder {
  background: var(--bg); border: 2px dashed var(--border);
  border-radius: var(--radius); padding: 40px; text-align: center;
  color: var(--text-muted);
}

/* ========== Utilities ========== */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }

/* Per-language font stacks — match the Google Fonts loaded in <head> */
html[lang="pa"] body, html[lang="pa"] h1, html[lang="pa"] h2, html[lang="pa"] h3, html[lang="pa"] h4 {
  font-family: 'Noto Sans Gurmukhi', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
html[lang="zh-CN"] body, html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] h3, html[lang="zh-CN"] h4 {
  font-family: 'Noto Sans SC', 'Inter', -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}
html[lang="ko"] body, html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3, html[lang="ko"] h4 {
  font-family: 'Noto Sans KR', 'Inter', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
html[lang="ja"] body, html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4 {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

/* Print */
@media print {
  .site-header, .site-footer, .cta-banner, .lang-switcher, .mobile-toggle { display: none; }
  body { color: #000; background: #fff; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
