/* ==========================================================================
   Coming Soon (templates/page-coming-soon.php)
   Standalone pre-launch page: full-screen night-sky background video with the
   clinic's message and contact details over it. Brand gold from main.css
   :root, self-hosted fonts; loaded on this page only, together with fonts.css.
   ========================================================================== */

:root {
  --cs-gold: #EDAA12;
  --cs-gold-light: #F5C24A;
  --cs-night: #070B14;
  --cs-text: #FFFFFF;
  --cs-text-soft: rgba(255, 255, 255, 0.86);
  --cs-text-muted: rgba(255, 255, 255, 0.74);
  --cs-line: rgba(255, 255, 255, 0.14);
  --cs-panel: rgba(7, 11, 20, 0.58);
  --cs-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --cs-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--cs-night);
}

body.is-coming-soon-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--cs-sans);
  color: var(--cs-text);
  line-height: 1.6;
  background: var(--cs-night);
  -webkit-font-smoothing: antialiased;
}

/* Background: poster image (fallback) + video + a light overlay ------------ */
.cs-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: var(--cs-night);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cs-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Just enough darkening for legible text; the footage stays the hero. */
.cs-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(7, 11, 20, 0.28), rgba(7, 11, 20, 0) 70%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.26) 0%, rgba(7, 11, 20, 0.12) 38%, rgba(7, 11, 20, 0.26) 65%, rgba(7, 11, 20, 0.62) 100%);
}

.cs-main,
.cs-foot {
  position: relative;
  z-index: 1;
}

.cs-main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.25rem, 6vh, 5rem) 1.25rem clamp(1.25rem, 3vh, 2.5rem);
}

.cs-wrap {
  width: 100%;
  max-width: 1040px;
  text-align: center;
}

/* Brand ------------------------------------------------------------------- */
.cs-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
}

.cs-logo {
  display: block;
  width: clamp(80px, 9vw, 96px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 14px 40px -10px rgba(0, 0, 0, 0.6);
}

.cs-name {
  margin: 1.35rem 0 0;
  font-size: clamp(0.84rem, 1.3vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cs-text);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.cs-name::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin: 0.95rem auto 0;
  border-radius: 2px;
  background: var(--cs-gold);
}

/* Message ----------------------------------------------------------------- */
.cs-title {
  margin: 0 auto;
  max-width: 14em;
  font-family: var(--cs-serif);
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--cs-text);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
  text-wrap: balance;
}

.cs-text {
  margin: 1.35rem auto 0;
  max-width: 36rem;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.75;
  color: var(--cs-text-soft);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
  text-wrap: pretty;
}

/* Contact panel ----------------------------------------------------------- */
.cs-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.3fr);
  margin: clamp(2rem, 4.5vh, 3.25rem) auto 0;
  background: var(--cs-panel);
  border: 1px solid var(--cs-line);
  border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  text-align: left;
  overflow: hidden;
}

.cs-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.7rem 1.6rem;
}

.cs-item + .cs-item {
  border-left: 1px solid var(--cs-line);
}

.cs-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(237, 170, 18, 0.16);
  color: var(--cs-gold-light);
}

.cs-item-body {
  min-width: 0;
}

.cs-label {
  margin: 0.1rem 0 0.45rem;
  font-family: var(--cs-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cs-gold-light);
}

.cs-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.6;
  color: var(--cs-text);
  overflow-wrap: anywhere;
}

.cs-value + .cs-value {
  margin-top: 0.35rem;
}

.cs-item-call .cs-value:first-of-type a {
  font-size: 1.08rem;
  font-weight: 700;
}

.cs-value-sub {
  font-size: 0.94rem;
}

.cs-sub-label {
  font-weight: 700;
}

.cs-value-time {
  color: var(--cs-text-soft);
}

.cs-address {
  font-size: 0.94rem;
  font-weight: 400;
  color: var(--cs-text-soft);
}

.cs-value a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(237, 170, 18, 0.75);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  white-space: nowrap;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.cs-value a:hover {
  color: var(--cs-gold-light);
  text-decoration-color: var(--cs-gold-light);
}

/* Social ------------------------------------------------------------------ */
.cs-social {
  margin-top: clamp(1.6rem, 3.5vh, 2.4rem);
}

.cs-social .cs-label {
  margin-bottom: 0.9rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.cs-social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(7, 11, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #FFFFFF;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cs-social-btn:hover {
  background: var(--cs-gold);
  border-color: var(--cs-gold);
  color: #1E1E1E;
  transform: translateY(-2px);
}

/* Footer line ------------------------------------------------------------- */
.cs-foot {
  flex: none;
  padding: 1rem 1.25rem 1.4rem;
  text-align: center;
}

.cs-foot p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--cs-text-muted);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

/* Focus ------------------------------------------------------------------- */
.is-coming-soon-page a:focus-visible {
  outline: 3px solid var(--cs-gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.is-coming-soon-page .cs-social-btn:focus-visible {
  border-radius: 50%;
}

/* Tablet: two columns, address across the full width ---------------------- */
@media (max-width: 900px) {
  .cs-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-item-address {
    grid-column: 1 / -1;
    border-left: 0 !important;
    border-top: 1px solid var(--cs-line);
  }
}

/* Phone: one column ------------------------------------------------------- */
@media (max-width: 600px) {
  .cs-card {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 18px;
  }

  .cs-item {
    padding: 1.35rem 1.2rem;
  }

  .cs-item + .cs-item {
    border-left: 0;
    border-top: 1px solid var(--cs-line);
  }
}

/* Reduced motion: the poster image stands in for the video. */
@media (prefers-reduced-motion: reduce) {
  .cs-video {
    display: none;
  }

  .cs-value a,
  .cs-social-btn {
    transition: none;
  }

  .cs-social-btn:hover {
    transform: none;
  }
}

/* No backdrop-filter support: a more opaque panel keeps text legible. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cs-card {
    background: rgba(7, 11, 20, 0.82);
  }
}
