/*
Theme Name: Precious Chapters
Theme URI: https://preciouschapters.com/
Author: Precious Chapters
Description: A story-led, lightweight WordPress theme for Precious Chapters.
Version: 1.0.1
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: precious-chapters
*/

:root {
  --pc-ivory: #fff9f2;
  --pc-paper: #fffdf9;
  --pc-coral: #f99e8a;
  --pc-coral-deep: #dc7d69;
  --pc-gold: #d59d2e;
  --pc-ink: #3e3531;
  --pc-taupe: #806d63;
  --pc-line: rgba(213, 157, 46, .34);
  --pc-shadow: 0 18px 55px rgba(62, 53, 49, .10);
  --pc-serif: "Cormorant Garamond", Georgia, serif;
  --pc-sans: "Montserrat", Arial, sans-serif;
  --pc-script: "Allura", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--pc-ink);
  background: var(--pc-ivory);
  font-family: var(--pc-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed; top: 12px; left: 12px; z-index: 9999; width: auto; height: auto;
  padding: .75rem 1rem; clip: auto; background: var(--pc-paper); color: var(--pc-ink);
}
.pc-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.pc-narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.pc-section { padding: clamp(76px, 10vw, 132px) 0; position: relative; }
.pc-section--paper { background: var(--pc-paper); }
.pc-section--ink { background: var(--pc-ink); color: var(--pc-ivory); }
.pc-eyebrow {
  margin: 0 0 1rem; color: var(--pc-gold); font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
}
.pc-script { color: var(--pc-coral-deep); font: 400 clamp(1.75rem, 4vw, 2.8rem)/1 var(--pc-script); }
h1, h2, h3, h4 { margin: 0 0 .7em; font-family: var(--pc-serif); font-weight: 500; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(3.6rem, 8vw, 7.5rem); }
h2 { font-size: clamp(2.7rem, 5vw, 4.6rem); }
h3 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
p { margin: 0 0 1.4rem; }
.pc-lede { color: var(--pc-taupe); font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 650px; }
.pc-section--ink .pc-lede { color: rgba(255, 249, 242, .75); }
.pc-rule { display: flex; align-items: center; gap: .75rem; width: 170px; margin: 1.6rem 0; color: var(--pc-gold); }
.pc-rule::before, .pc-rule::after { content: ""; height: 1px; flex: 1; background: currentColor; opacity: .55; }
.pc-rule::after { content: "✦"; height: auto; flex: 0; background: none; font-size: .7rem; }
.pc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 48px; padding: .78rem 1.3rem; border: 1px solid var(--pc-gold);
  border-radius: 999px; background: var(--pc-gold); color: #fff; text-decoration: none;
  font-size: .74rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.pc-btn:hover, .pc-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(213,157,46,.24); background: #bd8520; }
.pc-btn--ghost { background: transparent; color: var(--pc-ink); border-color: rgba(62,53,49,.3); }
.pc-btn--ghost:hover, .pc-btn--ghost:focus-visible { background: var(--pc-paper); box-shadow: none; }
.pc-btn--light { background: var(--pc-ivory); border-color: var(--pc-ivory); color: var(--pc-ink); }
.pc-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.site-header {
  position: absolute; inset: 0 0 auto; z-index: 50; padding: 20px 0;
  border-bottom: 1px solid var(--pc-line); color: var(--pc-ink);
  background: rgba(255, 249, 242, .92); backdrop-filter: blur(12px);
}
.site-header--solid { position: relative; color: var(--pc-ink); border-color: var(--pc-line); background: var(--pc-ivory); }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.custom-logo-link img { width: auto; max-height: 70px; }
.site-title { font: 600 1.35rem/1 var(--pc-serif); text-decoration: none; }
.primary-menu, .footer-menu { display: flex; align-items: center; gap: 1.7rem; padding: 0; margin: 0; list-style: none; }
.primary-menu a, .footer-menu a { text-decoration: none; font-size: .72rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--pc-gold); }
.header-cta { justify-self: end; }
.menu-toggle { display: none; justify-self: end; border: 0; background: none; color: inherit; padding: .5rem; }
.menu-toggle span { display: block; width: 25px; height: 1px; background: currentColor; margin: 6px 0; }

.pc-hero {
  min-height: min(920px, 100svh); display: grid; align-items: center; position: relative; overflow: hidden;
  color: var(--pc-ink); background-color: var(--pc-ivory); background-position: center; background-size: cover; background-repeat: no-repeat;
}
.pc-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,249,242,.98) 0%, rgba(255,249,242,.90) 34%, rgba(255,249,242,.52) 58%, rgba(255,249,242,.12) 100%); }
.pc-hero::after { content: ""; position: absolute; right: -8%; bottom: -25%; width: 55vw; height: 55vw; border: 1px solid rgba(213,157,46,.38); border-radius: 50%; }
.pc-hero__content { position: relative; z-index: 1; max-width: 680px; padding: 165px 0 90px; }
.pc-hero h1 { font-size: clamp(3.6rem, 7vw, 6.8rem); }
.pc-hero h1 em { display: block; color: var(--pc-coral-deep); font-style: italic; font-weight: 400; }
.pc-hero .pc-lede { color: var(--pc-taupe); max-width: 590px; }
.pc-hero .pc-btn--light { background: rgba(255,253,249,.82); border-color: rgba(62,53,49,.24); }

.pc-intro-grid, .pc-feature-grid, .pc-story-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(38px, 8vw, 110px); }
.pc-image-frame { position: relative; }
.pc-image-frame::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--pc-gold); z-index: 0; }
.pc-image-frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--pc-shadow); }
.pc-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 3rem; }
.pc-card { min-height: 520px; position: relative; overflow: hidden; color: #fff; background: var(--pc-ink); }
.pc-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(43,34,30,.86), transparent 65%); }
.pc-card:hover img { transform: scale(1.035); }
.pc-card__body { position: absolute; inset: auto 24px 22px; z-index: 1; }
.pc-card__body h3 { font-size: 2rem; margin-bottom: .2rem; }
.pc-card__body p { margin: 0; font-size: .82rem; opacity: .8; }
.pc-feature-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% 10px 10px; box-shadow: var(--pc-shadow); }
.pc-number { display: inline-block; margin-bottom: 1rem; color: var(--pc-coral-deep); font: italic 2rem/1 var(--pc-serif); }

.pc-quote { text-align: center; }
.pc-quote blockquote { margin: 0 auto; max-width: 920px; font: 500 clamp(2.4rem, 5vw, 5rem)/1.05 var(--pc-serif); }
.pc-quote blockquote em { color: var(--pc-coral); font-weight: 400; }
.pc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3.5rem; background: var(--pc-line); border: 1px solid var(--pc-line); }
.pc-step { padding: clamp(28px, 4vw, 52px); background: var(--pc-ivory); }
.pc-step p { color: var(--pc-taupe); margin: 0; }

.pc-page-hero { padding: 190px 0 90px; text-align: center; background: var(--pc-paper); }
.pc-page-hero h1 { max-width: 900px; margin-inline: auto; color: var(--pc-ink); }
.pc-page-hero .pc-lede { margin-inline: auto; }
.pc-gallery { display: grid; grid-template-columns: 1.3fr .7fr; grid-template-rows: repeat(2, 330px); gap: 18px; margin-top: 3rem; }
.pc-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pc-gallery img:first-child { grid-row: 1 / 3; }
.pc-package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 3rem; }
.pc-package { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 46px); border: 1px solid var(--pc-line); background: var(--pc-paper); }
.pc-package:nth-child(2) { transform: translateY(-20px); border-top: 4px solid var(--pc-coral); box-shadow: var(--pc-shadow); }
.pc-package__icon { color: var(--pc-gold); font-size: 1.5rem; }
.pc-package ul { padding-left: 1.1rem; color: var(--pc-taupe); }
.pc-package .pc-btn { margin-top: auto; align-self: flex-start; }
.pc-note { margin-top: 2rem; padding: 1.3rem 1.5rem; border-left: 2px solid var(--pc-gold); background: rgba(213,157,46,.08); color: var(--pc-taupe); }

.pc-cta { text-align: center; overflow: hidden; }
.pc-cta::before, .pc-cta::after { content: "✦"; position: absolute; color: var(--pc-gold); opacity: .35; font-size: 5rem; }
.pc-cta::before { left: 5%; top: 20%; }
.pc-cta::after { right: 5%; bottom: 15%; font-size: 3rem; }
.site-footer { padding: 60px 0 24px; background: #302824; color: rgba(255,249,242,.76); }
.site-footer__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; padding-bottom: 45px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .custom-logo-link img { filter: brightness(0) invert(1); }
.site-footer__tagline { max-width: 500px; margin-top: 1rem; }
.footer-menu { justify-content: flex-end; flex-wrap: wrap; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; font-size: .72rem; letter-spacing: .05em; }

.entry-content { padding: 80px 0; }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1180px; }

@media (max-width: 960px) {
  .pc-card-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-package-grid { grid-template-columns: 1fr; }
  .pc-package:nth-child(2) { transform: none; }
  .header-cta { display: none; }
}
@media (max-width: 760px) {
  .pc-container, .pc-narrow { width: min(100% - 28px, 1180px); }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .custom-logo-link img { max-height: 54px; }
  .menu-toggle { display: block; }
  .site-navigation {
    position: fixed; inset: 0; display: grid; place-items: center; padding: 100px 24px;
    background: var(--pc-ink); color: var(--pc-ivory); opacity: 0; visibility: hidden; transition: .25s ease;
  }
  .site-navigation.is-open { opacity: 1; visibility: visible; }
  .primary-menu { flex-direction: column; gap: 1.5rem; }
  .primary-menu a { font: 500 2rem/1.2 var(--pc-serif); text-transform: none; letter-spacing: 0; }
  .menu-toggle { position: relative; z-index: 2; }
  .pc-hero { min-height: 760px; }
  .pc-hero::before { background: linear-gradient(90deg, rgba(255,249,242,.97), rgba(255,249,242,.72)); }
  .pc-hero__content { padding-top: 150px; }
  .pc-intro-grid, .pc-feature-grid, .pc-story-grid { grid-template-columns: 1fr; }
  .pc-image-frame { margin: 20px 14px 0; }
  .pc-card-grid { grid-template-columns: 1fr; }
  .pc-card { min-height: 430px; }
  .pc-steps { grid-template-columns: 1fr; }
  .pc-gallery { grid-template-columns: 1fr; grid-template-rows: 440px 260px 260px; }
  .pc-gallery img:first-child { grid-row: auto; }
  .site-footer__top { grid-template-columns: 1fr; }
  .footer-menu { justify-content: flex-start; gap: 1rem; }
  .site-footer__bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
