/* ===================================================================
 * Eterna Health — Child Theme Styles
 * Extracted from test-007-home.html prototype
 * Version: 1.0
 * =================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #c9a84c;
  --gold-lt:    #e8c97a;
  --gold-pale:  #f5e8c0;
  --text-main:  #f0ebe0;
  --text-dim:   #b8b0a0;
  --card-bg:    rgba(6, 12, 16, 0.72);
  --card-border: rgba(201,168,76,0.25);
}

html, body {
  height: 100%;
  background: rgba(4, 10, 14, 0.97);
}

body {
  min-height: 100vh;
  font-family: 'Raleway', sans-serif;
  color: var(--text-main);
  overflow-x: hidden;
}


/* ===================================================================
 * BACKGROUND PHOTO
 * =================================================================== */
.bg-photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.bg-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(4, 10, 14, 0.78) 0%,
    rgba(8, 20, 14, 0.65) 40%,
    rgba(4, 10, 14, 0.80) 100%
  );
}

.bg-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 80% at 50% 45%,
    transparent 20%,
    rgba(2, 6, 10, 0.55) 80%,
    rgba(2, 6, 10, 0.85) 100%
  );
}

.gold-haze {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(30, 16, 2, 0.55) 0%, transparent 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ===================================================================
 * TOP & BOTTOM GOLD RULES
 * =================================================================== */
.top-rule, .bottom-rule {
  position: fixed;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 20;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold) 25%,
    var(--gold-lt) 50%,
    var(--gold) 75%,
    transparent 100%
  );
}
.top-rule { top: 0; }
.bottom-rule { bottom: 0; }


/* ===================================================================
 * MAIN LAYOUT
 * =================================================================== */
.wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 110px;
}


/* ===================================================================
 * LOGO
 * =================================================================== */
.logo-zone {
  text-align: center;
  margin-bottom: 0;
  animation: riseIn 1.6s cubic-bezier(0.16,1,0.3,1) both;
}
.logo-zone a {
  display: inline-block;
}
.logo-zone img {
  width: 300px;
  max-width: 78vw;
  filter: drop-shadow(0 0 28px rgba(201,168,76,0.30)) drop-shadow(0 2px 12px rgba(0,0,0,0.6));
  transition: filter 0.4s ease;
}
.logo-zone a:hover img {
  filter: drop-shadow(0 0 36px rgba(201,168,76,0.50)) drop-shadow(0 2px 12px rgba(0,0,0,0.6));
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}


/* ===================================================================
 * GOLD DIVIDER
 * =================================================================== */
.gold-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 28px;
  animation: riseIn 1.2s ease 0.3s both;
}
.gold-rule-line {
  height: 1px;
  width: 90px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.gold-rule-line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.gold-diamond {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}


/* ===================================================================
 * HEADLINE
 * =================================================================== */
.headline {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  animation: riseIn 1.2s ease 0.4s both;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.headline h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.55rem, 3.8vw, 2.7rem);
  font-weight: 400;
  line-height: 1.28;
  color: #f4edda;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  animation: riseIn 1.2s ease 0.5s both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9), 0 1px 4px rgba(0,0,0,0.7);
}


/* ===================================================================
 * "ARRIVING SOON" NOTICE
 * =================================================================== */
.launch-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 34px;
  animation: riseIn 1.2s ease 0.55s both;
}
.launch-notice-line {
  height: 1px;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4));
}
.launch-notice-line:last-child {
  background: linear-gradient(90deg, rgba(201,168,76,0.4), transparent);
}
.launch-notice-text {
  font-family: 'Raleway', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.82rem, 1.6vw, 0.94rem);
  color: rgba(240,235,224,0.70);
  letter-spacing: 0.05em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.8);
  text-align: center;
  line-height: 1.6;
}
.launch-notice-text strong {
  font-style: normal;
  font-weight: 400;
  color: rgba(232,201,122,0.85);
}


/* ===================================================================
 * BODY CARD
 * =================================================================== */
.body-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 3px;
  padding: 36px 42px;
  max-width: 680px;
  width: 100%;
  margin: 0 auto 28px;
  animation: riseIn 1.2s ease 0.65s both;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow:
    0 8px 48px rgba(0,0,0,0.55),
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 0 0 1px rgba(0,0,0,0.3);
  position: relative;
}

.body-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-lt), transparent);
}

/* Base paragraph style for all body-card pages */
.body-card p {
  font-size: 0.89rem;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(240,235,224,0.82);
  text-align: left;
  margin-bottom: 20px;
}
.body-card p:last-child {
  margin-bottom: 0;
}

/* Closing emphasis line (used on home + about-us) */
.body-card p.closing {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: rgba(201,168,76,0.8);
  text-align: center;
  margin-top: 24px;
  font-weight: 400;
}

.body-card p.intro {
  font-size: 0.91rem;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(240,235,224,0.88);
  text-align: center;
  margin-bottom: 0;
}

/* Card section divider */
.card-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 26px;
}
.card-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}
.card-divider-dot {
  width: 3px;
  height: 3px;
  background: rgba(201,168,76,0.5);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Body card h2 */
.body-card h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.88rem, 1.8vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-lt);
  text-align: center;
  margin-bottom: 24px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
  line-height: 1.5;
}

/* Body paragraphs in the extended section */
.body-card .body-text p {
  font-size: 0.89rem;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(240,235,224,0.82);
  text-align: left;
  margin-bottom: 20px;
}
.body-card .body-text p:last-child {
  margin-bottom: 0;
}

/* Final emphasis line */
.body-card .body-text p.closing {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: rgba(201,168,76,0.8);
  text-align: center;
  margin-top: 24px;
  font-weight: 400;
}


/* ===================================================================
 * PILLARS
 * =================================================================== */
.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 600px;
  width: 100%;
  margin: 0 auto 30px;
  animation: riseIn 1.2s ease 0.75s both;
  background: rgba(6,12,16,0.5);
  border: 1px solid rgba(201,168,76,0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pillar {
  flex: 1 1 50%;
  text-align: center;
  padding: 18px 10px;
  border-right: 1px solid rgba(201,168,76,0.18);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  box-sizing: border-box;
}
@media (min-width: 480px) {
  .pillar { flex: 1 1 auto; border-bottom: none; }
  .pillar:last-child { border-right: none; }
}
@media (max-width: 479px) {
  .pillar:nth-child(even) { border-right: none; }
  .pillar:nth-child(3),
  .pillar:nth-child(4) { border-bottom: none; }
}

.pillar-icon {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 6px;
  line-height: 1;
  text-shadow: 0 0 16px rgba(201,168,76,0.4);
}
.pillar-label {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(184,176,160,0.9);
}


/* ===================================================================
 * SERVICE AREA
 * =================================================================== */
.service-area {
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: rgba(240,235,224,0.55);
  text-transform: uppercase;
  margin-bottom: 36px;
  animation: riseIn 1.2s ease 0.82s both;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.service-area span {
  color: rgba(201,168,76,0.65);
  margin: 0 10px;
}


/* ===================================================================
 * CTA BUTTON
 * =================================================================== */
.cta-wrap {
  text-align: center;
  animation: riseIn 1.2s ease 0.9s both;
  margin-bottom: 60px;
}

.cta-btn {
  display: inline-block;
  position: relative;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-pale);
  padding: 17px 52px;
  border: 1px solid rgba(201,168,76,0.5);
  background: rgba(6,12,16,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(201,168,76,0.06));
  opacity: 0;
  transition: opacity 0.4s;
}
.cta-btn:hover {
  color: #fff8e8;
  border-color: rgba(201,168,76,0.9);
  box-shadow: 0 0 40px rgba(201,168,76,0.18), 0 4px 24px rgba(0,0,0,0.5), inset 0 0 24px rgba(201,168,76,0.06);
  transform: translateY(-1px);
}
.cta-btn:hover::before { opacity: 1; }


/* ===================================================================
 * FOOTER
 * =================================================================== */
.footer {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: rgba(184,176,160,0.6);
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}
.footer a {
  color: rgba(201,168,76,0.55);
  text-decoration: none;
  transition: color 0.3s;
}
.footer a:hover {
  color: rgba(201,168,76,0.9);
}
.footer-sep {
  color: rgba(201,168,76,0.3);
  margin: 0 8px;
}


/* ===================================================================
 * BACK BUTTON (Terms & Privacy page)
 * =================================================================== */
.back-wrap {
  text-align: center;
  animation: riseIn 1.2s ease 0.75s both;
  margin-bottom: 60px;
}
.back-btn {
  display: inline-block;
  position: relative;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.65);
  padding: 14px 38px;
  border: 1px solid rgba(201,168,76,0.25);
  background: rgba(6,12,16,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  overflow: hidden;
}
.back-btn:hover {
  color: var(--gold-pale);
  border-color: rgba(201,168,76,0.6);
  box-shadow: 0 0 30px rgba(201,168,76,0.1), 0 4px 20px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}


/* ===================================================================
 * PLACEHOLDER NOTICE
 * =================================================================== */
.placeholder-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 2px;
  padding: 14px 18px;
  margin-bottom: 28px;
}
.placeholder-notice-icon {
  font-size: 1rem;
  color: rgba(201,168,76,0.6);
  flex-shrink: 0;
}
.placeholder-notice p {
  font-size: 0.76rem !important;
  font-style: italic;
  color: rgba(201,168,76,0.65) !important;
  letter-spacing: 0.04em;
  margin-bottom: 0 !important;
  line-height: 1.6 !important;
}


/* ===================================================================
 * TERMS/LEGAL PAGE — h2 overrides
 * =================================================================== */
.body-card h2.legal-heading,
.page-template-page-terms-privacy .body-card h2 {
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: left;
  margin-top: 28px;
  margin-bottom: 14px;
}
.body-card h2.legal-heading:first-child,
.page-template-page-terms-privacy .body-card h2:first-child {
  margin-top: 0;
}


/* ===================================================================
 * PHOTO CREDIT
 * =================================================================== */
.photo-credit {
  position: fixed;
  bottom: 24px;
  right: 20px;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  z-index: 15;
}


/* ===================================================================
 * PAGE LOADER
 * =================================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 10, 14, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}
.loader-ring {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(201,168,76,0.12);
  border-top-color: var(--gold);
  border-right-color: var(--gold-lt);
  border-radius: 50%;
  animation: loaderSpin 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.loader-ring-inner {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201,168,76,0.08);
  border-bottom-color: rgba(201,168,76,0.55);
  border-left-color: rgba(201,168,76,0.2);
  border-radius: 50%;
  animation: loaderSpin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite reverse;
}
.loader-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(201,168,76,0.9), 0 0 20px rgba(201,168,76,0.4);
}
@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}


/* ===================================================================
 * EXIT LOADER (click-to-navigate overlay)
 * =================================================================== */
.exit-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 10, 14, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.exit-loader.active {
  opacity: 1;
  pointer-events: auto;
}
.exit-loader .loader-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}
.exit-loader .loader-ring {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(201,168,76,0.12);
  border-top-color: var(--gold);
  border-right-color: var(--gold-lt);
  border-radius: 50%;
  animation: loaderSpin 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.exit-loader .loader-ring-inner {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201,168,76,0.08);
  border-bottom-color: rgba(201,168,76,0.55);
  border-left-color: rgba(201,168,76,0.2);
  border-radius: 50%;
  animation: loaderSpin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite reverse;
}
.exit-loader .loader-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(201,168,76,0.9), 0 0 20px rgba(201,168,76,0.4);
}


/* ===================================================================
 * RESPONSIVE
 * =================================================================== */
@media (max-width: 600px) {
  .body-card { padding: 24px 22px; }
  .gold-rule-line { width: 50px; }
  .cta-btn { padding: 15px 32px; letter-spacing: 0.2em; font-size: 0.68rem; }
}
