/* Root variables consolidated below */

/* Prevent any horizontal overflow across the site */
html,
body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100%;
}

/* Use border-box sizing to avoid overflow from padding/margins */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Legacy nav overlay styles removed (unused) */

/* Base typography + layout replacements for previous Tailwind @apply usage */
body {
  background: #0a0a0a;
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

h1,
h2,
h3,
.logo-font {
  font-family: 'Cormorant Garamond', serif;
}

/* Removed unused asymmetric section */

/* Removed legacy mirrored logo styles (unused) */

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Carousel styles */
.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  left: 0;
}

.carousel-track {
  display: flex;
  transition: transform .6s ease;
  will-change: transform;
  height: 100vh;
}

.carousel-slide {
  min-width: 100%;
  height: 100vh;
  flex-shrink: 0;
}

.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3vh;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  /* border: 1px solid rgba(255, 255, 255, 0.18); */
  z-index: 40;
}

.carousel-button:hover {
  background: rgba(115, 18, 9, 0.9);
}

/* project cards */
/* Removed unused project media hover effects */

/* Split hamburger button */
/* Removed legacy menu button states (unused) */

/* testimonials */
.testimonials__list {
  transition: transform .6s ease;
}

/* small helpers used inline in markup */
.text-\[var\(--primary\)\] {
  color: var(--primary);
}

/* ensure images don't exceed their containers */
img {
  max-width: 100%;
  height: auto;
}

/* Duplicate hero overlay (incorrect gradient) removed; see correct version below */

:root {
  --primary: #731209;
  --primary-light: #94180C;
  --bg-dark: #0a0a0a;
  --bg-panel: #121212;
  --text-muted: rgba(255, 255, 255, 0.6);
  --blueprint-grid: rgba(255, 255, 255, 0.03);
}

/* Base Aesthetics */
body {
  background-color: var(--bg-dark);
  color: #fff;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin: 0;
}

/* Film Grain & Grid Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--blueprint-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-grid) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 0),
    radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.1) 1px, transparent 0);
  background-size: 3px 3px, 4px 4px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 9999;
}

/* Typography */
h1,
h2,
h3,
.font-serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.tracking-architect {
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Navigation */
/* Removed unused mixed-blend-mode nav variant */

/* Removed legacy mirrored logo styles (unused) */

/* Removed legacy menu button styles (unused) */

/* Legacy nav overlay block removed (unused) */

/* Hero */
.hero-section {
  height: 100vh;
  background: url(Sample\ img-1.png) center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4), rgba(10, 10, 10, 1));
}

/* Improve hero heading readability on top of background images */
.hero-section h1 {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.85) !important;
  -webkit-font-smoothing: antialiased;
  line-height: 1.02;
}

/* Hero CTA: sharp edges */
.hero-section #start-project .btn,
.hero-section #start-project button.btn {
  border-radius: 0 !important;
}

/* Hero stats: color the numeric values */
.hero-proof strong {
  color: #94180C !important;
  font-weight: 700 !important;
}

/* Make hero supporting text more visible (Discovery, subheading) */
.hero-section .tracking-architect,
.hero-section p.lead,
.hero-section .vstack,
.hero-section .hero-proof,
.hero-section .hero-proof span {
  color: rgba(255,255,255,0.94) !important;
  opacity: 1 !important;
}

/* Ensure hero content sits above the overlay and is readable */
.hero-section .position-relative,
.hero-section .container {
  position: relative !important;
  z-index: 50 !important;
}

.hero-section p.lead {
  color: #ffffff !important;
  font-weight: 400 !important;
  opacity: 1 !important;
  text-shadow: 0 6px 22px rgba(0,0,0,0.85) !important;
}

.hero-section .vstack,
.hero-section .tracking-architect {
  color: #ffffff !important;
  text-shadow: 0 4px 18px rgba(0,0,0,0.75) !important;
}

/* Story section: replace white band with transparent/dark background matching site */
.story-section {
  background: transparent !important;
  color: #ffffff !important;
}
.story-section .container {
  background: transparent !important;
}
.story-section h2,
.story-section .display-3 {
  color: #ffffff !important;
  text-shadow: 0 10px 36px rgba(0,0,0,0.85) !important;
  font-weight: 700 !important;
}
.story-section .tracking-architect {
  color: rgba(255,255,255,0.9) !important;
  letter-spacing: 0.35em !important;
}
.story-section p.lead,
.story-section p {
  color: rgba(255,255,255,0.95) !important;
  text-shadow: 0 8px 30px rgba(0,0,0,0.9) !important;
}

/* Stronger 'Discovery' label for visibility */
.hero-section .tracking-architect {
  font-size: 0.95rem !important;
  letter-spacing: 0.35em !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  margin-top: 0.8rem !important;
}

/* Additional readability improvements for hero */
.hero-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.9));
}

/* Project content: add subtle background overlay to ensure contrast */
.project-showcase .project-showcase-content {
  position: relative;
}
.project-showcase .project-showcase-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.62), rgba(0,0,0,0.3));
  z-index: 1;
  pointer-events: none;
}
.project-showcase .project-showcase-inner {
  position: relative;
  z-index: 2;
  padding: 1.25rem 0.5rem;
}

/* Stronger project title contrast */
.project-showcase .project-title,
.featured-projects-section .project-title {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 12px 44px rgba(0,0,0,0.9) !important;
  -webkit-font-smoothing: antialiased !important;
}
.project-showcase .project-description,
.project-showcase .project-link {
  color: rgba(255,255,255,0.95) !important;
}

/* Client Perspectives section heading clarity */
.testimonials-section h2,
.testimonials-section .display-3 {
  color: #ffffff !important;
  text-shadow: 0 6px 28px rgba(0,0,0,0.85) !important;
}

/* Improve readability for featured project titles and testimonials */
.featured-projects-section .project-title,
.project-showcase .project-title,
.testimonials-section h2,
.testimonials-section .display-3,
.project-showcase .project-description,
.project-link {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;
  font-weight: 600 !important;
}

/* Timeline (Measuring Tape) */
/* Removed timeline/measuring tape components (unused on index) */

/* Stats */
/* Removed unused stat item wrapper */

/* Projects cards styles moved from index.php */
.projects-cards-section .card {
  background: #1f1f1f !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.projects-cards-section .card .card-body,
.projects-cards-section .card .card-title,
.projects-cards-section .card .card-text,
.projects-cards-section .card a {
  color: #ffffff !important;
}

.projects-cards-section .overflow-hidden {
  overflow: hidden;
  height: 280px;
  /* default mobile height */
}

.projects-cards-section .overflow-hidden img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform .8s ease;
  will-change: transform;
}

.projects-cards-section .card:hover .overflow-hidden img {
  transform: scale(1.08);
}

/* View Project: force single-line and underline hover animation */
.projects-cards-section .card a {
  color: #ffffff !important;
  display: inline-block;
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
  transition: color .22s ease;
}

.projects-cards-section .card a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width .25s ease;
}

.projects-cards-section .card a:hover {
  color: var(--primary-light) !important;
}

.projects-cards-section .card a:hover::after {
  width: 100%;
}

/* Testimonials: image + content side-by-side on larger screens */
.testimonials__list .testimonial {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #111;
  padding: 2.5rem;
  border-radius: 8px;
  min-width: 300px;
}

.testimonials__list .testimonial .h-64 {
  height: 220px;
  /* fallback for mobile */
  overflow: hidden;
}

.testimonials__list .testimonial img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .testimonials__list .testimonial {
    flex-direction: row;
    align-items: stretch;
    min-width: 680px;
    /* keeps horizontal scroll sensible */
  }

  .testimonials__list .testimonial .h-64 {
    flex: 0 0 42%;
    height: auto;
    max-height: 360px;
  }

  .testimonials__list .testimonial>p,
  .testimonials__list .testimonial .pt-6 {
    flex: 1 1 auto;
  }
}

/* Alternate image side for even testimonials */
@media (min-width: 768px) {
  .testimonials__list .testimonial:nth-child(even) {
    flex-direction: row-reverse;
  }

  .testimonials__list .testimonial:nth-child(even) p,
  .testimonials__list .testimonial:nth-child(even) .pt-6 {
    text-align: right;
  }
}

/* Center testimonial content and increase font sizes */
.testimonials__list .testimonial p,
.testimonials__list .testimonial .pt-6 {
  text-align: center !important;
  display: flex;
  align-items: center;
}

.testimonials__list .testimonial p {
  font-size: 1.25rem;
  line-height: 1.5;
  display: flex;
  align-items: center;

}

.testimonials__list .testimonial .pt-6 p {
  font-size: 1rem;
  /* display: flex;
  align-items: center; */
}

@media (min-width: 1200px) {
  .testimonials__list .testimonial .h-64 {
    max-height: 420px;
  }
}

@media (min-width: 768px) {
  .projects-cards-section .overflow-hidden {
    height: 320px;
  }
}

@media (min-width: 1200px) {
  .projects-cards-section .overflow-hidden {
    height: 360px;
  }
}

.projects-cards-section .card:hover .overflow-hidden img {
  transform: scale(1.08);
}

/* Carousel container should span viewport to avoid inline styles */
#projectsCarouselSection .container {
  max-width: 100vw;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Hero small EST label */
/* Removed unused hero small EST label */

/* Decorative vertical line in hero */
.hero-decor {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  margin: 0 auto;
}

.stat-number-bg {
  font-size: 8rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  color: transparent;
  font-family: 'Cormorant Garamond', serif;
  z-index: 0;
}

.stat-content {
  position: relative;
  z-index: 1;
}

/* Utilities */
.py-lg-9 {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

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

.project-showcase {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: min(1240px, 92vw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.project-showcase-image {
  flex: 0 0 46%;
  max-width: 46%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f0f0f;
}

.project-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-showcase-content {
  flex: 1 1 54%;
  min-width: 0;
}

.project-showcase-inner {
  max-width: 680px;
}

.project-description {
  font-size: clamp(1rem, 1.2vw, 1.35rem);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .project-showcase {
    flex-direction: column;
    width: min(680px, 92vw);
    padding: 2.5rem 0 1rem;
    gap: 1.25rem;
  }

  .project-showcase .project-showcase-image,
  .project-showcase .project-showcase-content {
    order: initial;
  }

  .project-showcase-image {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .project-showcase-inner {
    max-width: 100%;
  }

  .project-title {
    margin-bottom: 1rem !important;
  }

  .project-description {
    margin-bottom: 1.5rem !important;
  }
}