@font-face {
  font-family: 'Nohemi';
  src: url('https://fonts.cdnfonts.com/css/nohemi');
  font-weight: 300 400 500;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  font-family: 'Inter', sans-serif;
  color: #3d2f25;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  padding-top: var(--header-height);
  background: var(--cream);
}

/* Color Variables */
:root {
  --cream: #faf3e0;
  --tan: #e5d9c1;
  --brown: #3d2f25;
  --dark-brown: #4d2b0c;
  --btn-brown: #48290d;
  --gold: #ccae83;
  --header-height: 88px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--cream);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid rgba(93, 93, 91, 0.4);
}

.logo-link {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.logo {
  width: 40px;
  height: 40px;
  display: block;
}

.header-cta {
  background: var(--tan);
  border-radius: 160px;
  padding: 10px 24px;
  font-size: 14px;
  color: black;
  text-decoration: none;
  letter-spacing: -0.36px;
}

/* Hero Section */
.hero-headline {
  background: var(--cream);
  padding: 20px 33px;
  min-height: auto;
  display: flex;
  align-items: center;
}

.hero-headline h1 {
  font-family: 'Nohemi', sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 100px);
  line-height: 1.15;
  background: linear-gradient(98.5deg, #3d2f25 2.36%, #ccae83 66.19%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
}

/* Hero Dark Section */
.hero-dark {
  background: var(--dark-brown);
  min-height: 610px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
}

/* Above-the-fold sizing (tablet only) */
@media (min-width: 768px) and (max-width: 1023px) {
  .above-fold {
    /* fallback + modern viewport units */
    min-height: calc(100vh - var(--header-height));
    height: calc(100svh - var(--header-height));
    display: flex;
    flex-direction: column;
  }

  .hero-headline {
    flex: 0 0 auto;
    min-height: 0;
    padding: clamp(15px, 2svh, 25px) 33px;
  }

  .hero-dark {
    flex: 1 1 auto;
    min-height: 0;
  }
}

/* Larger screens - remove forced height, allow natural sizing */
@media (min-width: 1024px) {
  .above-fold {
    display: flex;
    flex-direction: column;
    height: calc(100svh - var(--header-height));
    min-height: 600px;
  }

  .hero-headline {
    flex: 0 0 auto;
    padding: clamp(15px, 2svh, 25px) 33px;
  }

  .hero-dark {
    flex: 1;
    min-height: 0;
    max-height: none;
  }
}

@media (min-width: 1440px) {
  .hero-dark {
    max-height: none;
  }
}

/* Mobile: ensure nav stays sticky and adjust spacing */
@media (max-width: 767px) {
  .hero-headline {
    padding: 15px 20px;
  }
}

.hero-dark-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.hero-dark-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.8;
}

.hero-dark-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  text-align: center;
  position: relative;
}

.hero-dark-content p {
  text-align: center;
}

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

/* Desktop: ensure proper vertical centering and no awkward cutoffs */
@media (min-width: 768px) {
  .hero-dark-image {
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  
  .hero-dark-image img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
  }
  
  .hero-dark-content {
    justify-content: center;
    align-items: center;
    padding: clamp(40px, 5svh, 60px);
  }
  
  .hero-dark-content p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-dark-content h2 {
  font-family: 'Nohemi', sans-serif;
  font-weight: 300;
  font-size: 38px;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 27px;
  text-shadow: 0px 5px 113px rgba(0, 0, 0, 0.45);
}

.hero-dark-content p {
  font-weight: 300;
  font-size: 18px;
  color: var(--cream);
  line-height: 2.1;
  max-width: 613px;
  margin-bottom: 27px;
}

.btn-group {
  display: flex;
  gap: 14px;
}

.btn-primary {
  background: var(--cream);
  color: var(--brown);
  padding: 8px 24px;
  border-radius: 16px;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 179px;
  height: 32px;
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  padding: 8px 24px;
  border-radius: 16px;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 179px;
  height: 32px;
  border: 2px solid var(--cream);
}

.btn-dark {
  background: var(--btn-brown);
  color: var(--cream);
}

.btn-dark-outline {
  border-color: var(--btn-brown);
  color: var(--btn-brown);
}

/* Section Label */
.section-label {
  background: rgba(61, 47, 37, 0.08);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--brown);
  display: inline-block;
  margin-bottom: 24px;
  text-transform: uppercase;
  width: fit-content;
}

/* How We Work Section */
.how-we-work {
  background: var(--tan);
  padding: 80px 70px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
  min-height: 683px;
  position: relative;
  overflow: hidden;
  align-items: center;
}

.how-we-work-bg-logo {
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1100px;
  height: 1100px;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: brightness(0) invert(1);
}

.how-we-work-bg-logo img {
  width: 100%;
  height: 100%;
}

.how-we-work .content-col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.how-we-work .headline-col {
  align-self: center;
}

.how-we-work .text-col {
  align-self: flex-start;
  padding-top: 20px;
}

.how-we-work .image-col {
  position: relative;
  z-index: 1;
}

.how-we-work h2 {
  font-family: 'Nohemi', sans-serif;
  font-weight: 300;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.16px;
  color: var(--brown);
}

.step-number {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 11px;
}

.how-we-work .description {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.48px;
}

.how-we-work .description strong {
  font-weight: 700;
}

.how-we-work .image-col img {
  width: 100%;
  height: 423px;
  object-fit: cover;
  border-radius: 10px;
}

/* Build Section */
.build-section {
  background: var(--cream);
  padding: 80px 0 80px 0;
  display: grid;
  grid-template-columns: 391px 1fr 1fr;
  gap: 0;
  min-height: 691px;
}

.build-section .image-col img {
  width: 100%;
  height: 431px;
  object-fit: cover;
  border-radius: 0 10px 10px 0;
}

.build-section .content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
}

.build-section h2 {
  font-family: 'Nohemi', sans-serif;
  font-weight: 300;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.16px;
  color: var(--brown);
  margin-bottom: 20px;
}

.build-section p {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.48px;
  color: var(--brown);
}

/* Divider Image Section */
.divider-section {
  height: 482px;
  position: relative;
  overflow: hidden;
}

.divider-section > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.divider-logo {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.65;
}

.divider-logo img {
  width: 100%;
  height: 100%;
  filter: brightness(0) saturate(100%) invert(76%) sepia(15%) saturate(582%) hue-rotate(357deg) brightness(92%) contrast(88%);
}

/* Logo on right side for second divider */
.divider-section-right .divider-logo {
  left: auto;
  right: 8%;
}

@media (min-width: 1024px) {
  .divider-logo {
    width: 350px;
    height: 350px;
    left: 6%;
  }
  
  .divider-section-right .divider-logo {
    left: auto;
    right: 6%;
  }
}

@media (max-width: 768px) {
  .divider-logo {
    width: 140px;
    height: 140px;
    left: 5%;
  }
  
  .divider-section-right .divider-logo {
    left: auto;
    right: 5%;
  }
}

/* Principal Offerings */
.offerings {
  background: var(--tan);
  padding: 72px 32px;
  display: grid;
  grid-template-columns: 200px 1fr 506px;
  gap: 50px;
  min-height: 821px;
}

.offerings-list {
  max-width: 550px;
}

.offerings > div:first-child {
  padding-right: 30px;
}

.offerings h2 {
  font-family: 'Nohemi', sans-serif;
  font-weight: 300;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.16px;
  color: var(--brown);
  margin-bottom: 40px;
}

.offerings-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-right: 40px;
  padding-left: 60px;
}

.offering-item {
  margin-bottom: 8px;
}

.offering-item h3 {
  font-family: 'Nohemi', sans-serif;
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.96px;
  margin-bottom: 21px;
  color: var(--brown);
}

.offering-item ul {
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.48px;
  padding-left: 27px;
  color: var(--brown);
}

.offering-item ul li {
  margin-bottom: 10px;
}

.offering-divider {
  width: 100%;
  max-width: 415px;
  height: 1px;
  background: var(--brown);
  opacity: 0.3;
  margin: 0;
}

.offerings .image-col img {
  width: 100%;
  height: 527px;
  object-fit: cover;
  border-radius: 10px;
}

/* Regular-sized desktops - better proportions */
@media (min-width: 1024px) and (max-width: 1599px) {
  .offerings {
    padding: 60px 70px;
    grid-template-columns: 200px 1fr 450px;
    gap: 50px;
    min-height: auto;
  }
  
  .offerings > div:first-child {
    padding-right: 25px;
  }
  
  .offerings-list {
    max-width: 100%;
    padding-right: 35px;
    padding-left: 40px;
    gap: 26px;
  }
  
  .offerings h2 {
    font-size: 42px;
    margin-bottom: 35px;
  }
  
  .offering-item h3 {
    font-size: 28px;
  }
  
  .offering-item ul {
    font-size: 17px;
  }
  
  .offerings .image-col img {
    height: 480px;
  }
}

/* Larger screens - wider image and better centering */
@media (min-width: 1600px) {
  .offerings {
    grid-template-columns: 250px 550px 600px;
    gap: 60px;
    justify-content: center;
  }
  
  .offerings > div:first-child {
    padding-right: 40px;
  }
  
  .offerings h2 {
    margin-bottom: 45px;
  }
  
  .offerings-list {
    max-width: 550px;
    padding-right: 50px;
    padding-left: 80px;
    gap: 30px;
  }
  
  .offerings .image-col img {
    height: 600px;
  }
}

@media (min-width: 1920px) {
  .offerings {
    grid-template-columns: 280px 600px 650px;
    gap: 70px;
    justify-content: center;
  }
  
  .offerings > div:first-child {
    padding-right: 50px;
  }
  
  .offerings h2 {
    margin-bottom: 50px;
  }
  
  .offerings-list {
    max-width: 600px;
    padding-right: 60px;
    padding-left: 90px;
    gap: 32px;
  }
  
  .offerings .image-col img {
    height: 650px;
  }
}

/* MAO Section */
.mao-section {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 630px;
}

.mao-section .image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mao-section .content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 70px;
  max-width: 100%;
}

/* Narrower text section on larger desktops */
@media (min-width: 1440px) {
  .mao-section .content-col {
    max-width: 550px;
    margin: 0 auto;
  }
}

@media (min-width: 1920px) {
  .mao-section .content-col {
    max-width: 600px;
  }
}

.mao-section .btn-group {
  justify-content: flex-start;
}

.mao-section h2 {
  font-family: 'Nohemi', sans-serif;
  font-weight: 300;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.16px;
  color: var(--brown);
  margin-bottom: 30px;
}

.mao-section p {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.48px;
  color: var(--brown);
  margin-bottom: 30px;
}

/* Services Grid */
.services {
  background: var(--tan);
  padding: 94px 70px 100px;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header h2 {
  font-family: 'Nohemi', sans-serif;
  font-weight: 300;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.16px;
  color: var(--brown);
  margin-bottom: 13px;
}

.services-header p {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.48px;
  color: var(--brown);
  max-width: 449px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 31px;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: var(--cream);
  border-radius: 10px;
  overflow: hidden;
  height: 489px;
  display: flex;
  flex-direction: column;
}

.service-card-header {
  height: 183px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Taller image placeholder on larger desktops */
@media (min-width: 1440px) {
  .services-grid {
    gap: 40px;
    max-width: 1350px;
  }
  
  .service-card-header {
    height: 240px;
  }
  
  .service-card {
    height: 560px;
  }
  
  .service-card-content {
    padding: 35px 28px;
  }
}

@media (min-width: 1920px) {
  .services-grid {
    gap: 45px;
    max-width: 1500px;
  }
  
  .service-card-header {
    height: 260px;
  }
  
  .service-card {
    height: 600px;
  }
  
  .service-card-content {
    padding: 40px 32px;
  }
  
  .service-card h3 {
    font-size: 36px;
    margin-bottom: 18px;
  }
  
  .service-card p {
    font-size: 19px;
    line-height: 1.65;
  }
}

.service-card-header.color-1 { background: #d9b69f; }
.service-card-header.color-2 { background: #888a64; }
.service-card-header.color-3 { background: #d9d59f; }
.service-card-header.color-4 { background: #c1cfd5; }
.service-card-header.color-5 { background: #ab8b7f; }
.service-card-header.color-6 { background: #cda881; }

.service-card-content {
  padding: 30px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-family: 'Nohemi', sans-serif;
  font-weight: 300;
  font-size: 33px;
  letter-spacing: -0.48px;
  line-height: 1.18;
  margin-bottom: 15px;
  color: black;
}

.service-card p {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.48px;
  color: var(--brown);
}

/* Case Studies */
.case-studies {
  background: var(--cream);
  padding: 96px 70px;
}

.case-studies-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

.case-studies-header {
  position: sticky;
  top: calc(var(--header-height) + 40px);
}

.case-studies-header h2 {
  font-family: 'Nohemi', sans-serif;
  font-weight: 300;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.16px;
  color: var(--brown);
}

.case-studies-cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.case-study-card {
  background: #f2e7d1;
  border-radius: 10px;
  padding: 46px 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  width: 100%;
  align-items: start;
}

.case-study-image {
  width: 100%;
  max-width: 280px;
  height: 280px;
  background: #89523d;
  border-radius: 10px;
  aspect-ratio: 1;
  object-fit: cover;
}

.case-study-content {
  min-width: 0;
  overflow-wrap: break-word;
}

/* Larger screens - wider cards */
@media (min-width: 1440px) {
  .case-studies-container {
    gap: 100px;
  }
  
  .case-study-card {
    width: 100%;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    padding: 50px 45px;
  }
  
  .case-study-image {
    max-width: 320px;
    width: 100%;
    height: 320px;
  }
}

@media (min-width: 1920px) {
  .case-studies-container {
    max-width: 1350px;
  }
  
  .case-study-card {
    width: 100%;
    grid-template-columns: 350px 1fr;
    gap: 55px;
    padding: 55px 50px;
  }
  
  .case-study-image {
    max-width: 350px;
    width: 100%;
    height: 350px;
  }
}

.case-study-content h4 {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.52px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--brown);
}

.case-study-content h3 {
  font-family: 'Nohemi', sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.48px;
  margin-bottom: 16px;
}

.case-study-content p {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.48px;
  color: var(--brown);
  margin-bottom: 16px;
}

.case-study-tag {
  background: #f7f2ee;
  padding: 5px 7px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  display: inline-block;
}

/* Testimonials */
.testimonials {
  background: linear-gradient(108.5deg, #917043 4.7%, #a28052 99.6%);
  padding: 92px 70px;
  min-height: 917px;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 50px;
}

.testimonials-header .section-label {
  background: rgba(229, 217, 193, 0.2);
}

.testimonials-header h2 {
  font-family: 'Nohemi', sans-serif;
  font-weight: 300;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.16px;
  color: var(--tan);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Slightly tighter on very large screens */
@media (min-width: 1920px) {
  .testimonials-grid {
    max-width: 1350px;
  }
}

.testimonial-card {
  background: var(--cream);
  border-radius: 10px;
  padding: 60px 50px 60px 100px;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 67px;
  height: 100%;
  background: #cda881;
}

.testimonial-avatar {
  width: 59px;
  height: 59px;
  border-radius: 50%;
  background: #ad8a7b;
  margin-bottom: 24px;
}

.testimonial-card blockquote {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.48px;
  color: var(--brown);
  margin-bottom: 24px;
}

.testimonial-author strong {
  display: block;
  font-weight: 700;
}

/* Who We Serve */
.who-we-serve {
  background: var(--tan);
  display: grid;
  grid-template-columns: 480px 1fr;
  min-height: 917px;
}

.who-we-serve .image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.who-we-serve .content-col {
  padding: 80px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.who-we-serve h2 {
  font-family: 'Nohemi', sans-serif;
  font-weight: 300;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.16px;
  color: var(--brown);
  margin-bottom: 31px;
}

.who-we-serve ul {
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.48px;
  padding-left: 27px;
  margin-bottom: 21px;
}

.who-we-serve ul li {
  margin-bottom: 28px;
}

.who-we-serve ul strong {
  font-weight: 700;
}

.who-we-serve .summary {
  padding-top: 21px;
  border-top: 1px solid rgba(61, 47, 37, 0.3);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.48px;
  color: var(--brown);
  max-width: 553px;
}

/* Team Section */
.team {
  background: var(--cream);
  padding: 167px 70px 100px;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 46px;
}

/* Reduce spacing on larger desktops */
@media (min-width: 1440px) {
  .team {
    padding: 120px 70px 80px;
    gap: 32px;
  }
}

@media (min-width: 1920px) {
  .team {
    padding: 100px 70px 70px;
    gap: 28px;
  }
  
  .team-cards {
    gap: 12px;
  }
}

.team h2 {
  font-family: 'Nohemi', sans-serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.16px;
  color: var(--brown);
  margin-bottom: 12px;
}

.team .intro {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.48px;
  color: var(--brown);
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.team-card {
  background: var(--tan);
  border-radius: 10px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--brown);
}

/* Footer */
/* Footer - Mobile First Approach */
.footer {
  background: #0d0d0d;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  scroll-margin-top: var(--header-height);
  padding: 48px 24px;
  color: #e5e5e5;
  min-height: auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer-top h2 {
  font-family: 'Nohemi', sans-serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
  max-width: 100%;
}

.footer-middle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

.footer-cta-wrapper {
  margin-top: 24px;
  margin-bottom: 0;
}

.footer-cta {
  font-family: 'Nohemi', sans-serif;
  font-weight: 400;
  font-size: 42px;
  color: #e5e5e5;
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.footer-cta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(204, 174, 131, 0.75);
}

.footer-links {
  display: none; /* Hidden on mobile - links are in footer-bottom */
}

.footer-links h3 {
  display: none;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links a {
  color: #6e6e6e;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.36px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #e5e5e5;
}

.footer-mark {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  --fill-0: #ccae83;
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
  margin-bottom: 32px;
}

.footer-mark img {
  width: 100px;
  height: auto;
  display: block;
  transition: transform 0.1s ease-out;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
  margin-top: auto;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom .footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 48px;
  row-gap: 8px;
  justify-content: start;
}

.footer-copyright {
  font-size: 16px;
  font-weight: 400;
  color: #6e6e6e;
  order: 2;
}

/* Tablet Portrait (480px+) */
@media (min-width: 480px) {
  .footer {
    padding: 48px 32px;
  }
  
  .footer-top h2 {
    font-size: 36px;
  }
  
  .footer-cta {
    font-size: 44px;
  }
  
  .footer-mark img {
    width: 120px;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  
  .footer-copyright {
    order: 0;
  }
}

/* Tablet Landscape (768px+) */
@media (min-width: 768px) {
  .footer {
    padding: 40px;
    min-height: 500px;
  }
  
  .footer-top {
    margin-bottom: 48px;
  }
  
  .footer-top h2 {
    font-size: 36px;
    max-width: 500px;
  }
  
  .footer-middle {
    margin-bottom: 48px;
  }
  
  .footer-cta-wrapper {
    margin-top: 32px;
  }
  
  .footer-cta {
    font-size: 48px;
    padding-bottom: 14px;
  }
  
  .footer-mark {
    position: absolute;
    top: 40px;
    right: 40px;
    margin-bottom: 0;
  }
  
  .footer-mark img {
    width: 160px;
  }
  
  .footer-bottom {
    border-top: none;
    padding-top: 0;
  }
  
  .footer-bottom .footer-links {
    column-gap: 60px;
  }
  
  .footer-links a {
    font-size: 18px;
  }
  
  .footer-copyright {
    font-size: 18px;
  }
}

/* Small Desktop (1024px+) */
@media (min-width: 1024px) {
  .footer {
    padding: 44px;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
  }
  
  .footer-top {
    margin-bottom: 60px;
  }
  
  .footer-top h2 {
    font-size: 40px;
    max-width: 550px;
  }
  
  .footer-middle {
    margin-bottom: 60px;
    align-items: center;
    justify-content: center;
    flex: 1;
  }
  
  .footer-cta-wrapper {
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .footer-cta {
    font-size: 56px;
    padding-bottom: 16px;
  }
  
  .footer-cta::after {
    width: 280px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-mark {
    top: 44px;
    right: 44px;
  }
  
  .footer-mark img {
    width: 180px;
  }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .footer {
    padding: 48px;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
  }
  
  .footer-top {
    margin-bottom: 80px;
  }
  
  .footer-top h2 {
    font-size: 44px;
    max-width: 600px;
  }
  
  .footer-middle {
    align-items: center;
    justify-content: center;
    flex: 1;
  }
  
  .footer-cta-wrapper {
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .footer-cta {
    font-size: 64px;
  }
  
  .footer-cta::after {
    width: 320px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-mark {
    top: 48px;
    right: 48px;
  }
  
  .footer-mark img {
    width: 200px;
  }
  
  .footer-bottom .footer-links {
    column-gap: 80px;
  }
  
  .footer-links a {
    font-size: 18px;
  }
  
  .footer-copyright {
    font-size: 18px;
  }
}

/* Extra Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .footer {
    padding: 56px;
  }
  
  .footer-top h2 {
    font-size: 48px;
    max-width: 650px;
  }
  
  .footer-middle {
    align-items: center;
    justify-content: center;
    flex: 1;
  }
  
  .footer-cta-wrapper {
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .footer-cta {
    font-size: 72px;
  }
  
  .footer-cta::after {
    width: 360px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-mark {
    top: 56px;
    right: 56px;
  }
  
  .footer-mark img {
    width: 220px;
  }
  
  .footer-links a {
    font-size: 20px;
  }
  
  .footer-copyright {
    font-size: 20px;
  }
}

/* ===================================
   ANIMATIONS - Desktop Only (1024px+)
   =================================== */

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero animations - always play on load (all devices) */
.hero-headline h1 {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-dark-content h2 {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-dark-content p {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-dark-content .btn-group {
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-dark-image img {
  animation: fadeIn 1.2s ease-out 0.3s both;
}

/* Remove hero animations on mobile and tablet */
@media (max-width: 1023px) {
  .hero-headline h1 {
    animation: none;
  }

  .hero-dark-content h2 {
    animation: none;
  }

  .hero-dark-content p {
    animation: none;
  }

  .hero-dark-content .btn-group {
    animation: none;
  }

  .hero-dark-image img {
    animation: none;
  }
}

/* Mobile/Tablet: Reset all scroll animations and parallax */
@media (max-width: 1023px) {
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .parallax-image {
    transform: none !important;
    will-change: auto;
  }

  /* Keep divider image rotation */
  .divider-section img {
    transform: rotate(180deg) scaleY(-1) !important;
  }
}

/* Desktop-only scroll animations */
@media (min-width: 1024px) {
  /* Base state for animated elements - hidden until triggered */
  .animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  .animate-fade-up {
    transform: translateY(40px);
  }

  .animate-fade-left {
    transform: translateX(-60px);
  }

  .animate-fade-right {
    transform: translateX(60px);
  }

  .animate-scale {
    transform: scale(0.95);
  }

  /* Triggered state */
  .animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
  }

  /* Staggered delays for children */
  .stagger-children > *:nth-child(1) { transition-delay: 0s; }
  .stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
  .stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
  .stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
  .stagger-children > *:nth-child(5) { transition-delay: 0.4s; }
  .stagger-children > *:nth-child(6) { transition-delay: 0.5s; }

  /* Parallax container */
  .parallax-container {
    overflow: hidden;
    position: relative;
  }

  .parallax-image {
    will-change: transform;
    transition: transform 0.1s linear;
    /* Scale up slightly to prevent gaps during parallax movement */
    transform: scale(1.05);
  }

  /* Ensure parallax images in specific sections fill their containers */
  .hero-dark-image.parallax-container img.parallax-image,
  .mao-section .parallax-container img.parallax-image,
  .who-we-serve .parallax-container img.parallax-image {
    min-height: 110%;
    object-fit: cover;
  }

  .how-we-work .parallax-container,
  .build-section .parallax-container,
  .offerings .parallax-container {
    overflow: hidden;
    border-radius: 10px;
  }

  .divider-section.parallax-container img.parallax-image {
    min-height: 140%;
    transform: scale(1.15);
  }

  /* Service cards hover effect */
  .service-card {
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
  }

  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(61, 47, 37, 0.15);
  }

  /* Testimonial cards hover */
  .testimonial-card {
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
  }

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

  /* Button hover effects */
  .btn-primary,
  .btn-secondary,
  .header-cta {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background 0.3s ease-out;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 47, 37, 0.2);
  }

  /* Section label subtle animation */
  .section-label {
    transition: background 0.3s ease-out;
  }

  /* Image hover effects */
  .how-we-work .image-col img,
  .build-section .image-col img,
  .offerings .image-col img {
    transition: transform 0.6s ease-out;
  }

  .how-we-work .image-col:hover img,
  .build-section .image-col:hover img,
  .offerings .image-col:hover img {
    transform: scale(1.03);
  }

  /* Divider parallax enhancement */
  .divider-section {
    overflow: hidden;
  }

  .divider-section img {
    transition: transform 0.1s linear;
    will-change: transform;
  }
}

/* Responsive - Other Elements */
@media (max-width: 1200px) and (min-width: 769px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .case-studies-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .case-studies-header {
    position: static;
  }
  
  .case-study-card {
    grid-template-columns: 1fr;
    min-width: 100%;
    max-width: 100%;
  }
  
  .case-study-image {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
  }
}

/* Tablet portrait - keep viewport height hero */
@media (max-width: 1024px) and (orientation: portrait) {
  .hero-dark {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .hero-dark-image {
    height: 100%;
    min-height: 350px;
  }

  .hero-dark-content {
    padding: 50px 40px;
  }
}

/* Landscape phones/small tablets - stacked auto layout */
@media (max-width: 1024px) and (orientation: landscape) {
  .above-fold {
    min-height: auto;
    height: auto;
  }

  .hero-dark {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .hero-dark-image {
    width: 100%;
    height: 220px;
    max-height: 40vh;
    flex: none;
  }

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

  .hero-dark-content {
    padding: 50px 40px;
    flex: none;
  }
}

/* Mobile landscape - ensure hero image doesn't dominate viewport */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-dark-image {
    aspect-ratio: 21/9;
    height: auto;
    max-height: 70vh;
    min-height: 200px;
    width: 100%;
    flex: none;
  }
  
  .hero-dark-content {
    padding: 40px 20px;
  }
}

@media (max-width: 1200px) {
  .how-we-work,
  .build-section,
  .offerings,
  .mao-section,
  .who-we-serve,
  .team {
    grid-template-columns: 1fr;
  }
  
  /* Keep team cards in 2x2 grid on tablets */
  .team-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-card {
    padding: 60px 40px;
  }

  .testimonial-card::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .case-studies-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .case-studies-header {
    position: static;
  }
  
  .case-study-card {
    grid-template-columns: 1fr;
    min-width: 100%;
    max-width: 100%;
    padding: 30px 20px;
  }
  
  .case-study-image {
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: var(--header-height);
  }

  .header {
    padding: 0 20px;
    position: fixed;
    top: 0;
    z-index: 100;
  }
  
  .hero-headline {
    padding: 15px 20px;
  }
  
  .hero-headline h1 {
    font-size: 40px;
  }

  .hero-dark {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-dark-image {
    aspect-ratio: 16 / 9;
    max-height: 50vh;
    height: auto;
    width: 100%;
    flex: none;
  }

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

  .hero-dark-content {
    align-items: flex-start;
    text-align: left;
    padding: 60px 20px;
  }

  .hero-dark-content p {
    text-align: left;
  }

  .hero-dark-content .btn-group {
    width: 100%;
    flex-direction: column;
    gap: 16px;
  }

  .hero-dark-content .btn-group a {
    width: 100%;
    height: 48px;
    border-radius: 100px;
  }
  
  .mao-section .btn-group {
    width: 100%;
    flex-direction: column;
    gap: 16px;
  }

  .mao-section .btn-group a {
    width: 100%;
    height: 48px;
    border-radius: 100px;
  }
  
  .how-we-work,
  .offerings,
  .services,
  .case-studies,
  .testimonials {
    padding: 60px 20px;
  }

  .how-we-work-bg-logo {
    width: 600px;
    height: 600px;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .who-we-serve .content-col,
  .mao-section .content-col,
  .team {
    padding: 60px 20px;
  }
  
  .team-cards {
    grid-template-columns: 1fr;
  }
}
