/*
Theme Name: WantBB Fertility
Theme URI: https://wantbb.com/
Author: Codex
Description: Warm Chinese international fertility consultation theme with editable package plans.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: georgia-fertility
*/

:root {
  --ink: #382433;
  --muted: #856979;
  --line: #f2cfda;
  --paper: #ffffff;
  --mist: #fff0f6;
  --soft: #fff8fb;
  --rose: #ea6d9a;
  --rose-dark: #b93f70;
  --teal: #a65aa2;
  --teal-dark: #7e3b78;
  --coral: #f28b79;
  --lilac: #f5e9ff;
  --cream: #fff9f1;
  --shadow: 0 18px 42px rgba(154, 61, 101, 0.15);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff8fb;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(18px, calc((100vw - 1180px) / 2));
  background: rgba(255, 250, 252, 0.94);
  border-bottom: 1px solid rgba(242, 207, 218, 0.92);
  backdrop-filter: blur(18px);
}

body.admin-bar .site-header {
  top: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, #f27aa6, #b959aa 52%, #f3a07f);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(234, 109, 154, 0.28);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #543448;
  font-size: 15px;
}

.site-nav a {
  padding: 7px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--rose-dark);
  border-color: var(--rose);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: #fff9fb;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-section {
  position: relative;
  min-height: clamp(560px, 86vh, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #6f2c4b;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(102, 35, 67, 0.8) 0%, rgba(168, 75, 119, 0.54) 46%, rgba(255, 188, 204, 0.2) 100%),
    linear-gradient(0deg, rgba(83, 36, 61, 0.44), rgba(255, 211, 224, 0.04));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0 72px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: #ffe1ea;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.18;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(36px, 7vw, 72px);
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: 22px;
}

.hero-copy {
  max-width: 650px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-button,
.secondary-button,
.package-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.primary-button,
.package-action {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), #d5528a);
  box-shadow: 0 12px 26px rgba(234, 109, 154, 0.28);
}

.primary-button:hover,
.package-action:hover {
  background: var(--rose-dark);
}

.secondary-button {
  color: var(--rose-dark);
  background: #fff;
  border-color: #f1bdd1;
}

.secondary-button:hover {
  border-color: var(--rose);
}

.hero-actions .secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.hero-metrics span {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  min-height: 40px;
  padding: 7px 12px;
  color: #fff8fb;
  background: rgba(255, 234, 241, 0.18);
  border: 1px solid rgba(255, 228, 238, 0.34);
  border-radius: 14px;
}

.hero-metrics strong {
  font-size: 20px;
}

.intro-band,
.process-section {
  padding: 84px 0;
  background: var(--paper);
}

.intro-grid,
.contact-grid,
.faq-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.intro-copy {
  color: #6d5263;
  font-size: 17px;
}

.intro-copy p:first-child {
  margin-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 46px 0 76px;
}

.feature-card,
.package-card,
.timeline article,
.faq-list details,
.contact-panel,
.admin-panel,
.package-editor {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.feature-card {
  padding: 26px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 32px;
  margin-bottom: 18px;
  color: var(--teal-dark);
  background: linear-gradient(135deg, #ffe8f1, var(--lilac));
  border-radius: 10px;
  font-weight: 900;
}

.feature-card h3,
.timeline h3 {
  margin-bottom: 8px;
}

.feature-card p,
.timeline p {
  margin: 0;
  color: var(--muted);
}

.packages-section {
  padding: 84px 0;
  background: linear-gradient(180deg, #fff0f6, #fff8fb 72%, #ffffff);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 222, 236, 0.9), rgba(255, 255, 255, 0) 38%),
    #fff;
  box-shadow: 0 12px 30px rgba(154, 61, 101, 0.08);
}

.package-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--rose), #f7a2bd, var(--teal));
}

.package-card--featured {
  border-color: rgba(234, 109, 154, 0.55);
  box-shadow: var(--shadow);
}

.package-top {
  padding: 28px 22px 12px;
  background: linear-gradient(180deg, #fff2f7, #fff);
}

.package-card--featured .package-top {
  background: linear-gradient(180deg, #ffe7f1, #fff);
}

.package-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.package-number,
.package-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.package-number {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--teal));
  box-shadow: 0 8px 18px rgba(185, 63, 112, 0.18);
}

.package-tag {
  color: var(--rose-dark);
  background: #ffe1ec;
}

.package-top h3 {
  min-height: 52px;
  margin-bottom: 12px;
  font-size: 23px;
}

.package-top p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 22px 18px;
  padding: 14px 14px;
  background: linear-gradient(135deg, #fff7fa, #ffeaf2);
  border: 1px solid #f5ccdb;
  border-radius: 14px;
}

.price-label {
  align-self: center;
  padding: 4px 8px;
  color: var(--rose-dark);
  background: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.price {
  color: var(--rose-dark);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 20px;
}

.highlight-row span {
  padding: 5px 8px;
  color: var(--teal-dark);
  background: #fff0f6;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.package-detail {
  border-top: 1px solid var(--line);
}

.package-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 22px;
  color: #4b3041;
  font-weight: 900;
  cursor: pointer;
}

.package-detail summary::after {
  content: "+";
  color: var(--rose);
  font-size: 22px;
  line-height: 1;
}

.package-detail[open] summary::after {
  content: "-";
}

.check-list,
.note-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 22px 22px 42px;
  color: #6d5263;
  font-size: 14px;
}

.payment-list,
.exclude-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 22px 22px;
  list-style: none;
}

.payment-list li,
.exclude-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 10px 10px;
  background: #fff7fa;
  border: 1px solid #f7dbe5;
  border-radius: 10px;
}

.exclude-list li {
  grid-template-columns: 1fr auto;
}

.payment-index {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--teal));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(185, 63, 112, 0.18);
}

.payment-name,
.exclude-list span {
  min-width: 0;
}

.payment-list strong,
.exclude-list strong {
  white-space: nowrap;
  color: var(--rose-dark);
}

.package-action {
  margin: 18px 22px 22px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.timeline article {
  padding: 22px;
}

.timeline span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--teal));
  border-radius: 12px;
  font-weight: 900;
}

.faq-section,
.contact-section {
  padding: 84px 0;
}

.faq-section {
  background: linear-gradient(180deg, var(--soft), #fff2f7);
}

.faq-grid > div:first-child p {
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0 20px;
}

.faq-list summary {
  padding: 18px 0;
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  margin-top: 0;
  color: var(--muted);
}

.contact-section {
  background: #fff;
}

.contact-panel {
  display: grid;
  gap: 10px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-panel a,
.contact-panel p {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  margin: 0;
  padding: 10px 12px;
  background: #fff7fa;
  border-radius: 12px;
}

.contact-panel span {
  color: var(--muted);
}

.contact-panel strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-note {
  min-height: 76px;
}

.site-footer {
  padding: 28px 0;
  color: #ffeef5;
  background: linear-gradient(135deg, #71314f, #9a4776);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 18px;
  align-items: center;
}

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  color: #fff;
  font-weight: 800;
}

.admin-body {
  background: #fff8fb;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px max(18px, calc((100vw - 1180px) / 2));
  background: rgba(255, 250, 252, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.admin-header h1 {
  margin: 0;
  font-size: 28px;
}

.admin-main {
  width: min(1180px, calc(100% - 36px));
  margin: 30px auto 60px;
}

.admin-panel,
.package-editor {
  padding: 22px;
  margin-bottom: 18px;
}

.admin-panel h2,
.package-editor h3 {
  margin-bottom: 16px;
}

.admin-panel-head,
.package-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #543448;
  font-weight: 800;
}

label span {
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #edc6d4;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input {
  height: 44px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

input:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(234, 109, 154, 0.14);
}

.wide-field {
  margin: 16px 0;
}

.admin-textarea-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.text-button {
  min-height: 38px;
  padding: 0 12px;
  color: var(--rose-dark);
  background: #fff;
  border: 1px solid #f1bed0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.save-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  color: #fff;
  background: var(--teal-dark);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: 180ms ease;
}

.save-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.save-toast.is-error {
  background: var(--rose-dark);
}

@media (max-width: 1060px) {
  .package-grid {
    grid-template-columns: 1fr;
  }

  .package-card {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
  }

  .package-top,
  .price-row,
  .highlight-row,
  .package-action {
    grid-column: 1;
  }

  .package-detail {
    grid-column: 2;
  }

  .package-top h3 {
    min-height: 0;
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .field-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 18px 16px;
    background: #fff9fb;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 28px rgba(154, 61, 101, 0.1);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f7dbe5;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .hero-section {
    min-height: 650px;
    align-items: end;
  }

  .hero-image {
    object-position: 60% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(255, 222, 232, 0.08) 0%, rgba(129, 48, 86, 0.78) 58%, rgba(91, 35, 64, 0.92) 100%),
      linear-gradient(90deg, rgba(166, 74, 119, 0.36), rgba(255, 189, 207, 0.16));
  }

  .hero-content {
    padding: 240px 0 34px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .intro-grid,
  .contact-grid,
  .faq-grid,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .intro-band,
  .packages-section,
  .process-section,
  .faq-section,
  .contact-section {
    padding: 56px 0;
  }

  .section-head {
    display: grid;
    gap: 12px;
  }

  .package-card {
    display: block;
  }

  .package-top,
  .price-row,
  .highlight-row,
  .package-action,
  .package-detail {
    grid-column: auto;
  }

  .price {
    font-size: 34px;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .field-grid,
  .admin-textarea-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    position: static;
    display: grid;
  }
}

@media (max-width: 480px) {
  .section-inner,
  .hero-content,
  .admin-main {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 27px;
  }

  .hero-actions,
  .admin-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button,
  .package-action {
    width: 100%;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .package-top,
  .price-row,
  .highlight-row,
  .package-detail summary,
  .contact-panel,
  .admin-panel,
  .package-editor {
    padding-left: 16px;
    padding-right: 16px;
  }

  .check-list,
  .note-list {
    padding-left: 34px;
    padding-right: 16px;
  }

  .payment-list,
  .exclude-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .payment-list li {
    grid-template-columns: auto 1fr;
    gap: 5px;
    align-items: start;
  }

  .exclude-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .payment-index {
    display: inline-grid;
    grid-row: span 2;
    margin-top: 1px;
  }

  .payment-list strong {
    grid-column: 2;
  }

  .payment-list strong,
  .exclude-list strong {
    white-space: normal;
  }

  .contact-panel a,
  .contact-panel p {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
