/* ===== GLOBAL TEXT IMPROVEMENTS ===== */

/* Prevent word splitting across the entire website */
* {
  hyphens: none !important;
  word-wrap: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* Ensure text flows naturally without breaking words */
p, h1, h2, h3, h4, h5, h6, span, div, a {
  hyphens: none !important;
  word-wrap: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* Project Types Grid Styles */

/* Fix for full-width hero images on project pages */
.section.full-width {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  /* margin-bottom: 4rem; */
}

/* Add padding between project cards and map ONLY on projects.html page */
[data-wf-page="688eb537ed1a1fe025b5cc10"] .section.full-width {
  margin-bottom: 0;
}

.image-hero {
  width: 100% !important;
  height: 60vh !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
}

/* Fix spacing issues on individual project pages */

/* 1. Reduce space between project title and Location/Project Type info */
.project-info-grid {
  margin-top: 4rem !important;
}

/* 2. Reduce next project section height */
.section.short.green {
  padding-top: 0rem !important;
  padding-bottom: 1rem !important;
}

/* 3. Fix project description section margins */
.rich-text-block.w-richtext > :first-child {
  margin-top: 0 !important;
}

.rich-text-block.w-richtext > :last-child {
  margin-bottom: 0 !important;
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
  .project-info-grid {
    margin-top: 3rem !important;
  }
  
  /* .section.full-width {
    margin-bottom: 3rem;
  } */
  
  /* Projects page specific padding - tablet */
  [data-wf-page="688eb537ed1a1fe025b5cc10"] .section.full-width {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 767px) {
  .project-info-grid {
    margin-top: 2rem !important;
  }
  
  .section.short.green {
    padding-top: 2rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  /* Projects page specific padding - mobile */
  [data-wf-page="688eb537ed1a1fe025b5cc10"] .section.full-width {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 479px) {
  .project-info-grid {
    margin-top: 2rem !important;
  }
}

.project-types-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2rem;
  margin-top: 3rem;
}

.project-type-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: var(--sizes--corner-radius);
  overflow: hidden;
  aspect-ratio: 1;
  transition: transform 0.3s cubic-bezier(.165, .84, .44, 1);
}

.project-type-card:hover {
  transform: scale(1.02);
  text-decoration: none;
}

.project-type-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-type-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.165, .84, .44, 1);
}

.project-type-card:hover .project-type-image {
  transform: scale(1.05);
}

.project-type-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(20, 20, 20, 0.8));
  padding: 3rem 2rem 2rem;
  color: var(--colors--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-type-title {
  font-family: var(--fonts--font-family);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--colors--white);
}

.project-type-count {
  font-size: 1rem;
  font-weight: 400;
  color: var(--colors--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive Design */
@media (max-width: 991px) {
  .project-types-grid {
    grid-gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .project-type-title {
    font-size: 1.5rem;
  }
  
  .project-type-overlay {
    padding: 2rem 1.5rem 1.5rem;
  }
}

@media (max-width: 767px) {
  .project-types-grid {
    grid-template-columns: 1fr;
    grid-gap: 1rem;
    margin-top: 2rem;
  }
  
  .project-type-card {
    aspect-ratio: 4/3;
  }
  
  .project-type-title {
    font-size: 1.25rem;
  }
  
  .project-type-overlay {
    padding: 1.5rem 1rem 1rem;
  }
}

@media (max-width: 479px) {
  .project-type-title {
    font-size: 1rem;
  }
  
  .project-type-count {
    font-size: 0.875rem;
  }
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hide breadcrumbs on touch devices for better mobile UX */
@media (hover: none) {
  .breadcrumb {
    display: none;
  }
}

.breadcrumb-link {
  color: var(--colors--black);
  font-weight: 400;
  text-decoration: none;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: var(--colors--black-30);
}

.breadcrumb-current {
  color: var(--colors--black);
  font-weight: 400;
}

/* Individual Project Pages - specific structure targeting */
/* The second breadcrumb link (category link on individual project pages) */
.breadcrumb-link + .breadcrumb-separator + .breadcrumb-link {
  transition: color 0.2s ease;
}

.breadcrumb-link + .breadcrumb-separator + .breadcrumb-link:hover {
  color: var(--colors--white);
  font-weight: 400;
  text-decoration: none;
}

/* The current project name (third element) */
.breadcrumb-link + .breadcrumb-separator + .breadcrumb-link + .breadcrumb-separator + .breadcrumb-current {
  transition: color 0.2s ease;
}

.breadcrumb-link + .breadcrumb-separator + .breadcrumb-link + .breadcrumb-separator + .breadcrumb-current:hover {
  color: var(--colors--white);
}

/* Home link on individual project pages - use adjacent sibling selector */
.breadcrumb-link:first-child:nth-last-child(5) {
  transition: color 0.2s ease;
}

.breadcrumb-link:first-child:nth-last-child(5):hover {
  color: var(--colors--white);
  font-weight: 400;
  text-decoration: none;
}

/* Project Detail Pages */
.project-hero-image {
  width: 100%;
  height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.project-gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--sizes--corner-radius);
}

.project-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(.165, .84, .44, 1);
}

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

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

.related-project-card {
  display: block;
  text-decoration: none;
  border-radius: var(--sizes--corner-radius);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.165, .84, .44, 1);
}

.related-project-card:hover {
  transform: scale(1.02);
  text-decoration: none;
}

.related-project-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.related-project-info {
  padding: 1rem;
  background: var(--colors--white);
  border: 1px solid var(--colors--black-30);
  border-top: none;
}

/* Responsive adjustments for project details */
@media (max-width: 767px) {
  .project-hero-image {
    height: 40vh;
  }
  
  .project-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .related-projects {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Featured Projects Navigation */
.featured-projects-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Featured Projects Navigation Links - Override Webflow styles for consistency */
.featured-projects-nav .project-nav-link {
  color: var(--colors--black) !important;
  text-decoration: none !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
  transition: color 0.2s ease, transform 0.3s cubic-bezier(.165, .84, .44, 1) !important;
  display: block !important;
  transform: none !important;
}

.featured-projects-nav .project-nav-link:hover {
  color: var(--colors--white) !important;
  text-decoration: none !important;
  opacity: 1 !important;
  transform: translate(0.3rem) !important;
}

/* ===== CENTRALIZED LOGO COMPONENT ===== */

/* Base logo styling - applies to all logo images */
.logo {
  width: auto !important;
  height: auto !important;
  max-width: 90px !important;
  max-height: 55px !important;
  object-fit: contain !important;
  display: block !important;
  transition: opacity 0.3s ease !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Default state: Green logo visible, Black logo hidden */
.logo-closed {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.logo-open {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Menu expanded state: Black logo visible, Green logo hidden */
.w--nav-menu-open .logo-closed {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.w--nav-menu-open .logo-open {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Additional specificity for brand container */
.brand .logo {
  width: auto !important;
  height: auto !important;
  max-width: 90px !important;
  max-height: 55px !important;
  object-fit: contain !important;
}

/* Override any Webflow default styles */
.w-nav-brand .logo,
.w-nav .brand .logo,
.navbar-black .brand .logo,
.navbar-accent-color .brand .logo {
  width: auto !important;
  height: auto !important;
  max-width: 90px !important;
  max-height: 55px !important;
  object-fit: contain !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .logo {
    max-width: 70px !important;
    max-height: 45px !important;
  }
  
  .brand .logo {
    max-width: 70px !important;
    max-height: 45px !important;
  }
}

@media (max-width: 767px) {
  .featured-projects-nav {
    gap: 0.75rem;
  }
  
  .featured-projects-nav .project-nav-link {
    font-size: 1rem !important;
  }
}

/* ===== NAVIGATION MENU ALIGNMENT FIX ===== */

/* Fix alignment between nav links and featured projects in open menu */
.nav-menu-grid {
  align-items: flex-start !important;
  /* Ensure consistent 16px gaps */
  grid-column-gap: 16px !important;
  grid-row-gap: 16px !important;
}

.nav-links-wrapper,
.project-links-wrapper {
  align-self: flex-start !important;
}

/* Fix Featured Projects heading padding - make top and bottom both 16px (1rem) */
.h5-style-heading.nav-menu-heading {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* ===== PROCESS SECTION REDESIGN ===== */

/* Process header styling */
.process-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.process-header h2 {
  margin-bottom: 1rem;
}

.process-header .h4-style-heading {
  margin-bottom: 1.5rem;
  color: var(--colors--accent-color);
}

.process-header p {
  font-size: 1.25rem;
  color: var(--colors--black-60);
  line-height: 1.4;
}

/* Process grid layout */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch; /* Make all cards same height */
}

/* Individual process card */
.process-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--sizes--corner-radius);
  border: 2px solid transparent;
  background: var(--colors--white);
  transition: all 0.3s cubic-bezier(.165, .84, .44, 1);
  position: relative;
  overflow: hidden;
  height: 100%; /* Ensure full height */
  box-sizing: border-box; /* Include padding in height calculation */
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--colors--accent-color);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.165, .84, .44, 1);
}

.process-card:hover::before {
  transform: translateX(0);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(20, 20, 20, 0.15);
  border-color: var(--colors--accent-color-30);
}

/* Process icon container */
.process-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--colors--accent-color-30);
  transition: all 0.3s cubic-bezier(.165, .84, .44, 1);
}

.process-card:hover .process-icon {
  background: var(--colors--accent-color);
  transform: scale(1.1);
}

/* Process icon image styling */
.process-icon-img {
  width: 32px;
  height: 32px;
  display: block;
  transition: all 0.3s cubic-bezier(.165, .84, .44, 1);
}

.process-card:hover .process-icon-img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Process content */
.process-content {
  flex: 1; /* Take remaining space */
  display: flex;
  flex-direction: column;
}

.process-content h3 {
  margin-bottom: 1rem;
  color: var(--colors--black);
  transition: color 0.3s ease;
  font-size: 1.5rem;
  line-height: 1.2;
}

.process-card:hover .process-content h3 {
  color: var(--colors--accent-color);
}

.process-content p {
  color: var(--colors--black-60);
  line-height: 1.5;
  font-size: 1rem;
  flex: 1; /* Take remaining space to push content evenly */
  hyphens: none;
  word-wrap: normal;
  overflow-wrap: normal;
  word-break: normal;
}

/* Process CTA styling */
.process-cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* Responsive adjustments */
/* Tablet: 2 columns */
@media (max-width: 991px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    gap: 1.5rem;
  }
  
  .process-card {
    padding: 2rem;
  }
  
  .process-header {
    margin-bottom: 3rem;
  }
  
  .process-content h3 {
    font-size: 1.25rem;
  }
  
  .process-content p {
    font-size: 0.95rem;
  }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
  .process-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 1.5rem;
  }
  
  .process-card {
    padding: 2rem;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .process-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
  }
  
  .process-icon-img {
    width: 32px;
    height: 32px;
  }
  
  .process-header h2 {
    font-size: 2.5rem;
  }
  
  .process-header p {
    font-size: 1rem;
  }
  
  .process-content h3 {
    font-size: 1.5rem;
  }
  
  .process-content p {
    font-size: 1rem;
  }
}

/* Small mobile adjustments */
@media (max-width: 479px) {
  .process-card {
    padding: 1.5rem;
  }
  
  .process-header {
    margin-bottom: 2rem;
  }
  
  .process-content h3 {
    font-size: 1.25rem;
  }
}

/* ===== SERVICES SECTION REDESIGN ===== */

/* Services header styling */
.services-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.services-header h2 {
  margin-bottom: 1rem;
}

.services-header .h4-style-heading {
  margin-bottom: 1.5rem;
  color: var(--colors--accent-color);
}

.services-header p {
  font-size: 1.25rem;
  color: var(--colors--black-60);
  line-height: 1.4;
}

/* Services grid layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch; /* Make all cards same height */
}

/* Individual service card */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--sizes--corner-radius);
  border: 2px solid transparent;
  background: var(--colors--white);
  transition: all 0.3s cubic-bezier(.165, .84, .44, 1);
  position: relative;
  overflow: hidden;
  height: 100%; /* Ensure full height */
  box-sizing: border-box; /* Include padding in height calculation */
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--colors--accent-color);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.165, .84, .44, 1);
}

.service-card:hover::before {
  transform: translateX(0);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(20, 20, 20, 0.15);
  border-color: var(--colors--accent-color-30);
}

/* Service icon container */
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--colors--accent-color-30);
  transition: all 0.3s cubic-bezier(.165, .84, .44, 1);
}

.service-card:hover .service-icon {
  background: var(--colors--accent-color);
  transform: scale(1.1);
}

/* Service icon image styling */
.service-icon-img {
  width: 32px;
  height: 32px;
  display: block;
  transition: all 0.3s cubic-bezier(.165, .84, .44, 1);
}

.service-card:hover .service-icon-img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Service content */
.service-content {
  flex: 1; /* Take remaining space */
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  margin-bottom: 1rem;
  color: var(--colors--black);
  transition: color 0.3s ease;
  font-size: 1.5rem;
  line-height: 1.2;
}

.service-card:hover .service-content h3 {
  color: var(--colors--accent-color);
}

.service-content p {
  color: var(--colors--black-60);
  line-height: 1.5;
  font-size: 1rem;
  flex: 1; /* Take remaining space to push content evenly */
  hyphens: none;
  word-wrap: normal;
  overflow-wrap: normal;
  word-break: normal;
}

/* Responsive adjustments */
/* Tablet: 2 columns */
@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .services-header {
    margin-bottom: 3rem;
  }
  
  .service-content h3 {
    font-size: 1.25rem;
  }
  
  .service-content p {
    font-size: 0.95rem;
  }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 2rem;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
  }
  
  .service-icon img {
    width: 32px;
    height: 32px;
  }
  
  .services-header h2 {
    font-size: 2.5rem;
  }
  
  .services-header p {
    font-size: 1rem;
  }
  
  .service-content h3 {
    font-size: 1.5rem;
  }
  
  .service-content p {
    font-size: 1rem;
  }
}

/* Small mobile adjustments */
@media (max-width: 479px) {
  .service-card {
    padding: 1.5rem;
  }
  
  .services-header {
    margin-bottom: 2rem;
  }
  
  .service-content h3 {
    font-size: 1.25rem;
  }
}
