:root {
  /* Colors */
  --primary: #4D7177;
  --primary-dark: #3a565b;
  --accent: #C87F59;
  --accent-light: #dca386;
  --secondary: #231F20;
  --background: #FFFFFF;
  --surface: #F8F9FA;
  --text-main: #231F20;
  --text-light: #767676;
  --text-off-white: #f8f9fa;
  --white: #FFFFFF;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

button,
.btn {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

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

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

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

.text-center.justified-section {
  text-align: justify;
  margin: 0 auto;
  max-width: 800px;
  display: block;
}

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

.section {
  padding: 5rem 0;
}

.section-light {
  background-color: #f8f9fa;
  padding: 4rem 1rem;
}

.section-heading {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.card-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
  margin-top: 3rem;
  /* or adjust as needed */
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2>div {
  padding-left: 1rem;
  padding-right: 1rem;
}

.grid-uneven {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem;
  align-items: start;
}

.naics-box {
  padding-bottom: 5rem;
  /* Adjust until they align */
}

.certifications-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.certifications-row img {
  height: 150px;
  /* Adjust based on your logo height */
  object-fit: contain;
  transition: transform 0.3s ease;
}

.certifications-row img:hover {
  transform: scale(1.2);
}

/* Components */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

.card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.no-transition {
  transition: none !important;
}

.card.no-transition:hover {
  transform: none !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
}

/* Dropdown styles */
.dropdown {
  display: flex;
  align-items: center;
  position: relative;
}

/* Make dropdown button behave like a nav link */
.dropdown-toggle {
  background: none;
  border: none;
  padding: 0.rem 1rem;
  margin: 0;

  font: inherit;
  color: inherit;
  line-height: inherit;

  cursor: pointer;
  vertical-align: middle;

  font-weight: 500;
  /* Or 600, depending on your existing nav link weight */
  font-size: 1rem;
  /* Match nav link size */
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  height: 100%;
  position: relative;
  top: -1px;
}

.dropdown-toggle:hover {
  color: var(--primary);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f8f9fa;
  min-width: 200px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

/* Standard Form Controls */
.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #CBD5E1;
  /* Slate-300 */
  border-radius: 6px;
  background-color: white;
  color: #1E293B;
  /* Slate-800 */
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1rem;
}

.form-control:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 127, 89, 0.2);
  /* Accent #C87F59 with opacity */
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

.form-group {
  margin-bottom: 1.25rem;
}

.turnstile-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

/* Contact Form Customization */
.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form .form-control {
  width: 100%;
  font-size: 1rem;
}

.contact-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 1rem;
}

.form-wrapper {
  max-width: 950px;
  margin: 0 auto;
  padding: 1rem;
}

@media (min-width: 768px) {
  .form-wrapper {
    padding: 2rem 0;
  }
}

/*.dropdown-menu.show {
  display: block;
}*/

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

/* Header & Footer */
header {
  height: var(--header-height);
  /*background: rgba(255, 255, 255, 0.95);*/
  background: rgba(35, 31, 32, 1.0);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  /*border-bottom: 1px solid rgba(0, 0, 0, 0.05);*/
}

header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--accent);
}

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

.nav-links>.dropdown {
  display: inline-block;
  position: relative;
  color: var(--accent);
}

.nav-links a.active,
.nav-links .dropdown-toggle.active {
  color: var(--primary);
  border-bottom: 0px solid var(--primary);
  padding-bottom: 0px;
}

.nav-links a.active::after {
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 80%;
  width: auto;
  display: block;
}

ul {
  list-style: none;
}

@media (max-width: 768px) {
  .logo {
    height: auto;
    max-width: 60%;
  }

  .logo img {
    height: auto;
    width: 100%;
  }
}

footer {
  background: var(--secondary);
  color: var(--primary);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--primary);
  padding-bottom: var(--spacing-sm);
}

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

.footer-col h4 {
  color: var(--text-off-white);
  margin-bottom: var(--spacing-sm);
}

.footer-col ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-bottom {
  text-align: center;
  font-size: 0.875rem;
}

.team-member {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.team-member h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.team-member .title {
  font-size: 1rem;
  color: #777;
  margin-bottom: 1rem;
}

.team-member p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

/* Mobile Nav */
.mobile-menu-btn {
  display: none;
  background: none;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .team-member {
    margin-bottom: 3rem;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(35, 31, 32, 1.0), rgba(35, 31, 32, 0.8));
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 8rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: .4rem;
  text-transform: uppercase;
  margin-bottom: var(--spacing-xs);
  color: var(--white);
}

.hero-tagline {
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: .3rem;
  margin-bottom: var(--spacing-md);
  font-weight: 500;
}

.hero-mission {
  max-width: 1000px;
  margin: 0 auto var(--spacing-md);
  font-size: 1.125rem;
  opacity: 0.9;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-image {
  background-size: cover;
  background-position: center;
  min-height: 500px;
  position: relative;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  min-height: 500px;
  color: white;
  display: flex;
  align-items: center;
}

.hero-overlay h1 {
  color: white;
}

.alt-hero {
  background-color: var(--secondary);
  color: var(--white);
  padding: var(--spacing-md) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay could go here via pseudo-element */

.alt-hero h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xs);
  color: var(--white);
}

.alt-hero-tagline {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-weight: 500;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.image-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Light Box */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

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

.lightbox-prev,
.lightbox-next,
.lightbox-close {
  position: absolute;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  z-index: 10000;
  user-select: none;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
}

/* Amenity Carousel */
.amenity-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.amenity-carousel::-webkit-scrollbar {
  display: none;
}

.amenity-item {
  flex: 0 0 auto;
  background: #f4f4f4;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.amenity-item:hover {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Property Gallery Carousel */
.gallery-section {
  padding: 0;
  background: #000;
}

.gallery-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
}

.gallery-carousel::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

.gallery-item {
  flex: 0 0 25%;
  /* 4 items visible on large screens */
  min-width: 300px;
  height: 400px;
  scroll-snap-align: start;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .gallery-item {
    flex: 0 0 80%;
    /* Show mostly one image on mobile */
    min-width: unset;
    height: 300px;
  }
}