/**
 * Heaven Four - Page Content Styles
 * Shared styles for treatment pages, service pages, etc.
 */

/* ========== BUTTONS ========== */
.h4-btn {
  background: var(--h4-peach);
  color: var(--h4-white) !important;
  padding: 14px 32px;
  text-decoration: none !important;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-block;
  transition: var(--h4-transition);
  font-family: var(--h4-font-sans);
  font-weight: 400;
  border-radius: 0;
  border: none;
  cursor: pointer;
  margin: 8px;
}

.h4-btn:hover {
  background: var(--h4-peach-dark);
  transform: translateY(-1px);
}

.h4-btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== HERO SECTIONS ========== */
.h4-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  max-height: 500px;
  overflow: hidden;
  margin: 0;
}

.h4-treatments-hero {
  position: relative;
  height: 70vh;
  min-height: 450px;
  max-height: 650px;
  overflow: hidden;
  margin: 0;
}

.h4-hero img,
.h4-treatments-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h4-hero-overlay,
.h4-treatments-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.45) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.h4-hero h1,
.h4-hero h2,
.h4-hero .hero-title,
.h4-treatments-hero h1,
.h4-treatments-hero h2,
.h4-treatments-hero .hero-title {
  color: #FFFFFF !important;
  font-family: var(--h4-font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  margin: 0 0 10px 0;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.h4-treatments-hero h1,
.h4-treatments-hero h2,
.h4-treatments-hero .hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.h4-hero p,
.h4-treatments-hero p {
  color: rgba(255,255,255,0.95);
  font-size: 14px;
  max-width: 600px;
  margin: 0 auto 22px;
  line-height: 1.6;
}

.h4-treatments-hero p {
  font-size: 15px;
  margin-bottom: 25px;
}

/* ========== CONTENT SECTIONS ========== */
.h4-content {
  padding: 50px 20px;
  max-width: 850px;
  margin: 0 auto;
}

.h4-intro {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.h4-content h2,
.h4-intro h2 {
  font-family: var(--h4-font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 18px 0;
  color: var(--h4-text);
}

.h4-intro h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.h4-content p,
.h4-intro p {
  color: var(--h4-text-light);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 15px;
}

.h4-intro p {
  font-size: 15px;
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
}

.h4-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.h4-content ul li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  color: var(--h4-text-light);
  font-size: 14px;
  line-height: 1.7;
}

.h4-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--h4-peach);
  font-weight: 600;
  font-size: 18px;
}

/* ========== TREATMENT CATEGORIES GRID ========== */
.h4-categories {
  padding: 50px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.h4-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 900px) {
  .h4-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .h4-cat-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.h4-cat-item {
  text-align: center;
}

.h4-cat-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

.h4-cat-item:hover img {
  transform: scale(1.02);
}

.h4-cat-item h3 {
  font-family: var(--h4-font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0 0 8px 0;
  color: var(--h4-text);
}

.h4-cat-item p {
  color: var(--h4-text-light);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 12px 0;
}

.h4-cat-item a {
  color: var(--h4-peach);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.h4-cat-item a:hover {
  color: var(--h4-peach-dark);
}

/* ========== WHY HEAVEN FOUR SECTION ========== */
.h4-why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  margin: 60px 0 0 0;
}

@media (max-width: 768px) {
  .h4-why {
    grid-template-columns: 1fr;
  }
}

.h4-why-img {
  min-height: 450px;
  overflow: hidden;
}

.h4-why-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h4-why-text {
  padding: 50px;
  background: var(--h4-cream);
}

@media (max-width: 768px) {
  .h4-why-text {
    padding: 40px 30px;
  }
}

.h4-why-text h2 {
  font-family: var(--h4-font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  margin: 0 0 25px 0;
  color: var(--h4-text);
  line-height: 1.3;
}

.h4-why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.h4-why-list li {
  margin-bottom: 18px;
  padding-left: 32px;
  position: relative;
  color: var(--h4-text-light);
  font-size: 14px;
  line-height: 1.6;
}

.h4-why-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--h4-peach);
  font-weight: 600;
  font-size: 16px;
}

/* ========== CTA SECTIONS ========== */
.h4-cta {
  background: var(--h4-peach);
  padding: 45px 20px;
  text-align: center;
  margin-top: 40px;
}

.h4-cta h2 {
  font-family: var(--h4-font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--h4-white);
  margin: 0 0 8px 0;
}

.h4-cta p {
  color: rgba(255,255,255,0.95);
  font-size: 14px;
  margin: 0 0 20px 0;
}

.h4-cta .h4-btn {
  background: var(--h4-white);
  color: var(--h4-text) !important;
}

.h4-cta .h4-btn:hover {
  background: var(--h4-cream);
}

/* ========== SAUNA SPECIFIC STYLES ========== */
.h4-sauna-hero {
  height: 75vh;
  min-height: 500px;
  max-height: 700px;
}

.h4-sauna-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 12px;
}

.h4-sauna-hero p {
  font-size: 16px;
  max-width: 650px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.h4-options {
  padding: 50px 20px;
  background: var(--h4-cream);
}

.h4-options h2 {
  font-family: var(--h4-font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  text-align: center;
  margin: 0 0 45px 0;
  color: var(--h4-text);
}

.h4-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .h4-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .h4-options-grid {
    grid-template-columns: 1fr;
  }
}

.h4-option-card {
  background: var(--h4-white);
  padding: 35px 30px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: var(--h4-transition);
}

.h4-option-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.h4-option-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.h4-option-card h3 {
  font-family: var(--h4-font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0 0 10px 0;
  color: var(--h4-text);
}

.h4-option-card p {
  color: var(--h4-text-light);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 15px 0;
}

.h4-option-price {
  font-family: var(--h4-font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--h4-peach);
  margin: 15px 0;
}

.h4-benefits {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.h4-benefits h2 {
  font-family: var(--h4-font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  text-align: center;
  margin: 0 0 40px 0;
  color: var(--h4-text);
}

.h4-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 900px) {
  .h4-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .h4-benefits-grid {
    grid-template-columns: 1fr;
  }
}

.h4-benefit-item {
  text-align: center;
}

.h4-benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.h4-benefit-item h3 {
  font-family: var(--h4-font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin: 0 0 10px 0;
  color: var(--h4-text);
}

.h4-benefit-item p {
  color: var(--h4-text-light);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.h4-rules {
  padding: 60px 20px;
  background: var(--h4-cream);
  max-width: 900px;
  margin: 0 auto;
}

.h4-rules h2 {
  font-family: var(--h4-font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  text-align: center;
  margin: 0 0 35px 0;
  color: var(--h4-text);
}

.h4-rules ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 700px;
  margin: 0 auto;
}

.h4-rules ul li {
  margin-bottom: 15px;
  padding-left: 28px;
  position: relative;
  color: var(--h4-text-light);
  font-size: 14px;
  line-height: 1.7;
}

.h4-rules ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--h4-peach);
  font-weight: 600;
  font-size: 18px;
}

/* ========== HIDE KADENCE PAGE TITLE FOR HERO PAGES ========== */
body.page-id-13 .entry-title,
body.page-id-15 .entry-title {
  display: none !important;
}

/* Hide Kadence page title on pages with .h4-hero or .h4-treatments-hero */
.h4-hero ~ * .entry-title,
.h4-treatments-hero ~ * .entry-title,
body:has(.h4-hero) .entry-title,
body:has(.h4-treatments-hero) .entry-title {
  display: none !important;
}
