@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --bg-color: #113025;
  --bg-secondary: #e6ddd4; /* New secondary background color */
  --text-primary: #e6ddd4;
  --text-secondary: rgba(230, 221, 212, 0.7);
  --text-dark: #113025; /* For text on secondary bg */
  --accent-color: #113025;
  --nav-bg: rgba(17, 48, 37, 0.9);
  
  --font-heading: 'Playfair Display', serif;
  --font-subheading: 'Cormorant Garamond', serif;
  --font-heading-alt: 'Cormorant Garamond', serif; /* Use Cormorant for alternate headings too */
  --font-body: 'Montserrat', sans-serif;
  
  --transition: all 0.4s ease;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
  font-weight: 600;
}

h1, h2 {
  font-family: var(--font-heading);
}

h3, h4, h5, h6 {
  font-family: var(--font-subheading);
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout & Utilities --- */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.section {
  padding: 40px 0;
}

.text-center {
  text-align: center;
}

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

.section-subtitle {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bg-secondary);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(17, 48, 37, 0.9); /* Solid translucent dark green */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(17, 48, 37, 0.95); /* Solid translucent dark green */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12); /* Sleek reflection outline */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Enhancing navigation link readability in scrolled glass state */
.navbar.scrolled .nav-links > li > a {
  color: var(--text-primary); /* Solid text color for top-level links only */
}

.navbar.scrolled .nav-links > li > a:hover,
.navbar.scrolled .nav-links > li > a.active {
  color: #ffffff !important;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  height: 40px; /* Adjust height as needed */
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}



.nav-links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

/* --- Navigation Dropdown --- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px) scale(0.95);
  min-width: 580px; /* Wider to prevent column wrapping */
  background: var(--bg-secondary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(17, 48, 37, 0.15);
  border-radius: 20px;
  padding: 24px;
  margin-top: 15px;
  opacity: 0;
  visibility: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -25px; /* Bridges the 15px gap to prevent menu hiding when cursor moves down */
  left: 0;
  width: 100%;
  height: 25px;
  background: transparent;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--bg-color);
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 8px;
  white-space: nowrap; /* Prevent text wrapping to double lines */
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  color: var(--bg-secondary) !important;
  background: var(--bg-color) !important;
  padding-left: 18px;
}

@media (max-width: 992px) {
  .dropdown-menu {
    position: static;
    transform: none !important;
    min-width: 100%;
    grid-template-columns: 1fr;
    padding: 0 15px;
    background: transparent;
    border: none;
    box-shadow: none;
    display: grid; /* Always grid, transition height and opacity */
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s;
  }
  
  .dropdown-menu a {
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    padding: 12px 10px;
    white-space: normal;
  }

  .dropdown-menu a:hover,
  .dropdown-menu a.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding-left: 15px;
  }
  
  .dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

/* X Animation */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: 1.5px solid var(--text-primary);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50px;
  overflow: hidden;
}

.btn:hover {
  background: var(--text-primary);
  color: var(--bg-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-color) !important;
}

.btn-primary:hover {
  background: transparent;
  color: var(--text-primary) !important;
}



/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Clients & Partners --- */
.diamond-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 35px;
}
.diamond-divider::before, .diamond-divider::after {
  content: '';
  height: 1px;
  width: 40px;
  background-color: var(--text-primary);
  opacity: 0.5;
}
.diamond-divider .diamond {
  width: 12px;
  height: 12px;
  border: 1px solid var(--text-primary);
  transform: rotate(45deg);
  margin: 0 15px;
  opacity: 0.7;
}

.client-section {
  padding: 35px 0;
  text-align: center;
}
.client-section h3 {
  font-family: var(--font-subheading);
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 300;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  justify-content: center;
}

.client-card {
  background-color: #fff;
  border: 1px solid #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  aspect-ratio: 16 / 9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.client-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.9;
  filter: grayscale(100%);
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.client-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* --- Universal Footer CTA --- */
.footer-cta {
  padding: 35px 0;
  background-color: #ffffff;
  color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.cta-container {
  display: flex;
  background: var(--bg-color);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(17, 48, 37, 0.2);
  min-height: 500px;
}

.cta-image {
  flex: 1;
  min-width: 400px;
  position: relative;
}

.cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.footer-cta:hover .cta-image img {
  transform: scale(1.05);
}

.cta-content {
  flex: 1;
  padding: 80px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #ffffff;
  color: var(--bg-color);
}

.cta-content h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  margin-bottom: 25px;
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--bg-color);
}

.cta-content h2 em {
  font-family: var(--font-subheading);
  font-style: italic;
  font-weight: 600;
  color: #c5a880;
  text-transform: none;
  display: inline-block;
  transition: color 0.4s ease, transform 0.4s ease;
}

.footer-cta:hover .cta-content h2 em {
  color: #d8be99;
  transform: skewX(-3deg) translateY(-2px);
}

.cta-content p {
  font-size: 1.15rem;
  margin-bottom: 45px;
  font-weight: 400;
  line-height: 1.7;
  opacity: 0.8;
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  border: 1.5px solid var(--bg-color);
  color: var(--bg-color);
}

.cta-buttons .btn-primary {
  background: var(--bg-color);
  color: #fff !important;
}

.cta-buttons .btn:hover {
  background: var(--bg-color);
  color: #ffffff !important;
  border-color: var(--bg-color);
}

@media (max-width: 1000px) {
  .cta-container {
    flex-direction: column;
    min-height: auto;
  }
  .cta-image {
    min-width: 100%;
    height: 350px;
  }
  .cta-content {
    padding: 60px 8%;
    text-align: center;
    align-items: center;
  }
  .cta-content h2 {
    /* Font size is handled responsively by clamp() globally */
  }
}


.scroll-top {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 30px;
  right: 30px;
  background: var(--bg-color);
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--text-primary);
  color: var(--bg-color);
  border-color: var(--bg-color);
  transform: translateY(-5px);
}

/* --- Universal Footer --- */
.global-footer {
  padding: 80px 0 40px;
  background-color: var(--bg-color);
  color: var(--text-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.footer-wa-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-secondary);
  color: var(--bg-color) !important;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 700;
  margin-top: 20px;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.footer-wa-highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.footer-wa-highlight svg {
  color: var(--bg-color);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo-img {
  height: 40px;
  margin-bottom: 15px;
}

.footer-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: 15px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

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

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  padding: 4px 0;
}

.footer-col ul li a svg {
  color: var(--bg-secondary);
  opacity: 0.6;
  margin-right: 10px;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--text-primary);
  padding-left: 8px;
}

.footer-col ul li a:hover svg {
  opacity: 1;
  transform: translateX(3px);
}

.enquiry-badge {
  display: inline-block;
  font-size: 0.7rem;
  background: var(--bg-secondary);
  color: var(--bg-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--bg-secondary);
  color: var(--bg-color);
  transform: translateY(-5px);
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  font-size: 0.9rem;
  color: rgba(230, 221, 212, 0.5);
}

.footer-legal {
  display: flex;
  gap: 30px;
}

.footer-legal a {
  font-size: 0.9rem;
  color: rgba(230, 221, 212, 0.5);
}

.footer-legal a:hover {
  color: var(--text-primary);
}

.dmca-badge {
  display: inline-flex;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.dmca-badge:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.dmca-badge-wrapper {
  display: flex;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  border: 1px solid rgba(230, 221, 212, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.dmca-left {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 4px 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.dmca-shield {
  width: 9px;
  height: 11px;
  color: #3498db; /* Authentic blue for DMCA shield */
  display: block;
}

.dmca-title {
  text-transform: uppercase;
}

.dmca-right {
  background-color: #2ecc71; /* Authentic green for DMCA status */
  color: #ffffff;
  padding: 4px 7px;
  line-height: 1;
  text-transform: uppercase;
}

/* --- Mobile/Tablet Footer --- */
@media (max-width: 1000px) {
  .footer-main {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  .footer-brand {
    grid-column: span 3;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: left;
  }
  .footer-brand {
    grid-column: span 1;
    display: block;
    margin-bottom: 0;
  }
  .footer-description {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  .social-links {
    justify-content: flex-start;
  }
  .footer-col h4 {
    margin-bottom: 15px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 15px;
  }
  .footer-legal {
    justify-content: flex-start;
  }
  
  /* CTA Buttons in one line on mobile */
  .cta-buttons {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 10px;
    width: 100%;
    justify-content: center;
  }
  .cta-buttons .btn {
    flex: 1;
    padding: 12px 10px !important;
    font-size: 0.8rem !important;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  .cta-buttons .btn svg {
    width: 14px !important;
    height: 14px !important;
    margin-right: 4px !important;
    margin-left: 0 !important;
    transform: none !important;
  }
}

/* --- Responsive --- */
body.menu-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(17, 48, 37, 0.98); /* Luxury depth dark green */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    text-align: left; /* Left align main container */
    padding: 15px 0;
    gap: 0;
    border-bottom: 1px solid rgba(230, 221, 212, 0.12); /* Subtle beige border */
    
    /* Animation state when CLOSED */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
    z-index: 1000;
    
    /* Max height and scrolling */
    max-height: calc(100vh - 100%);
    height: calc(100vh - 100%);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(230, 221, 212, 0.15) transparent;
  }
  
  .nav-links::-webkit-scrollbar {
    width: 4px;
  }
  .nav-links::-webkit-scrollbar-track {
    background: transparent;
  }
  .nav-links::-webkit-scrollbar-thumb {
    background: rgba(230, 221, 212, 0.15);
    border-radius: 2px;
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links.submenu-active {
    overflow: hidden !important; /* Prevent double scrollbars and lock parent menu scroll when submenu is open */
  }

  .nav-links > li {
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-bottom: 1px solid rgba(230, 221, 212, 0.06); /* Elegant divider */
  }

  .nav-links > li:last-child {
    border-bottom: none;
  }

  .nav-links > li > a {
    display: block;
    padding: 16px 24px; /* Left indent */
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    width: 100%;
    text-align: left; /* Left align menu link text */
    box-sizing: border-box;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), letter-spacing 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease, padding-left 0.3s ease;
  }

  .nav-links > li > a:hover {
    letter-spacing: 2px;
    color: #ffffff;
    padding-left: 32px; /* slide right slightly on hover */
  }

  .nav-links.active > li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered Delay for luxury entrance */
  .nav-links.active > li:nth-child(1) { transition-delay: 0.08s; }
  .nav-links.active > li:nth-child(2) { transition-delay: 0.14s; }
  .nav-links.active > li:nth-child(3) { transition-delay: 0.20s; }
  .nav-links.active > li:nth-child(4) { transition-delay: 0.26s; }
  .nav-links.active > li:nth-child(5) { transition-delay: 0.32s; }
  .nav-links.active > li:nth-child(6) { transition-delay: 0.38s; }
  .nav-links.active > li:nth-child(7) { transition-delay: 0.44s; }

  /* Apple-style sliding submenu layouts */
  .dropdown {
    position: static !important; /* Allows absolute dropdown-menu to align with .nav-links parent */
  }

  .dropdown-menu {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(17, 48, 37, 0.99) !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateX(100%) !important; /* Slide off-screen right */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, visibility 0.5s !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    padding: 10px 0 !important;
    box-sizing: border-box !important;
    z-index: 1001 !important;
    overflow-y: auto !important;
    border: none !important;
    box-shadow: none !important;
    max-height: none !important;
    grid-template-columns: none !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(230, 221, 212, 0.15) transparent;
  }

  .dropdown-menu::-webkit-scrollbar {
    width: 4px;
  }
  .dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
  }
  .dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(230, 221, 212, 0.15);
    border-radius: 2px;
  }

  .nav-links.submenu-active .dropdown-menu {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Transition for main links sliding out to the left when submenu is active */
  .nav-links.submenu-active > li:not(.dropdown) {
    transform: translateX(-100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .nav-links.submenu-active > li.dropdown > a {
    transform: translateX(-100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .nav-links.submenu-active > li.dropdown {
    border-bottom-color: transparent !important;
  }

  /* Staggered entrance for submenu items */
  .dropdown-menu > li {
    width: 100%;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid rgba(230, 221, 212, 0.05) !important;
  }

  .dropdown-menu > li:last-child {
    border-bottom: none !important;
  }

  .dropdown-menu > li > a {
    display: block;
    padding: 15px 24px !important; /* Left indent */
    font-size: 0.8rem !important;
    letter-spacing: 1px;
    width: 100%;
    text-align: left; /* Left align */
    color: var(--text-secondary) !important; /* Explicit luxury beige */
    box-sizing: border-box;
    transition: letter-spacing 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease, padding-left 0.3s ease;
  }

  .dropdown-menu > li > a:hover {
    letter-spacing: 1.8px;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.04) !important;
    padding-left: 32px !important; /* slide right slightly on hover */
  }

  .nav-links.submenu-active .dropdown-menu > li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered delay logic for 12 submenu service items */
  .nav-links.submenu-active .dropdown-menu > li:nth-child(1) { transition-delay: 0.06s; }
  .nav-links.submenu-active .dropdown-menu > li:nth-child(2) { transition-delay: 0.11s; }
  .nav-links.submenu-active .dropdown-menu > li:nth-child(3) { transition-delay: 0.16s; }
  .nav-links.submenu-active .dropdown-menu > li:nth-child(4) { transition-delay: 0.21s; }
  .nav-links.submenu-active .dropdown-menu > li:nth-child(5) { transition-delay: 0.26s; }
  .nav-links.submenu-active .dropdown-menu > li:nth-child(6) { transition-delay: 0.31s; }
  .nav-links.submenu-active .dropdown-menu > li:nth-child(7) { transition-delay: 0.36s; }
  .nav-links.submenu-active .dropdown-menu > li:nth-child(8) { transition-delay: 0.41s; }
  .nav-links.submenu-active .dropdown-menu > li:nth-child(9) { transition-delay: 0.46s; }
  .nav-links.submenu-active .dropdown-menu > li:nth-child(10) { transition-delay: 0.51s; }
  .nav-links.submenu-active .dropdown-menu > li:nth-child(11) { transition-delay: 0.56s; }
  .nav-links.submenu-active .dropdown-menu > li:nth-child(12) { transition-delay: 0.61s; }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 900px) {
  .client-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .client-card {
    padding: 15px;
  }
}
@media (max-width: 600px) {
  .client-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .client-card {
    padding: 8px;
  }
}

/* Contextual button hover states */
.btn:hover {
  background-color: var(--text-primary);
  border-color: var(--text-primary) !important;
  /* Default to Green text on hover (for buttons on Green bg) */
  color: var(--bg-color) !important;
}

/* For buttons that have Green text (i.e. on Beige bg) */
.services-preview .text-center .btn:hover,
.clients-section .btn:hover,
[style*="var(--bg-secondary)"] .btn:hover,
.mission-section .btn:hover,
.bg-beige .btn:hover,
.footer-cta .btn:hover {
  background-color: var(--bg-color) !important;
  border-color: var(--bg-color) !important;
  color: var(--bg-secondary) !important;
}

/* Override for service-item which is green */
.service-item .btn:hover {
  background-color: var(--bg-secondary) !important;
  border-color: var(--bg-secondary) !important;
  color: var(--bg-color) !important;
}

/* Normal state for buttons on light/beige backgrounds (otherwise invisible) */
.services-preview .text-center .btn,
.clients-section .btn,
[style*="var(--bg-secondary)"] .btn,
.mission-section .btn,
.bg-beige .btn,
.footer-cta .btn {
  border-color: var(--bg-color);
  color: var(--bg-color);
}

/* Prevent View All Services in Detail button from moving/floating on hover */
.services-preview .text-center .btn:hover {
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  section, .section, .services-preview, .clients-section, .discover-quote, .case-studies, .mission-section {
    padding: 40px 0 !important;
  }
  .achievements, .reveal[style*="padding: 50px"] {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
  .global-footer {
    padding-top: 50px !important;
    padding-bottom: 30px !important;
  }
  .blog-header {
    padding-top: 100px !important;
    padding-bottom: 40px !important;
  }
  .footer-cta > div > div:nth-child(2) {
    padding: 50px 5% !important;
  }
}

/* --- Legal & Rich Text Content --- */
.legal-container {
  background: #ffffff;
  padding: 60px 50px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(17, 48, 37, 0.05);
  border: 1px solid rgba(17, 48, 37, 0.02);
  color: var(--bg-color);
  margin: 40px auto;
  max-width: 100%;
}

.legal-container h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-top: 35px;
  margin-bottom: 15px;
  color: var(--bg-color);
  text-transform: none;
  border-bottom: 1px solid rgba(17, 48, 37, 0.1);
  padding-bottom: 8px;
}

.legal-container h2:first-of-type {
  margin-top: 0;
}

.legal-container p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(17, 48, 37, 0.85);
}

.legal-container ul {
  margin-bottom: 25px;
  padding-left: 20px;
}

.legal-container ul li {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 8px;
  color: rgba(17, 48, 37, 0.85);
}

@media (max-width: 768px) {
  .legal-container {
    padding: 35px 20px;
    border-radius: 16px;
  }
  .legal-container h2 {
    font-size: 1.5rem;
  }
}

/* === SEO & Accessibility Utilities === */

/* Visually hidden but readable by search engines and screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  padding: 12px 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: transparent;
}

.breadcrumb-nav ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}

.breadcrumb-nav ol li {
  display: flex;
  align-items: center;
}

.breadcrumb-nav ol li + li::before {
  content: '/';
  margin: 0 8px;
  opacity: 0.5;
}

.breadcrumb-nav ol li a {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
  transition: color 0.3s ease;
}

.breadcrumb-nav ol li a:hover {
  color: var(--text-primary);
}

.breadcrumb-nav ol li[aria-current="page"] {
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
}

/* Breadcrumb on light/beige backgrounds */
.breadcrumb-nav.breadcrumb-dark ol li a {
  color: rgba(17, 48, 37, 0.6);
}

.breadcrumb-nav.breadcrumb-dark ol li + li::before {
  color: rgba(17, 48, 37, 0.4);
}

.breadcrumb-nav.breadcrumb-dark ol li[aria-current="page"] {
  color: var(--bg-color);
}

/* --- Brand Name Typography Highlighting --- */
.brand-name {
  font-weight: 700 !important;
  text-transform: uppercase;
  display: inline-block;
  color: inherit !important; /* Fallback to inherit parent's text color for readability */
}

/* White text for dark green backgrounds (default fallback) */
.hero .brand-name,
.faq-header .brand-name,
.about-header .brand-name,
.services-header .brand-name,
.contact-header .brand-name,
.work-header .brand-name,
.global-footer .brand-name,
.footer-cta .brand-name,
.scroll-top .brand-name,
.featured-section .brand-name,
.case-studies .brand-name,
.achievements .brand-name,
.discover-quote .brand-name,
.faq-contact-cta .brand-name,
[style*="color: var(--text-primary)"] .brand-name,
[style*="color: var(--text-secondary)"] .brand-name,
[style*="color: #fff"] .brand-name,
[style*="color: #ffffff"] .brand-name {
  color: #ffffff !important;
}

/* Green text for light cream/white backgrounds */
.mission-section .brand-name,
.services-preview .brand-name,
.clients-section .brand-name,
.testimonials-section .brand-name,
.faq-page-container .brand-name,
.clients-page-container .brand-name,
.legal-container .brand-name,
.about-content .brand-name,
.about-vision .brand-name,
.about-team .brand-name,
.about-intro-section .brand-name,
.gallery-section .brand-name,
.case-study.bg-beige .brand-name,
.services-section .brand-name,
.service-content .brand-name,
.cta-content .brand-name,
.light-bg .brand-name,
[style*="var(--bg-secondary)"] .brand-name,
[style*="#e6ddd4"] .brand-name {
  color: var(--bg-color) !important;
}

/* --- Sticky Right WhatsApp Button (Vertical) --- */
.sticky-whatsapp-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(6px); /* Tucked slightly into the right edge by default */
  z-index: 1001;
  background: var(--bg-color); /* Dark green */
  color: var(--text-primary); /* Beige */
  padding: 22px 14px;
  border-radius: 12px 0 0 12px; /* Smooth rounded corners on the left edge */
  display: flex;
  flex-direction: column; /* Stack SVG on top, span below */
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1.5px solid var(--text-primary);
  border-right: none; /* Sticking flush to the right viewport edge */
  box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.25), inset 2px -2px 5px rgba(0, 0, 0, 0.2); /* 3D Box Shadow directed leftwards */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-whatsapp-btn:hover {
  transform: translateY(-50%) translateX(0); /* Slide out leftwards fully on hover */
  background: #25d366; /* Official WhatsApp brand green */
  color: #ffffff !important;
  border-color: #25d366;
  box-shadow: -6px 6px 20px rgba(0, 0, 0, 0.35);
}

.sticky-whatsapp-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  transform: none; /* Keep the icon upright */
  transition: transform 0.3s ease;
}

.sticky-whatsapp-btn:hover svg {
  transform: scale(1.15) rotate(-10deg); /* Modern, interactive hover feedback */
}

.sticky-whatsapp-btn span {
  writing-mode: vertical-rl; /* Rotate text vertically downwards */
  text-orientation: mixed;
  white-space: nowrap;
}

/* Hide on Mobile */
@media (max-width: 900px) {
  .sticky-whatsapp-btn {
    display: none !important;
  }
}

/* --- Navigation Instagram Icon --- */
.nav-instagram {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.nav-instagram a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px !important;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.nav-instagram a::after {
  display: none !important;
}

.nav-instagram a:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.navbar.scrolled .nav-instagram a {
  color: var(--text-primary);
}

.navbar.scrolled .nav-instagram a:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  .nav-instagram {
    display: none !important;
  }
}

/* --- RHOE Luxury Page Loader & Transitions --- */
.rhoe-page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-color); /* Brand green */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.3, 1), 
              visibility 0.6s cubic-bezier(0.25, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.25, 1, 0.3, 1);
}

.rhoe-page-loader.loader-fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03); /* slight expansion to give premium exit feel */
}

.rhoe-page-loader.loader-fade-in {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.rhoe-page-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.loader-letter {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  color: var(--text-primary); /* #e6ddd4 */
  opacity: 0;
  transform: translateY(25px) scaleY(1.25);
  filter: blur(4px);
  animation: letterReveal 0.8s cubic-bezier(0.25, 1, 0.3, 1) forwards;
}

.loader-letter:nth-child(1) { animation-delay: 0.1s; }
.loader-letter:nth-child(2) { animation-delay: 0.22s; }
.loader-letter:nth-child(3) { animation-delay: 0.34s; }
.loader-letter:nth-child(4) { animation-delay: 0.46s; }

@keyframes letterReveal {
  0% {
    opacity: 0;
    transform: translateY(25px) scaleY(1.25);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    filter: blur(0);
  }
}

.loader-line-container {
  width: 140px;
  height: 1.5px;
  background-color: rgba(230, 221, 212, 0.1);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.loader-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 100%;
  background-color: var(--accent-color); /* Gold accent #c5a880 */
  animation: lineGrow 1.2s cubic-bezier(0.25, 1, 0.3, 1) 0.5s forwards;
}

@keyframes lineGrow {
  0% {
    left: 50%;
    width: 0;
  }
  100% {
    left: 0;
    width: 100%;
  }
}

body.loader-active {
  overflow: hidden !important;
  height: 100vh !important;
}

/* Luxury page transition and FOUC prevention (Home page only) */
html {
  background-color: var(--bg-color); /* solid brand green during blank phase */
}

body.home-body {
  opacity: 0;
}

body.home-body.loader-active, body.home-body.loaded {
  opacity: 1;
}

/* ==========================================================================
   UNIFIED LUXURY HERO BANNER SYSTEM (ALL INNER PAGES)
   ========================================================================== */

/* 1. Global Height (Padding) and Flex Layout */
.about-header,
.services-header,
.work-header,
.contact-header,
.blog-header,
.faq-header,
.clients-hero,
.post-header {
  padding: 220px 0 120px !important;
  text-align: center !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: auto !important;
  box-sizing: border-box !important;
}

/* 2. Unified Hero Title Typography */
.about-header h1,
.services-header h1,
.work-header h1,
.contact-header h1,
.blog-header h1,
.faq-header h1,
.clients-hero h1,
.post-header h1 {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.8rem, 6vw, 4.8rem) !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  letter-spacing: -1.5px !important;
  text-transform: uppercase !important;
  color: var(--text-primary) !important;
  margin: 0 auto 20px !important;
  max-width: 960px !important;
  display: block !important;
}

/* 3. Unified Hero Subtitle/Description Typography */
.about-header p,
.services-header p,
.work-header p,
.contact-header p,
.blog-header p,
.faq-header p,
.clients-hero p,
.post-header p {
  font-family: var(--font-subheading) !important;
  font-style: italic !important;
  font-size: clamp(1.1rem, 2vw, 1.35rem) !important;
  color: var(--text-secondary) !important;
  max-width: 750px !important;
  margin: 0 auto !important;
  line-height: 1.6 !important;
  opacity: 0.9 !important;
  letter-spacing: 0.5px !important;
  display: block !important;
}

/* 4. Unified Mobile Responsiveness & Typography for all Inner Page Heroes */
@media (max-width: 768px) {
  .about-header,
  .services-header,
  .work-header,
  .contact-header,
  .blog-header,
  .faq-header,
  .clients-hero,
  .post-header {
    padding: 160px 0 80px !important;
  }

  /* Reduce all page main headers / title font sizes on mobile */
  .about-header h1,
  .services-header h1,
  .work-header h1,
  .contact-header h1,
  .blog-header h1,
  .faq-header h1,
  .clients-hero h1,
  .post-header h1 {
    font-size: 2.2rem !important;
  }

  /* Reduce all general section headers and service/case titles on mobile */
  .section-header h2,
  .section-title,
  .case-details h2,
  .service-content h2,
  .discover-quote h2,
  .promise-title {
    font-size: 2.1rem !important;
  }

  /* Reduce hero content titles on mobile */
  .hero-text {
    font-size: 2.3rem !important;
  }
}


