/* Astrology Horoscope template
 * Brand and component layer shared by One-page and Multi-page modes.
 * Layout geometry remains owned by one-page.css or multi-page.css, which load
 * after this stylesheet.
 *
 * Section map
 *   1. Design tokens                     - both modes
 *   2. Shared brand layer                - both modes
 *   3. Home hero skin                    - both modes, never .ios-page-header
 *   4. One-page only                     - body.ios-layout-one-page
 *   5. Multi-page only                   - body.ios-layout-multi-page
 *   6. Edge style, responsive, motion    - both modes
 *
 * Two contracts keep this file safe across modes:
 *
 * a) multi-page.css builds every inner-page hero from --ios-primary,
 *    --ios-accent, --ios-surface-soft and --ios-edge-radius. The token block in
 *    section 1 is therefore what brands Multi-page pages; without it those pages
 *    fall back to the theme's default blue palette.
 *
 * b) template-parts/sections/page-header.php renders Multi-page inner heroes
 *    with the SAME .ios-hero, .ios-hero-copy, .ios-hero-visual-wrap and
 *    .ios-hero-figure classes as the home hero, plus .ios-page-header. Every
 *    home-hero rule below is therefore written as
 *    .ios-hero:not(.ios-page-header) so it can never restyle an inner page.
 */

/* ============================================================
   1. Design tokens - both modes
   ============================================================ */

:root {
  --ios-primary: #0f172a;
  --ios-accent: #b38a3b;
  --ios-accent-dark: #b8872f;
  --ios-accent-bright: #d4a94f;
  --ios-accent-soft: #f2d28b;
  --ios-hero-deep: #111111;
  --ios-hero-mid: #1c1a18;
  --ios-hero-soft: #2b2620;
  --ios-panel-deep: #21183b;
  --ios-panel-soft: #34255a;

  /* --ios-bg is the DARK brand base, not the page background. multi-page.css
     builds .ios-blog-single-header from it behind white text, so it must stay
     dark. The light page wash lives in --ios-page-bg. */
  --ios-bg: #111111;
  --ios-page-bg: #f2ede4;
  --ios-surface: #ffffff;
  --ios-surface-soft: #f5f2eb;
  --ios-border: rgba(15, 23, 42, 0.08);
  --ios-text: #334155;
  --ios-text-strong: #0f172a;
  --ios-text-soft: #475569;
  --ios-radius: 22px;
  --ios-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

/* ============================================================
   2. Shared brand layer - both modes
   ============================================================ */

body.wp-theme-ios-quickstart-premium {
  color: var(--ios-text);
  background: var(--ios-page-bg);
}

.wp-theme-ios-quickstart-premium .ios-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.ios-header-inner {
  min-height: 82px;
}

.ios-brand-text {
  color: var(--ios-text-strong);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wp-theme-ios-quickstart-premium .ios-header-nav a {
  position: relative;
  color: var(--ios-text);
  font-weight: 600;
  transition: color 0.25s ease;
}

.ios-header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--ios-accent), #d8b86a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.ios-header-nav a:hover,
.ios-header-nav a:focus-visible {
  color: var(--ios-text-strong);
}

.ios-header-nav a:hover::after,
.ios-header-nav a:focus-visible::after {
  transform: scaleX(1);
}

.ios-kicker,
.ios-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ios-kicker::before,
.ios-section-eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.ios-section-eyebrow {
  color: var(--ios-accent);
}

.ios-section-title,
.ios-contact-section h2 {
  color: var(--ios-text-strong);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ios-section-text,
.ios-listing-card p,
.ios-faq-item p,
.ios-contact-section p,
.ios-site-footer p {
  color: var(--ios-text-soft);
  line-height: 1.75;
}

.ios-section {
  position: relative;
}

.wp-theme-ios-quickstart-premium .ios-section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* Buttons are shared: the Multi-page inner hero CTA in page-header.php and the
   WooCommerce buttons both use .ios-button / .ios-button-primary. */
.wp-theme-ios-quickstart-premium .ios-button {
  border-radius: 999px;
  padding: 0.95rem 1.65rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.ios-button:hover,
.ios-button:focus-visible {
  transform: translateY(-2px);
}

.ios-button-primary {
  border-color: transparent;
  color: var(--ios-primary);
  background: linear-gradient(135deg, var(--ios-accent-bright), var(--ios-accent-dark));
  box-shadow: 0 18px 35px rgba(212, 169, 79, 0.3);
}

.ios-button-primary:hover,
.ios-button-primary:focus-visible {
  background: linear-gradient(135deg, #e4bc68, #c99638);
  box-shadow: 0 24px 44px rgba(212, 169, 79, 0.36);
}

.ios-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fffdf8;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.ios-button-secondary:hover,
.ios-button-secondary:focus-visible {
  border-color: rgba(216, 184, 106, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

/* About */
.ios-about-section {
  position: relative;
  overflow: hidden;
  background: var(--ios-surface-soft);
}

.ios-about-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 138, 59, 0.16), transparent 68%);
  pointer-events: none;
}

.ios-about-grid,
.ios-contact-grid {
  align-items: center;
}

.ios-about-points {
  gap: 1rem;
}

.ios-about-point {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--ios-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.ios-about-point span:last-child {
  color: #1e293b;
  font-weight: 600;
}

.ios-about-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: var(--ios-accent);
  background: #f5ecd7;
  box-shadow: inset 0 0 0 1px rgba(179, 138, 59, 0.2);
}

/* Offerings / business surface. business.php renders this section with
   id="offerings" in both modes, so the panel stays shared. */
.ios-business-consultancy {
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.72), rgba(242, 233, 219, 0.94));
}

/* Listing cards */
.ios-listing-card {
  height: 100%;
  border: 1px solid var(--ios-border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, var(--ios-surface-soft) 100%);
  box-shadow: var(--ios-shadow);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.ios-listing-card:hover,
.ios-listing-card:focus-within {
  border-color: rgba(179, 138, 59, 0.28);
  box-shadow: 0 28px 50px rgba(15, 23, 42, 0.12);
  transform: translateY(-6px);
}

.ios-listing-card-body h3 {
  margin-bottom: 0.85rem;
  color: var(--ios-text-strong);
}

.ios-listing-card-media img {
  border-radius: 20px;
}

/* Gallery */
.ios-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ios-gallery-item:hover img {
  transform: scale(1.035);
}

/* Testimonials. The section keeps the page background; the cards carry the
   surface. .ios-light-eyebrow / .ios-light-title are the theme's "on dark"
   hooks, so they are pulled back to the dark palette here. */
.ios-testimonials-section {
  position: relative;
  overflow: hidden;
  background: none;
}

.ios-testimonials-overlay {
  background: none;
}

.ios-testimonials-inner {
  position: relative;
  z-index: 1;
}

.ios-testimonials-grid {
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ios-section-eyebrow.ios-light-eyebrow,
.ios-section-title.ios-light-title {
  color: #000000;
}

.ios-testimonial-card {
  position: relative;
  padding: 2rem;
  border: 1px solid var(--ios-border);
  border-radius: 24px;
  color: var(--ios-text-strong);
  background: var(--ios-surface);
  box-shadow: var(--ios-shadow);
}

.ios-testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(216, 184, 106, 0.45);
}

.ios-testimonial-quote {
  position: relative;
  z-index: 1;
  margin-bottom: 1.25rem;
  color: var(--ios-text-strong);
}

.ios-testimonial-name {
  color: var(--ios-text-strong);
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Offerings panel. business.php renders id="offerings" in both modes, so this
   dark band is shared; the id selector keeps it above .ios-business-consultancy. */
#offerings.ios-section.ios-cards {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(19, 15, 36, 0.96), rgba(39, 28, 67, 0.92)),
    linear-gradient(135deg, var(--ios-panel-deep), var(--ios-panel-soft));
}

#offerings.ios-section.ios-cards::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(30, 41, 59, 0.78));
}

#offerings.ios-section.ios-cards > .ios-container {
  position: relative;
  z-index: 1;
}

#offerings.ios-section.ios-cards h2,
#offerings.ios-section.ios-cards .ios-section-title {
  color: #ffffff;
}

/* FAQ panel. Uses the rendered .ios-faq-section class rather than
   .ios-section:has(.ios-faq-list) so it does not depend on :has() support. */
.ios-section.ios-faq-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(19, 15, 36, 0.96), rgba(39, 28, 67, 0.92)),
    linear-gradient(135deg, var(--ios-panel-deep), var(--ios-panel-soft));
}

.ios-section.ios-faq-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(30, 41, 59, 0.78));
}

.ios-section.ios-faq-section > .ios-container {
  position: relative;
  z-index: 1;
}

.ios-section.ios-faq-section .ios-kicker,
.ios-section.ios-faq-section .ios-section-title {
  color: #ffffff;
}

.ios-faq-list {
  display: grid;
  gap: 1rem;
}

.ios-faq-item {
  padding: 0.35rem 1.25rem;
  border: 1px solid var(--ios-border);
  border-radius: 20px;
  background: var(--ios-surface);
  box-shadow: var(--ios-shadow);
}

.ios-faq-item[open] {
  border-color: rgba(179, 138, 59, 0.25);
}

.ios-faq-item summary {
  position: relative;
  padding: 1.15rem 50px 1.15rem 0;
  color: #000000;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.ios-faq-item summary::-webkit-details-marker {
  display: none;
}

.ios-faq-item summary::after {
  content: "\25BE";
  position: absolute;
  top: 50%;
  right: 22px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--ios-text);
  transform: translateY(-50%);
}

.ios-faq-item[open] summary::after {
  content: "-";
}

.ios-faq-item p {
  color: var(--ios-text-soft);
}

/* Contact */
.ios-contact-section {
  background:
    radial-gradient(circle at top left, rgba(214, 176, 99, 0.12), transparent 24%),
    linear-gradient(135deg, #fff9fb 0%, var(--ios-page-bg) 56%, #e6ddcf 100%);
}

.wp-theme-ios-quickstart-premium .ios-contact-section .ios-contact-grid {
  gap: 2.5rem;
  align-items: start;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
}

.wp-theme-ios-quickstart-premium .ios-contact-section .ios-section-title {
  max-width: 12ch;
  font-size: clamp(2.2rem, 3.6vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.wp-theme-ios-quickstart-premium .ios-contact-section .ios-section-text {
  max-width: 30rem;
  font-size: 1.08rem;
  color: var(--ios-text-soft);
}

.wp-theme-ios-quickstart-premium .ios-contact-section .ios-kicker {
  color: var(--ios-accent);
}

.wp-theme-ios-quickstart-premium .ios-contact-list {
  margin-top: 1.5rem;
}

.wp-theme-ios-quickstart-premium .ios-contact-section .ios-contact-list a {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 700;
}

.ios-contact-list a,
.ios-footer-contact a {
  color: var(--ios-text-strong);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(179, 138, 59, 0.35);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.ios-contact-list a:hover,
.ios-contact-list a:focus-visible,
.ios-footer-contact a:hover,
.ios-footer-contact a:focus-visible {
  color: var(--ios-accent);
  border-color: rgba(179, 138, 59, 0.8);
}

.ios-contact-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(214, 176, 99, 0.16), transparent 26%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.05), transparent 22%),
    linear-gradient(135deg, #544a3e 0%, #6b5f51 52%, #847767 100%);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(12px);
}

.ios-contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 35%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 15px
    );
  pointer-events: none;
}

.wp-theme-ios-quickstart-premium .ios-form-placeholder {
  padding: 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
}

.wp-theme-ios-quickstart-premium .ios-form-placeholder p {
  color: rgba(226, 232, 240, 0.86);
}

.wp-theme-ios-quickstart-premium .ios-contact-card .ios-form-placeholder strong {
  color: #fffdf8;
}

.ios-form-placeholder,
.ios-form-placeholder strong,
.ios-form-placeholder p {
  position: relative;
  z-index: 1;
}

/* Footer */
.ios-site-footer {
  background: var(--ios-primary);
}

.wp-theme-ios-quickstart-premium .ios-site-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.08);
}

.ios-site-footer strong,
.ios-site-footer p,
.ios-site-footer a {
  color: #e2e8f0;
}

/* ============================================================
   3. Home hero skin - both modes, never .ios-page-header
   ============================================================
   hero.php        -> <section class="ios-hero ios-hero-visual ios-home-hero">
   hero-slider.php -> <div class="ios-hero-slide ios-hero ios-hero-visual">
   page-header.php -> <section class="ios-page-header ios-hero ios-hero-visual">

   :not(.ios-page-header) therefore matches the home hero and every slider
   slide in BOTH modes, while excluding all six Multi-page inner heroes, which
   are owned by multi-page.css. */

.ios-hero:not(.ios-page-header) {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.75rem;
  border-radius: 0 0 2.5rem 2.5rem;
  background:
    radial-gradient(circle at top right, rgba(214, 176, 99, 0.16), transparent 26%),
    radial-gradient(circle at bottom left, rgba(214, 176, 99, 0.10), transparent 20%),
    linear-gradient(135deg, var(--ios-hero-deep) 0%, var(--ios-hero-mid) 54%, var(--ios-hero-soft) 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.ios-hero:not(.ios-page-header)::before,
.ios-hero:not(.ios-page-header)::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.ios-hero:not(.ios-page-header)::before {
  top: -140px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: rgba(214, 176, 99, 0.14);
}

.ios-hero:not(.ios-page-header)::after {
  bottom: -120px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: rgba(214, 176, 99, 0.08);
}

.wp-theme-ios-quickstart-premium .ios-hero:not(.ios-page-header) .ios-kicker {
  color: var(--ios-accent-soft);
}

/* Slides after the first render an h2, so both headings are skinned. */
.wp-theme-ios-quickstart-premium .ios-hero:not(.ios-page-header) .ios-hero-copy h1,
.wp-theme-ios-quickstart-premium .ios-hero:not(.ios-page-header) .ios-hero-copy h2 {
  max-width: 18ch;
  color: #fffdf8;
  font-size: clamp(2.45rem, 4.2vw, 4rem);
  line-height: 1.06;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.wp-theme-ios-quickstart-premium .ios-hero:not(.ios-page-header) .ios-hero-copy h1 span {
  display: block;
}

.wp-theme-ios-quickstart-premium .ios-hero:not(.ios-page-header) .ios-hero-copy h1 span:first-child {
  color: #fffdf8;
}

.wp-theme-ios-quickstart-premium .ios-hero:not(.ios-page-header) .ios-hero-copy h1 span:nth-child(2) {
  background: linear-gradient(90deg, #f8ecd2 0%, var(--ios-accent-bright) 55%, #fff4de 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wp-theme-ios-quickstart-premium .ios-hero:not(.ios-page-header) .ios-hero-copy h1 span:last-child {
  color: #f4d489;
}

.wp-theme-ios-quickstart-premium .ios-hero:not(.ios-page-header) .ios-hero-copy p {
  max-width: 44rem;
  color: rgba(255, 248, 240, 0.88);
  font-size: 1.15rem;
}

.ios-hero:not(.ios-page-header) .ios-hero-actions {
  gap: 1rem;
  margin-top: 2rem;
}

.wp-theme-ios-quickstart-premium .ios-hero:not(.ios-page-header) .ios-hero-actions .ios-button {
  min-width: 202px;
  justify-content: center;
  text-align: center;
}

.wp-theme-ios-quickstart-premium .ios-hero:not(.ios-page-header) .ios-hero-badges {
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.wp-theme-ios-quickstart-premium .ios-hero:not(.ios-page-header) .ios-hero-badges span {
  min-width: 134px;
  justify-content: center;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--ios-border);
  border-radius: 999px;
  color: var(--ios-primary);
  background: rgba(255, 248, 240, 0.96);
  box-shadow: var(--ios-shadow);
  font-weight: 700;
}

/* Image-free heroes fall back to the stat card stack. */
.ios-hero:not(.ios-page-header) .ios-hero-card {
  padding: 1rem;
  border: 1px solid rgba(179, 138, 59, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68));
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

.ios-hero:not(.ios-page-header) .ios-stat-card {
  padding: 1.4rem;
  border: 1px solid var(--ios-border);
  border-radius: 22px;
  background: var(--ios-surface);
  box-shadow: var(--ios-shadow);
}

.wp-theme-ios-quickstart-premium .ios-hero:not(.ios-page-header) .ios-stat-card strong {
  color: var(--ios-text-strong);
  font-size: 1.1rem;
}

.wp-theme-ios-quickstart-premium .ios-hero:not(.ios-page-header) .ios-stat-card span {
  color: var(--ios-text-soft);
  line-height: 1.6;
}

/* Below 981px the theme's full-height photo panel does not apply, so the
   template radius shows. Above it, style.css owns the bleed treatment. */
.ios-hero:not(.ios-page-header) .ios-hero-figure img {
  border-radius: var(--ios-edge-radius, 20px);
}

/* Slider chrome */
.ios-hero-slider-nav {
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: rgba(33, 16, 26, 0.62);
  backdrop-filter: blur(10px);
}

.ios-hero-slider-dot {
  background: rgba(255, 255, 255, 0.48);
}

.ios-hero-slider-dot.is-active {
  background: var(--ios-accent-soft);
}

/* ============================================================
   4. One-page only - body.ios-layout-one-page
   ============================================================
   Deliberately small. One-page geometry is owned by one-page.css, and most of
   this template's styling is shared branding, so only the rules that depend on
   the single-page scroll narrative live here. */

/* Anchor targets must clear this template's 82px sticky header. one-page.css
   sets a generic 100px; this is tuned to the template's own header. */
body.ios-layout-one-page .ios-section[id] {
  scroll-margin-top: 96px;
}

/* On a single scrolling page the hero is the entire first impression, so it is
   compacted harder on small screens. Multi-page inner heroes get their height
   from multi-page.css (.ios-page-hero-height-*), so this is kept out of that
   mode to avoid fighting those classes. */
@media (max-width: 991px) {
  body.ios-layout-one-page .ios-hero:not(.ios-page-header) .ios-hero-copy h1,
  body.ios-layout-one-page .ios-hero:not(.ios-page-header) .ios-hero-copy h2 {
    max-width: none;
    font-size: 35px;
  }

  body.ios-layout-one-page .ios-hero:not(.ios-page-header) .ios-hero-badges {
    display: none;
  }
}

/* ============================================================
   5. Multi-page only - body.ios-layout-multi-page
   ============================================================
   Inner-page heroes, Blog, product discovery, WooCommerce and the functional
   business pages exist only in this mode. Geometry comes from multi-page.css;
   everything below is the brand skin for those structures. */

/* Inner-page hero. multi-page.css paints this from --ios-page-hero-image and a
   fixed navy overlay, so the plum brand colour and overlay weights are set
   here the same way crystal-heaven.css does it. */
body.ios-layout-multi-page .ios-page-header {
  --ios-page-hero-overlay-left: 0.9;
  --ios-page-hero-overlay-right: 0.24;
  background-color: var(--ios-hero-mid);
}

/* Image-free inner heroes fall back to the brand plum panel instead of the
   theme's pink/navy colour-mix default. */
body.ios-layout-multi-page .ios-page-header:not(.has-background-image) {
  background-image: linear-gradient(
    135deg,
    var(--ios-hero-deep) 0%,
    var(--ios-hero-mid) 54%,
    var(--ios-hero-soft) 100%
  );
}

body.ios-layout-multi-page .ios-page-header:not(.has-background-image)::before {
  background:
    radial-gradient(circle at 82% 18%, rgba(214, 176, 99, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(179, 138, 59, 0.12), transparent 68%);
}

body.ios-layout-multi-page .ios-page-header .ios-section-eyebrow,
body.ios-layout-multi-page .ios-page-header .ios-kicker {
  color: var(--ios-accent-soft);
}

body.ios-layout-multi-page .ios-page-header .ios-section-title {
  color: #fffdf8;
  letter-spacing: -0.035em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

body.ios-layout-multi-page .ios-page-header .ios-section-text {
  color: rgba(255, 248, 240, 0.88);
}

body.ios-layout-multi-page .ios-page-header .ios-button-primary {
  box-shadow: 0 18px 42px rgba(179, 138, 59, 0.34);
}

body.ios-layout-multi-page .ios-page-header .ios-hero-figure img {
  border-radius: var(--ios-edge-radius, 20px);
}

/* Blog index and cards. multi-page.css owns this geometry with
   body.ios-layout-multi-page selectors and loads AFTER this file, so the theme
   body class is added to the prefix. That keeps the brand skin winning on
   specificity instead of relying on !important. */
body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-index {
  background:
    radial-gradient(circle at 8% 18%, rgba(214, 176, 99, 0.12), transparent 25rem),
    var(--ios-page-bg);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-card {
  overflow: hidden;
  border: 1px solid var(--ios-border);
  border-radius: var(--ios-edge-radius, 24px);
  background: var(--ios-surface);
  box-shadow: var(--ios-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-card:hover {
  border-color: rgba(179, 138, 59, 0.28);
  box-shadow: 0 28px 50px rgba(15, 23, 42, 0.12);
  transform: translateY(-6px);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-card-media,
body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-card-placeholder {
  background: var(--ios-surface-soft);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-card-media img {
  transition: transform 0.3s ease;
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-card h3,
body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-card h3 a {
  color: var(--ios-text-strong);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-card h3 a:hover {
  color: var(--ios-accent);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-card-body > p {
  color: var(--ios-text-soft);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-meta,
body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-meta span {
  color: var(--ios-accent);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-read-more {
  color: var(--ios-accent);
  font-weight: 700;
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-pagination .page-numbers {
  border: 1px solid var(--ios-border);
  border-radius: 999px;
  color: var(--ios-text);
  background: var(--ios-surface);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-pagination .current,
body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-pagination .page-numbers:hover {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ios-accent-bright), var(--ios-accent-dark));
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-empty {
  border: 1px solid var(--ios-border);
  border-radius: var(--ios-edge-radius, 24px);
  background: var(--ios-surface);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-empty h3 {
  color: var(--ios-text-strong);
}

/* Blog single. multi-page.css derives this header from --ios-bg and
   --ios-accent, which the token block already points at the brand plum and
   magenta; the explicit gradient below pins the result. */
body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-single-header {
  background:
    radial-gradient(circle at 85% 15%, rgba(214, 176, 99, 0.22), transparent 25rem),
    linear-gradient(135deg, var(--ios-hero-deep), var(--ios-hero-mid) 56%, var(--ios-hero-soft));
  color: #fffdf8;
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-single-header h1 {
  color: #fffdf8;
  letter-spacing: -0.035em;
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-single-header p,
body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-breadcrumb,
body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-single-header .ios-blog-meta,
body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-single-header .ios-blog-meta span {
  color: rgba(255, 248, 240, 0.82);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-breadcrumb a {
  color: var(--ios-accent-soft);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-single-image {
  border-radius: var(--ios-edge-radius, 24px);
  box-shadow: var(--ios-shadow);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-article-content {
  color: var(--ios-text);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-article-content h3 {
  color: var(--ios-text-strong);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-article-content a {
  color: var(--ios-accent);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-article-content img {
  border-radius: var(--ios-edge-radius, 20px);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-tags a {
  border: 1px solid var(--ios-border);
  border-radius: 999px;
  color: var(--ios-text);
  background: var(--ios-surface);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-tags a:hover {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ios-accent-bright), var(--ios-accent-dark));
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-blog-post-nav a {
  color: var(--ios-accent);
  font-weight: 700;
}

/* Business / shop / booking pages. multi-page.css paints .ios-business-page-head
   with a hardcoded navy gradient, so it is re-branded here. */
body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-business-page-head {
  color: #fffdf8;
  background:
    radial-gradient(circle at top right, rgba(214, 176, 99, 0.18), transparent 26%),
    linear-gradient(135deg, var(--ios-hero-deep) 0%, var(--ios-hero-mid) 54%, var(--ios-hero-soft) 100%);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-business-page-head .ios-section-eyebrow {
  color: var(--ios-accent-soft);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-business-page-head .ios-section-title {
  color: #fffdf8;
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-business-page-head .ios-section-text {
  color: rgba(255, 248, 240, 0.86);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-shop-catalog,
body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-business-page-form {
  background: var(--ios-page-bg);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-shop-card {
  overflow: hidden;
  border: 1px solid var(--ios-border);
  border-radius: var(--ios-edge-radius, 24px);
  background: var(--ios-surface);
  box-shadow: var(--ios-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-shop-card:hover {
  border-color: rgba(179, 138, 59, 0.28);
  box-shadow: 0 28px 50px rgba(15, 23, 42, 0.12);
  transform: translateY(-6px);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-shop-card .ios-listing-card-body h2 {
  color: var(--ios-text-strong);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-shop-card .ios-listing-card-body p {
  color: var(--ios-text-soft);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-business-page-note {
  border: 1px solid var(--ios-border);
  border-radius: var(--ios-edge-radius, 18px);
  color: var(--ios-text-soft);
  background: var(--ios-surface);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-business-form-card {
  border: 1px solid var(--ios-border);
  border-radius: var(--ios-edge-radius, 24px);
  color: var(--ios-text);
  background: var(--ios-surface);
  box-shadow: var(--ios-shadow);
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-business-form-contact a {
  color: var(--ios-accent);
  font-weight: 700;
}

body.wp-theme-ios-quickstart-premium.ios-layout-multi-page .ios-provider-state {
  color: var(--ios-text-soft);
}

/* WooCommerce. Left unscoped on purpose: shop markup normally renders on
   Multi-page destinations, but it can also be embedded in One-page mode through
   a shortcode, and the brand skin should apply either way. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  border-radius: 999px;
  color: var(--ios-primary);
  background: linear-gradient(135deg, var(--ios-accent-bright), var(--ios-accent-dark));
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  color: var(--ios-primary);
  background: linear-gradient(135deg, #e4bc68, #c99638);
}

.woocommerce ul.products li.product {
  border: 1px solid var(--ios-border);
  border-radius: var(--ios-edge-radius, 24px);
  background: var(--ios-surface);
  box-shadow: var(--ios-shadow);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
  color: var(--ios-accent);
}

.woocommerce span.onsale {
  background: var(--ios-accent-dark);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--ios-accent);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  color: var(--ios-accent);
}

/* ============================================================
   6. Edge style, responsive, reduced motion - both modes
   ============================================================ */

/* Straight edge style squares off every surface this template rounds. Radii
   elsewhere use var(--ios-edge-radius) so the switch stays in one place. */
body.ios-edge-style-straight :is(
  .ios-hero-figure,
  .ios-hero-card,
  .ios-stat-card,
  .ios-about-image,
  .ios-about-point,
  .ios-listing-card,
  .ios-listing-card-media img,
  .ios-gallery-item,
  .ios-testimonial-card,
  .ios-faq-item,
  .ios-contact-card,
  .ios-form-placeholder,
  .ios-blog-card,
  .ios-blog-single-image,
  .ios-shop-card,
  .ios-business-form-card,
  .ios-business-page-note
) {
  border-radius: 0;
}

@media (max-width: 991px) {
  .ios-header-nav {
    gap: 1rem;
  }

  .ios-hero:not(.ios-page-header) {
    padding: 4rem 0 3.5rem;
    border-radius: 0 0 2rem 2rem;
  }

  .wp-theme-ios-quickstart-premium .ios-contact-section .ios-section-title {
    max-width: none;
  }

  .wp-theme-ios-quickstart-premium .ios-contact-section .ios-contact-grid {
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  .ios-testimonial-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 26px 22px;
  }

  .ios-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ios-about-image-secondary {
    display: none;
  }
}

@media (max-width: 767px) {
  .ios-site-header {
    position: static;
  }

  .ios-header-inner {
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .ios-hero:not(.ios-page-header) {
    padding: 3.5rem 0 3rem;
    border-radius: 0 0 1.5rem 1.5rem;
  }

  .ios-about-point,
  .ios-testimonial-card,
  .ios-faq-item,
  .ios-contact-card {
    border-radius: 18px;
  }

  .ios-hero:not(.ios-page-header)::before,
  .ios-hero:not(.ios-page-header)::after,
  .ios-about-section::after {
    display: none;
  }

  .wp-theme-ios-quickstart-premium .ios-hero:not(.ios-page-header) .ios-hero-copy p,
  .wp-theme-ios-quickstart-premium .ios-contact-section .ios-section-text {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ios-button,
  .ios-listing-card,
  .ios-blog-card,
  .ios-shop-card,
  .ios-listing-card-media img,
  .ios-blog-card-media img,
  .ios-gallery-item img,
  .ios-header-nav a,
  .ios-header-nav a::after {
    transition: none;
  }

  .ios-button:hover,
  .ios-button:focus-visible,
  .ios-listing-card:hover,
  .ios-listing-card:focus-within,
  .ios-blog-card:hover,
  .ios-shop-card:hover {
    transform: none;
  }

  .ios-gallery-item:hover img {
    transform: none;
  }
}
