/* Fonts */
@font-face {
  font-display: swap; 
  font-family: 'Cormorant Garamond'; 
  font-style: light;
  font-weight: 300;
  src: url('/assets/fonts/cormorantgaramond-light.woff2') format('woff2'); 
}

@font-face {
  font-display: swap; 
  font-family: 'Cormorant Garamond'; 
  font-style: medium;
  font-weight: 500;
  src: url('/assets/fonts/cormorantgaramond-medium.woff2') format('woff2'); 
}

@font-face {
  font-display: swap; 
  font-family: 'Inter'; 
  font-style: light;
  font-weight: 300;
  src: url('/assets/fonts/inter-light.woff2') format('woff2'); 
}

@font-face {
  font-display: swap; 
  font-family: 'Inter'; 
  font-style: medium;
  font-weight: 500;
  src: url('/assets/fonts/inter-medium.woff2') format('woff2'); 
}

/* visible-only-on-focus skip link */
.skip-link{
  position:absolute;
  left:-9999px;
  top:auto
}

.skip-link:focus{
  left:1rem;
  top:1rem;
  z-index:10000;
  padding:.6rem 1rem;
  background:#000;
  color:#fff;
  border-radius:.375rem
}

/* visually hidden but screen-reader readable */
.visually-hidden{
  position:absolute!important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0
}

/* always show a focus style */
:focus-visible{
  outline:2px solid currentColor;
  outline-offset:3px
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
    scroll-behavior:auto !important
  }
}

/* Global Styles */
html {
  font-size: 16px; 
}

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

body, html {
  margin: 0;
  overflow-x: hidden;
  padding: 0;
  font-family: var(--bodyFont);
  color: var(--textColour1);
  scroll-behavior: smooth;
  background-color: var(--bgColour1);
  font-weight: 300;
}

section {
  padding: var(--sectionPadding)
}

.container {
  max-width: var(--maxW);
  margin: 0 auto;
}

p {
  line-height: 1.6;
  opacity: 0.9;
}

h1, h2, h3 {
  font-family: var(--headerFont);
  font-weight: 300;
  letter-spacing: 1px;
}

h1 {
  font-size: clamp(2.4rem, 3vw, 3.1rem);
}

h2 {
  font-size: clamp(2.2rem, 3.3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.6rem, 2.3vw, 2rem);
}

.brand-accent {
  color: var(--brandColour2);
  font-weight: 500;
}

.brand-accent2 {
  color: var(--mainBrandColour);
  font-weight: 500;
}

/* Icon styles */
.icon {
  fill: var(--mainBrandColour);
  width: 25px;
  height: 25px;
}

.icon {
  fill: var(--mainBrandColour);
  width: 25px;
  height: 25px;
}

.icon-small {
  width: 20px;
  height: 20px;
}

.icon-brand-colour {
  fill: var(--mainBrandColour);
}

/* Icon Circle */
.icon-circle {
  width: clamp(40px, 6.5vw, 48px);
  height: clamp(40px, 6.5vw, 48px);
  background: rgba(36, 124, 255, 0.192);
  color: var(--mainBrandColour);
  border-radius: 50%;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.section-kicker {
  letter-spacing: 3px;
  font-size: 0.75rem;
  opacity: 0.85;
}

.heading-underline {
  width: 140px;
  height: 2px;
  background: var(--brandColour2);
  border-radius: 2px;
}

.title-ornament {
  opacity: 0.8;
  height: 35px;
}

.title-ornament-right {
  transform: scaleX(-1);
}

@media (max-width: 700px) {
  .services-ornament {
    width: 34px;
  }
}

/* Button Styles */
/* Button CSS */
.cta-button {
  padding: 1rem 1.5rem;
  text-decoration: none;
  font-weight: 300;
  font-size: 1rem;
  display: inline-block;
  transition: all 0.3s;
  font-family: var(--bodyFont);
  position: relative;
  background-color: var(--mainBrandColour);
  border: none;
  color: white;
  border-radius: 50px;
  cursor: pointer;
}

.sub-btn {
  box-sizing: border-box;
  background-color: rgba(230, 230, 230, 0);
  border: 2px solid var(--mainBrandColour);
  color: var(--mainBrandColour);
  font-weight: 500;
  border-radius: 50px;
}

/* ==== Nav1 Component Styles Start ==== */
/* ==== Nav1 Component Styles Start ==== */
#nav1-navigation {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background: var(--bgColour1);
  z-index: 1000;
  padding: 0.7rem 2rem;
}

.nav1-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav1-ul li a {
  font-family: var(--bodyFont);
  font-weight: 300;
  color: var(--textColour1);
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.3s;
}

.nav1-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--textColour1);
  text-decoration: none;
  font-family: var(--headerFont);
  display: flex;
  align-items: center;
}

.nav1-toggle {
  background: var(--bgColour1);
  border: none;
  border-radius: 4px;
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.6s;
}

.nav1-toggle-box {
  width: 24px;
  height: 18px;
  position: relative;
}

.nav1-line {
  width: 100%;
  height: 2px;
  background: black;
  position: absolute;
  left: 0;
  transition: all 0.3s;
  border-radius: 1px;
}

.nav1-line:nth-child(1) { top: 0; }
.nav1-line:nth-child(2) { top: 8px; }
.nav1-line:nth-child(3) { bottom: 0; }

/* Animate to "X" */
.nav1-toggle.active .nav1-line:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}
.nav1-toggle.active .nav1-line:nth-child(2) {
  opacity: 0;
}
.nav1-toggle.active .nav1-line:nth-child(3) {
  transform: rotate(-45deg);
  bottom: auto;
  top: 8px;
}

/* Menu */
.nav1-ul-wrapper {
  width: 100%;
  background-color: var(--bgColour1);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s;
  overflow: hidden;
}

.nav1-ul {
  list-style: none;
  padding: 1.5rem 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav1-ul a:hover {
  color: var(--brandColour2);
  transition: color 0.3s;
}

.nav1-ul .active {
  color: var(--brandColour2);
  border-bottom: 1px solid var(--brandColour2);
}

/* Button */
.header-btn {
  display: none;
}

/* Show menu when active */
#nav1-navigation.nav1-active .nav1-ul-wrapper {
  transform: scaleY(1);
  transition-delay: 0.2s;
}

.nav1-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4); 
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.3s ease,
    opacity 0.4s ease 0.3s,      
    visibility 0.4s linear 0.6s;
  z-index: 90; 
  transform: scaleY(0);
  transform-origin: top;
}

.nav1-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    visibility 0s;
}

.icon-blue {
  fill: var(--mainBrandColour);
}

.nav1-ul-wrapper .header-btn {
  display: none;
}

.nav1-cta-button {
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  font-weight: 300;
  font-size: 0.9rem;
  display: inline-block;
  transition: all 0.3s;
  font-family: var(--bodyFont);
  position: relative;
  background-color: var(--mainBrandColour);
  border: none;
  color: white;
  border-radius: 100px;
  cursor: pointer;
}

/* Desktop Styles */
@media screen and (min-width: 1024px) {
  .nav1-toggle {
    display: none;
  }

  .nav1-ul-wrapper {
    transform: none !important;
    display: flex;
    align-items: center;
    height: auto;
  }

  .nav1-ul {
    flex-direction: row;
    gap: 2rem;
    padding: 0;
    font-size: 0.9rem;
  }

  .header-btn {
    display: block;
  }

  nav li:has(> a.active) {
    border-bottom: 1px solid var(--brandColour2);
  }
}

@media screen and (max-width: 1023px) {
    .nav1-ul-wrapper {
    width: 100%;
    height: auto;
    background-color: var(--bgColour1);
    transform: scaleY(0);
    transform-origin: top;
    transition: opacity .3s transform .4s;
    overflow: hidden;
    position: absolute;
    box-sizing: border-box;
    padding-bottom: 3rem;
    left: 0;
    top: 58px;
  }

  .nav1-ul {
    list-style: none;
    padding: 1.5rem 0;
    margin: 0;
    max-height: 90vh;
    width: 100%;
    box-sizing: border-box;
    overflow: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav1-ul li {
    display: block;
    width: 100%;
    text-align: center;
  }

    .nav1-ul-wrapper .header-btn {
    display: flex;
    justify-content: center;
  }

  .nav1-ul-wrapper .header-btn .cta-button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    margin-bottom: 2rem;
  }
}
/* ==== Nav1 Component Styles End ==== */
/* ==== Nav1 Component Styles End ==== */

/* =========================
   Final CTA Component
   ========================= */
.final-cta {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(245, 243, 238, 0.7), rgba(245, 243, 238, 0.7)),
    url("/assets/images/maya-hypno-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.final-cta-inner {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--spaceSmmd);
}

.final-cta-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spaceSm);
}

.final-cta-title-row {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: var(--spaceSm);
}

.final-cta-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spaceSm);
}

.final-cta .heading-underline {
  margin-inline: auto;
}

.final-cta-text {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spaceSm);
}

.final-cta-options {
  list-style: none;
  padding: 0;
  margin: var(--spaceSmmd) auto 0;
  display: flex;
  gap: var(--spaceSmmd);
  justify-content: center;
  flex-wrap: wrap;
}

.final-cta-option {
  background: var(--bgColour2);
  border-radius: 16px;
  padding: var(--spaceSm);
  display: flex;
  align-items: center;
  gap: var(--spaceXs);
  min-width: 260px;
  text-align: left;
}

.final-cta-option h3 {
  font-size: 1.1rem;
  font-family: var(--bodyFont);
  letter-spacing: 0px;
}

.final-cta-option p {
  font-size: 0.95rem;
}

.final-cta-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(156, 175, 136, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.final-cta-action {
  margin-top: var(--spaceSm);
  display: flex;
  justify-content: center;
}

@media (max-width: 700px) {
  .final-cta-options {
    gap: var(--spaceSm);
    margin-top: var(--spaceSm);
  }
}


/* =========================
   FOOTER Component
   ========================= */

#footer1 {
  background: var(--bgColour1);
  padding: var(--sectionPadding);
}

.footer1-inner {
  display: flex;
  flex-direction: column;
  gap: var(--spaceSm);
}

/* --- Top Row Layout --- */
.footer1-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: var(--spaceSmmd);
}

.footer1-tagline {
  max-width: 32ch;
  color: var(--textColour2);
  font-weight: 300;
}

/* Nav */
.footer1-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--spaceSm);
  justify-content: center;
}

.footer1-nav a {
  text-decoration: none;
  color: var(--textColour2);
  transition: color 0.3s;
  font-weight: 300;
}

.footer1-nav a:hover {
  color: var(--brandColour2);
}

/* Contact */
.footer1-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  justify-content: end;
}

.footer1-contact a {
  color: var(--textColour1);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 300;
}

.footer1-contact a:hover {
  color: var(--brandColour2);
}

.footer1-email-icon {
  fill: var(--brandColour2);
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

/* Divider */
.footer1-divider {
  width: 100%;
  height: 1px;
  background: var(--brandColour2);
  border: none;
  margin: 1.2rem 0;
}

/* Bottom Row */
.footer1-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer1-copy {
  color: var(--textColour2);
  font-size: 0.9rem;
  font-weight: 300;
}

.footer1-legal {
  display: flex;
  gap: var(--spaceSm);
  font-weight: 300;
}

.footer1-legal a {
  text-decoration: none;
  color: var(--textColour2);
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer1-legal a:hover {
  color: var(--mainBrandColour);
}

.built-by-link {
  text-decoration: none;
  color: var(--textColour2);
  transition: color 0.3s;
}

.built-by-link:hover {
  color: var(--brandColour2);
  transition: color 0.3s;
}

@media (max-width: 768px) {
  .footer1-top {
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-template-columns: none;
  }

  .footer1-nav ul {
    justify-content: center;
  }

  .footer1-contact {
    justify-content: center;
  }

  #footer1 .nav1-logo {
    justify-content: center;
  }

  .footer1-brand {
    place-items: center;
  }

  .footer1-tagline {
    text-align: center;
    max-width: none;
  }

  .footer1-bottom {
    flex-direction: column;
    gap: 1rem;
  }

  .footer1-copy {
    text-align: center;
  }

  #footer1 .nav1-logo {
  align-self: center;
  }
}

/* Animations */

/* Sweep out mid */
.sweep-out-mid {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  position: relative;
  -webkit-transition-property: color;
  transition-property: color;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
}
.sweep-out-mid:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #afc398;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: 50%;
  transform-origin: 50%;
  -webkit-transition-property: transform;
  transition-property: transform;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
  border-radius: 50px;
}
.sweep-out-mid:hover, .sweep-out-mid:focus, .sweep-out-mid:active {
  color: white;
}
.sweep-out-mid:hover:before, .sweep-out-mid:focus:before, .hvr-shutter-out-horizontal:active:before {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

/* Hover up */
.hover-up {
  transition: box-shadow 0.3s;
  transition: 
    transform 0.3s ease, 
    box-shadow 0.3s ease;
  will-change: transform;
}

.hover-up:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
  transition-delay: 0.4s;
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out,
    box-shadow 0.6s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out,
    box-shadow 0.6s;
}

/* Icon Forward */
.icon-forward {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.1s;
  transition-duration: 0.1s;
}
.icon-forward .hvr-icon {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-transition-duration: 0.1s;
  transition-duration: 0.1s;
  -webkit-transition-property: transform;
  transition-property: transform;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
.icon-forward:hover .hvr-icon, .icon-forward:focus .hvr-icon, .icon-forward:active .hvr-icon {
  -webkit-transform: translateX(4px);
  transform: translateX(4px);
}

/* Title ornament animation */
.title-ornament {
  animation: ornament-drift 6s ease-in-out infinite;
  will-change: transform;
}

/* Slight phase offset for the right ornament */
.title-ornament-right {
  animation-delay: 0.6s;
}

/* Ornament animation */
.title-ornament {
  animation: ornament-drift 6s ease-in-out infinite;
  will-change: transform;
}

/* Right ornament is flipped, so its keyframes must include the flip */
.title-ornament-right {
  animation: ornament-drift-flipped 6s ease-in-out infinite;
  animation-delay: 0.6s;
  will-change: transform;
}

@keyframes ornament-drift {
  0% { transform: translateX(0); }
  50% { transform: translateX(8px); }
  100% { transform: translateX(0); }
}

@keyframes ornament-drift-flipped {
  0% { transform: scaleX(-1) translateX(0); }
  50% { transform: scaleX(-1) translateX(8px); }
  100% { transform: scaleX(-1) translateX(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .title-ornament,
  .title-ornament-right {
    animation: none;
    transform: none;
  }

  /* Preserve the flip even when animation is disabled */
  .title-ornament-right {
    transform: scaleX(-1);
  }
}

/* Default state */
.heading-underline {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease;
  will-change: transform;
}

/* Animated state */
.heading-underline.underline-animate {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .heading-underline {
    transform: scaleX(1);
    transition: none;
  }
}
