/* ============================
   Shennan Li Counselling
   Global Stylesheet
   ============================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* --- CSS Variables --- */
:root {
  /* Warm linen + navy slate palette */
  --beige: #e7dfd8;        /* warm linen (background) */
  --beige-dark: #d4ccc4;   /* slightly deeper linen */
  --taupe: #a59c92;        /* cool taupe (secondary) */
  --sage: #304254;         /* navy slate (accent/buttons) */
  --teal: #304254;         /* navy slate (primary accent) */
  --teal-light: #3f5468;   /* lighter navy slate */
  --cream: #f0ebe5;        /* near-white warm linen */
  --white: #ffffff;
  --text-dark: #1e2d3a;    /* cold dark navy (main text) */
  --text-mid: #4a5a68;     /* cool mid-blue grey */
  --text-light: #a59c92;   /* cool taupe */
  --border: #a59c92;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius: 4px;
  --radius-lg: 12px;
  --shadow: 0 2px 20px rgba(30, 45, 58, 0.07);
  --shadow-lg: 0 8px 40px rgba(30, 45, 58, 0.12);
  --transition: 0.25s 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);
  font-weight: 300;
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.2rem; color: var(--text-mid); font-size: 1rem; }
p:last-child { margin-bottom: 0; }

.text-chinese {
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
  border-left: 2px solid var(--taupe);
  padding-left: 1rem;
  margin: 1.2rem 0;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; }
section.section--sm { padding: 4rem 0; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 244, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled { box-shadow: var(--shadow); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.02em;
}

.nav__logo span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width var(--transition);
}

.nav__links a:hover, .nav__links a.active {
  color: var(--teal);
}

.nav__links a:hover::after, .nav__links a.active::after {
  width: 100%;
}

.nav__book {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  font-size: 0.78rem !important;
  letter-spacing: 0.12em;
  transition: background var(--transition) !important;
}

.nav__book::after { display: none !important; }

.nav__book:hover {
  background: var(--teal-light) !important;
  color: var(--white) !important;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--teal);
  transition: all var(--transition);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2.5rem;
  gap: 1.2rem;
}

.nav__mobile a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__mobile a:hover { color: var(--teal); }
.nav__mobile .nav__book { display: inline-block; text-align: center; margin-top: 0.5rem; }

.nav.open .nav__mobile { display: flex; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
}

.btn--outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn--light {
  background: var(--cream);
  color: var(--teal);
}

.btn--light:hover {
  background: var(--beige);
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 10rem 0 5rem;
  background: var(--beige);
  text-align: center;
}

.page-header__tag {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1rem;
  display: block;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--teal);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
  color: var(--text-light);
}

/* --- Section Labels --- */
.section-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--teal);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
}

/* --- Divider --- */
.divider {
  width: 40px;
  height: 1px;
  background: var(--taupe);
  margin: 1.5rem 0;
}

.divider--center { margin: 1.5rem auto; }

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--beige);
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: var(--beige-dark);
  opacity: 0.5;
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__tag {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.5rem;
  display: block;
}

.hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--teal);
  margin-bottom: 2rem;
  font-style: italic;
}

.hero__heading strong {
  font-style: normal;
  font-weight: 500;
  display: block;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 2.5rem;
  line-height: 1.9;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__creds {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cred-badge {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--taupe);
  border-radius: 20px;
  color: var(--taupe);
  text-transform: uppercase;
}

.hero__image {
  position: relative;
}

.hero__image-box {
  aspect-ratio: 3/4;
  background: var(--taupe);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.hero__image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--cream);
  opacity: 0.7;
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem;
}

.hero__image-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: var(--cream);
  fill: none;
  stroke-width: 1;
}

/* --- Intro Strip --- */
.intro-strip {
  background: var(--teal);
  padding: 3.5rem 0;
}

.intro-strip p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  font-family: var(--font-heading);
  font-style: italic;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Approach Preview --- */
.approach-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.approach-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
}

.approach-item:last-child { border-bottom: none; }

.approach-item__num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--beige-dark);
  min-width: 36px;
  font-weight: 300;
  line-height: 1;
  padding-top: 0.2rem;
}

.approach-item__text h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--teal);
}

.approach-item__text p { font-size: 0.95rem; margin: 0; }

/* --- Support Cards --- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.support-card {
  background: var(--beige);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--beige-dark);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.support-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.support-card:hover::before { transform: scaleX(1); }
.support-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.support-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.5rem;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.5;
}

.support-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--teal);
}

.support-card p { font-size: 0.95rem; }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--beige);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  border: 1px solid var(--beige-dark);
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--teal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--teal-light); }

.faq-question__icon {
  width: 20px;
  height: 20px;
  stroke: var(--taupe);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-question__icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-answer p { font-size: 0.97rem; }

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: all var(--transition);
}

.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.blog-card__image {
  aspect-ratio: 16/9;
  background: var(--beige);
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img { transform: scale(1.04); }

.blog-card__body { padding: 1.8rem; }

.blog-card__tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.75rem;
  display: block;
}

.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--teal);
  line-height: 1.3;
}

.blog-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

.blog-card__meta {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: var(--taupe);
}

/* --- Blog Post --- */
.post-header {
  padding: 10rem 0 5rem;
  background: var(--beige);
  text-align: center;
}

.post-header__tag {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1rem;
  display: block;
}

.post-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--teal);
  max-width: 700px;
  margin: 0 auto 1rem;
}

.post-header__meta { font-size: 0.85rem; color: var(--taupe); }

.post-content { padding: 5rem 0; }

.post-content h2 {
  font-size: 1.8rem;
  color: var(--teal);
  margin: 2.5rem 0 1rem;
}

.post-content h3 {
  font-size: 1.3rem;
  color: var(--teal);
  margin: 2rem 0 0.75rem;
}

.post-content p { margin-bottom: 1.4rem; }
.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}
.post-content li { margin-bottom: 0.5rem; color: var(--text-mid); }
.post-content blockquote {
  border-left: 3px solid var(--teal);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--beige);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--teal);
}

/* --- Booking --- */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.rate-card {
  background: var(--beige);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--beige-dark);
  margin-bottom: 1.5rem;
}

.rate-card h3 {
  font-size: 2rem;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.rate-card p { margin: 0; font-size: 0.9rem; }

.contact-info { margin-top: 2rem; }
.contact-info a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 5rem;
  align-items: start;
}

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

.about-image-box {
  aspect-ratio: 3/4;
  background: var(--beige);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--taupe);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem;
}

.credentials {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.credential {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--taupe);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.credential::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--taupe);
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  background: var(--teal);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer__brand h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer__brand p { font-size: 0.9rem; max-width: 280px; }

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.footer__links { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__acknowledgement {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.5;
  font-style: italic;
}

/* --- Cal.com Embed --- */
.cal-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-light);
  text-align: center;
  padding: 2rem;
}

.cal-embed-placeholder {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero { min-height: auto; padding: 9rem 0 5rem; }
  .hero::before { display: none; }
  .hero__image { order: -1; }
  .hero__image-box { max-width: 360px; margin: 0 auto; aspect-ratio: 1/1; }

  .support-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1; }

  .booking-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { position: static; }

  .cta-banner { padding: 2.5rem 1.5rem; }
}

@media (max-width: 600px) {
  section { padding: 4rem 0; }
  .page-header { padding: 8rem 0 3.5rem; }
  .hero { padding: 8rem 0 4rem; }
  .container { padding: 0 1.25rem; }
  .container--narrow { padding: 0 1.25rem; }

  .support-grid,
  .blog-grid { gap: 1.25rem; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.bg-beige { background: var(--beige); }
.bg-white { background: var(--white); }
