/* Fonts */
@font-face {
  font-display: swap; 
  font-family: 'Exo2';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/Exo2-Regular.woff2') format('woff2'),
       url('/assets/fonts/Exo2-Regular.woff') format('woff'); 
}

@font-face {
  font-display: swap; 
  font-family: 'Exo2';
  font-style: normal;
  font-weight: 300;
  src: url('/assets/fonts/Exo2-Light.woff2') format('woff2'),
       url('/assets/fonts/Exo2-Light.woff') format('woff'); 
}

@font-face {
  font-display: swap; 
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/Lato-Regular.woff2') format('woff2'),
       url('/assets/fonts/Lato-Regular.woff') format('woff'); 
}

@font-face {
  font-display: swap; 
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: url('/assets/fonts/Lato-Light.woff2') format('woff2'),
       url('/assets/fonts/Lato-Light.woff') format('woff'); 
}

/* 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 var(--mainBrandColour);
}

input,
textarea,
select {
  font-size: 16px;
}

/* 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
  }

  .reveal,
  .sweep-to-top,
  .your-animation-class {
    animation: none;
    transition: none;
  }
}

/* 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);
  font-weight: 300;
  color: var(--textColour1);
  scroll-behavior: smooth;
  background-color: var(--bgColour1);
}

section {
  padding: var(--sectionPadding)
}

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

p {
  line-height: 1.5em;
}

h1, h2 {
  font-family: var(--headerFont);
  font-weight: 300;
}

h1 {
  font-size: clamp(2.9rem, 5.4vw, 3.8rem);
}

h2 {
  font-size: clamp(2rem, 2.8vw, 2.3rem);
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.2rem);
  font-family: var(--headerFont);
}

.brand-accent-blue {
  color: var(--mainBrandColour);
  opacity: 1;
}

.brand-accent {
  color: var(--brandAccentColour);
  opacity: 1;
}

.sub-heading {
  color: var(--mainBrandColour);
}

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

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

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

/* Icon Circle */
.icon-circle {
  width: clamp(40px, 6.5vw, 48px);
  height: clamp(40px, 6.5vw, 48px);
  background: #33c8e62a;
  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;
}

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

.sub-btn {
  box-sizing: border-box;
  background-color: rgba(230, 230, 230, 0);
  border: 1px solid #5A5A5A;
  color: var(--mainBrandColour);
  font-weight: 400;
  color: #5A5A5A;
}

/* ==== Nav1 Component Styles Start ==== */
/* ==== Nav1 Component Styles Start ==== */
#nav1-navigation {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background: var(--bgColour2);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 0.6rem 0.8rem;
}

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

.nav1-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
}

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

.nav1-logo {
  height: clamp(2rem, 6.4vw, 3rem);
  justify-content: center;
  padding: 0;
  width: auto;
  z-index: 10;
}

.nav1-logo img {
  height: 100%;
  object-fit: contain;
  width: auto;
}

.nav1-toggle {
  background: var(--bgColour2);
  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(--bgColour2);
  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(--mainBrandColour);
  transition: color 0.3s;
}

.nav1-ul .active {
  color: var(--mainBrandColour);
}

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

.cta-button.main-btn.zoom-out {
  font-size: 1rem;
  font-weight: 600;
  background: var(--mainBrandColour);
  border-radius: 0px;
  text-decoration: 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.15); 
  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 {
  background-color: var(--mainBrandColour);
  color: white;
  border-radius: 2px;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.8rem 1rem;
}

/* 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: 1.5rem;
    padding: 0;
  }

  .header-btn {
    display: block;
  }
}

@media screen and (max-width: 1023px) {
    .nav1-ul-wrapper {
    width: 100%;
    height: auto;
    background-color: var(--bgColour2);
    transform: scaleY(0);
    transform-origin: top;
    transition: opacity .3s, transform .4s;
    overflow: hidden;
    position: absolute;
    box-sizing: border-box;
    padding-bottom: 1rem;
    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 {
    margin-bottom: 1rem;
  }
}
/* ==== Nav1 Component Styles End ==== */
/* ==== Nav1 Component Styles End ==== */

/* ==== Collab CTA Component Styles Start ==== */
#collab-cta {
  background: var(--bgColour1);
  color: var(--textColour1);
  text-align: center;
}

.collab-cta-inner {
  padding: var(--spaceSm) 0;
}

/* Heading + intro */
#collab-cta h2 {
  font-weight: 300;
  margin-bottom: var(--spaceSm);
}

.collab-cta-intro {
  color: var(--textColour2);
  max-width: 70ch;
  margin: 0 auto var(--spaceMd);
}

/* CTA button */
.collab-cta-actions {
  margin-bottom: var(--spaceLg);
}

/* Meta (email + location) */
.collab-cta-meta {
  display: grid;
  gap: var(--spaceXs);
  place-items: center;
  color: var(--textColour2);
}

.collab-cta-email {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.collab-cta-email a {
  color: var(--textColour1);
  text-decoration: none;
  transition: color 0.3s;
}

.collab-cta-email a:hover {
  color: var(--mainBrandColour);
  transition: color 0.3s;
}

/* =========================
   INTERNAL HERO STYLES 
   ========================= */
.internal-hero {
  position: relative;
  background: var(--bgColour1);
  color: var(--textColour1);
  overflow: hidden;
}

.internal-hero-inner {
  position: relative;
  padding-top: 5rem;
  max-width: 950px;
}

/* Title + text */
.internal-hero-title {
  margin-bottom: var(--spaceLg);
}

.internal-hero-header {
  max-width: 850px;
}

.internal-hero-highlight {
  color: var(--mainBrandColour);
}

.internal-hero-kicker {
  margin-bottom: var(--spaceSm);
  font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  font-weight: 400;
}

.internal-hero-copy {
  color: var(--textColour2);
}

/* Background circles (bobbing like homepage) */
.internal-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.internal-hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  animation: bob 8s ease-in-out infinite;
}

/* Large aqua circle on right */
.internal-hero-circle1 {
  width: 240px;
  height: 240px;
  right: -150px;
  top: 20px;
  background: var(--mainBrandColour);
}

/* Smaller red overlapping circle */
.internal-hero-circle2 {
  width: 130px;
  height: 130px;
  right: 10px;
  top: 160px;
  background: var(--brandAccentColour);
  animation-delay: 2s;
}

/* Ensure content is above circles */
.internal-hero .container {
  position: relative;
  z-index: 1;
}

/* Mobile ≤425px */
@media (max-width: 700px) {
  .internal-hero-circle1 {
    top: 10px;
    width: 220px;
    height: 220px;
  }

  .internal-hero-circle2 {
    top: 150px;
    width: 100px;
    height: 100px; 
  }
}

/* =========================
   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);
}

/* 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;
}

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

/* 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;
}

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

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

/* Divider */
.footer1-divider {
  width: 100%;
  height: 1px;
  background: var(--brandAccentColour);
  border: none;
  opacity: 0.35;
  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;
}

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

.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(--brandAccentColour);
  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 */
/* Animations */

/* Sweep To Top */
.sweep-to-top {
  display: inline-block;
  vertical-align: middle;
  transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  position: relative;
  transition-property: color;
  transition-property: color;
  transition-duration: 0.3s;
  transition-duration: 0.3s;
}

.sweep-to-top:before {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 4px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--brandAccentColour);
  transform: scaleY(0);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  transition-property: transform;
  transition-property: transform;
  transition-duration: 0.3s;
  transition-duration: 0.3s;
  transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
.sweep-to-top:hover, .sweep-to-top:focus, .sweep-to-top:active {
  color: white;
}
.sweep-to-top:hover:before, .sweep-to-top:focus:before, .sweep-to-top:active:before {
  transform: scaleY(1);
  transform: scaleY(1);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
  transition-delay: 0.3s;
  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;
}

@keyframes bob {
  0%, 100% { 
    transform: translateY(0); 
  }
  50% { 
    transform: translateY(-20px); 
  }
}