/*
Theme Name: HighLiGHts Clinical Trial
Theme URI:
Author: Visual Goodness
Author URI:
Description: Custom WordPress theme for the Ascendis Pharma HighLiGHts Clinical Trial website.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: highlights-trial
*/

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-gutter: stable;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #201a57;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
  --color-dark-blue: #201a57;
  --color-teal: #bee3e9;
  --color-teal-dark: #0d608d;
  --color-orange: #ff875e;
  --color-orange-card: #ed754f;
  --color-cream: #fff0d4;
  --color-white: #ffffff;
  --font-primary: 'Montserrat', sans-serif;
  --max-width: 1728px;
  --content-width: 1428px;
}

/* ==========================================================================
   Disclaimer Overlay
   ========================================================================== */

.disclaimer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.disclaimer-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.disclaimer-modal {
  background: var(--color-white);
  border-radius: 10px;
  width: 498px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.disclaimer-modal__header {
  padding: 20px 20px 15px;
  background: var(--color-white);
  border-bottom: 1px solid #DDD;
}

.disclaimer-modal__header h2 {
  font-size: 40px;
  font-weight: 500;
  color: var(--color-dark-blue);
  line-height: normal;
}

.disclaimer-modal__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.disclaimer-modal__body p {
  font-size: 17px;
  font-weight: 400;
  line-height: 150%;
  color: var(--color-dark-blue);
}

.disclaimer-modal__footer {
  padding: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #DDD;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  line-height: 24px;
  color: var(--color-white);
}

.btn:hover {
  opacity: 0.85;
}

.btn--accept {
  background: #007BFF;
}

.btn--decline {
  background: #5A6268;
}

/* ==========================================================================
   Site Header
   ========================================================================== */

.site-header {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 122px;
}

.site-header__logo-link {
  position: absolute;
  top: 15px;
  left: 150px;
}

.site-header__logo {
  width: 271px;
  height: auto;
}

.site-header__contact {
  position: absolute;
  top: 0;
  right: 150px;
}

.site-header__contact-link {
  display: block;
  background: var(--color-teal);
  padding: 24px 20px;
  border-radius: 0 0 20px 20px;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark-blue);
}

.site-header__contact-link strong {
  font-weight: 800;
  text-decoration: underline;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 586px;
  overflow-x: clip;
  overflow-y: visible;
  margin-top: 6px;
}

.hero__art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/images/hero/cloud-bg.png') top center / 100% auto no-repeat,
              linear-gradient(180deg, rgba(229, 245, 248, 0.60) 0%, rgba(229, 245, 248, 0.00) 100%);
}

.hero__children {
  position: absolute;
  bottom: -90px;
  right: -3%;
  width: 44%;
  height: auto;
  z-index: 3;
}

.hero__balloon {
  position: absolute;
  top: 12%;
  right: 3.6%;
  width: 7.2%;
  height: auto;
  z-index: 1;
}

.hero__headline {
  position: absolute;
  top: 99px;
  left: max(150px, calc(50% - 714px));
  width: 714px;
  z-index: 2;
  font-size: 40px;
  font-weight: 400;
  line-height: normal;
  color: var(--color-dark-blue);
}

.hero__headline span {
  display: block;
}

.hero__cta {
  display: none;
}

/* ==========================================================================
   Grass Bar Divider
   ========================================================================== */

.grass-bar {
  width: 100%;
  height: 40px;
  background: var(--color-orange);
}

/* ==========================================================================
   Content Section
   ========================================================================== */

.content-section {
  background: var(--color-cream);
  padding: 150px 0 0px;
}

.content-section__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.content-section__row {
  display: flex;
  gap: 100px;
}

.text-card {
  flex: 1;
  min-width: 0;
}

.text-card__header {
  background: var(--color-orange-card);
  padding: 20px;
  border-radius: 30px 30px 0 0;
}

.text-card__header h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-dark-blue);
  line-height: normal;
}

.text-card__body {  
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.50) 0%, rgba(255, 255, 255, 0.00) 47.46%);
  padding: 30px;
}

.text-card__body p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-dark-blue);
  margin-bottom: 20px;
}

.text-card__body p:last-child {
  margin-bottom: 0;
}

.text-card__body .footnote {
  font-size: 12px;
}

.text-card__body ul {
  list-style: disc;
  padding-left: 27px;
  margin-bottom: 20px;
}

.text-card__body ul:last-child {
  margin-bottom: 0;
}

.text-card__body li {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-dark-blue);
}

/* ==========================================================================
   Signoff Art Divider
   ========================================================================== */

.signoff-art {
  position: relative;
  width: 100%;
  background: var(--color-cream);
  overflow: hidden;
}

.signoff-art__mountains {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.signoff-art__ellipse {
  position: absolute;
  bottom: -168px;
  left: 50%;
  transform: translateX(-50%);
  width: 295px;
  height: 295px;
  z-index: 2;
}

.signoff-art__icon {
  position: absolute;
  bottom: 0px;
  left: 50.5%;
  transform: translateX(-50%);
  width: 104px;
  height: 73px;
  z-index: 3;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  text-align: center;
}

.cta-section__content {
  background: var(--color-orange);
  padding: 80px 150px;
  position: relative;
  z-index: 1;
}

.cta-section__content h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-bottom: 10px;
  line-height: normal;
}

.cta-section__content p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-dark-blue);
  max-width: 1318px;
  margin: 0 auto;
}

.cta-section__content p:nth-of-type(2) {
    padding-top: 20px;
}

.cta-section__content a {
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: linear-gradient(to bottom, rgba(126, 204, 216, 0.3), rgba(126, 204, 216, 0));
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  padding: 0 150px 50px;
  gap: 50px;
}

.site-footer__about {
  flex: 1;
  margin-top: 50px;
}

.site-footer__about h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: 10px;
  line-height: normal;
}

.site-footer__about p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-dark-blue);
  max-width: 608px;
}

.site-footer__about a {
  font-weight: 700;
  text-decoration: underline;
}

.site-footer__logo {
  width: 130px;
  height: 130px;
  margin: 30px 0;
}

.site-footer__transcon {
  background: var(--color-teal-dark);
  border-radius: 0 0 20px 20px;
  padding: 46px 33px 43px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 357px;
  flex-shrink: 0;
  align-self: flex-start;
}

.site-footer__transcon-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  line-height: normal;
}

.site-footer__transcon-text a {
  text-decoration: underline;
}

.site-footer__transcon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 87px;
  height: 87px;
  position: relative;
}

.site-footer__transcon-btn svg,
.site-footer__transcon-btn img {
  position: absolute;
}

.site-footer__transcon-circle {
  width: 87px;
  height: 87px;
}

.site-footer__transcon-arrow {
  width: 36px;
  height: 42px;
}

.site-footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 150px 50px;
}

.site-footer__copyright {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-dark-blue);
  max-width: 608px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-footer__ascendis-logo {
  width: 157px;
  height: auto;
  flex-shrink: 0;
}

/* ==========================================================================
   Utility
   ========================================================================== */

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

@media (max-width: 1200px) {
  .hero__children {   
    bottom: -78px;   
  }
}

/* ==========================================================================
   Responsive: Narrow Desktop (≤1100px)
   ========================================================================== */

@media (max-width: 1100px) {
  .site-header__logo-link {
    left: 100px;
  }

  .site-header__contact {
    right: 50px;
  }

  .hero {
    height: 680px;
  }

  .hero__balloon {
    display: none;
  }

  .hero__children {
    right: -5%;
    width: 70%;
    bottom: -80px;
  }

  .hero__headline {
    top: 80px;
    left: 100px;
    right: 100px;
    width: auto;
    font-size: 36px;
  }

  .cta-section__content p:nth-of-type(2) {
    padding-top: 20px;
  }

  .content-section {
    padding: 150px 0 46px;
  }

  .content-section__row {
    flex-direction: column;
    gap: 50px;
  }

  .content-section__inner {
    gap: 50px;
    padding: 0 100px;
  }

  .signoff-art__ellipse{
    bottom: -188px;
  }

  .signoff-art__icon{
    left: 50.8%;
  }

  .cta-section__content {
    padding: 80px 100px;
  }

  .site-footer__inner {
    padding: 0px 100px;
  }

  .site-footer__about {
    margin-top: 100px;
  }

  .site-footer__bottom {
    padding: 0 100px 50px;
  }
}

/* ==========================================================================
   Responsive: Tablet (≤820px)
   ========================================================================== */

@media (max-width: 820px) {

  /* Header — Centered Column */
  .site-header {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 34px 100px 16px;
  }

  .site-header__logo-link {
    position: static;
  }

  .site-header__logo {
    width: 248px;
    height: 80px;
  }

  .site-header__contact {
    display: none;
  }

  /* Hero — Centered Column Layout */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 556px;
    padding: 0 100px;
    background: linear-gradient(180deg, rgba(229, 245, 248, 0.60) 0%, rgba(229, 245, 248, 0.00) 100%);
  }

  .hero__art {
    position: relative;
    background: none;
    width: 100%;
    order: 3;
  }

  .hero__children {    
    right: -25%;
    width: 90%;
    bottom: -56px;   
  }

  .hero__balloon {
    display: none;
  }

  .hero__headline {
    position: static;
    width: 100%;
    max-width: 568px;
    font-size: 22px;
    text-align: center;
    z-index: 2;
    margin-top: 60px;
    margin-bottom: 30px;
    padding-bottom: 4px;
    order: 1;
  }

  .hero__headline span {
    display: inline;
  }

  .hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--color-teal);
    padding: 30px 20px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-dark-blue);
    width: 328px;
    text-align: center;
    text-decoration: none;
    order: 2;
    margin-bottom: 30px;
  }

  .hero__cta strong {
    font-weight: 800;
    text-decoration: underline;
  }

  .grass-bar {
    height: 27px;
  }

  /* Content */
  .content-section {
    padding: 100px 0 50px;
  }

  .content-section__inner {
    padding: 0 100px;
    gap: 50px;
  }

  .content-section__row {
    flex-direction: column;
    gap: 50px;
  }

  .text-card__header h3 {
    font-size: 22px;
  }

  .text-card__body p,
  .text-card__body li {
    font-size: 16px;
  }

  /* Signoff Art */
  .signoff-art__ellipse {
    width: 210px;
    height: 210px;
    bottom: -135px;
  }

  .signoff-art__icon {
    width: 76px;
    height: 53px;
    bottom: 0px;
  }

  /* CTA */
  .cta-section__content {
    padding: 50px 100px;
  }

  .cta-section__content h2 {
    font-size: 22px;
  }

  .cta-section__content p {
    font-size: 16px;
  }

  /* Footer — Stacked & Centered */
  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .site-footer__about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 60px;
  }

  .site-footer__about h3 {
    font-size: 22px;
  }

  .site-footer__about p {
    font-size: 14px;
    max-width: 100%;
    text-align: left;
  }

  .site-footer__logo {
    margin: 30px auto;
  }

  .site-footer__transcon {
    width: 327px;
    border-radius: 20px;
    align-self: center;
    margin-top: -20px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding: 0 100px 50px;
  }

  .site-footer__copyright {
    text-align: left;
    max-width: 100%;
    margin-top: 60px;
  }

  .site-footer__ascendis-logo {
    align-self: center;
  }
}


@media (max-width: 652px) {
  .hero__children {    
    right: -29%;
    width: 90%;
    bottom: -56px;   
  }
}

@media (max-width: 612px) {
  .hero__children {    
    right: -32%;    
    bottom: -48px;   
  }
}

@media (max-width: 580px) {
  .hero__children {    
    right: -34%;
  }
}

/* ==========================================================================
   Responsive: Mobile (≤480px)
   ========================================================================== */

@media (max-width: 480px) {
  .site-header {
    padding: 30px 50px 20px;
  }

  .hero {
    padding: 0 50px;
    height: 506px;
  }

  .hero__headline {
    max-width: 328px;
    margin-top: 40px;
  }

  .hero__children{
    right: -21%;
    bottom: -34px;
  }

  .grass-bar {
    height: 15px;
  }

  .content-section {
    padding: 50px 0 50px;
  }

  .content-section__inner {
    padding: 0 30px;
    margin-top: 8px;
  }

  .cta-section__content {
    padding: 50px 42px;
  }

  .signoff-art__ellipse {
    width: 168px;
    height: 168px;
    bottom: -100px;
  }

  .signoff-art__icon {
    width: 60px;
    height: 44px;
    bottom: 0px;
  }

  .site-footer__inner {
    padding: 0px 50px 0px 50px;    
  }

  .site-footer__bottom {
    padding: 0 50px 50px;
  }

  .disclaimer-modal__header h2 {
    font-size: 24px;
  }

  .disclaimer-modal__body p {
    font-size: 14px;
  }
}

/* ── Cookie Settings Button (floating bottom-left) ── */
.cookie-settings-btn {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px !important;
  border-radius: 100% !important;
  overflow: hidden;
  color: transparent !important;
  background-color: #39A869;
  background-image: url(assets/images/cookie-button-white.svg);
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  z-index: 999;
  cursor: pointer;
}
