/* ==========================================================================
   NestWell Developers - Core Stylesheet
   ========================================================================== */

/* 1. Design Tokens & Root Variables */
:root {
  --primary-color: #0F4C81;      /* Deep Navy Blue */
  --secondary-color: #D4AF37;    /* Luxury Gold */
  --secondary-hover: #b8952c;
  --accent-color: #F5F7FA;       /* Light Gray */
  --text-dark: #1F2937;          /* Charcoal Gray */
  --text-muted: #6B7280;
  --bg-white: #FFFFFF;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.35);
  --shadow-premium: 0 20px 40px rgba(15, 76, 129, 0.08);
  --shadow-hover: 0 30px 60px rgba(15, 76, 129, 0.15);
  --border-radius-lg: 16px;
  --border-radius-sm: 8px;
}

/* 2. Global Resets & Scrollbars */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--accent-color);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Text Selection */
::selection {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

/* 3. Helper Classes & Typography */
.text-gold {
  color: var(--secondary-color);
}
.bg-navy {
  background-color: var(--primary-color);
}
.bg-accent {
  background-color: var(--accent-color);
}
.section-padding {
  padding: 100px 0;
}
.section-title {
  position: relative;
  margin-bottom: 50px;
  text-transform: uppercase;
  font-size: 2.25rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
}
.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(15, 76, 129, 0.05);
}

/* 4. Luxury Buttons & CTAs */
.btn-luxury-primary {
  background-color: var(--primary-color);
  color: var(--bg-white) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--primary-color);
  transition: var(--transition-smooth);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.btn-luxury-primary:hover {
  background-color: transparent;
  color: var(--secondary-color) !important;
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15);
}

.btn-luxury-secondary {
  background-color: transparent;
  color: var(--primary-color) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--primary-color);
  transition: var(--transition-smooth);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.btn-luxury-secondary:hover {
  background-color: var(--primary-color);
  color: var(--bg-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 76, 129, 0.15);
}

.btn-luxury-gold {
  background-color: var(--secondary-color);
  color: var(--text-dark) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--secondary-color);
  transition: var(--transition-smooth);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.btn-luxury-gold:hover {
  background-color: var(--primary-color);
  color: var(--bg-white) !important;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* 5. Header & Navigation */
.navbar-custom {
  transition: var(--transition-smooth);
  padding: 20px 0;
  z-index: 1030;
}
.navbar-custom.navbar-scrolled {
  background: rgba(15, 76, 129, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar-custom .navbar-brand {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  transition: var(--transition-smooth);
  color: var(--bg-white) !important;
}
.navbar-custom .navbar-brand span {
  color: var(--secondary-color);
}
.navbar-custom .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 8px 16px !important;
  transition: var(--transition-smooth);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--secondary-color) !important;
}
.navbar-custom .navbar-toggler {
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0;
}
.navbar-custom .navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 24px;
  height: 2px;
  background-color: var(--bg-white);
  display: block;
  transition: var(--transition-smooth);
}
.navbar-custom .navbar-toggler-icon::before,
.navbar-custom .navbar-toggler-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--bg-white);
  left: 0;
  transition: var(--transition-smooth);
}
.navbar-custom .navbar-toggler-icon::before {
  top: -8px;
}
.navbar-custom .navbar-toggler-icon::after {
  top: 8px;
}
.navbar-custom .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-color: transparent;
}
.navbar-custom .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}
.navbar-custom .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* For non-home pages, navbar has a background by default */
body.inner-page .navbar-custom {
  background: var(--primary-color);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 6. Home Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--bg-white);
  padding-top: 100px;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.75) 0%, rgba(15, 76, 129, 0.3) 50%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--bg-white);
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 35px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Hero Search Bar Widget */
.hero-search-wrapper {
  position: relative;
  z-index: 2;
  margin-top: -60px;
}
.search-widget {
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--glass-border);
}
.search-widget .form-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 8px;
}
.search-widget .form-select,
.search-widget .form-control {
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(15, 76, 129, 0.15);
  padding: 12px;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.search-widget .form-select:focus,
.search-widget .form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* 7. Inner Hero / Page Headers */
.page-header {
  position: relative;
  padding: 160px 0 100px;
  background-size: cover;
  background-position: center;
  color: var(--bg-white);
  text-align: center;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(15, 76, 129, 0.9) 0%, rgba(15, 76, 129, 0.6) 100%);
}
.page-header-content {
  position: relative;
  z-index: 2;
}
.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 15px;
}
.breadcrumb-custom {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  gap: 8px;
}
.breadcrumb-custom a {
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb-custom a:hover {
  color: var(--secondary-color);
}
.breadcrumb-custom span {
  color: var(--secondary-color);
}

/* 8. Feature Cards & Services */
.service-card {
  background-color: var(--bg-white);
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--secondary-color);
  transform: scaleX(0);
  transition: var(--transition-smooth);
  transform-origin: left;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(212, 175, 55, 0.2);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(15, 76, 129, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 2rem;
  color: var(--primary-color);
  transition: var(--transition-smooth);
}
.service-card:hover .service-icon {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: rotateY(360deg);
}
.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 15px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* 9. Project Cards */
.project-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(15, 76, 129, 0.05);
  transition: var(--transition-smooth);
  height: 100%;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.project-img-wrapper {
  position: relative;
  overflow: hidden;
  padding-bottom: 65%; /* Aspect Ratio */
}
.project-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.project-card:hover .project-img-wrapper img {
  transform: scale(1.1);
}
.project-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  border: 1px solid var(--secondary-color);
}
.project-details {
  padding: 25px;
}
.project-type {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 5px;
  letter-spacing: 0.05em;
}
.project-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}
.project-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 0;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.project-meta span i {
  color: var(--primary-color);
  margin-right: 5px;
}
.project-price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* 10. Why Choose Us & Statistics */
.stat-box {
  text-align: center;
  padding: 30px 15px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--glass-border);
  height: 100%;
}
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 5px;
  line-height: 1;
}
.stat-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--bg-white);
  letter-spacing: 0.05em;
}

.benefit-item {
  display: flex;
  margin-bottom: 30px;
}
.benefit-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--secondary-color);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 20px;
  transition: var(--transition-smooth);
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.benefit-item:hover .benefit-icon {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}
.benefit-content h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.benefit-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* 11. Testimonials Slider (Scroll snap custom) */
.testimonial-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(15, 76, 129, 0.05);
  position: relative;
}
.testimonial-quote {
  font-size: 1rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
}
.testimonial-quote::before {
  content: '"';
  font-size: 5rem;
  color: rgba(212, 175, 55, 0.15);
  position: absolute;
  left: -20px;
  top: -40px;
  z-index: -1;
  font-family: serif;
}
.testimonial-user {
  display: flex;
  align-items: center;
}
.testimonial-user img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 2px solid var(--secondary-color);
}
.testimonial-user-info h5 {
  font-size: 1rem;
  margin-bottom: 3px;
  color: var(--primary-color);
}
.testimonial-user-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}
.testimonial-rating {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

/* 12. Masonry Gallery */
.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.gallery-tab {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid rgba(15, 76, 129, 0.15);
  background: transparent;
  color: var(--primary-color);
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.gallery-tab:hover,
.gallery-tab.active {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border-color: var(--primary-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-auto-rows: 240px;
  grid-gap: 24px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}
.gallery-item.tall {
  grid-row: span 2;
}
.gallery-item.wide {
  grid-column: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 76, 129, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-smooth);
  padding: 20px;
  text-align: center;
  color: var(--bg-white);
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}
.gallery-item-overlay h4 {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.gallery-item-overlay p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Lightbox Dialog */
.lightbox-dialog {
  border: none;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  outline: none;
}
.lightbox-dialog::backdrop {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}
.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--secondary-color);
}
.lightbox-caption {
  font-family: 'Montserrat', sans-serif;
  color: var(--bg-white);
  margin-top: 15px;
  font-size: 1.1rem;
  text-align: center;
  background: rgba(0,0,0,0.6);
  padding: 8px 20px;
  border-radius: 20px;
}
.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--bg-white);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.lightbox-close:hover {
  color: var(--secondary-color);
  transform: rotate(90deg);
}

/* 13. Blog Section */
.blog-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(15, 76, 129, 0.05);
  transition: var(--transition-smooth);
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.blog-img-wrapper {
  position: relative;
  overflow: hidden;
  padding-bottom: 60%;
}
.blog-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.blog-card:hover .blog-img-wrapper img {
  transform: scale(1.1);
}
.blog-card-content {
  padding: 25px;
}
.blog-category {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 10px;
  display: inline-block;
}
.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}
.blog-card h3 a:hover {
  color: var(--secondary-color);
}
.blog-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 15px;
}

/* 14. Interactive Timeline (About page) */
.timeline-container {
  position: relative;
  padding: 50px 0;
}
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: rgba(15, 76, 129, 0.15);
}
.timeline-row {
  display: flex;
  margin-bottom: 60px;
  position: relative;
}
.timeline-row:last-child {
  margin-bottom: 0;
}
.timeline-col {
  width: 50%;
  padding: 0 40px;
  position: relative;
}
.timeline-row:nth-child(even) {
  flex-direction: row-reverse;
}
.timeline-node {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
  z-index: 5;
}
.timeline-card {
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(15, 76, 129, 0.05);
}
.timeline-year {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 10px;
  display: block;
}
.timeline-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}
.timeline-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* 15. Accordion Styles (FAQs) */
.faq-accordion .accordion-item {
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: var(--border-radius-lg) !important;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15, 76, 129, 0.02);
  background-color: var(--bg-white);
}
.faq-accordion .accordion-button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--primary-color);
  padding: 20px 25px;
  font-size: 1.05rem;
  background-color: var(--bg-white);
  box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(15, 76, 129, 0.02);
  color: var(--primary-color);
  border-bottom: 1px solid rgba(15, 76, 129, 0.05);
}
.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230F4C81'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23D4AF37'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq-accordion .accordion-body {
  padding: 25px;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 16. Forms Layout */
.contact-form-card {
  padding: 45px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
  background-color: var(--bg-white);
  border: 1px solid rgba(15, 76, 129, 0.05);
}
.floating-label-group {
  position: relative;
  margin-bottom: 25px;
}
.floating-label-group input,
.floating-label-group textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(15, 76, 129, 0.15);
  border-radius: var(--border-radius-sm);
  outline: none;
  font-size: 0.95rem;
  background-color: transparent;
  transition: var(--transition-smooth);
  color: var(--text-dark);
}
.floating-label-group textarea {
  min-height: 150px;
}
.floating-label-group label {
  position: absolute;
  left: 16px;
  top: 16px;
  pointer-events: none;
  transition: var(--transition-smooth);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.floating-label-group input:focus ~ label,
.floating-label-group input:not(:placeholder-shown) ~ label,
.floating-label-group textarea:focus ~ label,
.floating-label-group textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  left: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--bg-white);
  padding: 0 6px;
}
.floating-label-group input:focus,
.floating-label-group textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.invalid-feedback-custom {
  color: #dc3545;
  font-size: 0.75rem;
  margin-top: 4px;
  display: none;
}
.is-invalid .invalid-feedback-custom {
  display: block;
}
.is-invalid input,
.is-invalid textarea {
  border-color: #dc3545 !important;
}

/* Map Mock */
.map-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(15, 76, 129, 0.05);
  height: 450px;
}

/* 17. Floating Controls & Call to Actions */
.floating-btn-group {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.floating-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--bg-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}
.floating-btn:hover {
  transform: scale(1.1) translateY(-3px);
}
.btn-whatsapp {
  background-color: #25D366;
}
.btn-whatsapp:hover {
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}
.btn-phone {
  background-color: var(--primary-color);
  border: 1px solid var(--secondary-color);
}
.btn-phone:hover {
  box-shadow: 0 8px 24px rgba(15, 76, 129, 0.4);
  color: var(--secondary-color);
}
.btn-scrolltop {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}
.btn-scrolltop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.btn-scrolltop:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* 18. Footer Styles */
.footer-custom {
  background-color: #0b375d;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
  border-top: 5px solid var(--secondary-color);
}
.footer-logo {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--bg-white);
  margin-bottom: 20px;
  display: inline-block;
}
.footer-logo span {
  color: var(--secondary-color);
}
.footer-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bg-white);
  margin-bottom: 25px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  transition: var(--transition-smooth);
}
.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}
.footer-contact-info li {
  display: flex;
  margin-bottom: 15px;
  font-size: 0.9rem;
}
.footer-contact-info i {
  color: var(--secondary-color);
  margin-right: 12px;
  font-size: 1.1rem;
  margin-top: 3px;
}
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-icon:hover {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  margin-top: 60px;
  font-size: 0.85rem;
}
.footer-bottom-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}
.footer-bottom-links a:hover {
  color: var(--secondary-color);
}

/* 19. Custom Page Animations (Subtle Reveals) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Pulse animation for CTA highlights */
@keyframes pulseGold {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}
.pulse-highlight {
  animation: pulseGold 2s infinite;
}

/* 20. Team Cards */
.team-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(15, 76, 129, 0.05);
  transition: var(--transition-smooth);
  text-align: center;
  height: 100%;
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.team-img-wrapper {
  position: relative;
  overflow: hidden;
  padding-bottom: 100%; /* Square */
}
.team-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.team-card:hover .team-img-wrapper img {
  transform: scale(1.05);
}
.team-info {
  padding: 25px;
}
.team-name {
  font-size: 1.25rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}
.team-role {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}
.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.team-social-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: rgba(15, 76, 129, 0.05);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}
.team-social-icon:hover {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

/* Beautiful Loading Spinner Overlay */
#loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loading-spinner.fade-out {
  opacity: 0;
  visibility: hidden;
}
.spinner-luxury {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--secondary-color);
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
