/* ===== RESET ===== */
/* Reset some default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Define Color Palette */
:root {
  --primary-color: #1b5ea3;
  --secondary-color: #3a92ba;
  --danger-color: #e74c3c;
  --warning-color: #f39c12;
  --light: #fff;
  --dark: #000;
  --gray: #a6a6a6;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 2rem;
  --space-xl: 2rem;
}

html {
  scroll-behavior: smooth;
}

/* Basic page setup */
body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  background-color: var(--light);
  color: var(--dark);
  overflow-x: hidden !important;
  height: 100%;
  max-width: 100%;
}

h1 {
  line-height: 1;
}

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

a:hover {
  color: var(--secondary-color);
}

section {
  scroll-margin-top: 89px;
}

p {
  font-size: 18px;
  font-weight: 300;
}

/* Basic Button Styles */
button {
  padding: 15px 20px;
  margin: 10px 0;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
/* Button Colors */
button.primary {
  background-color: var(--primary-color); /* Primary button color */
  color: var(--light);
}

button.primary:hover {
  background-color: var(--secondary-color);
}

button.secondary {
  background-color: var(--secondary-color); /* Secondary button color */
  color: var(--light);
}

button.secondary:hover {
  background-color: var(--gray);
  color: var(--light);
}

button.tertiary {
  background-color: var(--light);
  color: var(--dark);
  border: solid 1px var(--dark);
}

button.tertiary:hover {
  background-color: var(--secondary-color);
  color: var(--light);
  border-color: var(--secondary-color);
}

.text-light {
  color: var(--light);
}

.text-dark {
  color: var(--dark);
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

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

.text-italic {
  font-style: italic;
}

.page-title {
  color: var(--light);
  font-size: 3rem;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  padding-bottom: var(--space-lg);
}

.big-heading {
  font-size: 3rem;
  font-weight: normal;
  line-height: 1;
}

.med-heading {
  font-size: 2rem;
}
.sm-heading {
  font-size: 2rem;
  line-height: 1;
}

.text-bold {
  font-weight: bold;
}

.background-primary {
  background-color: var(--primary-color);
}

/* Header Styles */
.site-header {
  position: sticky !important;
  top: 0;
  background-color: var(--light);
  padding: 1rem 0;
  z-index: 999;
}

.container {
  margin: 0 auto;
  padding: 0 1rem;
}

.site-footer {
  color: var(--gray);
  font-size: 12px;
}
.site-footer p {
  font-size: 12px;
}

.site-footer a:hover {
  color: var(--secondary-color);
}

.footer-logo {
  max-width: 40px;
}

/* Logo */
.logo img {
  height: 50px;
}

#main-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 0px;
  left: 0;
  width: 100%;
  background: white;
  padding: 1rem;
  border-bottom: 0.5px solid var(--gray);
  z-index: 1000;
}

#main-nav.active {
  display: flex;
}

/* Hamburger Style */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.bar {
  width: 100%;
  height: 3px;
  background-color: #333; /* or var(--primary-color) */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate into X */
.hamburger.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 8px);
}

.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -8px);
}

/* Nav Links */
.nav-link {
  padding: 0.5rem 0;
  display: block;
}

.nav a {
  padding: 10px;
}

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

.nav-link.active {
  color: var(--primary-color);
  font-weight: bold;
}
/* card styling */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 3rem 0;
  justify-content: center;
}

.card {
  min-width: 290px;
  max-width: 24%;
  background: var(--secondary-color);
  border-radius: 12px;
  padding: 20px;
  flex: 1 1 200px;
  color: var(--light);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  cursor: pointer;
}

.card img {
  width: 80px;
  margin-bottom: 15px;
}

.card h3 {
  margin: 10px 0;
  font-size: 2rem;
  font-weight: 300;
}

.card h4 {
  margin: 8px 20px;
}

.card p {
  margin: 0 20px;
}

.card .reviewer {
  font-style: italic;
  text-align: center;
  padding-left: 20%;
  padding-top: 15px;
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  background: var(--primary-color);
}

/* form styling */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input,
textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--dark);
  font-family: inherit;
  font-size: 18px;
}
input {
  height: 3rem;
}

fieldset input {
  width: auto;
  /* margin-bottom: 1rem; */
}
form label {
  line-height: 0;
  font-size: 16px;
}

fieldset {
  border: none;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.checkbox-row {
  display: flex;
  flex-flow: column wrap;
  gap: 2rem;
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quote-options {
  display: flex;
  flex-wrap: wrap; /* allows wrapping if screen is narrow */
  gap: 1.5rem;
  padding: 1rem 0;
  justify-content: space-around;
}

.quote-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 120px;
}

.quote-option img {
  max-width: 100px;
  margin-bottom: 0.5rem;
}

.error-message {
  background-color: #ffe0e0;
  border: 1px solid #ff9999;
  padding: 1em;
  border-radius: 5px;
  margin-bottom: 1em;
  color: #a10000;
}

.success-message {
  background-color: #e7f9e9;
  border: 1px solid #8cd790;
  padding: 1em;
  border-radius: 5px;
  margin-bottom: 1em;
  color: #256029;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* service item styling */
.service-item {
  transition: transform 0.3s ease;
  font-size: 18px;
  font-weight: 300;
}

.service-item:hover {
  transform: scale(1.08);
  font-weight: 500;
}

/* testimonial carousel styling */
#testimonial {
  margin: auto;
  text-align: center;
  font-family: sans-serif;
  padding: 1rem;
  min-height: 320px;
  /* border: 1px solid #ccc; */
  border-radius: 12px;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); */
}

#review-text {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

#review-author {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gray);
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #333;
}

/* home styling */
#home-image {
  min-height: 20vh;
  background-image: url("../images/hero-image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

/* client styling */
#client-hero {
  min-height: 300px;
  background-image: url("../images/client-bg.png");
  background-size: cover;
  background-position: center top;
}

.client-logos img {
  flex: 0 1 50px;
  max-height: 70px;
  width: auto;
  max-width: 80%;
  margin: var(--space-md);
}

.flex-shrink-3 {
  flex-shrink: 3 !important;
}

/* team styling */
#team-hero {
  min-height: 200px;
  background-image: url("../images/team-bg.png");
  background-size: cover;
  background-position: center center;
}

/* about styling */
.about-graphic {
  width: 75%;
  margin: var(--space-md) 0;
}

.about-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* contact styling */
.contact-info p {
  font-size: 16px;
}

/* ===== FLEX UTILITIES ===== */
.d-flex {
  display: flex;
}

.d-inline-flex {
  display: inline-flex;
}

.flex-column {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.flex-shrink {
  flex-shrink: 1;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-center {
  align-items: center;
}

.align-items-end {
  align-items: flex-end;
}

.justify-start {
  justify-content: flex-start;
}

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

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.justify-evenly {
  justify-content: space-evenly;
}

.flex-grow-1 {
  flex-grow: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.align-self-start {
  align-self: flex-start;
}

.align-self-center {
  align-self: center;
}

.align-self-end {
  align-self: flex-end;
}

/* ===== GRID SYSTEM (12 COLUMNS) ===== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

[class*="col-"] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  flex: 0 0 auto;
}

.col-1 {
  width: 8.3333%;
  max-width: 8.3333%;
}
.col-2 {
  width: 16.6666%;
  max-width: 16.6666%;
}
.col-3 {
  width: 25%;
  max-width: 25%;
}
.col-4 {
  width: 33.3333%;
  max-width: 33.3333%;
}
.col-5 {
  width: 41.6666%;
  max-width: 41.6666%;
}
.col-6 {
  width: 50%;
  max-width: 50%;
}
.col-7 {
  width: 58.3333%;
  max-width: 58.3333%;
}
.col-8 {
  width: 66.6666%;
  max-width: 66.6666%;
}
.col-9 {
  width: 75%;
  max-width: 75%;
}
.col-10 {
  width: 83.3333%;
  max-width: 83.3333%;
}
.col-11 {
  width: 91.6666%;
  max-width: 91.6666%;
}
.col-12 {
  width: 100%;
  max-width: 100%;
}

.hide-on-mobile {
  display: none;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (min-width: 576px) {
  .sm-col-6 {
    width: 50%;
  }
  .sm-col-12 {
    width: 100%;
  }

  .med-heading {
    font-size: 3.5rem;
  }

  .big-heading,
  .page-title {
    font-size: 4.5rem;
  }

  .logo img {
    height: 70px;
  }
  iframe {
    width: 560px;
    height: 315px;
  }

  .sm-text-left {
    text-align: left;
  }

  .sm-text-right {
    text-align: right;
  }

  #team-hero,
  #client-hero {
    min-height: 400px;
  }
}

@media (min-width: 768px) {
  :root {
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 5rem;
  }
  .md-col-4 {
    width: 33.3333%;
    max-width: 33.3333%;
  }
  .md-col-6 {
    width: 50%;
    max-width: 50%;
  }
  .md-col-12 {
    width: 100%;
    max-width: 100%;
  }

  .container {
    padding: 0 3rem;
  }

  .about-graphic {
    width: 50%;
  }

  .contact-info p {
    font-size: 18px;
  }
}

@media (min-width: 1200px) {
  .lg-col-2 {
    width: 16.6666%;
    max-width: 16.6666%;
  }

  .lg-col-3 {
    width: 25%;
    max-width: 25%;
  }

  .lg-col-4 {
    width: 33.3333%;
    max-width: 33.3333%;
  }
  .lg-col-5 {
    width: 41.6666%;
    max-width: 41.6666%;
  }

  .lg-col-6 {
    width: 50%;
    max-width: 50%;
  }
  .lg-col-7 {
    width: 58.3333%;
    max-width: 58.3333%;
  }
  .lg-col-8 {
    width: 66.6666%;
    max-width: 66.6666%;
  }

  .lg-col-9 {
    width: 75%;
    max-width: 75%;
  }
  .lg-col-10 {
    width: 83.3333%;
    max-width: 83.3333%;
  }
  .lg-col-11 {
    width: 91.6666%;
    max-width: 91.6666%;
  }
  .lg-col-12 {
    width: 100%;
    max-width: 100%;
  }

  #main-nav {
    display: flex !important;
    flex-direction: row;
    position: static;
    width: 66.66%;
    background: transparent;
    border: none;
    padding: 0;
    transition: top 1s ease;
    justify-content: space-between;
    align-items: center;
  }

  .nav-link.active {
    border-bottom: solid 2px var(--primary-color);
    font-weight: normal;
  }

  #home-image {
    min-height: 90vh;
  }

  .hamburger {
    display: none;
  }

  .nav-link {
    padding: 0 1rem;
    display: inline-block;
  }

  .card {
    flex: 1 1 30%;
    max-width: 30%;
  }

  #testimonials .card {
    flex: 1 1 75%;
    max-width: 75%;
  }

  .form-container {
    padding: 3rem 5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .quote-option img {
    max-width: 70px;
  }

  .checkbox-row {
    display: flex;
    flex-flow: row wrap;
    gap: 2rem;
  }

  #team-hero,
  #client-hero {
    min-height: 500px;
  }
  .footer-logo {
    max-width: 80px;
  }

  .reverse-desktop {
    flex-direction: row-reverse;
  }

  .hide-on-mobile {
    display: flex;
  }
  .hide-on-desktop {
    display: none;
  }
}

@media (min-width: 1700px) {
  .xl-col-2 {
    width: 16.6666%;
    max-width: 16.6666%;
  }
  .xl-col-4 {
    width: 33.3333%;
    max-width: 33.3333%;
  }
  .xl-col-6 {
    width: 50%;
    max-width: 50%;
  }

  .card {
    flex: 1 1 18%;
    max-width: 18%;
  }
}

/* ===== SPACING UTILITIES ===== */

.m-0 {
  margin: 0 !important;
}
.mt-1 {
  margin-top: var(--space-xs);
}
.mb-1 {
  margin-bottom: var(--space-xs);
}
.ml-1 {
  margin-left: var(--space-xs);
}
.mr-1 {
  margin-right: var(--space-xs);
}
.mx-1 {
  margin-left: var(--space-xs);
  margin-right: var(--space-xs);
}
.my-1 {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
}
.mt-2 {
  margin-top: var(--space-sm);
}
.mb-2 {
  margin-bottom: var(--space-sm);
}
.ml-2 {
  margin-left: var(--space-sm);
}
.mr-2 {
  margin-right: var(--space-sm);
}
.mx-2 {
  margin-left: var(--space-sm);
  margin-right: var(--space-sm);
}
.my-2 {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.mt-3 {
  margin-top: var(--space-md);
}
.mb-3 {
  margin-bottom: var(--space-md);
}
.ml-3 {
  margin-left: var(--space-md);
}
.mr-3 {
  margin-right: var(--space-md);
}
.mx-3 {
  margin-left: var(--space-md);
  margin-right: var(--space-md);
}
.my-3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}
.mt-4 {
  margin-top: var(--space-lg);
}
.mb-4 {
  margin-bottom: var(--space-lg);
}
.ml-4 {
  margin-left: var(--space-lg);
}
.mr-4 {
  margin-right: var(--space-lg);
}
.mx-4 {
  margin-left: var(--space-lg);
  margin-right: var(--space-lg);
}
.my-4 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.mt-5 {
  margin-top: var(--space-xl);
}
.mb-5 {
  margin-bottom: var(--space-xl);
}
.ml-5 {
  margin-left: var(--space-xl);
}
.mr-5 {
  margin-right: var(--space-xl);
}
.mx-5 {
  margin-left: var(--space-xl);
  margin-right: var(--space-xl);
}
.my-5 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.p-0 {
  padding: 0 !important;
}
.pt-1 {
  padding-top: var(--space-xs);
}
.pb-1 {
  padding-bottom: var(--space-xs);
}
.pl-1 {
  padding-left: var(--space-xs);
}
.pr-1 {
  padding-right: var(--space-xs);
}
.px-1 {
  padding-left: var(--space-xs);
  padding-right: var(--space-xs);
}
.py-1 {
  padding-top: var(--space-xs);
  padding-bottom: var(--space-xs);
}
.pt-2 {
  padding-top: var(--space-sm);
}
.pb-2 {
  padding-bottom: var(--space-sm);
}
.pl-2 {
  padding-left: var(--space-sm);
}
.pr-2 {
  padding-right: var(--space-sm);
}
.px-2 {
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}
.py-2 {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}
.pt-3 {
  padding-top: var(--space-md);
}
.pb-3 {
  padding-bottom: var(--space-md);
}
.pl-3 {
  padding-left: var(--space-md);
}
.pr-3 {
  padding-right: var(--space-md);
}
.px-3 {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}
.py-3 {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}
.pt-4 {
  padding-top: var(--space-lg);
}
.pb-4 {
  padding-bottom: var(--space-lg);
}
.pl-4 {
  padding-left: var(--space-lg);
}
.pr-4 {
  padding-right: var(--space-lg);
}
.px-4 {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}
.py-4 {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}
.pt-5 {
  padding-top: var(--space-xl);
}
.pb-5 {
  padding-bottom: var(--space-xl);
}
.pl-5 {
  padding-left: var(--space-xl);
}
.pr-5 {
  padding-right: var(--space-xl);
}
.px-5 {
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}
.py-5 {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* ===ANIMATIONS=== */

.animation-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.animated-element {
  transform: translateX(120%);
  /* or use animation */
}

.slide-in {
  opacity: 0;
  transform: translateY(-50px); /* start above */
  animation: slideDown 0.6s ease-out forwards;
}

.delay-0 {
  animation-delay: 0s;
}
.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}

@keyframes slideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-right {
  opacity: 0;
  transform: translateX(100%);
  transition: all 1s ease-out;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-100%);
  transition: all 1s ease-out;
}

.in-view {
  opacity: 1;
  transform: translateX(0);
}
