/* ============================================================
   NEUROLOGY MALAYSIA — Dr. Yap Siew Mei
   Palette:
     --sage        #6B8F71   (primary green)
     --sage-light  #A8C5AC   (soft mid-green)
     --sage-pale   #EEF4EF   (background tint)
     --cream       #F8F7F4   (page background)
     --charcoal    #1E2620   (primary text)
     --warm-mid    #4A5C4D   (secondary text)
     --gold        #B8A96A   (accent)
   ============================================================ */

:root {
  --sage: #6B8F71;
  --sage-light: #A8C5AC;
  --sage-pale: #EEF4EF;
  --sage-dark: #3D5C42;
  --cream: #F8F7F4;
  --charcoal: #1E2620;
  --warm-mid: #4A5C4D;
  --gold: #B8A96A;
  --gold-light: #D4C58A;
  --white: #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 4px;
  --transition: 0.3s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 24px;
}
.section-label.light { color: var(--sage-light); }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.section-heading em {
  font-style: italic;
  color: var(--sage);
}
.section-heading.light { color: var(--white); }
.section-heading.light em { color: var(--gold-light); }

.section-sub {
  font-size: 1rem;
  color: var(--warm-mid);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--sage);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(107,143,113,0.25);
}
.btn-primary:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(107,143,113,0.35);
}

.btn-primary-light {
  display: inline-block;
  padding: 16px 42px;
  background: var(--white);
  color: var(--sage-dark);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.btn-primary-light:hover {
  background: var(--gold-light);
  color: var(--charcoal);
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248,247,244,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107,143,113,0.12);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: 0 2px 20px rgba(30,38,32,0.08);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.3;
}
.nav-logo-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--warm-mid);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links li a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--warm-mid);
  transition: color var(--transition);
}
.nav-links li a:hover { color: var(--sage); }

.nav-book-btn {
  padding: 10px 20px;
  background: var(--sage);
  color: var(--white) !important;
  border-radius: var(--radius);
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
  box-shadow: 0 3px 12px rgba(107,143,113,0.3);
  white-space: nowrap;
}
.nav-book-btn:hover {
  background: var(--sage-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(107,143,113,0.4);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  background: var(--cream);
  border-top: 1px solid rgba(107,143,113,0.12);
  padding: 20px 32px 24px;
}
.nav-mobile ul { display: flex; flex-direction: column; gap: 16px; }
.nav-mobile ul li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--warm-mid);
}
.nav-mobile.open { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, var(--sage-pale) 100%);
  padding-top: 72px;
}

.hero-neural {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}
#neuralCanvas {
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--charcoal);
  margin-bottom: 24px;
}
.hero-name em {
  font-style: italic;
  color: var(--charcoal);
}

.hero-credentials {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--warm-mid);
  line-height: 1.8;
  letter-spacing: 0.02em;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(107,143,113,0.2);
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-photo-frame {
  position: relative;
  width: 420px;
  max-width: 100%;
}
.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1.5px solid var(--sage-light);
  border-radius: 3px;
  z-index: 0;
}
.hero-photo-frame::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 12px;
  right: -12px;
  height: 60px;
  background: linear-gradient(to top, var(--sage-pale), transparent);
  z-index: 2;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 3px;
  object-fit: cover;
  object-position: top center;
  box-shadow: 0 24px 60px rgba(30,38,32,0.14);
}

.hero-slogan {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(107,143,113,0.2);
}

.hero-ethos {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.6;
  color: var(--sage-dark);
  background: rgba(168,197,172,0.22);
  border-left: 3px solid var(--sage);
  border-radius: 0 6px 6px 0;
  padding: 18px 22px;
  margin-bottom: 20px;
  text-align: justify;
  text-align-last: left;
}
.hero-ethos strong {
  font-weight: 600;
  font-style: normal;
}

.hero-languages {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  padding: 12px 16px;
  border-left: 3px solid var(--sage-light);
}
.hero-languages-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  white-space: nowrap;
}
.hero-languages ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  list-style: none;
}
.hero-languages ul li {
  font-size: 0.88rem;
  color: var(--warm-mid);
  font-weight: 400;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--sage-light));
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { opacity: 0; transform: scaleY(0.3); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 120px 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  align-items: start;
}

.about-intro {
  position: sticky;
  top: 100px;
}

.about-lead {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 48px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--sage);
  line-height: 1;
}
.stat-plus {
  font-size: 1.6rem;
  vertical-align: super;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--warm-mid);
  line-height: 1.4;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  padding-left: 0;
}
.about-points li {
  font-size: 0.92rem;
  color: var(--warm-mid);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}
.about-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--sage-light);
}

.about-points-centered {
  text-align: justify;
}
.about-points-centered li {
  padding-left: 0;
  text-align: justify;
}
.about-points-centered li::before {
  display: none;
}

.about-points-bullets {
  list-style: disc;
  padding-left: 1.2em;
}
.about-points-bullets li {
  padding-left: 0.4em;
  text-align: justify;
}
.about-points-bullets li::before {
  display: none;
}

.about-link {
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.about-link:hover { color: var(--sage); }

.about-closing {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--sage-dark);
  line-height: 1.7;
  padding: 24px;
  border-left: 2px solid var(--sage-light);
  background: var(--sage-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ============================================================
   SYMPTOMS
   ============================================================ */
.symptoms {
  padding: 120px 0;
  background: var(--sage-pale);
}

.symptoms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.symptom-card {
  background: var(--white);
  border: 1px solid rgba(107,143,113,0.15);
  border-radius: 8px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: default;
}
.symptom-card:hover {
  border-color: var(--sage-light);
  box-shadow: 0 6px 24px rgba(107,143,113,0.12);
  transform: translateY(-2px);
}

.symptom-icon {
  width: 40px;
  height: 40px;
  color: var(--sage);
}
.symptom-icon svg { width: 100%; height: 100%; }

.symptom-card span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.45;
}

/* ============================================================
   CONDITIONS
   ============================================================ */
.conditions {
  padding: 120px 0;
  background: var(--cream);
}

.conditions-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.condition-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(107,143,113,0.12);
  transition: background var(--transition);
}
.condition-item:nth-child(odd) { padding-right: 48px; }
.condition-item:nth-child(even) { padding-left: 48px; border-left: 1px solid rgba(107,143,113,0.12); }

.condition-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-light);
  margin-top: 2px;
}

.condition-item span {
  font-size: 0.9rem;
  color: var(--warm-mid);
  line-height: 1.5;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 120px 0;
  background: var(--sage-dark);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(168,197,172,0.15);
}
.contact::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(168,197,172,0.1);
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.contact-body {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--charcoal);
  padding: 64px 0 40px;
  color: rgba(255,255,255,0.55);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 400;
}
.footer-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-light);
}

.footer-creds p {
  font-size: 0.78rem;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--sage-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.75rem; }
.footer-disclaimer {
  max-width: 480px;
  text-align: right;
  line-height: 1.5;
}

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 32px;
    text-align: center;
  }
  .hero-photo-wrap { justify-content: center; }
  .hero-photo-frame { width: 320px; }
  .hero-credentials { text-align: center; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-intro { position: static; }

  .conditions-list { grid-template-columns: 1fr; }
  .condition-item:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-links { align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-name { font-size: 2rem; }
  .hero-photo-frame { width: 260px; }
  .hero-photo-frame::before { display: none; }

  .about-stats { grid-template-columns: 1fr 1fr; gap: 24px; }

  .symptoms-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
  .footer-disclaimer { text-align: left; max-width: 100%; }
}

@media (max-width: 400px) {
  .symptoms-grid { grid-template-columns: 1fr; }
}
