/* ============================================
   JSJ Skin Care Medical & Aesthetic Clinic
   Shared stylesheet
   ============================================ */

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

:root {
  --navy: #263449;
  --navy-dark: #1a2433;
  --slate: #6b7c8f;
  --slate-light: #8fa0b3;
  --gold: #b6935c;
  --gold-light: #d9bd8d;
  --bg: #f7f7f5;
  --bg-alt: #eef1f3;
  --white: #ffffff;
  --text: #2c333b;
  --text-light: #667080;
  --border: #e2e5e8;
  --shadow: 0 10px 30px rgba(38, 52, 73, 0.08);
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.section-lede {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 48px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #a2814f; }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-dark); }

.btn-sm { padding: 10px 20px; font-size: 0.82rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--navy);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-wordmark {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
/* .hero-media holds either a real <img> or a looping <video> (not a CSS
   background) so the banner is always rendered at its exact native aspect
   ratio — it only ever scales uniformly. .hero-inner is absolutely
   positioned over that media so the section's height is driven entirely by
   the media itself. */
.hero {
  position: relative;
  color: var(--navy);
  overflow: hidden;
}

.hero-media {
  width: 100%;
  line-height: 0;
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.94) 0%,
    rgba(255,255,255,0.86) 30%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0.05) 64%,
    rgba(255,255,255,0) 74%);
}

.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 80px) 24px;
  width: 100%;
}

.hero-content { max-width: 41%; }

.hero .eyebrow { color: var(--gold); }

.hero h1 {
  color: var(--navy);
  font-size: clamp(1.5rem, 3.2vw, 2.7rem);
  margin-bottom: 16px;
}

.hero p {
  color: var(--text);
  font-size: clamp(0.82rem, 1.3vw, 1.05rem);
  max-width: 440px;
  margin-bottom: clamp(14px, 2.4vw, 32px);
}

.hero-actions {
  display: flex;
  gap: clamp(8px, 1.4vw, 16px);
  flex-wrap: wrap;
  margin-bottom: clamp(14px, 2.4vw, 36px);
}

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.hero .btn {
  padding: clamp(8px, 1.4vw, 14px) clamp(14px, 2.6vw, 30px);
  font-size: clamp(0.7rem, 1.1vw, 0.92rem);
}

.hero-meta {
  display: flex;
  gap: clamp(10px, 2vw, 28px);
  flex-wrap: wrap;
  font-size: clamp(0.62rem, 1vw, 0.88rem);
  color: var(--text);
  font-weight: 500;
}
.hero-meta div { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

/* Page header (non-home pages) */
.page-header {
  background: linear-gradient(120deg, var(--navy) 0%, #34465e 100%);
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}
.page-header h1 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--gold-light); }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.highlight-card {
  padding: 32px 28px;
  text-align: left;
}
.highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.highlight-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.highlight-card p { color: var(--text-light); font-size: 0.94rem; }

/* Service cards */
.service-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .service-photo img { transform: scale(1.06); }

.service-card {
  padding: 22px 26px 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card .service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.service-card h3 { font-size: 1.05rem; }
.service-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  font-size: 0.95rem;
}
.service-duration {
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.service-card p.desc {
  color: var(--text-light);
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 18px;
}

.category-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* Instagram "What's New" embeds */
.instagram-grid {
  justify-items: center;
  align-items: start;
}
.instagram-grid iframe { margin: 0 !important; }

/* Promo cards */
.promo-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 360px));
  justify-content: center;
}
.promo-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
}
.promo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .promo-photo img { transform: scale(1.05); }
.promo-info {
  padding: 22px 26px 26px;
}
.promo-info h3 { font-size: 1.15rem; margin-bottom: 10px; }
.promo-info .desc {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.promo-disclaimer {
  margin-top: 36px;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

/* Category section headers on services page */
.service-category-header {
  margin: 56px 0 26px;
}
.service-category-header:first-of-type { margin-top: 0; }
.service-category-header h2 {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.service-category-header h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Doctor cards */
.doctor-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.doctor-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-info { padding: 24px; }
.doctor-info h3 { font-size: 1.15rem; margin-bottom: 4px; }
.doctor-role {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.doctor-info p { color: var(--text-light); font-size: 0.92rem; margin-bottom: 10px; }
.doctor-schedule {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 520px; margin: 0 auto 30px; }

/* ---------- Info strip ---------- */
.info-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.info-strip .grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
.info-item .num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--navy);
}
.info-item .label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}
.contact-detail .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-detail h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-detail p { color: var(--text-light); font-size: 0.92rem; }

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 340px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.schedule-table th, .schedule-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.schedule-table th {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand img { height: 58px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-hero img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-hero blockquote {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 24px 0;
  font-weight: 500;
}

/* ---------- Filter bar (services) ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.filter-chip {
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-chip:hover { border-color: var(--gold); color: var(--navy); }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-content { max-width: 44%; }
  .about-hero { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-strip .grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    display: none;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-actions .btn-gold { padding: 10px 18px; font-size: 0.82rem; }

  /* Below ~720px the banner image becomes too short to legibly overlay
     text on, so stack: image on top, text block underneath instead. */
  .hero::before { display: none; }
  .hero-inner {
    position: static;
    display: block;
    max-width: none;
    padding: 28px 24px 40px;
    background: var(--white);
  }
  .hero-content { max-width: 100%; }
  .hero .btn { padding: 12px 24px; font-size: 0.85rem; }
  .hero-meta { font-size: 0.82rem; gap: 16px; }
  .hero h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .hero p { font-size: 0.95rem; max-width: none; }

  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
