/* ═══════════════════════════════════════════════════
   Dr. Chao – Landing Page Styles
   ═══════════════════════════════════════════════════ */

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

:root {
  --blue:        #1d4ed8;
  --blue-dark:   #1e3a8a;
  --blue-light:  #dbeafe;
  --accent:      #0ea5e9;
  --text:        #0f172a;
  --text-muted:  #64748b;
  --bg:          #ffffff;
  --bg-alt:      #f8fafc;
  --border:      #e2e8f0;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.14);
  --transition:  .25s ease;
  --max-w:       1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Container ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Utility ────────────────────────────────────── */
.section          { padding: 96px 0; }
.section-alt      { background: var(--bg-alt); }
.section-label    { font-size: .78rem; font-weight: 600; letter-spacing: .12em;
                    text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section-header   { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 14px; }
.section-sub      { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

h2 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: all var(--transition); border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary  { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(29,78,216,.35); }
.btn-ghost    { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-full     { width: 100%; justify-content: center; border-radius: var(--radius); }
.btn-cta      { background: var(--blue); color: #fff !important; padding: 10px 22px; border-radius: 50px; font-size: .88rem; font-weight: 600; }
.btn-cta:hover { background: var(--blue-dark); }

/* ═══════════════ NAVBAR ═══════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 18px 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  padding: 12px 0;
}
.navbar.scrolled .nav-links a   { color: var(--text); }
.navbar.scrolled .logo-text     { color: var(--text); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.navbar.scrolled .logo img { filter: none; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.logo-text strong { color: var(--accent); }
.navbar.scrolled .logo-text { color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.9); transition: color var(--transition); }
.nav-links a:hover { color: #fff; }
.navbar.scrolled .nav-links a:hover { color: var(--blue); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.navbar.scrolled .hamburger span { background: var(--text); }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.85) 40%, rgba(29,78,216,.5) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding-top: 100px; padding-bottom: 60px;
}
.hero-text { color: #fff; }
.hero-tag {
  display: inline-block; background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 50px;
  padding: 6px 16px; font-size: .8rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 20px; color: rgba(255,255,255,.9);
}
.hero-text h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}
.hero-text h1 em { font-style: normal; color: var(--accent); }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 460px; margin-bottom: 36px; }
.hero-actions   { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badges    { display: flex; gap: 20px; flex-wrap: wrap; }
.badge {
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius);
  padding: 10px 16px; text-align: center; color: #fff;
}
.badge span { display: block; font-size: 1.4rem; font-weight: 700; color: var(--accent); line-height: 1; }
.badge { font-size: .8rem; color: rgba(255,255,255,.7); }

.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  max-height: 600px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.scroll-down {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); z-index: 2; animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{ transform: translateX(-50%) translateY(0); } 50%{ transform: translateX(-50%) translateY(8px); } }

/* ═══════════════ ABOUT ═══════════════ */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-photos { position: relative; }
.about-img-main  { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 85%; }
.about-img-second{
  position: absolute; bottom: -30px; right: 0; width: 52%;
  border-radius: var(--radius); border: 4px solid #fff;
  box-shadow: var(--shadow);
}
.about-text h2  { margin-bottom: 18px; }
.about-text p   { color: var(--text-muted); margin-bottom: 14px; }
.about-highlights { margin: 28px 0; display: flex; flex-direction: column; gap: 12px; }
.highlight { display: flex; align-items: center; gap: 12px; font-size: .95rem; font-weight: 500; }

/* ═══════════════ SERVICES ═══════════════ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.service-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-img { aspect-ratio: 16/9; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.service-body p  { color: var(--text-muted); font-size: .9rem; margin-bottom: 14px; flex: 1; }
.service-list li { font-size: .85rem; color: var(--text-muted); padding: 3px 0 3px 18px; position: relative; }
.service-list li::before { content: '→'; position: absolute; left: 0; color: var(--blue); }

/* ═══════════════ CELEBRITIES ═══════════════ */
.celebrities { background: var(--text); }
.celebrities .section-label { color: var(--accent); }
.celebrities h2, .celebrities .section-sub { color: #fff; }
.celebrities .section-sub { color: rgba(255,255,255,.6); }
.celeb-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.celeb-card { text-align: center; }
.celeb-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top;
  border-radius: 50%; border: 3px solid rgba(255,255,255,.15);
  margin-bottom: 10px; transition: transform var(--transition), border-color var(--transition);
}
.celeb-card:hover img { transform: scale(1.05); border-color: var(--accent); }
.celeb-card p { color: rgba(255,255,255,.7); font-size: .82rem; font-weight: 500; }

/* ═══════════════ BLOG ═══════════════ */
.blog-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }
.blog-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.blog-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.blog-tag { display: inline-block; background: var(--blue-light); color: var(--blue); border-radius: 50px; padding: 3px 12px; font-size: .75rem; font-weight: 600; margin-bottom: 12px; }
.blog-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.blog-body p  { color: var(--text-muted); font-size: .9rem; flex: 1; }
.blog-link { display: inline-block; margin-top: 18px; color: var(--blue); font-weight: 600; font-size: .9rem; }
.blog-link:hover { text-decoration: underline; }

/* ═══════════════ GALLERY ═══════════════ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.gallery-grid img {
  border-radius: var(--radius); aspect-ratio: 4/3; width: 100%; object-fit: cover;
  transition: transform .3s, box-shadow .3s;
}
.gallery-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }

/* ═══════════════ BOOKING ═══════════════ */
.booking-inner {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start;
}
.booking-info h2  { margin-bottom: 14px; }
.booking-info > p { color: var(--text-muted); margin-bottom: 28px; }
.contact-items    { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.contact-item     { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact-item svg { color: var(--blue); flex-shrink: 0; }
.contact-item a:hover { color: var(--blue); }
.booking-photo    { border-radius: var(--radius-lg); box-shadow: var(--shadow); max-height: 280px; object-fit: cover; width: 100%; }

.booking-form-wrap {
  background: #fff; border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-lg);
}
.booking-form h3  { font-size: 1.35rem; font-weight: 700; margin-bottom: 24px; }
.form-row         { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group       { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; font-family: inherit; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}
.form-group input.error, .form-group select.error { border-color: #ef4444; }
.form-check       { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; font-size: .84rem; color: var(--text-muted); }
.form-check input { margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }

/* Status banner */
.himed-status {
  padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px;
  font-size: .9rem; font-weight: 500;
}
.himed-status.success { background: #d1fae5; color: #065f46; }
.himed-status.error   { background: #fee2e2; color: #991b1b; }
.himed-status.loading { background: var(--blue-light); color: var(--blue-dark); }

/* ═══════════════ FOOTER ═══════════════ */
.footer { background: var(--text); color: rgba(255,255,255,.7); }
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; padding: 56px 24px;
  flex-wrap: wrap;
}
.footer-brand .logo-text { color: #fff; font-size: 1.4rem; display: block; margin-bottom: 10px; }
.footer-brand p  { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.7; }
.footer-links    { display: flex; flex-direction: column; gap: 10px; }
.footer-links a  { font-size: .9rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-social   { display: flex; gap: 14px; }
.footer-social a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-social a:hover { color: var(--accent); }
.footer-bottom   { text-align: center; padding: 18px 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; color: rgba(255,255,255,.35); }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .celeb-grid     { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px 24px; gap: 18px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text) !important; font-size: 1rem; }
  .hamburger { display: flex; }

  .hero-content   { grid-template-columns: 1fr; text-align: center; }
  .hero-photo     { display: none; }
  .hero-actions   { justify-content: center; }
  .hero-badges    { justify-content: center; }
  .hero-subtitle  { margin: 0 auto 36px; }

  .about-inner    { grid-template-columns: 1fr; }
  .about-photos   { display: none; }

  .services-grid  { grid-template-columns: 1fr; }
  .celeb-grid     { grid-template-columns: repeat(2, 1fr); }
  .blog-grid      { grid-template-columns: 1fr; }
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); }
  .booking-inner  { grid-template-columns: 1fr; }
  .booking-photo  { display: none; }
  .form-row       { grid-template-columns: 1fr; }
  .booking-form-wrap { padding: 24px; }

  .footer-inner   { flex-direction: column; gap: 28px; }
}
