/* ========== LAYOUT UTILITIES ========== */
.hero { height: 100vh; position: relative; overflow: hidden; background-color: #444; }
.push-left { margin-left: 320px; margin-right: 65px; }
.push-further { padding: 70px 0 0 100px; }

.p2 { font-size: 0; margin-bottom: 140px; }
.p2 > .one, .p2 > .two {
  display: inline-block;
  vertical-align: top;
  width: 50%;
  font-size: 21px;
  padding: 0 30px;
}
.p2 .one > *, .p2 .two > * { font-size: 21px; }
.p2 h2, .p2 h3, .p2 h4, .p2 .section-num, .p2 .cta-arrow, .p2 p { font-size: revert; }

.bg-grey { background-color: #CFC9BF; }
.bg-green { background-color: #848C74; color: #fff; }
.bg-green a { color: #fff; }

.line-top { border-top: 1px solid #000; margin-left: 100px; height: 20px; }

/* ========== FULLSCREEN LANDING HERO ========== */
/* When hero is a direct body child (index.html), it must cover sidebar */
body > section.hero {
  z-index: 5; /* above sidebar z-index: 4 */
}

/* White logo overlaid on hero (bottom-left) */
.hero-logo {
  position: absolute;
  left: 65px;
  bottom: 60px;
  z-index: 6;
  color: #fff;
  font-size: 72px;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 2px;
  pointer-events: none;
}

/* ========== HERO ========== */
.hero-slide {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #111;
}
.hero-slide.active { transform: translateX(0); }
.hero-slide.exiting { transform: translateX(-100%); }
.hero-slide.no-transition { transition: none; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-overlay-text {
  position: absolute;
  left: 100px;
  top: 60px;
  z-index: 2;
  color: #fff;
}
.hero-overlay-text .proj-name { font-size: 38px; font-weight: 200; line-height: 1.1; margin-bottom: 16px; color: #fff; }
.hero-overlay-text .view-link { color: #fff; font-size: 18px; font-weight: 300; letter-spacing: 0.5px; white-space: nowrap; }
.hero-enter {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;
  z-index: 6;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.hero-counter {
  position: absolute;
  right: 65px;
  bottom: 60px;
  z-index: 3;
  color: #fff;
  font-size: 30px;
  font-weight: 100;
  letter-spacing: 1px;
}
.hero-nav-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 4;
  cursor: pointer;
}
.hero-nav-zone.left { left: 0; }
.hero-nav-zone.right { right: 0; cursor: e-resize; }

/* ========== CAROUSEL ========== */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #ddd;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  font-size: 14px;
  background: rgba(0,0,0,0.35);
  padding: 6px 12px;
}
.carousel-controls button {
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}

/* ========== PROJECTS GRID ========== */
.projects-filter {
  margin-bottom: 60px;
  display: flex;
  gap: 30px;
  font-size: 18px;
}
.projects-filter button {
  background: transparent;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 300;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}
.projects-filter button.active,
.projects-filter button:hover { border-bottom-color: #000; }

.projects-grid {
  columns: 2;
  column-gap: 40px;
}
.project-card { display: block; break-inside: avoid; margin-bottom: 60px; }
.project-card .img-wrap { overflow: hidden; background: #ddd; margin-bottom: 16px; }
.project-card .img-wrap img { width: 100%; display: block; height: auto; }
.project-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.project-card h3 { margin-bottom: 8px; }
.project-card .meta { font-size: 16px; opacity: 0.7; margin-bottom: 10px; }
.project-card:hover img { opacity: 0.92; transform: scale(1.01); }

@media (max-width: 767px) {
  .projects-grid { columns: 1; }

  /* Hero — tighten positions to screen edges */
  .hero-overlay-text { left: 140px; top: 50px; }
  .hero-overlay-text .proj-name { font-size: 28px; }
  .hero-logo { left: 20px; bottom: 20px; font-size: 52px; }
  .hero-counter { right: 20px; bottom: 24px; font-size: 20px; }
  .hero-enter { bottom: 24px; font-size: 13px; }

  /* Images fill the content width naturally */
  .home-section .img-col { width: 100%; }

  /* Carousel counter right-aligned, hide arrows */
  .carousel-below { justify-content: flex-end; }
  .carousel-below button { display: none; }

  /* Page header tighter on mobile */
  .page-header { margin-bottom: 50px; }
  .home-section { gap: 16px; margin-bottom: 40px; }
}

@media (max-width: 479px) {
  .hero-logo { left: 20px; font-size: 44px; }
  .hero-counter { right: 16px; }
  .hero-overlay-text { left: 40px; }
}

/* ========== PROJECT SINGLE ========== */
.proj-single { font-size: 0; margin: 120px 0 100px; }
.proj-single .body-col {
  display: inline-block;
  vertical-align: top;
  width: calc(100% - 350px);
  padding-right: 60px;
  font-size: 21px;
}
.proj-single .meta-col {
  display: inline-block;
  vertical-align: top;
  width: 300px;
  font-size: 16px;
}
.proj-single .meta-col dl { line-height: 1.7; }
.proj-single .meta-col dt { font-weight: 400; margin-top: 14px; }
.proj-single .meta-col dd { margin: 0; font-weight: 300; }
.proj-single .meta-col .client-logo { display: block; width: 180px; margin-top: 60px; opacity: 0.85; }
.proj-features { margin-top: 30px; list-style: none; }
.proj-features li { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.1); }
.proj-scope { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.1); font-size: 14px; color: #555; }
.proj-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 60px 0;
}
.proj-gallery img { aspect-ratio: 3/2; object-fit: cover; }
.proj-gallery-portrait img { aspect-ratio: 3/4; }
.proj-gallery-3 { grid-template-columns: 1fr 1fr 1fr; }
.proj-gallery-3 img { aspect-ratio: 3/4; }
.proj-gallery-1 { grid-template-columns: 1fr; }
.proj-gallery-1 img { aspect-ratio: 16/9; }
.proj-gallery-mixed { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 60px 0; }
.proj-gallery-mixed img { width: 100%; object-fit: cover; display: block; }
.proj-gallery-mixed img.landscape { aspect-ratio: 3/2; grid-column: 1 / -1; }
.proj-gallery-mixed img.portrait { aspect-ratio: 3/4; }
.proj-gallery-mixed img.landscape-pair { aspect-ratio: 4/3; }
.proj-gallery-mixed img.square { aspect-ratio: 1/1; grid-column: 1 / -1; }

.proj-subnav {
  margin: 80px 0 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(0,0,0,0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  font-size: 16px;
}
.proj-subnav a { color: #88817E; }
.proj-subnav a.current { color: #000; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1023px) {
  .p2 > .one, .p2 > .two { width: 100%; padding: 0; margin-bottom: 30px; }
  .p2 { margin-bottom: 80px; }
  .proj-single .body-col, .proj-single .meta-col { width: 100%; padding: 0; }
  .proj-single .meta-col { margin-top: 40px; }
  .proj-gallery { grid-template-columns: 1fr; }
}

/* ========== HOMEPAGE SECTIONS ========== */
.home-section {
  display: flex;
  align-items: center;
  margin-bottom: 160px;
  gap: 0;
}
.home-section .img-col {
  width: 50%;
  flex-shrink: 0;
}
.home-section .txt-col {
  width: 50%;
  padding-left: 80px;
  padding-right: 20px;
}
.home-section.reverse .txt-col {
  padding-left: 0;
  padding-right: 80px;
  order: -1;
}
.home-section.reverse .img-col { order: 1; }

/* Portrait carousel for homepage image columns */
.portrait-carousel.carousel { aspect-ratio: 3/4; }

/* Carousel counter + controls below image */
.carousel-below {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.5px;
}
.carousel-below button {
  background: transparent;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  color: #000;
  transition: 0.3s;
}
.carousel-below button:hover { opacity: 0.5; }

/* Large section number (matches h2 size) */
.section-num-lg {
  font-size: 64px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 0;
}

/* Long-arrow CTA */
.cta-long {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 15px;
  margin-top: 44px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: gap 0.3s;
}
.cta-long::after {
  content: '→';
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.3s;
  letter-spacing: 0;
}
.cta-long:hover::after { transform: translateX(5px); }

@media (max-width: 1023px) {
  .home-section { flex-direction: column; gap: 20px; margin-bottom: 60px; }
  .home-section .img-col,
  .home-section .txt-col { width: 100%; padding: 0 !important; order: 0 !important; }
  .home-section.reverse .img-col { order: -1 !important; }
  .section-num-lg { font-size: 44px; }
}
@media (max-width: 767px) {
  .section-num-lg { font-size: 34px; }
}

/* ========== PROCESS STEPS ========== */
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid rgba(0,0,0,0.2);
}
.process-step .num {
  font-size: 64px;
  font-weight: 100;
  line-height: 1;
}
.process-step h3 { margin-bottom: 16px; }

/* ========== CTA BANNER ========== */
.cta-banner {
  background-color: #848C74;
  color: #fff;
  padding: 80px 100px;
  margin: 100px -100px 0;
}
.cta-banner h2 { margin-bottom: 30px; }
.cta-banner a { color: #fff; }
.btn-outline {
  display: inline-block;
  border: 1px solid #fff;
  padding: 14px 40px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  transition: 0.3s;
}
.btn-outline:hover { background: #fff; color: #000; }

/* ========== NEWS LIST ========== */
.news-list { display: grid; gap: 80px; }
.news-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.news-item .img-wrap { aspect-ratio: 3/2; overflow: hidden; }
.news-item .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.news-item .num { font-size: 20px; margin-bottom: 16px; opacity: 0.6; }
.news-item h3 { margin-bottom: 20px; }
@media (max-width: 1023px) {
  .news-item { grid-template-columns: 1fr; gap: 24px; }
}

/* ========== TESTIMONIALS ========== */
.testimonial {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}
.testimonial:nth-child(even) { direction: rtl; }
.testimonial:nth-child(even) > * { direction: ltr; }
.testimonial .img-wrap { aspect-ratio: 3/2; overflow: hidden; }
.testimonial .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.testimonial blockquote {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 200;
  margin-bottom: 24px;
}
.testimonial cite { font-style: normal; font-size: 16px; opacity: 0.8; }
@media (max-width: 1023px) {
  .testimonial { grid-template-columns: 1fr; gap: 24px; }
  .testimonial:nth-child(even) { direction: ltr; }
  .testimonial blockquote { font-size: 18px; }
}

/* ========== DIRECTOR PAGE ========== */
.director-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.director-grid .img-wrap img {
  filter: grayscale(100%);
  width: 100%;
  height: auto;
}
.director-grid h2 { margin-bottom: 10px; }
.director-grid .role {
  font-size: 18px;
  opacity: 0.7;
  margin-bottom: 40px;
}
.director-grid .bio p { margin-bottom: 24px; }
@media (max-width: 1023px) {
  .director-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ========== CONTACT / MAP ========== */
.map-embed {
  width: 100%;
  height: 500px;
  border: 0;
  margin-top: 60px;
}

/* ========== PAGE HEADERS ========== */
.page-header {
  margin-bottom: 100px;
}
.page-header h1 {
  font-weight: 100;
}
