html {
  scroll-behavior: smooth;
}

body {
  padding: 0;
  margin: 0;
  background-color: var(----background-color);
  font-family: var(--font-body)
}

/* COLORS */
:root {
  --primary-color: #ffffff;
  --primary-color-alt: #d3d3d3;
  --primary-color-hover: #d0d0d0;
  --on-primary-color: white;
  --background-color: #fcfcfa;
  --background-color-alt: #f7f7f7;
  --header-color: #111111;
  --body-text-color: #333333;
  --card-color: #e6ebed;
  --footer-color: rgba(0, 0, 0, 0);
  --nav-text-color: black;
  --nav-text-hover-color: grey;
  
  --font-headline: "Arial";
  --font-body: "Arial";
}
/* NAV */

/* If using centered nav, and not left and right use this .nav {
  display: flex;
  justify-content: center;
  gap: 35px;
} */

/* This is for left and right nav */ 
.nav {
  display: flex;
  justify-content: space-between; /* Pushes children to opposite ends */
  align-items: center; /* Vertically aligns items */
  gap: 35px;
}

.nav.visisble {
  animation: slideFadeIn 1s forwards;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 35px; /* Spacing between the links */
}

.nav a {
  color: var(--nav-text-color); /* Dark grey color */
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.nav-logo {
  width: 64px;
  height: 64px;
}

.nav a:hover {
  color: var(--nav-text-hover-color); /* Fully black on hover */
}

.menu-row {
  display: none;
  flex-direction: row;
  align-items: center;
}


/* The container for the dropdown menu */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Style for the main dropdown link (e.g., "Services") */
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px; /* Space between text and caret icon */
}

/* The hidden dropdown content */
.dropdown-content {
  display: none; /* Hidden by default */
  position: absolute;
  background-color: var(--background-color-alt);
  min-width: 180px;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.15);
  border-radius: 8px;
  left: -15px;
  z-index: 10;
  overflow: hidden; 
  margin-top: 0; 
}

.dropdown-content a {
  color: var(--nav-text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: var(--light-gray-bg);
  color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.menu-button {
  font-size: 24px;
  padding: 18px;
  width: 40px;
  cursor: pointer;
  background: none;
  border: none;
  color: black;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 10px;
  right: 10px;
  border-radius: 26px;
  background: white;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideFadeIn 0.2s forwards;
}

.mobile-menu a {
  padding: 25px;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  color: var(--nav-text-color);
  font-style: normal;
  font-weight: bold;
  font-size: 22px;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 25px;
    border-bottom: 1px solid #6c6c6c;
    box-sizing: border-box; /* Ensures padding is included in width */
}

.mobile-menu-header a {
    padding: 0;
    border-bottom: none;
    font-size: 22px;
}

.submenu-toggle {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0 10px;
}

.mobile-submenu {
    display: none;
    background-color: var(--background-color); /* Slightly different background to stand out */
}

.mobile-submenu a {
    font-size: 18px; /* Slightly smaller text for sub-items */
    font-weight: normal;
    padding-left: 40px; /* Indent sub-items */
}

.mobile-submenu.open {
    display: flex;
    flex-direction: column;
}


/* HEADERS */

h1,
h2,
h3 {
  font-family: var(--font-headline);
  color: var(--header-color);
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}

h4,
h5,
h6 {
  font-family: var(--font-headline);
  color: var(--header-color);
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(1rem, 10vw, 5rem);
  text-align: center;
  letter-spacing: 15px;
  padding-top: 45px;
  padding-bottom: 30px;
}

h1.visible {
  animation: pulse 2s forwards;
}

h2 {
  font-size: clamp(1rem, 12vw, 3rem); /* Large size */
  text-align: center;
  letter-spacing: 8px; /* Adds spacing between the letters */
  padding-top: 35px;
  padding-bottom: 20px;
}

h3 {
  font-size: 36px;
  text-align: left;
  padding-top: 35px;
  padding-bottom: 20px;
}

h4 {
  font-size: 30px;
  padding-top: 35px;
  padding-bottom: 20px;
}

h5 {
  font-size: 26px;
  padding-top: 20px;
  padding-bottom: 10px;
}

h6 {
  font-size: 22px;
  padding-top: 15px;
  padding-bottom: 10px;
}

/* PARAGRAPHS */

p {
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
  color: var(----body-text-color);
}

p.visible {
  animation: fadeIn 1s forwards;
}

.p1 {
  font-size: 28px;
}
.p2 {
  font-size: 26px;
}
.p3 {
  font-size: 24px;
}

.smallp {
  font-size: 16px;
}

.p-header {
  padding: 15px 0;
  font-weight: bold;
  font-size: 28px;
  position: relative;
}

.p-stacker-start {
  font-size: 32px;
  line-height: 1.3;
  text-align: left;
  font-weight: bolder;
  margin: 3px 0;
}
.p-stacker-med {
  text-align: left;
  font-size: 28px;
  margin: 3px 0;
}

.p-stacker-sm {
  text-align: left;
  font-size: 24px;
  margin: 3px 0;
}

.capped {
  text-transform: uppercase;
}
.bolded {
  font-weight: bold;
}
.colored {
  color: var(--primary-color);
}

/* LINKS */

.button {
  display: inline-block;
  background-color: var(--primary-color); /* Blue color */
  color: var(--on-primary-color); /* White text */
  text-decoration: none;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  font-weight: bold;
  border-radius: 48px;
  transition:
    background-color 0.3s ease-in-out,
    transform 0.2s ease-in-out;
}

.button:hover {
  transition: transform 0.3s ease;
  transform: translateY(-3px);
  cursor: pointer;
}

.bdisabled {
  background-color: var(--primary-color-alt);
  transition: none;
  transform: none;
}

.bdisabled:hover {
  cursor: auto;
  transform: none;
  transition: none;
}

.btext {
  background-color: transparent;
  display: inline-block; /* Makes it easier to style */
  color: var(--primary-color); /* Deep but readable blue */
  text-decoration: none; /* Remove underline */
  font-weight: bold; /* Make it stand out */
  transform: none;
  transition: border-color 0.3s ease-in-out;
  border: solid 2px transparent;
}

.boutlined {
  background-color: transparent;
  display: inline-block; /* Makes it easier to style */
  color: var(--primary-color); /* Deep but readable blue */
  text-decoration: none; /* Remove underline */
  font-weight: bold; /* Make it stand out */
  border: solid 2px var(--primary-color);
}

.btext:hover {
  cursor: pointer;
  transform: none;
  border: solid 2px var(--primary-color);
}

.barrow {
  position: relative;
}

.barrow:hover {
  transform: none;
}

.barrow::after {
  content: "";
  transition: margin 0.3s ease;
}

.barrow:hover::after {
  content: "→";

  margin-left: 15px;
}

.card {
  background-color: var(--card-color);
  border-radius: 28px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 16px;
}

.card-border {
  border-radius: 28px;
  border: 2px solid var(--primary-color);
  margin: 16px;
}

.clicklink {
  display: inline-block; /* Makes it easier to style */
  color: var(--primary-color); /* Deep but readable blue */
  text-decoration: none; /* Remove underline */
  font-weight: bold; /* Make it stand out */
  transition:
    color 0.3s ease,
    transform 0.2s ease;
}

.clicklink:hover {
  color: var(--primary-color-hover); /* Darker shade on hover */
  transform: scale(1.02); /* Slight grow effect */
  text-decoration: underline; /* Add underline on hover */
  cursor: pointer;
}

.quick-links {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Aligns items vertically */
  gap: 8px; /* Adds space between chips */
  padding: 10px;
  flex-wrap: wrap;
}

.chip {
  background-color: var(--primary-color);
  color: white;
  padding: 9px 14px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s;
}

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

.hoverbump:hover {
  transition: transform 0.3s ease;
  transform: translateY(-3px);
  cursor: pointer;
}

/* TABLES */

table {
  border-collapse: collapse;
  background-color: var(--card-color);
  border-radius: 10px;
  border-style: hidden;
}

th,
td {
  padding: 15px;
  text-align: center;
  border: solid 1px #747474;
}

th {
  background-color: var(--primary-color);
  color: var(--on-primary-color);
  border: hidden;
}

tr:nth-child(even) {
  background-color: var(--primary-color-alt);
}

td {
  color: var(--body-text-color);
  border-top: hidden;
  border-bottom: hidden;
}

th:first-of-type {
  border-top-left-radius: 10px;
}
th:last-of-type {
  border-top-right-radius: 10px;
}
tr:last-of-type td:first-of-type {
  border-bottom-left-radius: 10px;
}
tr:last-of-type td:last-of-type {
  border-bottom-right-radius: 10px;
}

/* IMAGES */

/* Update the transition property */
.clickable-img {
  cursor: zoom-in;
  transition: filter 0.3s ease;
}

.clickable-img:hover {
  filter: brightness(1.5); /* Makes it 10% brighter */
  /* Or try: filter: grayscale(100%); */
}

.round {
  border-radius: 25px;
}

.rounder {
  border-radius: 45px;
}

.circle {
  border-radius: 50%;
}

/* LAYOUTS */

.content {
  min-height: 85vh;
  padding-bottom: 45px;
}

.contained {
  max-width: 1200px;
  padding: 0 15px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .menu-row {
    display: flex;
  }
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.padded {
  padding: 24px;
}

.padded-v {
  padding-top: 24px;
  padding-bottom: 24px;
}

.padded-h {
  padding-top: 24px;
  padding-bottom: 24px;
}

.lrcontainer {
  display: flex;
  gap: 20;
  margin: 0 auto;
  align-items: center;
}

.left-side {
  flex: 1;
}

/* Right Side */
.right-side {
  flex: 1;
}

.left-side.visible {
  animation: slideInLeft 1.5s forwards;
}
.right-side.visible {
  animation: slideInRight 1.5s forwards;
}

.tri-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 auto;
}


/* Responsive: Stack on smaller screens */
@media (max-width: 768px) {
  .lrcontainer {
    flex-direction: column;
  }
  .tri-col {
    grid-template-columns: 1fr;
  }
}



/* ANIMATIONS */

.popInChildren > *.visible {
  animation: popIn 1s forwards;
}

.pulseChildren > *.visible {
  animation: pulse 1s forwards;
}

.slideFadeInChildren > *.visible {
  animation: slideFadeIn 1s forwards;
}

.animated.visible {
  animation-fill-mode: forwards;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-30%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* FOOTER */

.footer-text {
  color: white; /* Deep blue to match the theme */
  text-align: center;
  letter-spacing: 5px; /* Adds spacing between the letters */
  font-size: 1rem;
  margin: 10px 0;
}

.footer-text.visible {
  animation: slideFadeIn 1s forwards;
}

.footer {
  background-color: var(--footer-color);
  width: 100%;
  padding-top: 10px;
  padding-bottom: 20px;
  text-align: center;
}

.copyright {
  color: #dbdbdb;
  font-size: 14px;
  margin-top: 10px;
}




.footer-text.visible {
  animation: slideFadeIn 1s forwards;
}

.footer {
  background-color: var(--footer-color);
  width: 100%;
  padding-top: 10px;
  padding-bottom: 20px;
  text-align: center;
}


/* FOOTER */

/* FOOTER BRANDING */
.footer-branding {
    display: flex;
    align-items: center; /* Vertically aligns items */
    gap: 20px; /* Adjust space between items */
    padding-bottom: 30px; /* Space between branding and the grid */
}

.footer-logo {
    width: auto;
}

.vertical-line {
    width: 2px;
    height: 50px; /* Adjust line height as needed */
    background-color: var(--on-primary-color);
}

.footer-brand-name {
    color: var(--on-primary-color);
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}


.footer {
    background-color: var(--footer-color);
    color: #a9a9a9; /* Light gray for text */
    padding: 58px 0 10px 0;
}

.footer-logo {
  width: 100px;
}

.footer-grid {
    display: grid;
        grid-template-columns: 1fr 1fr 1fr 1.5fr; 

    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid #444; /* Separator line */
}


.footer-column {
    text-align: left; /* Aligns all text in the columns to the left */
}

.footer-column h5 {
    color: var(--on-primary-color);
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact-info a {
    color: #a9a9a9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact-info a:hover {
    color: var(--on-primary-color);
    text-decoration: underline;
}

.footer-contact-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.footer-contact-info i {
    margin-top: 4px;
    color: var(--primary-color);
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.footer-bottom-bar p {
    margin: 0;
    font-size: 14px;
  
}

.footer-bottom-bar a {
    color: #a9a9a9;
    text-decoration: none;
}

.footer-bottom-bar a:hover {
    color: var(--on-primary-color);
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 780px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 10px;
    }
}


/* TOOLS */

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 99;
  
}

.lightbox-img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}



/* -- CTA FORM SECTION -- */
.cta-form-section {
    padding: 50px 20px;
}

.cta-form-section .section-header {
    text-align: center;
    margin: 0 auto 50px auto;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}



.form-group {
    margin-bottom: 25px;
}

/* Style for Labels */
.form-group label, .form-group legend {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--header-color);
    margin-bottom: 8px;
    font-size: 16px;
}

/* Style for Checkbox Group */
.form-group fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.checkbox-group {
    display: flex;
    gap: 20px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item label {
    margin-bottom: 0; /* Override default label margin */
    font-weight: normal; /* Make checkbox labels normal weight */
    font-family: var(--font-body);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}


/* Style for Submit Button Area */
.form-submit {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 0;
}

/* -- ACCESSIBILITY UTILITY -- */
/* Hides elements visually but keeps them accessible to screen readers */
.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;
}

form.visible {
  animation: pulse 1s forwards;
}

#form-success-message {
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background-color: #fff;
    border-radius: 16px;
    max-width: 700px;
    margin: 0 auto;
}

#form-success-message p {
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    color: var(--header-color);
    margin-top: 20px;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: var(--primary-color);
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--primary-color);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #ccc;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
