/* ==========================================================================
   Chrysandy Lai theme — design tokens + shared component/motion CSS.
   Page layout is built with inline styles in the PHP templates (mirrors the
   source Claude Design mockups almost verbatim, for pixel fidelity); this
   file carries only what inline style="" cannot express: custom-property
   defaults, resets, @media rules, :hover/:focus states, keyframes, and the
   handful of components reused across templates.
   All colours/fonts/spacing route through the custom properties below so
   Appearance → Customize can re-skin the whole site without touching this
   file.
   ========================================================================== */

:root {
  /* --- brand colors (Customizer-overridable) --- */
  --brass: #b2a376;
  --ink: #111e27;
  --ink-lifted: #26333c;
  --canvas: #ffffff;
  --bone: #f5f3ef;

  --text-heading: #111e27;
  --text-body: #5f686f;
  --text-on-dark: #ffffff;
  --text-on-dark-soft: #f5f3ef;
  --text-accent: #b2a376;
  --border-on-dark: #ffffff;
  --border-on-light: #111e27;

  /* --- type (Customizer-overridable family names) --- */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Quicksand', Arial, sans-serif;
  --font-script: 'Sail', cursive;

  /* --- shape --- */
  --radius-none: 0px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-pill-inner: 30px;
  --radius-pill-input: 31px;
  --radius-pill: 34px;
  --radius-pill-submit: 36px;
  --radius-full: 100%;

  /* --- spacing --- */
  --space-section: 130px;
  --space-footer: 140px;
  --container-max: 1290px;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body.chrysandy-lai {
  margin: 0;
  background: var(--canvas);
  color: var(--text-body);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.cl-container img { max-width: 100%; }

a { color: var(--text-heading); text-decoration: none; transition: color .3s; }
a:hover { color: var(--brass); }

::selection { background: var(--brass); color: var(--canvas); }

input, select, textarea { font-family: var(--font-body); }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--brass); }
input[data-search]::-webkit-search-cancel-button { display: none; }

.cl-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 30px;
}

.cl-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--canvas);
  color: var(--ink);
  padding: 12px 20px;
  z-index: 9999;
  font-family: var(--font-display);
}
.cl-skip-link:focus { left: 10px; top: 10px; }

.cl-ink-band {
  background: var(--ink);
  background-image: var(--cl-pattern-tile);
  background-repeat: repeat;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.cl-nav { display: flex; align-items: center; justify-content: space-between; padding: 40px 0; position: relative; }
.cl-nav__logo { display: flex; align-items: center; color: var(--text-on-dark); flex: none; }
/* Constrain on BOTH axes. Height alone lets a very wide wordmark push the
   nav links off the row; max-width alone lets a tall/square logo balloon
   the header height. object-fit keeps the aspect ratio inside the box. */
.cl-nav__logo img {
  height: 30px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.cl-nav__logo span { font-family: var(--font-display); font-size: 22px; color: var(--text-on-dark); }

.cl-footer-logo {
  height: 34px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

@media (max-width: 767px) {
  .cl-nav__logo img { max-width: 180px; }
  .cl-footer-logo { max-width: 200px; }
}
.cl-nav__links { display: flex; align-items: center; gap: 30px; }
.cl-nav__links a { font-family: var(--font-display); font-size: 20px; line-height: 28px; color: var(--text-on-dark); white-space: nowrap; }
.cl-nav__links a.is-current { font-weight: 500; color: var(--brass); }
.cl-nav__actions { display: flex; align-items: center; gap: 16px; }
.cl-nav__toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-full); background: none; cursor: pointer; color: var(--text-on-dark);
}
.cl-nav__panel { display: none; flex-direction: column; gap: 6px; padding: 0 0 20px; border-top: 1px solid var(--border-on-dark); }
.cl-nav__panel a { font-family: var(--font-display); font-size: 22px; line-height: 40px; color: var(--text-on-dark); }
.cl-nav__panel a.is-current { color: var(--brass); }
.cl-nav__panel.is-open { display: flex; }

@media (max-width: 1330px) {
  .cl-nav__links a { font-size: 17px; }
  .cl-nav__links { gap: 18px; }
}
@media (max-width: 1180px) {
  .cl-nav__links { display: none; }
  .cl-nav__toggle { display: inline-flex; }
}

/* ==========================================================================
   Button — double-capsule primary, submit, text link
   ========================================================================== */

.cl-btn {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: normal;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  background: none;
  text-decoration: none;
}
.cl-btn--primary {
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--canvas);
  gap: 0;
}
.cl-btn--primary .cl-btn__label {
  height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-pill-inner);
  background: var(--ink);
  color: var(--text-on-dark);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: color .3s;
}
.cl-btn--primary .cl-btn__icon { width: 32px; display: inline-flex; justify-content: center; color: var(--ink); }
.cl-btn--submit {
  height: 41px; padding: 0 22px; border-radius: var(--radius-pill-submit);
  background: var(--brass); color: var(--text-on-dark);
}
.cl-btn--text { gap: 8px; font-weight: 500; font-size: 24px; line-height: 37.44px; color: var(--text-heading); transition: color .3s; }
.cl-btn--text:hover { color: var(--brass); }

/* ==========================================================================
   Hero / breadcrumb bands
   ========================================================================== */

.cl-eyebrow { margin: 0 0 10px; font-family: var(--font-display); font-size: 20px; line-height: 28px; color: var(--brass); }
.cl-eyebrow--light { color: var(--text-heading); }

.cl-script { font-family: var(--font-script); font-weight: 400; color: var(--text-accent); }

[data-h1] { margin: 0 auto; font-family: var(--font-display); font-weight: 600; letter-spacing: normal; color: var(--text-on-dark); }

/* Rounded photo frame with a thin offset outline peeking out behind it —
   the hero portrait and any other "framed photo" moment. Two layers: the
   outline sits behind and offset (::before), the actual photo sits on top
   with its own matching radius. */
.cl-photo-frame { position: relative; }
.cl-photo-frame::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  right: -24px;
  bottom: -24px;
  border: 1px solid var(--border-on-dark);
  border-radius: 28px;
  z-index: 0;
}
.cl-photo-frame__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
}
@media (max-width: 767px) {
  .cl-photo-frame::before { top: 14px; left: 14px; right: -14px; bottom: -14px; border-radius: 20px; }
  .cl-photo-frame__inner { border-radius: 20px; }
}

@media (max-width: 991px) {
  [data-split] { grid-template-columns: 1fr !important; }
  [data-cols3] { grid-template-columns: 1fr 1fr !important; }
  [data-cols2] { grid-template-columns: 1fr !important; }
  [data-hero-image] { order: 1; }
  [data-hero-text] { order: 2; }
}
@media (max-width: 767px) {
  [data-cols3], [data-cols4] { grid-template-columns: 1fr !important; }
  [data-h1] { font-size: 40px !important; line-height: 48px !important; }
  [data-h1] [data-script] { font-size: 44px !important; }
  [data-controlrow] { flex-direction: column !important; align-items: stretch !important; }
  [data-searchwrap] { max-width: none !important; }
  [data-practicerow] { flex-direction: column !important; align-items: flex-start !important; gap: 30px !important; min-height: 0 !important; }
}

/* ==========================================================================
   Homepage — hero, situations scatter, FAQ dots
   ========================================================================== */

@media (max-width: 1180px) {
  .cl-home [data-navlinks] { display: none !important; }
  .cl-home [data-navtoggle] { display: inline-flex !important; }
}
@media (max-width: 991px) {
  .cl-home [data-h1] { font-size: 52px !important; line-height: 62px !important; }
  .cl-home [data-h1] [data-script] { font-size: 58px !important; }
  [data-scatter] { height: auto !important; }
  [data-bubble] { position: static !important; width: auto !important; margin: 0 0 18px !important; max-width: 590px; }
}
@media (max-width: 767px) {
  .cl-home [data-band] { padding: 80px 0 !important; }
  .cl-home [data-h1] { font-size: 40px !important; line-height: 48px !important; }
  [data-h2] { font-size: 32px !important; line-height: 40px !important; }
  [data-h2] [data-script] { font-size: 40px !important; }
  [data-faqq] { width: calc(100% - 24px) !important; margin-right: 0 !important; margin-left: 24px !important; }
  [data-faqbubble] { flex: 1 !important; }
  [data-faqavatar] { width: 40px !important; height: 40px !important; }
}

.situations-scatter--list [data-bubble] {
  position: static !important;
  width: auto !important;
  max-width: 590px;
  margin: 0 auto 18px !important;
}
.situations-scatter--list { height: auto !important; display: flex; flex-direction: column; align-items: center; }

@keyframes faqDotBounce {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
[data-faqdot] { animation: faqDotBounce 1.2s ease-in-out infinite; }
[data-faqitem]:nth-of-type(2) [data-faqdot] { animation-delay: .05s; }
[data-faqdot]:nth-of-type(2) { animation-delay: .15s; }
[data-faqdot]:nth-of-type(3) { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  [data-faqdot] { animation: none; }
}

/* ==========================================================================
   Blog index — search / filter / grid / pager
   ========================================================================== */

@media (max-width: 991px) {
  .cl-blog [data-cols3] { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 767px) {
  .cl-blog [data-cols3] { grid-template-columns: 1fr !important; }
}

.cl-filter-pill { all: unset; cursor: pointer; font-family: var(--font-display); font-size: 18px; line-height: 24px; padding: 10px 22px; border-radius: var(--radius-pill); border: 1px solid var(--ink); background: var(--canvas); color: var(--ink); }
.cl-filter-pill.is-active { background: var(--ink); color: var(--canvas); }

.cl-pager-btn { all: unset; cursor: pointer; width: 40px; height: 40px; border-radius: var(--radius-full); border: 1px solid rgba(17,30,39,.25); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 16px; background: var(--canvas); color: var(--ink); }
.cl-pager-btn.is-current { border-color: var(--ink); background: var(--ink); color: var(--canvas); }
.cl-pager-btn:disabled { cursor: default; color: rgba(17,30,39,.35); }

/* ==========================================================================
   Overlap pattern — blog post featured image / contact info cards
   ========================================================================== */

[data-overlap-img] { margin-top: -180px; }
@media (max-width: 991px) { [data-overlap-img] { margin-top: -90px; } }
@media (max-width: 767px) { [data-overlap-img] { margin-top: -30px; } }

[data-overlap-cards] { margin-top: -100px; }
@media (max-width: 991px) { [data-overlap-cards] { margin-top: -50px; } }
@media (max-width: 767px) { [data-overlap-cards] { margin-top: -18px; } }

/* ==========================================================================
   Article typography (single post)
   ========================================================================== */

[data-article] h2 { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 40px; color: var(--text-heading); margin: 50px 0 18px; }
[data-article] p { font-family: var(--font-body); font-size: 18px; line-height: 28px; color: var(--text-body); margin: 0 0 22px; }
[data-article] ul { margin: 0 0 22px; padding-left: 0; list-style: none; }
[data-article] li { position: relative; padding-left: 26px; font-family: var(--font-body); font-size: 18px; line-height: 28px; color: var(--text-body); margin-bottom: 10px; }
[data-article] li::before { content: ""; position: absolute; left: 0; top: 12px; width: 10px; height: 1px; background: var(--brass); }
[data-article] blockquote { margin: 50px 0; padding: 40px 44px; font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 36px; color: var(--text-heading); font-style: italic; }
[data-article] img { max-width: 100%; height: auto; }

@media (max-width: 767px) {
  [data-h1-post] { font-size: 36px !important; line-height: 44px !important; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

@media (max-width: 767px) {
  .cl-contact [data-h1] { font-size: 40px !important; line-height: 48px !important; }
}

/* ==========================================================================
   Blog / practice-row placeholders (empty-state photography slots)
   ========================================================================== */

/* Real photos fill the box edge-to-edge; only the empty-state
   placeholder (--empty) gets breathing room, so a real photo never
   shrinks inside a padded frame. */
.cl-imgslot { display: flex; align-items: center; justify-content: center; background: var(--bone); color: var(--text-body); text-align: center; font-family: var(--font-body); font-size: 14px; line-height: 20px; overflow: hidden; }
.cl-imgslot--empty { padding: 20px; }
.cl-imgslot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-imgslot__badge { display: inline-block; margin-top: 10px; font-family: var(--font-body); font-size: 13px; line-height: 18px; color: var(--brass); border: 1px dashed var(--brass); border-radius: 4px; padding: 3px 9px; }

/* ==========================================================================
   Repeater admin UI (Theme Options screen)
   ========================================================================== */

.cl-repeater { border: 1px solid #dcdcde; background: #fff; margin: 0 0 12px; }
.cl-repeater__row { display: grid; gap: 10px; padding: 14px; border-bottom: 1px solid #dcdcde; grid-template-columns: 1fr auto; align-items: start; }
.cl-repeater__row:last-child { border-bottom: none; }
.cl-repeater__fields { display: grid; gap: 8px; }
.cl-repeater__fields label { display: block; font-weight: 600; margin-bottom: 2px; }
.cl-repeater__fields input[type="text"], .cl-repeater__fields textarea, .cl-repeater__fields select { width: 100%; }
.cl-repeater__actions { display: flex; flex-direction: column; gap: 4px; }
.cl-repeater__empty { padding: 14px; color: #646970; font-style: italic; }
