/* ==========================================================================
   Thera Healthcare - Pixel-Perfect Clone Stylesheet
   ========================================================================== */

/* Font Definitions */
@font-face {
  font-family: 'futura-lt-w01-book';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/futura-lt-w01-book.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'futura-lt-w01-light';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/futura-lt-w01-light.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'futura-lt-w05-light';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/futura-lt-w05-light.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'avenir-lt-w01_35-light1475496';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/avenir-lt-w01_35-light1475496.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'din-next-w01-light';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/din-next-w01-light.woff2') format('woff2');
  font-display: swap;
}

/* CSS Variables */
:root {
  --color-primary-navy: rgb(0, 45, 88);
  --color-navy-dark: rgb(14, 47, 71);
  --color-navy-deep: rgb(13, 33, 48);
  --color-white: #ffffff;
  --color-coral: rgb(224, 96, 84);
  --color-coral-hover: #ffffff;
  --color-gray-subtle: rgb(209, 217, 220);
  --color-gray-border: rgb(157, 177, 191);
  --color-input-border: rgb(71, 57, 105);
  
  --font-book: 'futura-lt-w01-book', Futura, 'Montserrat', sans-serif;
  --font-light: 'futura-lt-w01-light', Futura, 'Montserrat', sans-serif;
  --font-avenir: 'avenir-lt-w01_35-light1475496', 'Avenir', 'Helvetica Neue', sans-serif;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-light);
  color: var(--color-navy-dark);
  background-color: #0b1a26;
  overflow-x: hidden;
  position: relative;
}

/* Fixed Global Page Background */
.fixed-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.fixed-background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

/* Nav Bar / Contact Link */
.top-nav {
  position: fixed;
  top: 36px;
  right: 24px;
  z-index: 1000;
}

.contact-link {
  font-family: var(--font-light);
  font-size: 16px;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.4s ease;
  display: inline-block;
  padding: 8px 12px;
}

.contact-link:hover {
  color: var(--color-gray-subtle);
}

/* Layout Container */
.site-wrapper {
  position: relative;
  width: 100%;
  padding-top: 0;
}

/* ==========================================================================
   Section 1: Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px 60px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary-navy);
  opacity: 0.73;
  z-index: -1;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

.hero-logo-wrapper {
  width: 566px;
  max-width: 88vw;
  animation: motion-floatIn 1050ms 1ms cubic-bezier(0.445, 0.05, 0.55, 0.95) backwards;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

.down-arrow-btn {
  width: 50px;
  height: 50px;
  margin-top: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: motion-fadeIn 1200ms 1ms cubic-bezier(0.445, 0.05, 0.55, 0.95) backwards;
  outline: none;
  padding: 0;
}

.down-arrow-img {
  width: 50px;
  height: 50px;
  display: block;
  transition: opacity 0.3s ease;
}

.down-arrow-img.hover-icon {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.down-arrow-btn:hover .down-arrow-img.default-icon {
  opacity: 0;
}

.down-arrow-btn:hover .down-arrow-img.hover-icon {
  opacity: 1;
}

/* Keyframes */
@keyframes motion-floatIn {
  0% {
    opacity: 0;
    transform: translate3d(60px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes motion-fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ==========================================================================
   Section 2: About & Subscribe Section (#sobreassine)
   ========================================================================== */
.about-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 20px 40px;
  overflow: hidden;
}

.about-overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url('assets/images/1e47b2_5933ee74ead1423ea0746d23c30f1b4e~mv2.png');
  background-size: cover;
  background-position: 50% 0%;
  opacity: 0.94;
  pointer-events: none;
}

.about-content {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.subscribe-form-wrapper {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.subscribe-title {
  font-family: var(--font-book);
  font-size: 19px;
  line-height: 1.4em;
  color: var(--color-primary-navy);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: normal;
  font-weight: 400;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  position: relative;
}

.email-input-wrapper {
  flex: 0 1 361px;
  width: 361px;
}

.email-input {
  width: 100%;
  height: 42px;
  background: var(--color-white);
  border: 1px solid var(--color-input-border);
  color: var(--color-navy-dark);
  font-family: var(--font-light);
  font-size: 16px;
  line-height: 1.4em;
  padding: 0 16px 0 21px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.email-input::placeholder {
  color: var(--color-gray-border);
  opacity: 1;
}

.email-input:focus {
  border: 2px solid var(--color-navy-dark);
}

.submit-btn {
  width: 109px;
  height: 41px;
  background-color: var(--color-coral);
  color: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: 0;
  font-family: var(--font-light);
  font-size: 16px;
  line-height: 1.4em;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
  outline: none;
  user-select: none;
}

.submit-btn:hover {
  background-color: var(--color-white);
  border-color: var(--color-navy-dark);
  color: var(--color-navy-dark);
}

.form-success-message {
  font-family: var(--font-light);
  font-size: 16px;
  color: var(--color-primary-navy);
  text-align: center;
  margin-top: 14px;
  display: none;
  animation: motion-fadeIn 0.4s ease forwards;
}

.form-success-message.visible {
  display: block;
}

.address-block {
  margin-top: 55px;
  margin-bottom: 70px;
  text-align: center;
  max-width: 700px;
  width: 100%;
}

.address-text {
  font-family: var(--font-avenir);
  font-size: 17px;
  line-height: 1.4em;
  color: var(--color-primary-navy);
  font-weight: 400;
  letter-spacing: 0em;
}

/* Footer Container */
.site-footer {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 20px 20px 30px;
}

.footer-col-left {
  flex: 0 0 auto;
  text-align: right;
}

.footer-copy {
  font-family: var(--font-light);
  font-size: 14px;
  color: var(--color-navy-dark);
  margin: 0;
  white-space: nowrap;
}

.footer-col-center {
  flex: 0 0 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.up-arrow-btn {
  width: 50px;
  height: 50px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transform: rotate(180deg);
  outline: none;
  padding: 0;
}

.up-arrow-img {
  width: 50px;
  height: 50px;
  display: block;
  transition: opacity 0.3s ease;
}

.up-arrow-img.hover-icon {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.up-arrow-btn:hover .up-arrow-img.default-icon {
  opacity: 0;
}

.up-arrow-btn:hover .up-arrow-img.hover-icon {
  opacity: 1;
}

.footer-col-right {
  flex: 0 0 auto;
  text-align: left;
}

.footer-location {
  font-family: var(--font-light);
  font-size: 14px;
  color: var(--color-navy-dark);
  margin: 0;
  white-space: nowrap;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .top-nav {
    top: 24px;
    right: 16px;
  }

  .hero-logo-wrapper {
    width: 88vw;
  }

  .subscribe-form {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .email-input-wrapper {
    flex: 1;
    width: 100%;
  }

  .submit-btn {
    width: 100%;
    height: 44px;
  }

  .address-text {
    font-size: 15px;
    padding: 0 10px;
  }

  .site-footer {
    gap: 16px;
    padding: 20px 10px 24px;
  }
}

@media (max-width: 420px) {
  .site-footer {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .footer-col-left,
  .footer-col-right {
    text-align: center;
  }
}
