/*
Theme Name: JY Family Clinic
Author: Abdul Fatha
Description: A clean, custom base theme with full HTML flexibility.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: #
*/

:root {
  /* JY Family Clinic palette
     Base: white  ·  Primary accent: pink  ·  Anchor: plum (text/nav/footer/dark bands) */

  /* structural anchor (was cobalt) -> plum */
  --cobalt: #3D2E40;
  --cobalt-deep: #2C1F30;
  --cobalt-soft: #614A66;
  --cobalt-mist: #F4EFF5;

  /* primary accent (was pink) -> brand pink; -deep is button/CTA-safe for white text */
  --pink: #FD9BBE;
  --pink-deep: #D85B86;
  --pink-soft: #FEC8DA;

  /* secondary fills (was peach) -> soft plum tints */
  --mint: #EFEAF1;
  --mint-soft: #F7F4F8;
  --mint-deep: #D8CDDD;

  --ink: #2E2833;
  --ink-soft: #5A5360;
  --ink-mute: #948C9C;
  --line: rgba(46, 40, 51, 0.12);
  --line-soft: rgba(46, 40, 51, 0.07);
  --white: #FFFFFF;
  --paper: #FFFFFF;
  --paper-deep: #FBF8F6;

  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--cobalt);
}
h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); font-weight: 400; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 500; }

p { color: var(--ink-soft); line-height: 1.75; }
a { color: var(--cobalt); text-decoration: none; transition: color 0.25s; }
img { max-width: 100%; display: block; }

.shell { max-width: 1320px; margin: 0 auto; padding: 0 48px; }

/* Pill-style section label (Pause and Power treatment) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.42rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-deep);
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
}

.italic {
  font-style: italic;
  color: var(--pink-deep);
  font-weight: 400;
}

/* ============== TOP RIBBON ============== */
.ribbon {
  background: var(--cobalt);
  color: var(--white);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 9px 0;
  text-align: center;
}
.ribbon-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.ribbon-item { color: rgba(255, 255, 255, 0.80); }
.ribbon-item strong { color: var(--white); font-weight: 600; letter-spacing: 0.18em; }
.ribbon-dot { color: var(--pink-soft); }

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 252, 255, 0.94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.nav-left a:hover, .nav-right a:hover { color: var(--pink-deep); }
.nav-has-sub { position: relative; cursor: pointer; }
.nav-has-sub > a::after {
  content: '⌄';
  margin-left: 6px;
  font-size: 0.85rem;
  opacity: 0.55;
  display: inline-block;
  transform: translateY(-2px);
}
.nav-sub {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px 0;
  min-width: 230px;
  list-style: none;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(22, 32, 58, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}
.nav-has-sub:hover .nav-sub { opacity: 1; visibility: visible; top: 100%; }
.nav-sub li a {
  display: block;
  padding: 9px 22px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--ink);
  font-weight: 400;
}
.nav-sub li a:hover { background: var(--cobalt-mist); color: var(--cobalt); }

.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.nav-mark-emblem {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--pink-deep);
  font-weight: 500;
  position: relative;
}
.nav-mark-emblem::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 0.5px solid var(--cobalt-soft);
  border-radius: 50%;
  opacity: 0.5;
}
.nav-mark-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cobalt);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.nav-mark-text-sub {
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--pink-deep);
  font-weight: 500;
  margin-top: 2px;
}

.nav-cta {
  background: var(--pink-deep);
  color: var(--white) !important;
  padding: 11px 22px !important;
  border-radius: 999px;
  font-size: 0.74rem !important;
  letter-spacing: 0.16em !important;
  transition: background 0.25s;
}
.nav-cta:hover { background: var(--pink-deep) !important; color: var(--white) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--cobalt);
  cursor: pointer;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-fill { background: var(--pink-deep); color: var(--white); }
.btn-fill:hover { background: #C24871; color: var(--white); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(255, 95, 162, 0.30); }
.btn-cobalt { background: var(--cobalt); color: var(--white); }
.btn-cobalt:hover { background: var(--cobalt-deep); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cobalt); border: 1px solid var(--cobalt); }
.btn-ghost:hover { background: var(--cobalt); color: var(--white); }
.btn-white { background: var(--white); color: var(--cobalt); }
.btn-white:hover { background: var(--paper); transform: translateY(-2px); }

/* ============== FOOTER ============== */
.footer {
  background: var(--cobalt-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 90px 0 36px;
}
.footer-shell { max-width: 1320px; margin: 0 auto; padding: 0 48px; }

.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.5);
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 24px 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 30px;
}

.footer-brand-mark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--white);
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-bottom: 6px;
}
.footer-brand-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--pink-soft);
  margin-bottom: 18px;
}
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  max-width: 360px;
}

.footer h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pink-soft);
  font-weight: 600;
  margin-bottom: 22px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}
.footer-links a:hover { color: var(--pink-soft); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--pink-soft);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255, 255, 255, 0.5); }
.footer-bottom-links a:hover { color: var(--pink-soft); }



/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
  .nav-shell { grid-template-columns: auto 1fr auto; gap: 16px; }
  .nav-left, .nav-right { display: none; }
  .nav-toggle { display: block; text-align: right;}
  .nav-mark { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .ribbon-inner { gap: 14px; font-size: 0.66rem; }
  .ribbon-dot { display: none; }
  .nav-shell { padding: 14px 24px; }
  .nav-mark-emblem { width: 32px; height: 32px; font-size: 1rem; }
  .nav-mark-text { font-size: 1.15rem; }
  .nav-mark-text-sub { font-size: 0.52rem; }
  .shell, .hero-shell, .member-shell, .footer-shell, .faq-shell, .bcta-shell, .why-shell, .founder-shell, .method-shell { padding: 0 24px; }
  .footer { padding: 70px 0 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}





/* ============== MOBILE DRAWER ============== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(46, 40, 51, 0.45); /* Aligned with var(--ink) alpha */
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(340px, 88vw);
  background: var(--white); /* Changed from var(--cream) to match main nav background */
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  border-left: 1px solid var(--line); /* Added to mimic the main nav bottom border style */
}
.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 24px;
  min-height: 100%;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--ink-soft); /* Changed from var(--ink-mute) for better UI visibility */
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  transition: color 0.2s;
}
.mobile-nav-close:hover { color: var(--pink-deep); } /* Changed from var(--clay) to brand pink */

.mobile-nav-links {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-links > li > a,
.mobile-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 0;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: color 0.2s;
}
.mobile-nav-links > li > a:hover,
.mobile-sub-toggle:hover { color: var(--pink-deep); } /* Changed from var(--clay) to brand pink */

.mobile-sub-arrow {
  font-size: 1.1rem;
  color: var(--ink-soft); /* Changed from var(--ink-mute) */
  transition: transform 0.25s;
  display: inline-block;
}
.mobile-sub-toggle[aria-expanded="true"] .mobile-sub-arrow {
  transform: rotate(90deg);
}

.mobile-sub {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-sub.open {
  max-height: 500px;
}
.mobile-sub li a {
  display: block;
  padding: 10px 0 10px 16px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s;
}
.mobile-sub li a:hover { color: var(--pink-deep); } /* Changed from var(--clay) to brand pink */

.mobile-nav-cta {
  margin-top: 32px;
  width: 100%;
  text-align: center;
}

/* prevent body scroll when drawer is open */
body.nav-open { overflow: hidden; }