/* ============================================================
   Joyce Studio — theme.css
   Design system: "Vogue meets Nigerian luxury"
   Mobile-first. Spacing system is defined once via custom
   properties and used everywhere so mobile/desktop padding
   stays perfectly consistent.
   ============================================================ */

:root {
  /* Brand palette */
  --ivory: #faf7f2;
  --ink: #11100f;
  --espresso: #241a1c;
  --gold: #c6a15b;
  --nude: #e9d8cc;
  --rose: #b98d88;
  --border: #e0d6cb;
  --muted: #8a7462;
  --body: #3d3531;

  /* ---------- SPACING SYSTEM (the "perfect padding" rules) ----------
     --pad-x: horizontal page gutter. 20px on small phones, scales up
     fluidly, caps at 64px on desktop. safe-area insets are respected
     so content never hides behind notches or home indicators. */
  --pad-x: max(20px, env(safe-area-inset-left));
  --pad-block: 56px;      /* vertical section padding, mobile */
  --gap-grid: 16px;       /* card/grid gaps, mobile */
  --radius: 4px;

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
}

@media (min-width: 640px) {
  :root {
    --pad-x: max(32px, env(safe-area-inset-left));
    --pad-block: 72px;
    --gap-grid: 20px;
  }
}
@media (min-width: 1024px) {
  :root {
    --pad-x: max(48px, calc((100vw - 1280px) / 2)); /* centered max-width via gutter */
    --pad-block: 96px;
    --gap-grid: 28px;
  }
}
@media (min-width: 1440px) {
  :root { --pad-x: max(64px, calc((100vw - 1280px) / 2)); }
}

/* ------------------------- Reset / base ------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Leave room for the sticky mobile action bar so it never covers content */
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  clip: rect(1px, 1px, 1px, 1px); overflow: hidden; white-space: nowrap;
}

/* Universal content gutter — every section uses .wrap so left/right
   padding is identical on every page, every breakpoint. */
.wrap {
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  margin: 0 auto;
  max-width: 1280px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------- Typography ------------------------- */
.eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 12px;
}

.page-title, .section-title, .cta-title, .hero-title, .article-page-title {
  font-family: var(--font-display);
  font-weight: 500; line-height: 1.08;
  margin: 0;
}
.hero-title   { font-size: clamp(2.5rem, 6.5vw, 4.5rem); }
.hero-title em { color: var(--gold); font-style: italic; }
.page-title   { font-size: clamp(2.25rem, 5.5vw, 3.5rem); margin-bottom: 16px; }
.section-title{ font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
.cta-title    { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.article-page-title { font-size: clamp(2rem, 5vw, 3.5rem); }
.card-title   { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; margin: 6px 0 4px; }
.card-sub     { color: var(--muted); font-size: 0.85rem; margin: 0; }
.card-text    { color: var(--body); font-size: 0.95rem; }

.section-narrow { max-width: 34rem; }
.article-byline { color: var(--muted); font-size: 0.9rem; margin: 14px 0 0; }
.event-meta { color: #a5978a; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.rule { border: 0; height: 1px; width: 64px; background: var(--gold); margin: 24px 0; }

/* ------------------------- Buttons ------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px;
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.btn-primary { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-primary:hover { background: var(--espresso); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }
.btn-outline-light { background: transparent; color: var(--ivory); border-color: #cbbfae; }
.btn-outline-light:hover { background: var(--ivory); color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 10px; }
.btn-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); text-decoration: underline;
}
.btn-nav { padding: 11px 20px; }

/* ------------------------- Header ------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: 0.06em; }
.brand-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.brand .custom-logo { max-height: 48px; width: auto; }

.primary-nav { display: none; align-items: center; gap: 26px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav-list a {
  text-decoration: none; font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: #4a3f3a;
}
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--gold); }
@media (min-width: 1024px) { .primary-nav { display: flex; } }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-menu { border-top: 1px solid var(--border); background: var(--ivory); }
.mobile-nav-list { list-style: none; margin: 0; padding: 8px var(--pad-x) 20px; }
.mobile-nav-list a {
  display: block; padding: 13px 0; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #4a3f3a; border-bottom: 1px solid #f0e9e0;
}

/* ------------------------- Sticky mobile CTA ------------------------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; background: var(--ink);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-cta a {
  flex: 1; text-align: center; text-decoration: none;
  padding: 17px 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.mobile-cta-book { color: var(--ivory); }
.mobile-cta-wa { color: var(--gold); border-left: 1px solid #3a2f2d; }
@media (min-width: 1024px) { .mobile-cta { display: none; } }

/* ------------------------- Layout sections ------------------------- */
.section { padding-top: var(--pad-block); padding-bottom: var(--pad-block); }
.section-tinted { background: rgba(233, 216, 204, 0.4); }
.section-dark { background: var(--espresso); color: var(--ivory); }
.section-dark .section-title, .section-dark .cta-title { color: var(--ivory); }
.section-dark p { color: #cbbfae; }
.section-center { text-align: center; }
.section-center .section-narrow { margin-left: auto; margin-right: auto; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 36px; flex-wrap: wrap;
}
.section-link {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none;
}
.section-link:hover { color: var(--gold); }

.split-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ------------------------- Hero ------------------------- */
.hero { background: var(--espresso); color: var(--ivory); overflow: hidden; }
.hero-grid {
  display: grid; gap: 36px; align-items: center;
  padding-top: 48px; padding-bottom: 48px;
}
.hero-copy { order: 2; }
.hero-media { order: 1; aspect-ratio: 2 / 3; max-height: 62vh; width: 100%; }
.hero-lede { color: #cbbfae; max-width: 30rem; margin: 20px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 88px; padding-bottom: 88px; }
  .hero-copy { order: 1; }
  .hero-media { order: 2; max-height: 72vh; }
}

.img-frame { overflow: hidden; background: var(--nude); margin: 0; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.img-frame:hover img { transform: scale(1.04); }

/* ------------------------- Cards & grids ------------------------- */
.card { background: #fff; border: 1px solid var(--border); }

.look-grid {
  display: grid; gap: var(--gap-grid);
  grid-template-columns: repeat(2, 1fr);
}
.look-grid-lg { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .look-grid { grid-template-columns: repeat(3, 1fr); }
  .look-grid-lg { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .look-grid { grid-template-columns: repeat(6, 1fr); }
  .look-grid-lg { grid-template-columns: repeat(3, 1fr); }
}

.look-media { display: block; aspect-ratio: 1; }
.look-card-body { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; align-items: flex-start; }
.look-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; margin: 0; line-height: 1.2; }
@media (min-width: 768px) {
  .look-card-body { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}

.package-grid { display: grid; gap: var(--gap-grid); }
@media (min-width: 900px) { .package-grid { grid-template-columns: repeat(3, 1fr); } }

.package-card { padding: 32px 28px; display: flex; flex-direction: column; }
.package-featured { outline: 1px solid var(--gold); }
.package-price { font-family: var(--font-display); font-size: 2.4rem; margin: 14px 0 2px; }
.package-meta { font-size: 0.75rem; color: var(--muted); margin: 0 0 16px; }
.package-includes { list-style: none; margin: 0 0 24px; padding: 0; font-size: 0.9rem; color: var(--body); flex: 1; }
.package-includes li { padding: 4px 0 4px 16px; position: relative; }
.package-includes li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.package-cta { width: 100%; }

.pricing-note { text-align: center; font-size: 0.78rem; color: var(--muted); font-style: italic; max-width: 30rem; margin: 8px auto 0; }

/* ------------------------- Next Available widget ------------------------- */
.next-available { background: var(--espresso); color: var(--ivory); }
.next-available-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px;
  padding-top: 52px; padding-bottom: 52px;
}
@media (min-width: 768px) {
  .next-available-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.next-slot-date { font-family: var(--font-display); font-size: clamp(1.7rem, 4.5vw, 2.8rem); font-weight: 500; margin: 6px 0 2px; }
.next-slot-time { color: var(--gold); letter-spacing: 0.2em; margin: 0; }
.next-slot-tz { font-size: 0.7rem; color: #a5978a; letter-spacing: 0.12em; }
.next-slot-note { color: #cbbfae; font-family: var(--font-display); font-size: 1.3rem; }
.next-slot-cta { flex-shrink: 0; }
.next-slot-skeleton span {
  display: block; height: 22px; width: 240px; margin-top: 10px;
  background: rgba(255,255,255,0.09);
  animation: joyce-pulse 1.4s ease-in-out infinite;
}
.next-slot-skeleton span + span { width: 160px; height: 14px; }
@keyframes joyce-pulse { 50% { opacity: .45; } }

/* ------------------------- Testimonials ------------------------- */
.testimonial-grid { display: grid; gap: var(--gap-grid); margin-top: 36px; }
@media (min-width: 900px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
.testimonial { padding: 32px 28px; margin: 0; }
.testimonial-quote { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: #4a3f3a; margin: 0; }
.testimonial-footer {
  margin-top: 18px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}

/* ------------------------- Articles ------------------------- */
.article-grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .article-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .article-grid { grid-template-columns: repeat(4, 1fr); gap: var(--gap-grid); } }

.article-media { display: block; aspect-ratio: 3 / 2; }
.article-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin: 14px 0 4px;
}
.article-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; line-height: 1.25; margin: 0; }
.article-title a { text-decoration: none; }
.article-title a:hover { color: var(--gold); }
.article-excerpt { font-size: 0.9rem; color: var(--body); margin: 8px 0 0; }

.article-wrap { max-width: 56rem; padding-top: var(--pad-block); padding-bottom: var(--pad-block); }
.article-hero { aspect-ratio: 3 / 2; margin: 32px 0; }
.article-content { font-size: 1.05rem; color: var(--body); }
.article-content p { margin: 0 0 1.4em; }
.breadcrumb {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

.breakdown { padding: 28px; margin: 36px 0; }
.breakdown ul { margin: 12px 0 0; padding-left: 20px; color: var(--body); font-size: 0.95rem; }

.credit-list { list-style: none; margin: 12px 0 0; padding: 0; }
.credit-list li {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border);
}
.credit-role { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.credit-name { font-family: var(--font-display); font-size: 1.15rem; text-decoration: none; }
.credit-name:hover { color: var(--gold); }

.related-look { padding: 36px 0; margin-top: 48px; }
.related-look-inner {
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
  padding: 0 var(--pad-x);
}
.related-look-media { width: 110px; height: 110px; flex-shrink: 0; }
.related-look-name { font-family: var(--font-display); font-size: 1.5rem; margin: 4px 0 0; color: var(--ivory); }
@media (min-width: 768px) {
  .related-look-inner { flex-direction: row; align-items: center; }
  .related-look-inner .btn { margin-left: auto; }
}

/* ------------------------- Booking engine ------------------------- */
.booking-wrap { max-width: 56rem; padding-top: var(--pad-block); padding-bottom: var(--pad-block); }
.booking-form { margin-top: 28px; }
.booking-step { border: 1px solid var(--border); background: #fff; padding: 28px 22px; margin: 0; }
@media (min-width: 640px) { .booking-step { padding: 40px 36px; } }
.step-title { font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; padding: 0 8px; }

.choice-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 20px; }
.choice-grid-2, .choice-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .choice-grid { grid-template-columns: repeat(3, 1fr); } .choice-grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .choice-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.choice input, .look-choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; padding: 16px 14px; border: 1px solid var(--border);
  font-size: 0.9rem; cursor: pointer; background: #fff; transition: border-color .15s, background-color .15s;
}
.choice:hover span { border-color: var(--gold); }
.choice input:checked + span { border-color: var(--gold); background: rgba(233, 216, 204, 0.45); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.choice-lg span { display: flex; flex-direction: column; gap: 4px; }
.choice-lg small { color: var(--muted); font-size: 0.75rem; }

.look-choice { display: block; cursor: pointer; }
.look-choice > span.img-frame { display: block; aspect-ratio: 1; border: 2px solid transparent; }
.look-choice input:checked + span.img-frame { border-color: var(--gold); }
.look-choice-name { display: block; font-family: var(--font-display); font-size: 1.05rem; padding: 8px 2px; }

.datetime-grid { display: grid; gap: 24px; margin-top: 20px; }
@media (min-width: 768px) { .datetime-grid { grid-template-columns: 1fr 1fr; } }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot-grid .slot {
  border: 1px solid var(--border); background: #fff; padding: 11px 6px;
  font-size: 0.85rem; cursor: pointer; font-family: var(--font-body);
}
.slot-grid .slot:hover { border-color: var(--gold); }
.slot-grid .slot[aria-pressed="true"] { border-color: var(--gold); background: rgba(233,216,204,.5); font-weight: 700; }
.slot-grid .slot-empty { grid-column: 1 / -1; color: var(--muted); font-size: 0.85rem; border: 0; cursor: default; }

.form-grid { display: grid; gap: 18px; margin-top: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-full { grid-column: 1 / -1; } }

.label {
  display: block; margin-bottom: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #6b5b53;
}
.field {
  width: 100%; border: 1px solid var(--border); background: #fff;
  padding: 13px 14px; font: inherit; font-size: 0.92rem; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.field:focus { border-color: var(--gold); outline: none; }

.booking-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 26px;
}
.booking-errors {
  border: 1px solid rgba(178, 34, 34, 0.4); background: #fdf2f2; color: #a02020;
  padding: 12px 16px; font-size: 0.88rem; margin-top: 18px;
}

.summary-list { margin: 0; }
.summary-list > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem;
}
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; text-align: right; }
.booking-card { padding: 28px 22px; margin-top: 24px; }
@media (min-width: 640px) { .booking-card { padding: 36px; } }
.booking-success {
  border: 1px solid var(--gold); background: rgba(233, 216, 204, 0.3);
  padding: 28px 22px; text-align: center; margin-top: 24px;
}

.my-booking-form { padding: 24px 20px; margin-top: 24px; }
.my-booking-form .btn { margin-top: 18px; }
@media (min-width: 640px) { .my-booking-form { padding: 32px; } }

/* ------------------------- Vendors ------------------------- */
.vendor-card { padding: 28px 24px; text-decoration: none; display: block; }
.vendor-card:hover .card-title { color: var(--gold); }
.vendor-links { list-style: none; display: flex; gap: 24px; padding: 0; margin: 20px 0 32px; }

/* ------------------------- Footer ------------------------- */
.site-footer { background: var(--ink); color: #cbbfae; margin-top: 0; }
.footer-grid {
  display: grid; gap: 36px;
  padding-top: 56px; padding-bottom: 56px;
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand { color: var(--ivory); font-size: 26px; margin: 0; }
.footer-blurb { color: #a5978a; font-size: 0.88rem; max-width: 20rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-nav a { display: inline-block; padding: 5px 0; color: #cbbfae; text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-contact { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; color: #a5978a; }
.footer-contact li { padding: 4px 0; }
.footer-contact a { color: #cbbfae; }
.footer-contact a:hover { color: var(--gold); }
.footer-base {
  border-top: 1px solid #2a2320; text-align: center;
  padding: 18px var(--pad-x) calc(18px + env(safe-area-inset-bottom));
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #7c6d63;
}
.footer-base p { margin: 0; }

/* WordPress alignment helpers */
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignwide { max-width: 1100px; }
.wp-caption-text { font-size: 0.8rem; color: var(--muted); }
.pagination, .nav-links { display: flex; gap: 8px; margin-top: 40px; }
.pagination a, .nav-links a { text-decoration: none; border: 1px solid var(--border); padding: 8px 14px; }
.pagination a:hover { border-color: var(--gold); }
