@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --brand: #ff930d;
  --ink: #FFFFFF;
  --charcoal: #1b1b1b;
  --stone: #2A2A2A;
  --muted: #B0B0B0;
  --paper: #1b1b1b;
  --tint: #2A2A2A;
  --radius: 14px;
  --maxw: 1100px;
  
  /* Typography Scale */
  --font-primary: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-secondary: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
}

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

body {
  font-family: 'Outfit', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  padding-top: 0;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Ensure first non-hero section has proper spacing */
.section:first-of-type {
  margin-top: 80px;
}

/* Hero sections should start at the top */
.hero-banner,
.hero-section,
.about-page-hero,
.about-hero-section,
.services-hero-section,
.projects-hero-section {
  margin-top: 0 !important;
}

/* Header / Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  transition: all 0.3s ease;
  box-shadow: none;
}

.header.scrolled {
  background: var(--charcoal);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(255, 147, 13, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { width: 48px; height: 48px; border-radius: 8px; background: var(--brand); border: 2px solid var(--ink); display: inline-block; }
.logo-img { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; }
.brand-name { 
  font-family: 'Outfit', sans-serif;
  font-weight: 900; 
  letter-spacing: 0.5px; 
  color: var(--ink);
  font-size: 28px;
}

.brand-name .bricks {
  color: #dc2626;
}
.menu { display: flex; gap: 8px; flex-wrap: wrap; }
.menu a {
  font-family: 'Outfit', sans-serif;
  text-decoration: none; color: var(--ink); font-weight: 400; padding: 6px 10px; border-radius: 8px; transition: background .2s, color .2s; font-size: 14px;
}
.menu a:hover { background: var(--tint); }
.menu a.active { color: var(--paper); background: var(--ink); }
.cta {
  font-family: 'Outfit', sans-serif;
  background: var(--brand); color: var(--ink); border: none;
  padding: 6px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 14px;
}
.cta:hover { filter: brightness(0.98); }

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  position: relative;
  font-family: 'Outfit', sans-serif;
  text-decoration: none; 
  color: var(--ink); 
  font-weight: 400; 
  padding: 6px 10px; 
  border-radius: 8px; 
  transition: background .2s, color .2s; 
  font-size: 14px;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 10px;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.dropdown-toggle:hover {
  background: var(--tint);
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(27,27,27,0.98);
  backdrop-filter: saturate(180%) blur(10px);
  border: 1px solid #444;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 8px 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: var(--tint);
}

/* Mobile menu toggle button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 100;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Banner */
.hero-banner {
  position: relative;
  height: calc(70vh + 100px);
  overflow: hidden;
  margin-top: 0;
  border-bottom: 1px solid #444;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 1;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3));
  z-index: 2;
}

/* Enhanced overlay for interior category slides */
.hero-slide[data-category="interiors"] .hero-background::before {
  background: linear-gradient(
    135deg, 
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.3) 30%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

/* Additional overlay layer for interior slides - creates depth */
.hero-slide[data-category="interiors"] .hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 204, 0, 0.1) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 15;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 1s ease-in-out;
}

.hero-slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-cta {
  background: var(--brand);
  color: var(--ink);
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-cta:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 204, 0, 0.4);
}

/* Category-specific color styling */
.hero-slide[data-category="office"] .hero-content {
  color: white;
}

.hero-slide[data-category="office"] .hero-heading {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-slide[data-category="cinema"] .hero-content {
  color: white;
}

.hero-slide[data-category="cinema"] .hero-heading {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-slide[data-category="interiors"] .hero-content {
  color: white;
}

.hero-slide[data-category="interiors"] .hero-heading {
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Hero Background Animation */
@keyframes heroBackgroundChange {
  0% {
    background-color: #000000;
    background-image: url('images/E-BROCHURE YB.pdf-image-063.jpg');
    background-size: cover;
    background-position: center center;
  }
  25% {
    background-color: #000000;
    background-image: url('images/E-BROCHURE YB.pdf-image-063.jpg');
    background-size: cover;
    background-position: center center;
  }
  30% {
    background-color: #000000;
    background-image: url('images/E-BROCHURE YB.pdf-image-069 (1).jpg');
    background-size: cover;
    background-position: center center;
  }
  50% {
    background-color: #000000;
    background-image: url('images/E-BROCHURE YB.pdf-image-069 (1).jpg');
    background-size: cover;
    background-position: center center;
  }
  55% {
    background-color: #000000;
    background-image: url('images/E-BROCHURE YB.pdf-image-057.jpg');
    background-size: cover;
    background-position: center center;
  }
  75% {
    background-color: #000000;
    background-image: url('images/E-BROCHURE YB.pdf-image-057.jpg');
    background-size: cover;
    background-position: center center;
  }
  80% {
    background-color: #000000;
    background-image: url('images/E-BROCHURE YB.pdf-image-063.jpg');
    background-size: cover;
    background-position: center center;
  }
  100% {
    background-color: #000000;
    background-image: url('images/E-BROCHURE YB.pdf-image-063.jpg');
    background-size: cover;
    background-position: center center;
  }
}
.hero-inner { 
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  text-align: center;
  padding: 80px 0; 
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* About page hero - completely separate from main hero */
.about-page-hero {
  position: relative;
  min-height: 50vh;
  background: #2A2A2A;
  overflow: visible;
  border-bottom: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}


/* Override any inherited hero styles for about page */
.about-page-hero {
  background-color: #2A2A2A !important;
  background-image: none !important;
  animation: none !important;
}

.about-page-hero .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
  width: 100%;
}
.hero h1 { 
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 4vw, 56px); 
  line-height: 1.1; 
  margin: 0 0 30px; 
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  color: white;
}

/* All page hero headings - same style as mission & vision */
.about-page-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--ink);
}

/* Service highlighting */
.highlight-service {
  color: #ff6b6b;
  font-weight: 700;
}
.hero p.lead { font-size: clamp(16px, 1.4vw, 20px); color: white; margin: 0 0 22px; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); }
.hero-card {
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  padding: 22px; border: 1px solid rgba(0,0,0,0.1);
}
.hero-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.1;
}
.badge { 
  font-family: 'Outfit', sans-serif;
  display: inline-block; font-size: 12px; padding: 6px 10px; border-radius: 999px; background: var(--brand); color: var(--ink); font-weight: 700; border: none; 
  text-shadow: none;
}

.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 14px; }
.stat { 
  font-family: 'Outfit', sans-serif;
  background: var(--paper); color: var(--ink); border-radius: 12px; padding: 14px; border: 1px solid #eee; text-align: center; 
}
.stat b { 
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 2.5vw, 28px); 
  display: block; 
  font-weight: 700;
  line-height: 1.1;
}

/* Overlapping Cards Section */
.overlapping-cards-section {
  padding-top: 120px; /* space for the overlap */
  position: relative;
  background: transparent;
}

.overlapping-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  top: -250px; /* moves cards 100px higher for better overlap */
  justify-content: center;
}

.overlapping-card {
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid #444;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

.overlapping-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.overlapping-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.overlapping-card-content {
  padding: 20px;
}

.overlapping-card-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.1;
}

.overlapping-card-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Sections */
.section { padding: 52px 0; }

/* First section after overlapping cards needs extra top padding */
.section:first-of-type {
  padding-top: 100px;
  margin-top: 50px;
}
.section h2 { 
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 4vw, 56px); 
  margin: 0 0 30px; 
  font-weight: 500;
  line-height: 1.1;
}
.section p.sub { 
  font-family: 'Outfit', sans-serif;
  color: var(--muted); margin-top: 0; 
  font-weight: 400;
}

/* Cards grid */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { 
  border: 1px solid #444; 
  border-radius: 14px; 
  padding: 18px; 
  background: var(--paper);
  transition: all 0.3s ease;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  border-color: var(--brand);
}

.clickable-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.clickable-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  border-color: var(--brand);
}
.card h3 { 
  font-family: 'Outfit', sans-serif;
  margin-top: 8px; 
  font-weight: 600;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.1;
}
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--ink); font-weight: 600; font-size: 12px; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--brand); border: 2px solid var(--ink); display: inline-block; }

/* Specialty Images */
.specialty-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

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

/* Services grid - For services.html page only */
.services-grid { 
  display: flex; 
  flex-direction: column; 
  gap: 60px; 
}
.service-card { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 60px; 
  align-items: center; 
  padding: 60px 0;
  border-bottom: 1px solid #444;
  transition: all 0.3s ease;
}
.service-card:last-child { 
  border-bottom: none; 
}
.service-card.reverse { 
  grid-template-columns: 1fr 1fr; 
}
.service-card.reverse .service-content { 
  order: 1; 
}
.service-card.reverse .service-image { 
  order: 2; 
}

.service-image { 
  height: 300px; 
  width: 100%;
  border-radius: 14px; 
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.3s ease;
}

.service-content { 
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-content h3 { 
  font-family: 'Outfit', sans-serif;
  font-size: clamp(24px, 3vw, 36px); 
  margin-bottom: 16px; 
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
}
.service-content p { 
  font-size: 16px; 
  line-height: 1.6; 
  color: var(--muted);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.02);
}
.service-card:hover .service-image {
  transform: scale(1.02);
}
.service-card:hover .service-image img {
  transform: scale(1.05);
}

/* Projects */
.projects { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.project { 
  border: 1px solid #444; 
  border-radius: 14px; 
  overflow: hidden; 
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: block;
}
.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.25);
  border-color: var(--brand);
}
.project .thumb { background: linear-gradient(135deg, var(--brand), #ffb366); height: 160px; }
.project .body { padding: 16px; }
.project .meta { color: var(--muted); font-size: 14px; }


/* Home Page Service Images */
.home-service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin-bottom: 16px;
}

/* Project Thumbnails */
.project-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

/* Project Sections */
.project-section { margin: 40px 0; }
.project-section h3 { 
  font-family: 'Outfit', sans-serif;
  font-size: clamp(24px, 3vw, 36px); 
  font-weight: 700; 
  margin-bottom: 24px; 
  color: var(--ink);
  text-align: center;
  line-height: 1.1;
}

/* Project Carousel Container */
.project-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

/* Project Gallery Wrapper - creates the viewport */
.project-gallery-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Project Gallery - the sliding container */
.project-gallery { 
  display: flex;
  gap: 16px;
  transition: transform 0.3s ease;
  width: 100%;
}

.project-gallery img {
  flex: 0 0 calc(25% - 12px); /* 4 cards per row, accounting for gap */
  width: calc(25% - 12px);
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-gallery img:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* Wooden Doors Sections - Use same structure as projects page */
.project-section#solid-doors .project-gallery img,
.project-section#flush-doors .project-gallery img,
.project-section#grooved-doors .project-gallery img,
.project-section#carved-doors .project-gallery img {
  flex: 0 0 calc(25% - 12px); /* 4 cards per row, accounting for gap */
  width: calc(25% - 12px);
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-section#solid-doors .project-gallery img:hover,
.project-section#flush-doors .project-gallery img:hover,
.project-section#grooved-doors .project-gallery img:hover,
.project-section#carved-doors .project-gallery img:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* Home Cinemas Sections - Use same structure as projects page */
.project-section#home-cinemas-main .project-gallery img,
.project-section#home-cinemas-latest .project-gallery img {
  flex: 0 0 calc(25% - 12px); /* 4 cards per row, accounting for gap */
  width: calc(25% - 12px);
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-section#home-cinemas-main .project-gallery img:hover,
.project-section#home-cinemas-latest .project-gallery img:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* Door Subsections Styling */
.door-subsection {
  margin: 40px 0;
}

.door-subsection h4 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--ink);
  text-align: center;
}

/* Carousel Navigation Button */
.carousel-nav-btn {
  background: var(--brand);
  color: var(--ink);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255, 204, 0, 0.3);
  z-index: 2;
}

.carousel-nav-btn:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.4);
}

.carousel-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.carousel-nav-btn svg {
  width: 24px;
  height: 24px;
}

/* Project Modal Styles */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: transparent;
  border-radius: 16px;
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.8) translateY(20px);
  transition: transform 0.3s ease;
}

.project-modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  display: block;
}


/* About */
.lead-box { border: 1px solid #eee; border-radius: 14px; padding: 18px; background: var(--tint); }

/* Vision & Mission Section */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  transition: transform 0.3s ease;
}
.vision-mission-grid:hover {
  transform: translateY(-2px);
}

.vision-mission-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--ink);
}

.vision-mission-image {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}
.vision-mission-grid:hover .vision-mission-image {
  transform: scale(1.02);
}

.vision-image {
  width: 100%;
  max-width: 500px;
  height: 400px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vision-mission-grid:hover .vision-image {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Contact page email links - only for form section */
.contact-wrap .form a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-wrap .form a:hover {
  color: #e6b800;
}

/* Contact info section email link - make it black */
.info a,
.info a:link,
.info a:visited,
.info a:active {
  color: var(--ink) !important;
  text-decoration: none !important;
}

.info a:hover {
  color: var(--brand) !important;
  text-decoration: none !important;
}

/* More specific targeting for contact page email */
.contact-wrap .info a[href^="mailto:"] {
  color: var(--ink) !important;
  text-decoration: none !important;
}

.contact-wrap .info a[href^="mailto:"]:hover {
  color: var(--brand) !important;
  text-decoration: none !important;
}

/* Global override for all mailto links in contact info */
.info a[href*="mailto"] {
  color: #111111 !important;
  text-decoration: none !important;
}

.info a[href*="mailto"]:hover {
  color: #ff930d !important;
  text-decoration: none !important;
}
.contact-form-container { 
  display: flex; 
  justify-content: center; 
  max-width: 600px; 
  margin: 0 auto; 
}
.form { 
  border: 1px solid #444; 
  border-radius: 14px; 
  padding: 18px; 
  background: rgba(255, 204, 0, 0.1);
  width: 100%;
}
.form label { display: block; font-weight: 600; margin-top: 12px; }
.form input, .form textarea {
  width: 100%; padding: 12px; border: 1px solid #444; border-radius: 10px; margin-top: 6px;
}
.form button {
  margin-top: 16px; padding: 12px 16px; border-radius: 12px; border: none;
  background: var(--brand); color: var(--ink); font-weight: 800;
}
.info { border: 1px solid #eee; border-radius: 14px; padding: 18px; background: var(--paper); }

.map { width: 100%; height: 260px; border: 0; border-radius: 12px; }

/* Contact Items */
.contact-item {
  margin-bottom: 20px;
}

.contact-item strong {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.contact-item p {
  margin: 0;
  line-height: 1.5;
}

.contact-item a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--charcoal); color: var(--ink); margin-top: 52px; padding: 28px 0;
  border-top: 1px solid var(--brand);
}
.footer a {
  font-family: 'Outfit', sans-serif;
  color: var(--ink); text-decoration: none; 
  font-weight: 400;
}
.footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.footer .brand-name { 
  font-family: 'Outfit', sans-serif;
  color: var(--ink); 
  font-weight: 900;
}

/* New Footer Layout */
.footer-brand {
  margin-bottom: 24px;
}

.brand-centered {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.brand-centered .logo-img {
  width: 48px;
  height: 48px;
}

.brand-centered .brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  color: var(--ink);
}

.footer-sections {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

.footer-section {
  padding: 0 16px;
}

.footer-section h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
}

.footer-section p {
  margin-bottom: 8px;
  line-height: 1.5;
  font-weight: 400;
}

.footer-section a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--brand);
}

/* Footer links with orange hover effect */
.footer-section .small a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section .small a:hover {
  color: var(--brand);
}

.footer-bottom-copyright {
  text-align: right;
  margin-top: 24px;
  padding-top: 16px;
}

.footer-bottom-copyright .small {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.small { 
  font-family: 'Outfit', sans-serif;
  font-size: 14px; color: var(--muted); 
  font-weight: 400;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: white;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* Mobile responsiveness for WhatsApp button */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* ========================================
   COMPREHENSIVE TYPOGRAPHY SYSTEM
   ======================================== */

/* 1. HERO HEADING - Large Display Text */
.hero-heading {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* 2. PAGE TITLE - Main Section Headers */
.page-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1rem;
}

/* 3. SECTION HEADING - Subsection Titles */
.section-heading {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

/* 4. CARD TITLE - Component Headers */
.card-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* 5. SUBSECTION TITLE - Smaller Headers */
.subsection-title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* 6. LEAD PARAGRAPH - Large Body Text */
.lead-paragraph {
  font-family: var(--font-secondary);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 1rem;
}

/* 7. BODY PARAGRAPH - Standard Text */
.body-paragraph {
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 1rem;
}

/* 8. SMALL PARAGRAPH - Supporting Text */
.small-paragraph {
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* 9. CAPTION TEXT - Image Captions & Meta */
.caption-text {
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.025em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* 10. BUTTON TEXT - CTA and Interactive Elements */
.button-text {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.025em;
  color: var(--ink);
  text-transform: uppercase;
}

/* ========================================
   RESPONSIVE TYPOGRAPHY ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
  .hero-heading {
    font-size: 3rem;
    line-height: 1.3;
  }
  
  .page-title {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .section-heading {
    font-size: 1.75rem;
    line-height: 1.4;
  }
  
  .card-title {
    font-size: 1.25rem;
    line-height: 1.4;
  }
  
  .lead-paragraph {
    font-size: 1.125rem;
    line-height: 1.5;
  }
}

/* ========================================
   UTILITY TYPOGRAPHY CLASSES
   ======================================== */

/* Font Weight Utilities */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 900; }

/* Text Color Utilities */
.text-primary { color: var(--ink); }
.text-secondary { color: var(--muted); }
.text-brand { color: var(--brand); }
.text-white { color: var(--paper); }

/* Text Size Utilities */
.text-xs { font-size: 0.75rem; line-height: 1.4; }
.text-sm { font-size: 0.875rem; line-height: 1.5; }
.text-base { font-size: 1rem; line-height: 1.6; }
.text-lg { font-size: 1.125rem; line-height: 1.6; }
.text-xl { font-size: 1.25rem; line-height: 1.5; }
.text-2xl { font-size: 1.5rem; line-height: 1.4; }
.text-3xl { font-size: 1.875rem; line-height: 1.3; }
.text-4xl { font-size: 2.25rem; line-height: 1.2; }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Letter Spacing */
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

/* Responsive tweaks */
@media (max-width: 840px) {
  .hero-inner { 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    text-align: center;
  }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-form-container { max-width: 100%; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* Medium Mobile optimizations */
@media (max-width: 768px) and (min-width: 481px) {
  .container { padding: 0 16px; }
  
  /* Overlapping Cards Medium Mobile */
  .overlapping-cards-section {
    padding-top: 70px;
    background: transparent;
  }
  
  .overlapping-cards {
    top: -130px;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  
  .overlapping-card-image {
    height: 140px;
  }
  
  .overlapping-card-content {
    padding: 14px;
  }
  
  .overlapping-card-content h3 {
    font-size: 15px;
  }
  
  .overlapping-card-content p {
    font-size: 12px;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  
  /* Navigation */
  .nav { padding: 12px 0; position: relative; }
  .brand-name { font-size: 22px; }
  .logo { width: 40px; height: 40px; }
  .logo-img { width: 40px; height: 40px; }
  
  .menu-toggle { display: flex; }
  
  .menu { 
    flex-direction: column; 
    gap: 8px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid #444;
    padding: 12px 16px;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  .menu.open { display: flex; }
  
  .menu a { 
    width: 100%; 
    text-align: center; 
    padding: 12px; 
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--ink);
    background: transparent;
  }
  .menu a:hover {
    background: var(--tint);
    color: var(--ink);
    transform: translateY(-1px);
  }
  
  /* Mobile dropdown */
  .dropdown {
    width: 100%;
  }
  
  .dropdown-toggle::after {
    display: none;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    margin-left: 16px;
    margin-top: 8px;
  }
  
  .dropdown-menu a {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    margin-bottom: 4px;
  }
  
  /* Hero Banner Mobile */
  .hero-banner { height: calc(60vh + 80px); }
  .hero-background { background-attachment: scroll; } /* Disable parallax on mobile for better performance */
  .hero-heading { font-size: clamp(24px, 3vw, 40px); }
  .hero-cta { padding: 12px 24px; font-size: 14px; }
  .hero-inner { padding: 40px 0; gap: 20px; }
  .hero h1 { font-size: 28px; margin-bottom: 10px; }
  .hero p.lead { font-size: 16px; margin-bottom: 16px; }
  .hero-card { padding: 18px; }
  .hero-stats { grid-template-columns: 1fr; gap: 10px; }
  .stat { padding: 12px; }
  .stat b { font-size: 18px; }
  
  /* About page hero mobile */
  .about-page-hero { 
    min-height: 40vh; 
    padding: 30px 0; 
  }
  
  .about-page-hero .hero-inner { 
    padding: 30px 0; 
  }
  .about-page-hero h1 { 
    font-size: clamp(24px, 3vw, 36px); 
    margin-bottom: 16px; 
  }
  .about-page-hero p.lead { 
    font-size: 14px; 
    line-height: 1.6; 
  }
  
  /* Sections */
  .section { padding: 40px 0; }
  .section h2 { font-size: clamp(24px, 3vw, 40px); }
  
  /* Grids */
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .projects { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .project-gallery { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
  
  /* Overlapping Cards Mobile */
  .overlapping-cards-section {
    padding-top: 80px;
    background: transparent;
  }
  
  .overlapping-cards {
    top: -150px; /* proportional increase for mobile */
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .overlapping-card-image {
    height: 150px;
  }
  
  .overlapping-card-content {
    padding: 16px;
  }
  
  .overlapping-card-content h3 {
    font-size: 16px;
  }
  
  .overlapping-card-content p {
    font-size: 13px;
  }

  /* Services */
  .service-card { 
    grid-template-columns: 1fr; 
    gap: 30px; 
    padding: 40px 0;
  }
  .service-card.reverse { grid-template-columns: 1fr; }
  .service-card.reverse .service-content { order: 1; }
  .service-card.reverse .service-image { order: 2; }
  
  /* Ensure all service content comes first on mobile */
  .service-card .service-content { order: 1; }
  .service-card .service-image { order: 2; }
  
  .service-image { height: 400px; }
  .service-content h3 { font-size: clamp(20px, 2.5vw, 28px); }
  
  /* Cards */
  .card { padding: 16px; }
  .specialty-image { height: 150px; margin-bottom: 12px; }
  
  /* Footer */
  .footer { margin-top: 40px; padding: 24px 0; }
  .footer .cols { grid-template-columns: 1fr; gap: 16px; }
  .footer-sections { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer-section { padding: 16px 0; }
  .footer-section h4 { font-size: 16px; margin-bottom: 12px; }
  .footer-section p { font-size: 13px; margin-bottom: 6px; }
  .footer-bottom-copyright { text-align: center; margin-top: 20px; }
  
  /* Contact */
  .contact-wrap { gap: 20px; }
  .form, .info { padding: 16px; }
  .map { height: 200px; }
  .contact-wrap .form h3 { font-size: clamp(18px, 2.5vw, 24px); }
  .contact-wrap .info h3 { font-size: clamp(18px, 2.5vw, 24px); }
  .contact-wrap .form input, .contact-wrap .form textarea { 
    font-size: 14px; 
    padding: 12px; 
  }
  .contact-wrap .form button { 
    font-size: 14px; 
    padding: 12px 20px; 
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  
  .hero { min-height: calc(60vh + 100px); padding-bottom: 60px; }
  .hero-inner { padding: 32px 0; }
  .hero h1 { font-size: 24px; }
  .hero p.lead { font-size: 15px; }
  
  /* Hero sections small mobile */
  .hero-banner { height: calc(50vh + 60px); }
  .hero-background { background-attachment: scroll; } /* Disable parallax on mobile for better performance */
  .hero-heading { font-size: clamp(20px, 2.5vw, 32px); }
  .hero-cta { padding: 10px 20px; font-size: 13px; }
  
  /* About page hero small mobile */
  .about-page-hero { 
    min-height: 35vh; 
    padding: 25px 0; 
  }
  
  .about-page-hero .hero-inner { 
    padding: 25px 0; 
  }
  .about-page-hero h1 { 
    font-size: clamp(20px, 2.5vw, 28px); 
    margin-bottom: 12px; 
  }
  .about-page-hero p.lead { 
    font-size: 13px; 
    line-height: 1.5; 
  }
  
  .section { padding: 32px 0; }
  .section h2 { font-size: clamp(20px, 2.5vw, 28px); }
  .specialty-image { height: 120px; margin-bottom: 10px; }
  
  .brand-name { font-size: 20px; letter-spacing: 0.3px; }
  .logo { width: 36px; height: 36px; }
  .logo-img { width: 36px; height: 36px; }
  
  /* Improve touch targets */
  .menu a { padding: 14px; font-size: 16px; }
  .form button { padding: 14px 18px; font-size: 16px; }
  
  /* Better spacing on small screens */
  .badge { font-size: 11px; padding: 5px 8px; }
  .tag { font-size: 11px; padding: 3px 8px; }
}

/* Large tablet and small desktop */
@media (max-width: 1200px) and (min-width: 1025px) {
  .container { max-width: 95%; }
  
  /* Header large tablet */
  .nav { padding: 18px 0; }
  .brand-name { font-size: 25px; }
  .logo, .logo-img { width: 46px; height: 46px; }
  .menu { gap: 16px; }
  .menu a { padding: 8px 12px; font-size: 15px; }
  
  /* Hero sections large tablet */
  .hero-banner { height: calc(65vh + 90px); }
  .hero-heading { font-size: clamp(30px, 3.8vw, 52px); }
  .about-page-hero { min-height: 48vh; padding: 60px 0; }
  
  /* Footer large tablet */
  .footer-sections { gap: 28px; }
  .footer-section { padding: 0 12px; }
}

/* Enhanced responsive styles for all pages */
@media (max-width: 1024px) and (min-width: 769px) {
  .container { max-width: 90%; }
  
  /* Header tablet */
  .nav { padding: 16px 0; }
  .brand-name { font-size: 24px; }
  .logo, .logo-img { width: 44px; height: 44px; }
  .menu { gap: 12px; }
  .menu a { padding: 6px 10px; font-size: 14px; }
  
  /* Overlapping Cards Tablet */
  .overlapping-cards-section {
    padding-top: 100px;
    background: transparent;
  }
  
  .overlapping-cards {
    top: -200px; /* proportional for tablet */
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  
  /* Services page tablet */
  .services-grid { 
    grid-template-columns: 1fr; 
    gap: 25px; 
  }
  .service-card { 
    flex-direction: column;
    padding: 0;
    margin: 0;
  }
  .service-image {
    height: 220px;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  
  /* Projects page tablet */
  .project-gallery { 
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 14px; 
  }
  
  /* Featured Projects responsive */
  .projects { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px; 
  }
  
  /* About page tablet */
  .about-hero .hero-inner {
    padding: 50px 0;
  }
  
  /* Hero sections tablet */
  .hero-banner { height: calc(60vh + 80px); }
  .hero-heading { font-size: clamp(28px, 3.5vw, 48px); }
  .about-page-hero { min-height: 45vh; padding: 50px 0; }
}

/* Large Mobile optimizations */
@media (max-width: 768px) and (min-width: 601px) {
  .container { padding: 0 20px; }
  
  /* Overlapping Cards Large Mobile */
  .overlapping-cards-section {
    padding-top: 90px;
    background: transparent;
  }
  
  .overlapping-cards {
    top: -160px;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .overlapping-card-image {
    height: 160px;
  }
  
  .overlapping-card-content {
    padding: 16px;
  }
  
  .overlapping-card-content h3 {
    font-size: 16px;
  }
  
  .overlapping-card-content p {
    font-size: 13px;
  }
}

/* Enhanced mobile styles for all pages */
@media (max-width: 768px) {
  /* Project carousel mobile */
  .project-carousel-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .project-gallery {
    gap: 12px;
  }
  
  .project-gallery img {
    flex: 0 0 calc(50% - 6px); /* 2 cards per row on mobile */
    width: calc(50% - 6px);
    height: 180px;
  }
  
  /* Wooden Doors and Home Cinemas mobile */
  .project-section#solid-doors .project-gallery img,
  .project-section#flush-doors .project-gallery img,
  .project-section#grooved-doors .project-gallery img,
  .project-section#carved-doors .project-gallery img,
  .project-section#home-cinemas-main .project-gallery img,
  .project-section#home-cinemas-latest .project-gallery img {
    flex: 0 0 calc(50% - 6px); /* 2 cards per row on mobile */
    width: calc(50% - 6px);
    height: 180px;
  }
  
  .carousel-nav-btn {
    width: 45px;
    height: 45px;
    align-self: center;
  }
  
  .carousel-nav-btn svg {
    width: 20px;
    height: 20px;
  }
  
  /* Project Modal Mobile */
  .modal-content {
    max-width: 95vw;
    max-height: 95vh;
    margin: 20px;
  }
  
  .modal-image {
    max-height: 85vh;
  }
  
  .modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }
  
  .modal-close svg {
    width: 18px;
    height: 18px;
  }
  
  /* Services page mobile */
  .services-grid { 
    grid-template-columns: 1fr; 
    gap: 20px; 
  }
  .service-card { 
    flex-direction: column;
    padding: 0;
    margin: 0;
  }
  .service-image {
    height: 180px;
    padding: 0;
    margin: 0;
  }
  .service-card.reverse {
    grid-template-columns: 1fr;
  }
  .service-card.reverse .service-content { 
    order: 1; 
  }
  .service-card.reverse .service-image { 
    order: 2; 
  }
  
  /* Ensure all service content comes first on mobile */
  .service-card .service-content { 
    order: 1; 
  }
  .service-card .service-image { 
    order: 2; 
  }
  
  .service-image { 
    height: 250px;
    width: 100%;
  }
  
  /* Projects page mobile */
  .project-gallery { 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 12px; 
  }
  .project-gallery img { 
    height: 180px; 
  }
  
  /* Contact form mobile */
  .contact-form-container { 
    padding: 20px; 
  }
  .form { 
    padding: 20px; 
  }
  
  /* About page mobile */
  .about-hero .hero-inner {
    padding: 40px 0;
  }
  
  /* Vision & Mission mobile */
  .vision-mission-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    display: flex;
    flex-direction: column;
  }
  
  .vision-mission-content {
    order: 1;
  }
  
  .vision-mission-image {
    order: 2;
  }
  
  .vision-image {
    height: 300px;
  }
  
  .vision-mission-content h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 16px;
  }
  
  .lead-box {
    padding: 16px;
  }
  
  .lead-box p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  /* Home page mobile */
  .home-service-image {
    height: 150px;
  }
}

/* Small mobile devices enhanced */
@media (max-width: 480px) {
  /* Overlapping Cards Small Mobile */
  .overlapping-cards-section {
    padding-top: 60px;
    background: transparent;
  }
  
  .overlapping-cards {
    top: -120px; /* proportional increase for small mobile */
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .overlapping-card-image {
    height: 120px;
  }
  
  .overlapping-card-content {
    padding: 14px;
  }
  
  .overlapping-card-content h3 {
    font-size: 15px;
  }
  
  .overlapping-card-content p {
    font-size: 12px;
  }

  /* Services page small mobile */
  .service-card { 
    padding: 20px 0;
    gap: 15px;
    grid-template-columns: 1fr;
  }
  .service-card.reverse {
    grid-template-columns: 1fr;
  }
  .service-card.reverse .service-content { 
    order: 1; 
  }
  .service-card.reverse .service-image { 
    order: 2; 
  }
  
  /* Ensure all service content comes first on small mobile */
  .service-card .service-content { 
    order: 1; 
  }
  .service-card .service-image { 
    order: 2; 
  }
  
  .service-image { 
    height: 200px;
  }
  
  /* Projects page small mobile */
  .project-gallery { 
    gap: 10px; 
  }
  
  /* Featured Projects small mobile */
  .projects { 
    grid-template-columns: 1fr; 
    gap: 12px; 
  }
  .project-gallery img { 
    flex: 0 0 calc(100% - 10px); /* 1 card per row on small mobile */
    width: calc(100% - 10px);
    height: 150px; 
  }
  
  /* Wooden Doors and Home Cinemas small mobile */
  .project-section#solid-doors .project-gallery img,
  .project-section#flush-doors .project-gallery img,
  .project-section#grooved-doors .project-gallery img,
  .project-section#carved-doors .project-gallery img,
  .project-section#home-cinemas-main .project-gallery img,
  .project-section#home-cinemas-latest .project-gallery img {
    flex: 0 0 calc(100% - 10px); /* 1 card per row on small mobile */
    width: calc(100% - 10px);
    height: 150px;
  }
  
  /* Project carousel small mobile */
  .carousel-nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .carousel-nav-btn svg {
    width: 18px;
    height: 18px;
  }
  
  /* Project Modal Small Mobile */
  .modal-content {
    max-width: 98vw;
    max-height: 98vh;
    margin: 10px;
    border-radius: 12px;
  }
  
  .modal-image {
    max-height: 80vh;
    border-radius: 12px;
  }
  
  .modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
  
  .modal-close svg {
    width: 16px;
    height: 16px;
  }
  
  /* Contact form small mobile */
  .contact-form-container { 
    padding: 15px; 
  }
  .form { 
    padding: 15px; 
  }
  
  /* Vision & Mission small mobile */
  .vision-mission-grid {
    gap: 30px;
    display: flex;
    flex-direction: column;
  }
  
  .vision-mission-content {
    order: 1;
  }
  
  .vision-mission-image {
    order: 2;
  }
  
  .vision-image {
    height: 250px;
  }
  
  .vision-mission-content h2 {
    font-size: clamp(20px, 2.5vw, 28px);
    margin-bottom: 12px;
  }
  
  .lead-box {
    padding: 14px;
  }
  
  .lead-box p {
    font-size: 13px;
    line-height: 1.5;
  }
  
  /* Home page small mobile */
  .home-service-image {
    height: 120px;
  }
  
  /* Footer small mobile */
  .footer { padding: 20px 0; }
  .footer-sections { grid-template-columns: 1fr; gap: 20px; }
  .footer-section { padding: 12px 0; }
  .footer-section h4 { font-size: 15px; margin-bottom: 10px; }
  .footer-section p { font-size: 12px; margin-bottom: 5px; }
  .footer-bottom-copyright { margin-top: 16px; }
  .footer-bottom-copyright .small { font-size: 11px; }
}
