/* ============================================
   AL HOURIA PUB — Premium Printing Website
   Custom Styles & Animations
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --teal: #4C887B;
  --teal-dark: #3a6e63;
  --teal-light: #6ba89b;
  --teal-glow: rgba(76, 136, 123, 0.35);
  --magenta: #AD4983;
  --magenta-dark: #8e3a6b;
  --magenta-light: #c76da1;
  --magenta-glow: rgba(173, 73, 131, 0.3);
  --charcoal: #2A2928;
  --charcoal-light: #3d3c3a;
  --gold: #98896E;
  --gold-light: #b8a98e;
  --white: #FFFEFE;
  --off-white: #f8f7f5;
  --light-gray: #f0efed;
  --gray: #9ca3af;
}

/* ---------- Base Reset & Global ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--teal);
  color: #fff;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ---------- Premium Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--off-white);
}
::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--teal-dark);
}

/* ---------- Preloader ---------- */
@media (max-width: 1023px) {
  #preloader {
    display: none !important;
  }
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--teal);
  border-right-color: var(--magenta);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.85rem 0;
  background: rgba(42, 41, 40, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: rgba(42, 41, 40, 0.98);
  padding: 0.65rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav-link {
  position: relative;
  color: rgba(255,255,255,0.7) !important;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  padding-bottom: 6px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 6px solid var(--gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
}

/* ---------- Nav Dropdown (Pôles) ---------- */
.nav-dropdown {
  position: relative;
}

.nav-link-dropdown {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.14);
  padding: 0.6rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 2000;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #fff;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: rgba(76,136,123,0.07);
  color: var(--teal);
  padding-left: 1.5rem;
}

/* ---------- Mobile Accordion (Pôles) ---------- */
.mobile-nav-accordion {
  width: 100%;
}

.mobile-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
}

.accordion-chevron {
  transition: transform 0.3s ease;
}

.mobile-accordion-btn[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}

.mobile-accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-accordion-body.open {
  max-height: 400px;
}

.mobile-accordion-item {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s ease;
}

.mobile-accordion-item:hover {
  color: #fff;
}

/* ---------- Hero Stats Bar ---------- */
.hero-stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 3rem;
  flex-wrap: nowrap;
}

.hero-stat {
  flex: 1;
  min-width: 0;
  padding: 0 1rem;
}

.hero-stat:first-child {
  padding-left: 0;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

@media (max-width: 400px) {
  .hero-stats-bar {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-stat {
    flex: 1 1 30%;
    padding: 0;
  }
}

/* ---------- Hero Mobile Background Video ---------- */
.hero-mobile-video-bg {
  display: none;
}

@media (max-width: 1023px) {
  .hero-mobile-video-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }

  .hero-mobile-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.07;
  }

  .hero-mobile-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(42,41,40,0.55) 0%,
      rgba(42,41,40,0.35) 40%,
      rgba(42,41,40,0.7) 100%
    );
  }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--charcoal) 0%, #1a1918 50%, var(--charcoal) 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 25% 25%, var(--teal) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, var(--magenta) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: patternDrift 20s linear infinite;
}

@keyframes patternDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-gradient-orb.teal {
  width: 500px;
  height: 500px;
  background: var(--teal);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero-gradient-orb.magenta {
  width: 400px;
  height: 400px;
  background: var(--magenta);
  bottom: -10%;
  left: -5%;
  animation-delay: -4s;
}

.hero-gradient-orb.gold {
  width: 300px;
  height: 300px;
  background: var(--gold);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -2s;
  opacity: 0.08;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .highlight-teal {
  color: var(--teal-light);
  position: relative;
  display: inline-block;
}

.hero-title .highlight-magenta {
  color: var(--magenta-light);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  line-height: 1.7;
  max-width: 550px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(76, 136, 123, 0.3);
  border-radius: 100px;
  color: var(--teal-light);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  background: rgba(76, 136, 123, 0.08);
  margin-bottom: 1.5rem;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* ---------- Buttons ---------- */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--magenta), var(--teal-dark));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--teal-glow);
  color: #fff;
}

.btn-primary-custom:hover::before {
  opacity: 1;
}

.btn-primary-custom span {
  position: relative;
  z-index: 1;
}

.btn-primary-custom svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.btn-primary-custom:hover svg {
  transform: translateX(4px);
}

.btn-secondary-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  background: transparent;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-secondary-custom:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Section Styles ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-label .line {
  width: 40px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.8;
  max-width: 600px;
}

/* ---------- About Section ---------- */
.about-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(76, 136, 123, 0.15);
  pointer-events: none;
}

.about-image-wrapper img {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-wrapper:hover img {
  transform: scale(1.05);
}

.about-accent-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--teal);
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(76, 136, 123, 0.3);
  z-index: 2;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

/* ---------- Digital Section ---------- */
.digital-section {
  background: linear-gradient(135deg, var(--charcoal) 0%, #1a1918 50%, var(--charcoal) 100%);
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .digital-section {
    padding: 5rem 0;
  }
}

.digital-item {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}

.digital-item:hover {
  background: rgba(76,136,123,0.08);
  border-color: rgba(76,136,123,0.2);
}

.digital-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(76,136,123,0.15), rgba(173,73,131,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.digital-item-icon svg {
  width: 18px;
  height: 18px;
  color: var(--teal-light);
}

.digital-item h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}

.digital-item p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.digital-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  padding: 3rem 0;
}

.digital-visual-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  text-align: center;
  width: 240px;
  transition: all 0.5s ease;
}

.digital-visual-card:hover {
  background: rgba(76,136,123,0.1);
  border-color: rgba(76,136,123,0.3);
  transform: translateY(-4px);
}

.digital-card-1 { transform: translateX(-20px); }
.digital-card-2 { transform: translateX(20px); }
.digital-card-3 { transform: translateX(-10px); }

.digital-card-1:hover { transform: translateX(-20px) translateY(-4px); }
.digital-card-2:hover { transform: translateX(20px) translateY(-4px); }
.digital-card-3:hover { transform: translateX(-10px) translateY(-4px); }

.digital-stat {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--teal-light), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}

.digital-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

@media (max-width: 768px) {
  .digital-visual {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1.5rem 0 0;
    gap: 0.75rem;
  }

  .digital-visual-card {
    width: auto;
    flex: 1 1 140px;
    padding: 1.25rem 1rem;
  }

  .digital-card-1,
  .digital-card-2,
  .digital-card-3 {
    transform: none;
  }

  .digital-card-1:hover,
  .digital-card-2:hover,
  .digital-card-3:hover {
    transform: translateY(-4px);
  }

  .digital-stat {
    font-size: 1.5rem;
  }
}

/* ---------- Pole Tab Cards (IPN-style 4 columns) ---------- */
.pole-tab-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.pole-tab-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.pole-tab-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.pole-tab-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.pole-tab-card:hover .pole-tab-img img {
  transform: scale(1.06);
}

.pole-tab-body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pole-tab-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pole-tab-body > p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.pole-tab-services {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex: 1;
}

.pole-tab-services li {
  font-size: 0.78rem;
  color: #555;
  padding: 0.2rem 0;
}

.pole-voir-plus {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.pole-voir-plus:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* (Old pole detail modal and project detail layout CSS removed — replaced by .detail-page-overlay system) */

/* ---------- Portfolio Carousel ---------- */
.portfolio-carousel-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--charcoal);
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: var(--charcoal);
  color: #fff;
  border-color: var(--charcoal);
}

.portfolio-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.portfolio-carousel::-webkit-scrollbar {
  display: none;
}

/* ---------- Portfolio Project Cards ---------- */
.portfolio-project-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 0 0 340px;
  scroll-snap-align: start;
}

@media (max-width: 640px) {
  .portfolio-project-card {
    flex: 0 0 280px;
  }
}

.portfolio-project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.1);
}

.project-cover {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-project-card:hover .project-cover img {
  transform: scale(1.08);
}

.project-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(42,41,40,0.85) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 1.5rem;
  gap: 0.75rem;
}

.portfolio-project-card:hover .project-cover-overlay {
  opacity: 1;
}

.project-photo-count {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 500;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-project-card:hover .project-photo-count {
  transform: translateY(0);
}

.project-view-btn {
  padding: 0.5rem 1.5rem;
  background: var(--teal);
  color: #fff;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transform: translateY(15px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
}

.portfolio-project-card:hover .project-view-btn {
  transform: translateY(0);
  opacity: 1;
}

.project-view-btn:hover {
  background: var(--teal-dark);
}

.project-info {
  padding: 1.25rem 1.5rem;
}

.project-info h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.project-info p {
  font-size: 0.85rem;
  color: var(--gray);
}

/* (Old project modal CSS removed — replaced by .detail-page-overlay system) */

/* ---------- Gallery Layout ---------- */
.gallery-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1.25rem;
  align-items: start;
}

.gallery-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-main-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f1f0;
}

.gallery-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-main-img-hidden {
  opacity: 0;
  transform: scale(1.04);
}

.gallery-main-img-entering {
  opacity: 1;
  transform: scale(1);
}

.gallery-main-img-leaving {
  opacity: 0;
  transform: scale(0.97);
}

.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.gallery-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--charcoal);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.gallery-arrow:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  box-shadow: 0 6px 20px var(--teal-glow);
}

.gallery-counter {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.05em;
  min-width: 50px;
  text-align: center;
}

.gallery-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.gallery-sidebar::-webkit-scrollbar {
  width: 4px;
}

.gallery-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 4px;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
  flex-shrink: 0;
}

.gallery-thumb:hover {
  opacity: 0.9;
  border-color: rgba(76,136,123,0.3);
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--teal);
  box-shadow: 0 4px 14px var(--teal-glow);
}

@media (max-width: 768px) {
  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-sidebar {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    padding-bottom: 4px;
    gap: 0.6rem;
  }

  .gallery-sidebar::-webkit-scrollbar {
    height: 4px;
    width: auto;
  }

  .gallery-thumb {
    width: 110px;
    min-width: 110px;
    aspect-ratio: 4/3;
  }


  .gallery-main-img-wrap {
    aspect-ratio: 4/3;
  }
}

/* ---------- Why Choose Us ---------- */
.feature-card {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}

.feature-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(76,136,123,0.1), rgba(173,73,131,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-circle {
  background: linear-gradient(135deg, var(--teal), var(--magenta));
  transform: scale(1.1);
}

.feature-icon-circle svg {
  width: 32px;
  height: 32px;
  color: var(--teal);
  transition: color 0.4s ease;
}

.feature-card:hover .feature-icon-circle svg {
  color: #fff;
}

.feature-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  position: relative;
}

.testimonial-card:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.testimonial-card .quote-icon {
  width: 48px;
  height: 48px;
  color: var(--teal);
  opacity: 0.15;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--charcoal);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--magenta));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ---------- Contact Section ---------- */
.contact-section {
  background: linear-gradient(135deg, var(--charcoal) 0%, #1a1918 100%);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(76, 136, 123, 0.08);
  box-shadow: 0 0 0 4px var(--teal-glow);
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  background: rgba(76, 136, 123, 0.08);
  border-color: rgba(76, 136, 123, 0.2);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-link {
  color: rgba(255,255,255,0.6);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.925rem;
}

.footer-link:hover {
  color: var(--teal-light);
  transform: translateX(4px);
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.social-icon:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--teal-glow);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  box-shadow: 0 8px 25px var(--teal-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--magenta);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--magenta-glow);
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.stagger-children.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Floating Shapes ---------- */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Hero Parallax Image ---------- */
.hero-image-wrapper {
  position: relative;
}

.hero-image-main {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Hero Video ---------- */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

/* ---------- Slideshow (About) ---------- */
.about-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
}

.about-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s ease;
  transform: scale(1.05);
}

.about-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Floating 3D Cards ---------- */
.floating-3d {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
  perspective: 800px;
}

.hero-floating-card {
  position: absolute;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  color: #fff;
  animation: floatCard 6s ease-in-out infinite;
}

.hero-floating-card.card-1 {
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.hero-floating-card.card-2 {
  bottom: 10%;
  left: -15%;
  animation-delay: -3s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 50%, var(--magenta-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

/* ---------- Counter Animation ---------- */
.counter {
  display: inline-block;
}

/* ---------- Map Container ---------- */
.map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  height: 250px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.5) contrast(1.1);
  transition: filter 0.4s ease;
}

.map-container:hover iframe {
  filter: grayscale(0) contrast(1);
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: whatsappPulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
  color: #fff;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6), 0 0 0 15px rgba(37, 211, 102, 0.1); }
}

/* ---------- Mobile Menu ---------- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 41, 40, 0.98);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-overlay .mobile-nav-link {
  display: block;
  color: #fff;
  font-size: 1.75rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  padding: 0.75rem 0;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mobile-menu-overlay.open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.open .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-overlay.open .mobile-nav-link:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu-overlay.open .mobile-nav-link:nth-child(7) { transition-delay: 0.4s; }

.mobile-nav-link:hover {
  color: var(--teal-light) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.close-mobile-menu {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .about-accent-box {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1rem;
    display: inline-block;
  }

  .hero-floating-card {
    display: none;
  }

  .hero-image-wrapper {
    display: none;
  }

  .hero {
    min-height: unset;
  }
}

/* ---------- Smooth page transitions ---------- */
.page-transition {
  animation: fadeInPage 0.6s ease forwards;
}

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

/* ---------- Gradient text utility ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--teal), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Divider ---------- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76,136,123,0.2), var(--magenta-glow), rgba(76,136,123,0.2), transparent);
}

/* ============================================
   DETAIL PAGE OVERLAY (Poles & Projects)
   ============================================ */

.detail-page-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.detail-page-overlay.open {
  opacity: 1;
  visibility: visible;
}

.detail-page-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.detail-page-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.detail-page-overlay.open .detail-page-container {
  transform: translateY(0);
  opacity: 1;
}

/* Topbar */
.detail-page-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.detail-page-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.detail-page-back:hover {
  background: rgba(0,0,0,0.05);
  color: var(--teal);
}

.detail-page-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.detail-page-close:hover {
  background: rgba(0,0,0,0.1);
  transform: rotate(90deg);
}

/* Hero Banner */
.detail-page-hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2A2928 50%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.detail-page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(76,136,123,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(173,73,131,0.1) 0%, transparent 50%);
  animation: heroOrbFloat 12s ease-in-out infinite;
}

@keyframes heroOrbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, -10px); }
}

.detail-page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.detail-page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}

.detail-page-breadcrumb svg {
  opacity: 0.4;
}

.detail-breadcrumb-current {
  color: var(--teal);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Metadata Bar (Projects) */
.detail-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.25rem 2rem;
  background: #fafafa;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-wrap: wrap;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--gray);
}

.detail-meta-item svg {
  color: var(--teal);
  flex-shrink: 0;
}

/* Page Body */
.detail-page-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

/* Content Grid (Pole Detail: image + text side by side) */
.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

.detail-content-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.detail-content-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.detail-content-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.detail-content-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.detail-content-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 1rem;
}

/* Services List */
.detail-services-section {
  margin-top: 1.5rem;
}

.detail-services-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.detail-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.detail-services-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--gray);
  padding: 0.4rem 0;
}

.detail-services-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* Gallery Section */
.detail-gallery-section {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 3rem;
}

.detail-gallery-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  text-align: center;
}

.detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.detail-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.detail-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.detail-gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.detail-gallery-item:hover img {
  transform: scale(1.05);
}

.detail-gallery-caption {
  text-align: center;
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
  color: var(--gray);
  background: #fafafa;
}

/* Project Full Description */
.project-full-description {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--gray);
  margin-bottom: 3rem;
  max-width: 800px;
}

.project-full-description p {
  margin-bottom: 1.25rem;
}

/* Project Gallery Wrap */
.project-gallery-section {
  margin-bottom: 2rem;
}

.project-gallery-main-wrap {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1.25rem;
}

/* CTA Section */
.detail-cta-section {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 1024px) {
  .detail-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .detail-content-image img {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .detail-page-topbar {
    padding: 0.75rem 1rem;
  }

  .detail-page-hero {
    padding: 2.5rem 1.5rem 2rem;
  }

  .detail-page-body {
    padding: 2rem 1.25rem 3rem;
  }

  .detail-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .detail-meta-bar {
    gap: 1rem;
    padding: 1rem;
  }

  .detail-meta-item {
    font-size: 0.8rem;
  }

  .project-gallery-main-wrap {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-gallery-main-wrap .gallery-sidebar {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    padding-bottom: 4px;
    gap: 0.6rem;
  }

  .project-gallery-main-wrap .gallery-thumb {
    width: 110px;
    min-width: 110px;
    aspect-ratio: 4/3;
  }
}

@media (max-width: 480px) {
  .detail-gallery-grid {
    grid-template-columns: 1fr;
  }

  .detail-page-breadcrumb {
    font-size: 0.75rem;
    gap: 0.3rem;
  }
}
