/*
 Theme Name: Summit Creative Media
 Author: Nick Dignan
 Version: 1.0
*/

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  text-decoration: none;
  list-style: none;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--medium-bg-color);
  overflow-x: hidden;
}

img {
  width: 100%;
}

:root {
  --primary-theme-color: hsl(293, 39%, 5%);
  --primary-accent-color: rgb(80, 241, 190);
  --secondary-accent-color: rgb(217, 237, 223); 
  --primary-text-color: hsl(152, 79%, 96%);
  --primary-body-text-color: hsl(220, 60%, 98%);
  --medium-bg-color: hsl(184, 100%, 12%);
  --section-padding-top: 8rem 0;

  --font-family-addington: "Addington CF";
  --font-family-montserrat: "Montserrat";
  --font-family-montserrat-alternates: "Montserrat Alternates";
  --font-family-bebas: "Bebas";

  --header-h: 100px;
}

@font-face {
  font-family: "Addington CF";
  font-weight: 200;
  src: url("/fonts/addingtoncf-light-webfont.woff2") format("woff2"),
    url("/fonts/addingtoncf-light-webfont.woff") format("woff");
}

@font-face {
  font-family: "Addington CF";
  font-weight: 400;
  src: url("/fonts/addingtoncf-regular-webfont.woff2") format("woff2"),
    url("/fonts/addingtoncf-regular-webfont.woff") format("woff");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-regular-webfont.woff2") format("woff2"),
       url("fonts/montserrat-regular-webfont.woff") format("woff");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/montserrat-medium-webfont.woff2") format("woff2"),
       url("fonts/montserrat-medium-webfont.woff") format("woff");
}

@font-face {
  font-family: "Montserrat Alternates";
  font-weight: 100;
  src: url("/fonts/montserratalternates-semibold-webfont.woff2") format("woff2"),
    url("/fonts/montserratalternates-semibold-webfont.woff") format("woff");
}

@font-face {
  font-family: "Montserrat";
  font-display: swap;
  font-weight: 600;
  src: url("fonts/montserrat.bold-webfont.woff2") format("woff2"),
    url("fonts/montserrat.bold-webfont.woff") format ("woff");
}

@font-face {
  font-family: "Montserrat";
  font-display: swap;
  font-weight: 700;
  src: url("fonts/montserrat-extrabold-webfont.woff2") format("woff2"),
    url("fonts/montserrat-extrabold-webfont.woff") format ("woff");
}

@font-face {
  font-family: "Handlee";
  font-weight: 400;
  src: url("fonts/handlee-regular-webfont.woff2") format("woff2"),
    url("fonts/handlee-regular-webfont.woff") format ("woff");
}

@font-face {
  font-family: "Bebas";
  font-weight: 400;
  src: url("fonts/bebas-regular-webfont.woff2") format("woff2"),
    url("fonts/bebas-regular-webfont.woff") format ("woff");
}

@font-face {
  font-family: "Blokletters";
  font-weight: 400;
  src: url("fonts/blokletters-webfont.woff2") format("woff2"),
    url("fonts/blokletters-webfont.woff") format ("woff");
}

/* Spacing utilities */
.pad-sm { padding: 2rem 0; }
.pad-md { padding: 4rem 0; }
.pad-lg { padding: 8rem 0; }

.pad-top-sm { padding-top: 2rem; }
.pad-top-lg { padding-top: 8rem; }

.pad-bottom-md { padding-bottom: 4rem; }
.pad-x-lg { padding-left: 4rem; padding-right: 4rem; }

.flex-gap-lg { gap: 0 7rem; }

/* Background Colours */
.bg-dark {
  background-color: var(--bg-dark);
}

.bg-light {
  background-color: var(--bg-dark);
}

.modular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 4rem;
}

.modular-heading-wrapper {
  position: relative;
  height: 100%;
}

.modular-contact-rescue {
  position: relative;
  max-width: 28rem;
  height: fit-content;
  margin-left: auto;
}

.modular-contact-web-dev {
  position: relative;
  max-width: 28rem;
  height: fit-content;
  margin-left: auto;
}

@media (max-width:500px) {
  .modular-contact-rescue, .modular-contact-web-dev {
  position: relative;
  max-width: 28rem;
  height: fit-content;
  margin-top: 0;
  margin-left: 0;
}
}

.modular-contact-rescue::before {
  content: "";
  position: absolute;
  left: 0;
  top: 55%; 
  transform: translate(-112%, -50%); 
  width: 25rem;
  height: 25rem;
  background: url("img/rescue-icon-gray.svg") no-repeat center;
  width: clamp(20rem, 30vw, 29rem);
  height: clamp(20rem, 30vw, 29rem);
  background-size: contain;
  pointer-events: none;
  opacity: .9;
}

.modular-contact-web-dev::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%; 
  transform: translate(-108%, -50%); 
  width: 25rem;
  height: 25rem;
  background: url("img/web-dev-icon.svg") no-repeat center;
  width: clamp(20rem, 30vw, 27rem);
  height: clamp(20rem, 30vw, 23rem);
  background-size: contain;
  pointer-events: none;
  opacity: .9;
}

a.email:hover {
  color: var(--primary-accent-color);
}

p.medium-header {
  font-size: 1.5rem;
  text-transform: none;
  margin-bottom: 1.4rem;
  font-weight: 600;
  font-family: "Blokletters";
  color: var(--primary-accent-color);
}

h2.modular-contact-heading {
  font-family: var(--font-family-montserrat);
  font-size: clamp(1.8rem, 4vw, 2rem);
  text-transform: uppercase;
  color: #eefdf6;
  margin-bottom: 1.5rem;
}

.modular-heading-container {
  margin: 0 0 0 auto;
}

.mobile-circle {
  display: none;
}

.mobile-circle-dev {
  display: none;
}

/* Gear Wrapper */
.profile {
  width: clamp(10rem, 30vw, 20rem);
  aspect-ratio: 1 / 1;

  border: 6px solid var(--primary-accent-color);
  box-sizing: border-box;
  border-radius: 50%;

  background: url('./img/profile.png') center / cover no-repeat;
}

@media (max-width: 915px) {
  .profile {
    transform: translateY(-3rem);
  }
}

@media (max-width: 600px) {
  .profile {
    transform: translateY(-2rem);
    margin-right: auto;
  }
}

/* === Slider Container === */
.services-slider-container {
  position: relative;
  margin: 0 auto;
  padding: 4.2rem 0 0;
}

/* === Slider Track === */
.services-slider-wrapper {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2rem; /* small space below for aesthetics */
}

/* Hide scrollbar (still scrollable) */
.services-slider-wrapper::-webkit-scrollbar {
  display: none;
}
.services-slider-wrapper {
  scrollbar-width: none; /* Firefox */
}

/* === Individual Slides === */
.slider-image {
  min-height: 15rem;
  flex: 0 0 clamp(20vw, 80vw, 24rem); /* grow wider on small screens */
  border: 1.5px solid var(--primary-accent-color);
  border-radius: 2rem;
  scroll-snap-align: start;
  background: var(--medium-bg-color);
  padding: 1.9rem;
  color: var(--primary-body-text-color);
  filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.3));
}

/* Slider Image - Purple Theme */
.slider-image-purple-theme {
  flex: 0 0 clamp(20vw, 80vw, 24rem); /* grow wider on small screens */
  min-height: 15rem;
  border: 1.5px solid #caa6ff;
  border-radius: 2rem;
  scroll-snap-align: start;
  background: var(--medium-bg-color);
  padding: 1.9rem;
  color: var(--primary-body-text-color);
  filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.3));
}

.slider-image-purple-theme h3 {
  font-family: var(--font-family-bebas);
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}


.slider-image h3 {
  font-family: var(--font-family-bebas);
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.slider-image h3::after {
  position: absolute;
  content: "";
  width: 6.8rem;
  height: 2rem; 
  left: 1.8rem; 
  top: 40%;  
  transform: translateY(-100%);
  background: url("img/squiggle.svg") no-repeat center;
  background-size: contain;  
}

@media (max-width:425px) {
    .slider-image h3::after {
      transform: translateY(-160%);
    }

    .slider-image{
      height: 18rem;
    }
  }

.slider-image-purple-theme h3::after {
  position: absolute;
  content: "";
  width: 6.8rem;
  height: 2rem; 
  left: 1.8rem; 
  top: 40%;  
  transform: translateY(-110%);
  background: url("img/squiggle.svg") no-repeat center;
  background-size: contain;  
}

.slider-image p {
  font-size: 1rem;
}


/* === Navigation Buttons === */
.slider-btn {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  background: none;
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 0.5rem;
  z-index: 1; /* no longer needs to overlay slider */
  transition: opacity 0.3s ease;
}

/* Container for arrows */
.slider-buttons {
  display: flex;
  justify-content: center; /* center buttons horizontally */
  gap: 1rem;              /* spacing between buttons */
}

/* Button positions */
.slider-btn.prev,
.slider-btn.next {
  left: auto;
  right: auto;
}

/* Hidden button state */
.slider-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Make sure buttons remain clickable */
.services-slider-container,
.services-slider-wrapper {
  pointer-events: auto;
}


/* Mobile: hide pseudo-element, show actual div */
@media (max-width: 760px) {
  .modular-contact-rescue::before {
    display: none;
  }

  .modular-contact-web-dev::before {
    display: none;
  }

  .modular-contact-rescue, .modular-contact-web-dev {
    margin-top: 0;
  }

  .mobile-circle {
    display: block;
    /* width: clamp(14rem, 50vw, 16rem); */
    aspect-ratio: 1 / 1;
    background: url("img/rescue-icon-gray.svg") no-repeat center;
    background-size: contain;
    margin: 2rem auto; 
  }

  .mobile-circle-dev {
    display: block;
    width: clamp(14rem, 50vw, 16rem);
    aspect-ratio: 1 / 1;
    background: url("img/web-dev-icon.svg") no-repeat center;
    background-size: contain;
    margin-top: 0; 
  }

  .modular-heading-container {
    display: block; 
  }

  .modular-heading-wrapper,
  .modular-contact {
    width: 100%; 
    margin: 0 auto; 
  }

  .section-heading-small,
  .section-heading-main {
    width: 100%;
  }

  .mobile-circle {
    display: block; 
    margin: 2rem auto;
  }

  .mobile-circle-dev {
    display: block; 
    margin: 2rem auto;
  }

  .modular-contact::before {
    display: none; 
  }
}

@media (max-width:1118px) {
  .modular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1rem;
  place-items: center;
}
}
  
header.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--medium-bg-color);
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: none;
}

header.main-navigation.scrolled {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

header.main-navigation a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: var(--primary-accent-color);
  transition: width 0.3s ease;
}

header.main-navigation a {
  color: var(--primary-text-color);
  transition: color 0.3s ease;
}

header.main-navigation a:hover {
  color: var(--primary-accent-color);
}

header.main-navigation {
  transition: filter 0.3s ease;
}

header.main-navigation a.active {
  color: var(--primary-accent-color);
}

header.main-navigation a::after {
  content: "";
  position: absolute;
  display: inline-block;
  right: -25px;   
  top: 75%;
  transform: translateY(-50%);
  width: fit-content; 
  height: auto;     
  background-image: url('/img/squiggle.svg');
  background-size: contain;  /* scale to fit */
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

header.main-navigation a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

header.main-navigation a {
  display: inline-flex;       
  flex-direction: column;      
  align-items: center;         
  gap: 4px;                    
  text-decoration: none;
  transition: color 0.3s ease;
}

header.main-navigation li:last-child a {
  margin-right: 2rem;
}

.nav-icon {
  width: 3.5rem; 
  height: auto;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

header.main-navigation a:hover {
  color: var(--primary-accent-color);
}

header.main-navigation a:hover .nav-icon {
  opacity: 1;
  transform: translateY(0);    /* slide down into place */
}

/* Active link effect */
header.main-navigation a.active {
  color: var(--primary-accent-color); /* same as hover */
}

header.main-navigation a.active .nav-icon {
  opacity: 1;
  transform: translateY(0);
}

.logo {
    z-index: 1000;
    cursor: pointer;
    width: 7.25rem;
}

p {
  color: var(--primary-body-text-color);
  font-family: var(--font-family-montserrat);
  font-weight: 400;
  line-height: 1.6;
  font-size: 1rem;
}

h2.heading-text-large {
  font-family: var(--font-family-bebas);
  color:#9ab0a6;
  font-size: 3.4rem;
  text-transform: uppercase;
  line-height: .9;
}


.heading-title-large {
  font-family: "Montserrat";
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 4rem);
}

.hero {
  min-height: calc(100vh - var(--header-h)); /* fills full viewport minus header */
  display: flex;
  flex-direction: column;
  justify-content: center; /* center hero content vertically */
  align-items: center; /* optional horizontal centering */
  text-align: center;
  box-sizing: border-box;
  color: var(--primary-body-text-color);
}

.hero p {
  font-family: var(--font-family-montserrat);
  max-width: 32ch;
  font-size: 1.3rem;
  margin: 0 auto;
  line-height: 1.5;
  padding: 1.7rem 0 3rem;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0 0;
  line-height: 3;
}

nav.mobile-menu, .top-bar, header {
  transform: none;
  position: absolute;
  top: 22%;
  left: 0;
}

@media (max-width:850px) {
  ul.menu-main, .top-bar { 
  display: none;
  transform: none; 
}
}

nav.mobile-menu ul {
  text-transform: uppercase;
  margin: 0;
  padding: 0 1.5rem;
  list-style-type: none;
  text-align: left;
  color: var(--primary-text-color);
  font-family: "Bebas";
  text-transform: uppercase;
  /* background-color: grey; */
  /* border-top-left-radius: 1.6rem;
  border-bottom-right-radius: 1.6rem; */
}

nav.mobile-menu ul li a {
    font-family: "Bebas";
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    color: hsla(0, 0%, 100%, 0.852);
    padding-left: 0;
    letter-spacing: 0;
    transition: 
    color 0.3s ease,
    padding-left 0.3s ease,
    letter-spacing 0.3s ease;
}

/* SVG icon */
nav.mobile-menu ul li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 14px;
    background: url('../assets/images/arrow.svg') no-repeat center;
    background-size: contain;

    opacity: 0;
    transform: translate(-12px, -50%);
    transition: all 0.3s cubic-bezier(.22, 1, .36, 1);
}

/* Hover state */
nav.mobile-menu ul li a:hover {
    color: var(--primary-accent-color);
    padding-left: 1.3rem;
    letter-spacing: 1px;
}

nav.mobile-menu ul li a:hover::before {
    opacity: 1;
    transform: translate(0, -50%);
}

nav.mobile-menu ul li {
  font-family: "Bebas";
  text-transform: uppercase;
  font-size: clamp(2.7rem, 8vw, 3.6rem);
  line-height: 0;
}

nav li {
  display: inline-block;
  font-size: 1rem;
}

nav a {
  position: relative;
  z-index: 200;
  font-family: var(--font-family-montserrat);
  font-weight: 500;
  color: var(--primary-body-text-color);
  text-decoration: none;
  display: inline-block;
  padding: 1.7rem 1.75rem;
}

.menu-wrap ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-wrap ul li {
  position: relative;
}

.menu-wrap li a {
  z-index: 101;
  display: block;
  padding: 0.5rem 0;
  font-family: 'Bebas Neue', sans-serif;
}

.menu-wrap ul li {
  color: white;
}

.menu-wrap ul li a:hover{
  color: var(--primary-accent-color);
}

.menu-wrap ul li a:hover:after {
  content: "";
  position: absolute;
  top: .2rem;
  left: -2.5rem;
  width: 1.9rem;
  height: 1.9rem;
  background: url('img/pointer.svg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
}

.menu-main-header {
  display: flex;
  align-items: center;
  margin-top: -.2rem;
}

@media (max-width:967px) {
  .menu-main-header {
  display: none;
  
}
}

.menu-sub.open {
  display: block; 
}

.menu-sub {
  z-index: 100;
  position: absolute;
  padding: 4rem;
  top: 4rem;       /* stick to very top of viewport */
  left: 0;
  width: 100vw; /* span full browser width */
  height: auto; /* or 100vh if you want full screen height */
  background: var(--medium-bg-color);
  display: none;
  box-shadow: 0 4px 6px -4px var(--primary-accent-color);
}

.menu-wrap {
  position: relative;
  width: fit-content;
  left: 60%;
}

nav li:hover .menu-sub {
  display: block;
}

.menu-sub li {
  display: block;
}

.menu-heading {
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--primary-accent-color);
}

/* Make the SVG look like an arrow and rotate on hover */
.chevron {
  display: inline-block;
  margin-left: 0.3rem;
  vertical-align: middle;
  transition: transform 0.5s ease;
  color: #fff; /* inherit link color */
}

/* Rotate on hover of parent link or when mobile menu opens */
.menu-main li:hover .chevron,
.menu-main li.open .chevron {
  transform: rotate(180deg);
}

/* Modular Sections */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.flex-container > * {
  box-sizing: border-box;
}

@media (max-width:1120px) {
  .flex-container {
    display: flex;
    flex-wrap: wrap;
    padding: 0 1rem;
    align-content: center;
    flex-direction: column;
    gap: 3rem;
  }

}
  h2.section-heading-main {
  margin-bottom: 1rem;
}

p.signature {
  position: relative;
  font-family: "Handlee";
  font-size: 1.7rem;
}

p.signature::after {
  position: absolute;
  content: "";
  width: 6.8rem;
  height: 2rem; 
  left: .5rem; 
  top: 18%;  
  transform: translateY(1rem);
  background: url("img/squiggle.svg") no-repeat center;
  background-size: contain;  
}


.container {
    max-width: 85rem;
    margin: 0 auto;
}

.modular-section {
    padding: 6rem 1rem;
}

.about-us-content {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  margin: 0 auto;
  justify-items: center;
  width: fit-content;
  margin: 0 auto;
  gap: 4rem;
}

.about-us-text {
  max-width: 34rem;
}

.about-us-intro {
  order: 2;
}

.about-us-text p {
  margin-bottom: 1.5rem;
}

.full--width--bg--light {
  background-color: #eefdf6;
  padding: 6rem 0 4rem 0;
}

.full--width--bg--medium {
  background-color: var(--medium-bg-color)
}

.full--width--bg--dark {
  background-color: var(--primary-theme-color);
}

a {
    color: white;
}

h1.hero-header {
  position: relative;
  font-size: clamp(3rem, 7vw, 6.5rem);
  max-width: 18ch;
  line-height: .8;
  margin: 2rem auto 2rem auto;
  padding: 0 1rem;
  font-family: var(--font-family-bebas);
  text-transform: uppercase;
}

/* Buttons */
.book-chat {
  cursor: pointer;
  z-index: 700;
  order: 2;
  font-size: 1.3rem;
  font-family: var(--font-family-bebas);
  border: 3px solid var(--primary-accent-color);
  background-color: #00373B;
  color: var(--primary-body-text-color);
  border-radius: 999px;
  padding: 1rem 1.5rem;
  text-transform: uppercase;
}

.talk-to-us {
  width: fit-content;
  display: block;
  cursor: pointer;
  font-size: 1.3rem;
  font-family: "Bebas",sans-serif;
  border: 3px solid var(--primary-accent-color);
  background-color: var(--primary-accent-color);
  border-radius: 999px;
  padding: 1rem 1.5rem;
  text-transform: uppercase;
  color: #00373b;
}

.talk-to-us-purple {
  width: fit-content;
  display: block;
  cursor: pointer;
  font-size: 1.3rem;
  font-family: "Bebas",sans-serif;
  border: 3px solid #00393d;
  background-color: #00393d;
  border-radius: 999px;
  padding: 1rem 1.5rem;
  text-transform: uppercase;
  color: var(--primary-text-color);
}

.discovery-call {
  cursor: pointer;
  z-index: 700;
  order: 2;
  font-size: 1.2rem;
  font-family: var(--font-family-montserrat);
  font-weight: bolder;
  border: 1.5px solid var(--primary-body-text-color);
  background-color: #00373b;
  border-radius: 999px;
  padding: 1rem 1.5rem;
}

.discovery-call a {
  color: var(--primary-body-text-color);
}

/* Services Scroller Animation */
.design_services_container {
  position: relative;
  width: 100%;
  background-color: var(--secondary-accent-color);
}

.scroller {
  max-width: 75rem;
  margin: 0 auto;
}

.scroller__inner {
  padding-block: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.scroller[data-animated="true"] {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg,
      transparent,
      white 20%,
      white 80%,
      transparent);
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
  --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
  --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
  --_animation-duration: 40s;
}

.scroller[data-speed="slow"] {
  --_animation-duration: 60s;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 0.5rem));
  }
}

.scroller[data-animated="true"] .scroller__inner:hover {
  animation-play-state: paused;
  cursor: pointer;
}

.tag-list {
  margin: 0;
  padding-inline: 0;
  list-style: none;
}

.tag-list li {
  font-family: "Montserrat";
  font-size: 1.2rem;
  color: white;
  padding: 1.1rem;
  background: var(--medium-bg-color);
  border-radius: .5rem;
}

/* Services Scroller Media Quries */
@media screen and (max-width: 600px) {
  .tag-list li {
    font-family: "Montserrat";
    font-size: 1rem;
    color: white;
    padding: .9rem;
    background: var(--primary-theme-color);
    border-radius: 0.5rem;
  }

  .scroller__inner {
    padding-block: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

main.core--services--section {
  background-color: #00373b;
}

.section-heading-container img {
  width: 1rem;
  margin: 1.5rem 0;
  transform: translateX(-6px);
}

.core-services {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;    /* vertical spacing */
  justify-content: center; /* center the grid inside container */
  padding: 0;
  margin-top: 2.5rem;
}

/* Core Services */
@media (min-width: 600px) and (max-width: 1054px) {
  .service-image-container:nth-child(3) {
    grid-column: span 2;
    justify-self: center;
    max-width: 45ch;
  }
}

.service-image-container {
  position: relative;
  width: max-content;
}

img.service-bg {
  display: block;
  margin: 0 auto;
}

img.squiggle {
  width: clamp(50px, 30vw, 145px);
  height: auto; 
}

img.squiggle-rotated {
  position: relative;
  left: 1rem;
  top: 0;
  width: clamp(50px, 30vw, 210px);
  height: auto;
  transform: rotate(-8deg);
  margin-top: -.5rem;
}

img.service-bg {
  display: block;
  margin: 0 auto;
  width: 100%;
}

.service-image-container p {
  position: relative;
  max-width: 30ch;
  margin: 0 auto;
  padding: 2rem 0;
}

.service-text-overlay {
  position: absolute; 
  top: 35%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  text-align: center; 
  color: white; 
}

.service-text-overlay h2 {
  font-family: "Montserrat Alternates";
  font-weight: 100;
  font-size: clamp(2.5rem, 6vw, 2.5rem);
  margin: 0 auto;
  line-height: 1;
  margin-bottom: .4rem;
}

.service__text {
  font-family: var(--font-family-montserrat);
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary-body-text-color);
  grid-column: span 4;
  text-align: center;
  line-height: 1.6;
}

.section-heading-main {
  position: relative;
  font-family: var(--font-family-bebas);
  color: var(--primary-body-text-color);
  font-size: clamp(3.2rem, 9vw, 5.2rem);
  text-transform: uppercase;
  max-width: 21ch;
  line-height: .9;
}

p.service-title {
  position: relative;
  font-family: var(--font-family-montserrat);
  color: var(--primary-body-text-color);
  font-size: 2.1rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
}

p.service-title::after {
  content: "";
  position: absolute;
  display: block;
  width: 7.75rem;
  height: 0.6875rem; /* adjust to your SVG’s height */
  margin: 0 auto;
  background: url("img/underline.svg") no-repeat center;
  background-size: contain; /* makes it scale nicely */
  left: 16%;
  transform: translateX(-50%);
  bottom: -.5rem; /* sits at bottom edge of the h1 padding */
}

/* small-screen stack */
@media (max-width: 700px) {
  .core-services {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Consultation Form */
.book-consultation {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 1.8rem 0;
}

.book-consultation img {
  width: 4rem;
}

@media (max-width: 450px) {
  .book-consultation {
    padding: 3rem 0 3.5rem 0;
  }
}

.consultation-form {
  width: 100%;
  position: relative;
  background-color: #d9eddf;
  font-family: "Montserrat";
  font-size: 1rem;
}

p.free-consultation-heading {
  position: relative;
  visibility: var(--font-family-bebas);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 500;
  color: #00393d;
}

p.free-consultation-heading::before {
  position: absolute;
  content: "";
  width: 67px;
  height: 55px; 
  left: -75px; 
  top: 50%;  
  transform: translateY(-75%);
  background: url("img/pointer-black.svg") no-repeat center;
  background-size: contain; 
}

@media (max-width: 600px) {
  p.free-consultation-heading::before {
  display: none;
}
}

.down-arrow {
  width: 1.2rem;
  justify-self: start;
  transform: translateX(-9px);
  margin-top: 1.8rem;
}

/* Buttons container */
.buttons-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  height: fit-content;
  margin-top: 1.8rem;
}

.buttons-container-contact {
  position: relative;
  display: flex;
  gap: 0 1rem;
  justify-content: center;
}

@media (max-width: 500px) {
.buttons-container {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  align-self: center;
}
  
  .buttons-container::before {
    position: absolute;
    content: "";
    width: 67px;
    height: 57px;
    left: 104%;
    top: 1rem;
    background: url("img/pointer-right.svg") no-repeat center;
    background-size: auto;
    background-size: contain;
  }

  img.squiggle-rotated {
    margin-top: -1rem;
  }
}

.squiggle-container {
  align-self: center;
  position: relative;
  overflow: hidden;
  width: 100%; 
  height: 100%;
  max-width: 34rem; 
}

@media (max-width:1120px) {
  .squiggle-container {
  inset: 0;
  align-self: center;
  position: relative;
  overflow: hidden;
  width: 100%; 
  height: 100%;
  max-width: 34rem; 
}
}

.squiggle-bg-overlay {
  position: absolute;
  text-align: center;
  inset: .3rem 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  padding: 2rem;
  gap: 1rem;
}

.flex-box {
  display: flex;
  flex-wrap: wrap;
}
.section-text-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  border-radius: 2rem;
  margin: 2rem 0 3.2rem 0;
  width: 100%;
  max-width: 28rem; 
}

.section-text-main p {
  font-size: 1rem;
}

.contact-text-email-tel {
  position: relative;
  border-radius: .2rem;
  width: 100%;
  max-width: 48ch; 
}

.contact-text-email-tel p {
  font-size: 1rem;
}

.modular-heading-container img {
  width: fit-content;
}

@media (max-width:1120px) {
  .section-text-main {
    display: none;
  }
}
/* Our Clients */
.clients {
  display: flex;
  margin: auto;
  gap: 6rem;
  align-items: center;
  padding: 0 1rem;
  animation: logoScroll 20s linear infinite;
  animation-fill-mode: forwards;
}

.clients:hover {
  animation-play-state: paused; 
}

@media (max-width: 768px) {
  .clients {
    display: grid !important; /* override flex */
    margin: auto;
    gap: 4rem;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    animation: none !important; /* stop animation */
    justify-items: center;
  }
}

.our-clients {
  opacity: 1;
  transition: all 0.8s ease;
  display: inline-block; /* or flex */
  vertical-align: top;
  height: 100%;
}

h5.section-heading-small {
  font-size: .9rem;
  font-family: var(--font-family-montserrat);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-accent-color);
  letter-spacing: .2rem;
  padding: 0 0 .5rem 0;
}

h6.heading-small {
  font-family: var(--font-family-montserrat);
  color: var(--primary-body-text-color);
  font-size: 1.2rem;
  font-weight: 600;
}

.squiggle-bg {
  height: auto;
  display: block;
  width: 100%;
  height: auto;
  display: block;
}

.squiggle-bg-overlay p {
  font-family: "Bebas";
  letter-spacing: -2px;
  position: relative;
  font-size: clamp(2.1rem, 10vw, 4.3rem);
  line-height: 1;
  font-weight: 400;
  max-width: 32ch;
  text-transform: uppercase;
  color: #eefdf6;
  transform: rotate(-8deg);
}

.our-clients img {
  height: 100%;
  width: 11rem;
}

.logo-slider {
    animation: scroll 30s linear infinite;
    animation-fill-mode: forwards;
    display: flex;
    flex-shrink: 0;
    gap: 6rem;
    justify-content: space-around;
    padding: 2rem 1rem; 
}

/* Heading animation */
.heading-slider {
  cursor: pointer;
  overflow: hidden;
  width: 100%;
}

.heading-track {
  cursor: pointer;
  display: flex;
  width: max-content;       /* total width of all heading copies */
  animation: scroll-reverse 30s linear infinite;
}

.heading-track:hover {
  animation-play-state: paused; 
}

.heading-track h1 {
  margin-right: 6rem;      /* same gap as logos */
  white-space: nowrap;
}

@media (max-width: 768px) {
  .heading-track {
  cursor: pointer;
  display: flex;
  width: max-content;       /* total width of all heading copies */
  animation: scroll-reverse 15s linear infinite;
  }

  .logo-slider {
    animation: none;
    display: block;
    padding: 3rem 1rem;
  }

  .duplicate {
    display: none;
  }

  .heading-title-large {
    font-family: "Montserrat";
    font-weight: 600;
    font-size: 2.5rem;
  }

  .heading-track h1 {
    margin-right: 2rem;      /* same gap as logos */
    white-space: nowrap;
  }
}

.logo-track {
  overflow: hidden;       /* hide the overflow */
}

@keyframes scroll-reverse {
  0% {
    transform: translateX(-50%); /* start offset by half the track */
  }
  100% {
    transform: translateX(0);    /* move back to start */
  }
}

@keyframes logoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* adjust -50% to match the first set width of this track */
}

/* Mobile Menu */
.mobile-nav {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 700;
  position: fixed;
  top: 0;
  right: 0;
  background-color: var(--medium-bg-color);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: all .8s ease-in-out;
}

.mobile-nav.show {
  display: none;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width:966px) {
  .mobile-nav.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    background: url('./img/rescue-icon-light-green.svg') no-repeat;
    background-color: var(--primary-theme-color);
    /* Large + responsive */
    background-size: clamp(450px, 80vw, 900px);
    /* Push it partially off screen */
    background-position: right -15rem bottom -1rem;
  }
}

.mobile-menu li {
  display: block;
  color: var(--primary-body-text-color);
  line-height: 2;
  text-align: left;
}

@media screen {
  .menu-btn {
    display: none;
  }
}

@media (max-width:966px) {
  .menu-btn {
  cursor: pointer;
  position: fixed;
  top: 35px;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1800;
}
}

.menu-btn-inner {
  transition: transform 0.3s ease;
}

.menu-btn.close {
  transform: rotate(180deg);
}


.menu-btn.close .menu-btn-inner {
  transform: rotate(180deg);
}

.menu-btn.close .btn-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--primary-accent-color);
}

.menu-btn.close .btn-line:nth-child(2) {
  opacity: 0;
}

.menu-btn.close .btn-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
  background: var(--primary-accent-color);
}

.btn-line {
  z-index: 6000;
  width: 28px;
  height: 3px;
  margin: 0 0 5px 0;
  background: #fff;
}

/* Rotate X With Menu Items */
.close {
  transform: rotate(180deg);
}

.close .btn-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.close .btn-line:nth-child(2) {
  opacity: 0;
}

.close .btn-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Contact Form */
.form-wrapper {
  display: flex;
}
form {
      background: #00373b;
      box-sizing: border-box;
      margin: auto;
      padding: 3rem 2rem;
      border-radius: .5rem;
      border: 4px solid var(--primary-accent-color);
      font-family: var(--font-family-montserrat);
    }

    p.form-text {
      position: relative;
      color: var(--primary-body-text-color);
      margin-top: 1rem;
      font-size: 1rem;
      max-width: 45ch;
    }

    p.form-text-small {
      position: relative;
      color: var(--primary-body-text-color);
      font-size: 1rem;
      max-width: 45ch;
      margin-bottom: 2.5rem;
    }   
  
    label {
      display: block;
      margin-top: 1.2rem;
      color: var(--primary-body-text-color);
    }
    input[type="text"],
    input[type="email"],
    textarea {
      width: 100%;
      padding: 10px;
      margin-top: 1rem;
      border: 1px solid #ccc;
      border-radius: 4px;
      box-sizing: border-box;
      font-family: inherit;
    }
    .radio-group {
      margin-top: 10px;
    }
    .radio-group label {
      display: block;
      margin-bottom: 5px;
      font-weight: normal;
    }
    
    input[type="checkbox"] {
    -webkit-appearance: none; /* Safari/Chrome */
    -moz-appearance: none;    /* Firefox */
    appearance: none;          /* Standard */
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-accent-color);    /* Outer border */
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    top: .2rem;
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: -.3rem;
  width: 10px;
  height: 20px;
  border: solid var(--primary-accent-color);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  color: #333;
  align-content: center;
}

.submit {
  width: 100%;
  display: block;
  cursor: pointer;
  font-size: 1rem;
  font-family: "Bebas Neue",sans-serif;
  border: 1px solid var(--primary-accent-color);
  background-color: var(--primary-accent-color);
  border-radius: .5rem;
  margin-top: 1rem;
  padding: 1rem 1rem;
  text-transform: uppercase;
}

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

.icon-overlay {
  position: relative;
  max-width: 30rem;
}

.icon-overlay img {
  display: block;
  width: 100%;
  height: auto;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Handlee', sans-serif;
  font-size: clamp(1rem, 5vw, 4rem);
  color: var(--primary-body-text-color);
  text-align: center;
  pointer-events: none; /* lets clicks pass through if needed */
  line-height: 1.1;
}

.email-tel {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border-radius: .2rem;
  max-height: 100%;
  height: 35rem;
  background: url('img/doodle-light.svg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  flex-direction: row;
}

img.email, img.tel {
  width: 4.5rem;
  left: -.8rem;
  position: relative;
}

/* Contact Section */
.contact-section {
  display: block;
  display: flex;
  gap: 4rem;
}

@media (max-width:940px) {
    .contact-section {
      flex-direction: column;
    }
}

/* Footer */
.site-footer {
  padding: 1.5rem 1rem;
  background: var(--medium-bg-color);
}

/* LEFT NAV */
.footer-left {
  text-align: left;
}

.footer-nav a {
  margin-right: 1rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-color);
  opacity: 0.7;
  transition: 0.2s ease;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--primary-accent-color);
}

/* CENTER */
.footer-center {
  text-align: center;
}

.footer-heading {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.2;
}

/* RIGHT */
.footer-right {
  text-align: right;
}

.footer-right a {
  display: block;
  margin-top: 0.3rem;
  color: var(--primary-accent-color);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  text-align: center;
  border-top: 0.0015rem solid var(--primary-accent-color);
  padding-top: 1.5rem;
}

.footer-bottom .logo {
  z-index: 10;
}

@media (max-width:866px) {
  .footer-bottom {
    gap: 2rem;
  }
}

h2.footer-heading {
  position: relative;
  font-family: "Blokletters";
  font-size: clamp(1rem, 4vw, 1.3rem); 
  color: var(--primary-body-text-color);
  font-weight: lighter;
  letter-spacing: -0.015rem;
  padding: 0 1rem;
  text-align: left;
}

@media (max-width:866px) {
  h2.footer-heading {
    padding: 0;
  }
}

.footer-contact-info p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Client Testimonials */
.client-testimonials {
  padding: var(--section-padding-top);
  background-color: #00373b;
}

.testimonials {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.testimonial {
  width: fit-content;
  height: auto;
  padding: 0 1rem;
}

.testimonial-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38rem;
  height: 34rem;
  padding: 1rem 2.4rem;
  background-image: url('./img/service-bg-light.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  background-clip: padding-box;
}

.testimonial-tab p {
  max-width: 50ch;
  text-align: center;
  padding: 0 1rem;
  color: #fff;
  font-family: var(--font-family-montserrat);
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary-body-text-color);
  line-height: 1.6;
}

h3.testimonial_heading {
  font-size: clamp(1.1rem, 5vw, 1.1rem);
  font-family: var(--font-family-montserrat);
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  color: #fff;
}

h3.testimonial_heading::before {
  content: '';
  display: inline-flex;
  position: absolute;
  top: 20%;
  width: 100%;
  height: 3rem;
  background-image: url('./img/quote.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 2rem center;
}

h3.testimonial_heading::after {
  display: inline-flex;
  content: '';
  position: absolute;
  top: 70%;
  left: 75%;
  width: 3rem;
  height: 3rem;
  background-image: url('./img/closed-quote.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right left;
  bottom: 0;
}

@media screen and (max-width: 1080px) {
  .testimonials {
    display: flex;
    gap: 2rem;
    flex-direction: column;
  }

  .testimonial-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 34rem;
    padding: 1rem 2.4rem;
    background-image: url('./img/service-bg-light.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    background-clip: padding-box;
  }

  h3.testimonial_heading::after {
    display: inline-flex;
    content: '';
    position: absolute;
    top: 71%;
    left: 62%;
    bottom: 0;
    width: 3rem;
    height: 3rem;
    background-image: url('./img/closed-quote.svg');
    background-size: contain;
    background-repeat: no-repeat;
  } 
}

@media screen and (max-width: 550px) {
  .testimonial-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 34rem;
    padding: 1rem 1rem;
    background-image: url('./img/service-bg-light.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-clip: padding-box;
  }

  .testimonial {
    padding: 0;
  }

  h3.testimonial_heading::before {
    display: inline-block;
    content: '';
    position: absolute;
    top: 18%;
    background-image: url('./img/quote.svg');
    background-size: 2rem;
    background-repeat: no-repeat;
  }

  h3.testimonial_heading::after {
    display: inline-block;
    content: '';
    position: absolute;
    top: 74%;
    left: 75%;
    bottom: 0;
    width: 3rem;
    height: 3rem;
    background-image: url('./img/closed-quote.svg');
    background-size: 2rem;
    background-repeat: no-repeat;
  } 

  .testimonial-tab p {
    padding: 0;
  }

}

.animate-section {
  opacity: 0;
  transition: opacity 2s ease-out;
}

.animate-section.in-view {
  opacity: 1;
}

@media screen and (max-width: 950px) {
  h2.footer-heading {
    display: none;
  }
}