/*
Theme Name: Uniclinic
Theme URI: https://example.com/uniclinic
Author: Site Owner
Author URI: https://example.com
Description: Single-page landing theme showing a vertical stack of clinic images.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: uniclinic
Tags: one-column, landing-page
*/

:root {
  --uc-font-sans: "Helvetica Neue", Arial, sans-serif;
  --uc-background: #f5f7fb;
  --uc-text: #0f172a;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--uc-font-sans);
  color: var(--uc-text);
  background-color: var(--uc-background);
  overflow-x: hidden;
}

.background-fixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url(./assets/background.png);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  will-change: transform;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.uniclinic-stack {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
}

.stack-wrapper {
  width: 100%;
  max-width: 600px;
  padding: 0;
  display: flex;
}

.stack-scroll {
  flex: 1 1 auto;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 0;
  -ms-overflow-style: none;
  /* IE/Edge */
  scrollbar-width: none;
  /* Firefox */
}

.stack-item {
  margin: 0;
}


.stack-item img {
  display: block;
  width: 100%;
  height: auto;
}

.stack-item--top,
.stack-item--monitor,
.stack-item--flow,
.stack-item--uniclinic {
  position: relative;
}

.top-image-wrapper,
.monitor-image-wrapper,
.flow-image-wrapper,
.uniclinic-image-wrapper {
  position: relative;
}

.button-area-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.button-area-wrapper>img {
  display: block;
  width: 100%;
  height: auto;
}

.cta-buttons {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(var(--cta-scale, 1));
  transform-origin: center bottom;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% - 64px);
  max-width: 100%;
  transition: bottom 0.3s ease;
}

.cta-buttons--button-area {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%) scale(var(--cta-scale, 1));
  transform-origin: center center;
  width: 100%;
}

.stack-item--top .cta-buttons:not(.cta-buttons--button-area) {
  bottom: 170px;
}

.cta-buttons--monitor {
  bottom: 210px;
}

.cta-buttons--flow {
  bottom: 220px;
}

.cta-buttons--uniclinic {
  bottom: 275px;
}

.cta-button+.cta-button {
  margin-top: 0;
}

.cta-buttons--button-area .cta-button+.cta-button {
  margin-top: 8px;
}

.shine-button {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
}

.shine-button::before {
  content: "";
  position: absolute;
  inset: -25% -40%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 45%, rgba(255, 255, 255, 0) 80%);
  transform: translateX(-120%) skewX(-20deg);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: shine-run 4s ease-in-out infinite;
}

@keyframes shine-run {
  0% {
    transform: translateX(-120%) skewX(-20deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  50% {
    transform: translateX(120%) skewX(-20deg);
    opacity: 0;
  }

  100% {
    transform: translateX(120%) skewX(-20deg);
    opacity: 0;
  }
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background-color: #F9F7F5;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer-links a:hover {
  text-decoration: none;
  opacity: 0.7;
  color: #232829;
}

.cta-button img {
  display: block;
  max-width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}

.cta-button:hover img {
  opacity: 0.8;
}

.floating-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0;
  z-index: 1000;
}

.floating-cta__inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.floating-cta__image {
  display: block;
  width: 100%;
  height: auto;
}

.floating-cta__button-area {
  position: relative;
  display: grid;
  place-items: center;
}

.floating-cta__image--area {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
}

.floating-cta__button-row {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
}

.floating-cta__link {
  display: block;
  flex: 1 1 0;
}

.floating-cta__link img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}

.floating-cta__link:hover img {
  opacity: 0.8;
}


.stack-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

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

.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 16px;
  clip: auto;
  background: #000;
  color: #fff;
  z-index: 1000;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .stack-wrapper {
    padding: 0;
  }

  .stack-scroll {
    padding-right: 0;
  }

  .stack-item--top .cta-buttons,
  .cta-buttons--monitor,
  .cta-buttons--flow,
  .cta-buttons--uniclinic {
    width: calc(100% - 32px);
  }
}