/* --- Fonts --- */
@font-face {
  font-family: 'Gordita';
  src: url('./fonts/gordita-regular-webfont.woff2') format('woff2'),
       url('./fonts/gordita-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Gordita';
  src: url('./fonts/gordita-bold-webfont.woff2') format('woff2'),
       url('./fonts/gordita-bold-webfont.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

/* --- Base Styles --- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Gordita', sans-serif;
  line-height: 1.6;
  letter-spacing: 0.025rem;
  background-color: #002340;
  color: #fff;
  scroll-behavior: smooth;
}

h1 {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.4;
}

h2 { font-size: 2rem; font-weight: bold; }
h3 { font-size: 1.5rem; font-weight: bold; }

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

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

/* --- Header --- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 80px;
  background-color: #002340;
  margin-bottom: 40px;
}
.logo svg {
  width: 20vw;      
  max-width: 92px;  
  min-width: 40px;  
  height: auto;
  padding-top: 16px;
}

.top-nav ul { display: flex; gap: 32px; }
.top-nav a { font-weight: 700; font-size: 1rem; color: #fff; }
.top-nav a:hover { color: #62D4C6; text-decoration: underline; }

/* --- Breadcrumbs --- */
.breadcrumbs {
  font-size: 0.9rem;
  margin: 16px 80px;
}
.breadcrumbs ul { display: flex; gap: 8px; }
.breadcrumbs li::after {
  content: "|";
  margin-left: 8px;
  color: #62D4C6;
}
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { font-weight: 700; color: #fff; }
.breadcrumbs a:hover { color: #62D4C6; text-decoration: underline; }

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* --- Hero Section --- */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 48px 80px;
  max-width: 1140px;
  margin: 0 auto 64px auto;
}
.hero-section .homepage-content { flex: 1; text-align: left; }
.hero-section .hero-image {
  flex: 1;
  max-width: 500px; 
  height: auto;
  display: block;
}

/* --- Project Sections --- */
.project-section {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  max-width: 1140px;
  margin: 32px auto;
  padding: 64px 100px;
  background-color: #002340;
}

/* Alternate layout automatically */
.project-section:nth-of-type(odd) { flex-direction: row; }      
.project-section:nth-of-type(even) { flex-direction: row-reverse; } 

.project-section .homepage-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-section .project-img {
  flex: 1;
  max-width: 500px;
  height: auto;
  display: block;
}

/* Add consistent top margin before all <ul> blocks */
.project-section ul,
.centered-block ul,
main ul {
  margin-top: 24px;
  margin-bottom: 16px;
}

.primary-btn {
  margin-top: 24px;
  padding: 16px;
  background-color: #62D4C6;
  color: #002340;
  border: none;
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: 0.02rem;
  cursor: pointer;
  max-width: 150px;
  text-align: center;
}
.primary-btn:hover {
  background-color: #002340;
  color: #62D4C6;
  border: 1px solid #62D4C6;
}

.project-btn {
  margin-top: 24px;
  padding: 16px;
  background-color: #62D4C6;
  color: #002340;
  border: none;
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: 0.02rem;
  cursor: pointer;
  max-width: 150px;
  text-align: center;
}
.project-btn:hover {
  background-color: #002340;
  color: #62D4C6;
  border: 1px solid #62D4C6;
}

/* --- Case Study Sections --- */
.project-section.case-study {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  padding: 0px;
  margin: 80px 80px;
  box-sizing: border-box;
  color: #ffffff;
  max-width: none !important;
}

/* Text block */
.project-section.case-study .homepage-content {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Image block */
.project-section.case-study .project-img {
  flex: 1;
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
}

/* Project tags */
.project-tag {
  display: inline-block;
  color: #62D4C6;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Centered Blocks --- */
.centered-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 40px 0;
}
.centered-block .project-btn { margin-top: 16px; max-width: none; }

.centered-block p.center-content {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.site-footer {
  background-color: #002340;
  color: #fff;
  padding: 32px 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  align-items: center;
  font-size: inherit;
  margin-left: 80px;   /* desktop margins */
  margin-right: 80px;
}

.footer-content .linkedin-icon {
  margin-left: 32px;   /* ensures minimum gap */
  margin-right: 0;
  margin-left: auto;   /* pushes it to the right */
  transition: transform 0.2s;
}

.linkedin-icon:hover {
  transform: scale(1.1);
}

.project-section ul,
.centered-block ul,
main ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-section ul li::marker,
.centered-block ul li::marker,
main ul li::marker {
  color: #62D4C6;
}

.fullwidth-image-section {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  background-color: #BCF9F4;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  box-sizing: border-box;
  z-index: 1;
}

.fullwidth-image-section .fullwidth-image {
  width: 100%;
  max-width: 1200px; 
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.page-bookend {
  background-color: #001B31;
  color: #62D4C6;
  padding: 80px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-bookend .bookend-title,
.page-bookend .bookend-subtitle {
  color: #ffffff;
  margin: 16px 0;
}
.page-bookend .bookend-btn {
  background-color: #62D4C6;
  color: #001B31;
  padding: 16px 32px;
  margin-top: 24px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: all 0.3s ease;
}
.page-bookend .bookend-btn:hover {
  background-color: #001B31;
  color: #62D4C6;
  border: 1px solid #62D4C6;
}

.feature-block {
  width: 900px;
  margin: 40px auto;
  text-align: center;
  max-width: calc(100% - 100px);
  padding-top: 40px;
  padding-bottom: 40px;
}

.feature-block h2 {
  font-weight: bold;
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: #ffffff;
  margin: 0;
}
.hero-section .hero-image,
.project-section .project-img,
.project-section.case-study .project-img {
  max-width: 500px;
  height: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.site-header {
  display: flex;
  align-items: center;    
  justify-content: space-between;
  padding: 0 16px;
  background-color: #002340;
  margin-bottom: 40px;
  position: relative;
  min-height: 60px;       
}

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

.logo svg {
  height: 56px;         
  width: auto;
  max-width: 92px;
  min-width: 40px;
  transition: height 0.2s;
}

.service-block {
  display: flex;
  width: 100vw;
  max-width: 100vw;
  height: 400px;
  border-radius: 0;
  overflow: hidden;
  margin: 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.service-block-left,
.service-block-right {
  width: 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5vw 2vw;
  box-sizing: border-box;
}

.service-block-left {
  background: #26ECDC;
  width: 50%;
  display: flex;
  flex-direction: column;       
  align-items: flex-start;       
  justify-content: center;
  padding: 32px;
  padding-left: 8vw;
  color: #002340;
  font-weight: bold;
  font-size: 1.2rem;
}

.service-block-left h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 24px;
  text-align: left;         
}

.service-block-left .service-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;        
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  height: 100%;
}

.service-block-left .service-links a {
  color: #002340;
  font-size: 18px;
  font-weight: bold;
  text-align: left;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s;
  width: auto;
  display: block; 
  position: relative;
  padding-right: 0; 
}   


.service-block-left .service-links a:hover {
  color: #001B31;
  text-decoration: underline;
}

.service-block-left .service-links .arrow-icon {
  display: inline-block;
  position: static;
  margin-left: 4px;
  vertical-align: middle;
}

.service-block-left .service-links .arrow-icon svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  transition: none;
}

.service-block-left .service-links a:hover .arrow-icon {
  transform: translateX(4px);
  transition: transform 0.2s;
}

.service-block-right {
  background: #BCF9F4;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.service-block-right img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.service-trio {
  display: flex;
  gap: 24px;
  margin-left: 80px;
  margin-right: 80px;
  margin-top: 48px;
  margin-bottom: 48px;
  width: auto;
  max-width: none;
  position: static;
  padding: 0;
  justify-content: center;
}

.service-trio-box {
  background: #BCF9F4;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 3px;
  padding: 40px 32px;
  color: #002340;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  text-align: left;
  transition: transform 0.2s;
}

.service-trio-box h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #002340;
}

.service-trio-box {
  background: #BCF9F4;
  color: #002340;
  font-weight: normal !important;
  font-size: 18px !important;
  transition: 
    transform 0.2s,
    background 0.2s,
    color 0.2s;
}

.service-trio-box:hover {
  transform: translateY(-8px);
  cursor: pointer;
  background: #002340;
  color: #62D4C6;
  border: #26ECDC 1px solid;
}

.service-trio-box:hover h2,
.service-trio-box:hover p {
  color: #62D4C6;
}

.three-by-two-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  column-gap: 24px;
  row-gap: 64px;
  width: 100%;
  margin: 64px 80px 64px 80px;
}

.three-by-two-item {
  box-sizing: border-box;
  text-align: left;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.three-by-two-item .icon {
  margin-bottom: 16px;
  display: block;
}

.three-by-two-item h2 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: #ffffff;
}

.three-by-two-item p {
  font-size: 1rem;
  font-weight: normal;
  color: #ffffff;
  margin: 0;
}

.back-to-top {
  position: fixed;
  inset: unset;
  bottom: 0px !important;
  right: 24px !important;
  left: unset !important;
  z-index: 999;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  opacity: 0.8;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-4px) scale(1.1);
}

.top-nav a.selected {
  color: #26ECDC;
  text-decoration: none;
  font-weight: bold;
}

.hero-section .hero-image {
    width: auto !important;      /* prevents flex from stretching */
    max-width: 500px !important; /* caps the width at 500px */
    height: auto !important;
    display: block;
    margin: 0 auto;
}


/* --- Responsive Styles --- */
@media (max-width: 900px) {
  .project-section, .hero-section {
    flex-direction: column !important;
    gap: 32px;
    padding: 32px 16px;
    max-width: 100%;
  }

.project-section .homepage-content,
.project-section .project-img,
.hero-section .homepage-content,
.hero-section .hero-image {
  max-width: 100%;
    margin: 0 auto;
    text-align: left;
  }

  @media (max-width: 900px) {
    .project-section .homepage-content,
    .hero-section .homepage-content {
      text-align: left;
    }
  }

  .top-nav {
    position: static;
    width: 100%;
    background-color: transparent;
    max-height: none;
    overflow: visible;
  }

  .top-nav ul {
    flex-direction: row;
    gap: 16px;
    justify-content: center;
  }

  .top-nav li {
    padding: 0;
    border: none;
  }

  .hero-section .hero-image,
  .project-section .project-img,
  .project-section.case-study .project-img,
  .fullwidth-image-section .fullwidth-image {
    flex: 0 0 auto;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
  .site-header { flex-direction: column; padding: 0 16px; }
  .top-nav ul { gap: 16px; 
  }
 }

@media (max-width: 600px) {
  .centered-block {
    margin: 32px 0 !important;
  }
  .centered-block p.center-content {
    margin-left: 16px;
    margin-right: 16px;
  }
 }


   /* Project Sections */
  @media (max-width: 600px) {
  section.project-section {
    flex-direction: column-reverse !important;
    align-items: center;
    padding: 32px 0px;   
    margin: 24px 16px;     
    gap: 24px;
  }

  section.project-section .project-img {
    flex: 0 0 auto;      
    width: 100%;         
    max-width: 250px;     
    margin: 0 auto 16px;  
    height: auto;
    display: block;
  }

  section.project-section .homepage-content {
    flex: 0 0 auto;        
    width: 100%;
    text-align: left;
  }
 }

  .hero-section .homepage-content,
  .project-section.level2-hero .homepage-content,
  .hero-section .hero-image,
  .project-section.level2-hero .project-img {
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
  }

@media (max-width: 600px) {
  .project-section.case-study {
    flex-direction: column !important;
    margin: 24px 16px; /* mobile margin left/right = 16px */
    gap: 24px;
  }

  .project-section.case-study .homepage-content,
  .project-section.case-study .project-img {
    max-width: 100%;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .breadcrumbs {
    margin: 16px 16px;
    text-align: left; 
  }

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

@media (min-width: 601px) {
  .site-header {
    padding-left: 80px !important;
    padding-right: 80px !important;
  }
  .logo {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .top-nav {
    margin-right: 0 !important;
  }
}
@media (min-width: 601px) {
  .logo svg {
    height: 90px !important;
    width: 90px !important;
    max-width: 90px !important;
    min-width: 90px !important;
    padding-top: 24px !important;
  }
}
@media (min-width: 601px) {
  .burger {
    display: none !important;
  }
}
@media (max-width: 600px) {
  .site-header {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 16px;
  }
  .logo {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    padding: 16px;
    margin-left: 0;
    margin-right: auto;
  }
  .logo svg {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 90px;
    max-height: 90px;
    padding-top: 0;
  }
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    margin-right: 0;
    z-index: 1001;
  }
  .burger span {
    display: block;
    width: 28px;
    height: 4px;
    background: #62D4C6;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
  }
  .top-nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    width: 100vw;
    background: #002340;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 24px 0;
    z-index: 1000;
    text-align: center;
  }
  .top-nav.open {
    display: block;
  }
  .top-nav ul {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 24px;
    margin: 16px;
    padding: 16px;
  }
}

@media (max-width: 600px) {
  .footer-content {
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width: 600px) {
  .centered-block {
    margin-left: 0;
    margin-right: 0;
    padding: clamp(16px, 6vw, 32px);
    box-sizing: border-box;
  }
}


@media (max-width: 900px) {
  .service-trio {
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0 16px;
    box-sizing: border-box;
    position: static;
  }
}
@media (max-width: 900px) {
  .service-trio-box {
    width: 100%;
    padding: clamp(20px, 6vw, 32px) clamp(12px, 4vw, 24px);
    box-sizing: border-box;
  }
}

@media (max-width: 900px) {
  .service-block {
    flex-direction: column;
    height: auto;
    min-height: 400px;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-radius: 0;
  }
  .service-block-left,
  .service-block-right {
    width: 100%;
    min-width: 0;
    padding: 8vw 4vw;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .service-block-right img {
    max-height: 180px;
  }
}
@media (max-width: 900px) {
  .service-block-left {
    padding-left: 12vw !important;
  }
}

.three-by-two-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  column-gap: 40px;
  row-gap: 64px;
  width: auto;
  margin: 64px 80px;
}

@media (max-width: 900px) {
  .three-by-two-block {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-left: 16px; 
    margin-right: 16px;
  }
}

@media (max-width: 900px) {
  .three-by-two-item {
    padding: clamp(20px, 6vw, 32px) clamp(12px, 4vw, 24px);
    box-sizing: border-box;
  }
}

@media (max-width: 900px) {
  .back-to-top {
    /* Already sticky bottom right */
    bottom: 0px !important;
    right: 16px !important;
    left: auto !important;
    width: 32px !important;
    height: 32px !important;
    /* Add transition for smooth movement */
    transition: bottom 0.3s;
  }
}

/* Prevent overlap with footer on all screens */
.site-footer {
  position: relative;
  z-index: 1;
}

/* When footer is in view, move arrow up */
@media (max-width: 1200px) {
  .footer-in-view .back-to-top {
    bottom: 80px !important; /* Move arrow up above footer */
  }
}

@media (max-width: 900px) {
.fullwidth-image-section .fullwidth-image {
  flex: 0 0 auto;
  width: auto !important; 
  max-width: calc(100% - 32px) !important; 
  height: auto !important;
  object-fit: contain;
  display: block;
  margin: 0 16px;           
}
}