/* ==========================================
   COMPONENTS (Buttons, Cards, Navbar)
   ========================================== */

/* --- Permanent Liquid Glass Navbar --- */
.glass-navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  display: flex;
  gap: 60px;
  align-items: center;
  padding: 10px 30px;
  background: rgba(10, 15, 18, 0.5);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  z-index: 10000 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}

.nav-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: var(--font-main);
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
  opacity: 0.8;
  white-space: nowrap;
  position: relative;
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 50%;
}



.nav-top-row {
  display: contents; /* Makes it transparent to flex on desktop */
}

/* --- Responsive Navigation & Hamburger --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
}


.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  position: relative;
  transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Hamburger Open State - Symmetrical Clean Cross */
.nav-toggle.active .hamburger {
  background-color: transparent !important;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 992px) {
  .glass-navbar {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    right: 20px !important;
    transform: none !important;
    width: auto !important;
    height: 58px !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 24px !important;
    z-index: 10000 !important;
    overflow: visible !important;
    
    /* Remove background, border, and backdrop-filter from main element to prevent containment block snapping */
    background: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Apply the capsule styles to a pseudo-element instead so the main capsule never has containment */
  .glass-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 18, 0.6) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 50px !important;
    z-index: -1;
    transition: background 0.4s ease, border-color 0.4s ease !important;
  }

  .glass-navbar.menu-active::before {
    background: rgba(10, 15, 18, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
  }

  .nav-top-row {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 38px;
    z-index: 2001;
  }

  .nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 45px;
    box-sizing: border-box;
    gap: 0;
    height: 100%;
  }

  .nav-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-toggle {
    display: flex;
    order: 2;
    position: absolute;
    right: -10px; /* Align to the capsule curve perfectly taking button padding into account */
    top: 50%;
    transform: translateY(-50%);
    z-index: 2100;
  }

  /* Views-wide translucent sliding menu */
  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: linear-gradient(135deg, rgba(8, 12, 15, 0.72) 0%, rgba(4, 6, 8, 0.8) 100%) !important; /* Premium dark glass gradient */
    backdrop-filter: blur(35px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(35px) saturate(180%) !important;
    z-index: 1500 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding-top: 50px !important;
    box-sizing: border-box;
    
    /* Smooth sliding transition */
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-100%) !important;
    transition: transform 0.7s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.7s ease, visibility 0.7s !important;
  }

  .nav-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  /* Inner wrapper styling */
  .nav-links {
    min-height: 0; 
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu.active .nav-links li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu.active .nav-links li:nth-child(1) { transition-delay: 0.22s; }
  .nav-menu.active .nav-links li:nth-child(2) { transition-delay: 0.3s; }
  .nav-menu.active .nav-links li:nth-child(3) { transition-delay: 0.38s; }
  .nav-menu.active .nav-links li:nth-child(4) { transition-delay: 0.46s; }
  .nav-menu.active .nav-links li:nth-child(5) { transition-delay: 0.54s; }

  .nav-links a {
    color: #ffffff !important;
    font-size: 1.7rem; /* Elegant responsive size */
    font-weight: 700;
    padding: 8px 0;
    opacity: 0.6;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
  }

  /* Premium Sliding Underline Animation */
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px; /* Clear descenders on large mobile font */
    left: 50%;
    width: 0;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links a:hover,
  .nav-links a.active {
    opacity: 1;
  }

  .nav-links a:hover::after,
  .nav-links a.active::after {
    width: 40%;
  }

  .nav-title {
    font-size: 0.95rem;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }
}







/* --- Reusable Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 8px 8px 24px; /* Default for icon buttons */
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-main);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Button Variants */
.btn-pill {
  background-color: #ffffff;
  color: #000000;
}

.btn-dark {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Button with Icon Structure */
.btn-icon .btn-text {
  margin-right: 16px;
}

.btn-circle-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.btn-pill .btn-circle-icon {
  background-color: #000000;
  color: #ffffff;
}

.btn-dark .btn-circle-icon {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Light button on dark background */
.btn-light-on-dark {
  background: #ffffff;
  color: #000000;
}

.btn-circle-dark {
  background: #000000 !important;
  color: #ffffff !important;
}

/* Interaction: Arrow tilt on hover */
.btn:hover .btn-circle-icon {
  transform: translate(3px, -3px);
}


/* --- Cards --- */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}


.card-content {
  padding: 20px;
}

/* ==========================================
   SITE FOOTER - HERITAGE STORY DESIGN
   ========================================== */
.site-footer {
  width: 100%;
  background: linear-gradient(to bottom, #0a0f12 0%, #0d0d0d 100%);
  padding-top: 150px;
  position: relative;
  overflow: hidden;
}

/* God Level Sunset Glow - Matches image warmth */
.site-footer::before {
  content: '';
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.1) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* Footer Intro Content */
.footer-intro {
  text-align: center;
  margin-bottom: 60px;
}

.footer-intro h2 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -0.03em;
}

.footer-intro p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}



/* Link Section - Immersive Overlay */
.footer-links-section {
  padding: 60px 0 0;
  background-color: #0d0d0d;
  position: relative;
  z-index: 4;
}



.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand Styles */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  text-decoration: none;
}

.footer-logo-img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-brand-name {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
}

.footer-brand-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* Social Buttons - Modern Pills */
.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.social-link:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* God-Level Titles */
.footer-col-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 35px;
  position: relative;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 0%, #d4a373 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, #d4a373, transparent);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '→';
  opacity: 0;
  margin-left: -15px;
  transition: all 0.3s ease;
  color: var(--accent-color);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 15px;
}

.footer-links a:hover::before {
  opacity: 1;
  margin-left: 0;
}

/* Contact List */
.footer-contact-list {
  list-style: none;
  padding: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-contact-list svg {
  color: var(--accent-color);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Bottom Bar */
.footer-bottom {
  padding: 35px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 40px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }

}


@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-glass-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px 40px 0 0;
    padding: 60px 0 0;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 15, 18, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--primary-color);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(52, 94, 111, 0.4);
}

.scroll-top-btn:active {
  transform: translateY(0);
}

.scroll-top-btn svg {
  transition: transform 0.3s ease;
}

.scroll-top-btn:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* ==========================================
   FLOATING SOCIAL ICONS
   ========================================== */
.floating-socials {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
  transition: all 0.3s ease;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.floating-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.floating-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.floating-btn:hover::before {
  opacity: 1;
}

.floating-btn.whatsapp {
  background: #25D366;
}

.floating-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

@media (max-width: 600px) {
  .floating-socials {
    bottom: 20px;
    left: 20px;
  }
  .floating-btn {
    width: 44px;
    height: 44px;
  }
  .floating-btn svg {
    width: 20px;
    height: 20px;
  }
}
