/* Apartments Dupin - 2026 Design Refresh */

:root {
  --clr-primary: #0c4a6e;
  --clr-primary-light: #0e7490;
  --clr-accent: #14b8a6;
  --clr-dark: #1e293b;
  --clr-darker: #0f172a;
  --clr-light: #f0fdfa;
  --clr-text: #334155;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--clr-text);
  -webkit-font-smoothing: antialiased;
}

#mainNav {
  background: var(--clr-dark) !important;
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
#mainNav.navbar-shrink {
  background: rgba(15,23,42,0.95) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
#mainNav .navbar-nav li.nav-item a.nav-link {
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem !important;
  border-radius: 2rem;
  transition: all 0.3s ease;
}
#mainNav .navbar-nav li.nav-item a.nav-link:hover {
  color: var(--clr-accent) !important;
  background: rgba(20,184,166,0.1);
}
@media (min-width: 992px) {
  #mainNav .navbar-nav > li.nav-item > a.nav-link.active {
    background: var(--clr-accent) !important;
    color: #fff !important;
  }
}

.masthead {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 50%, var(--clr-accent) 100%) !important;
  position: relative;
  overflow: hidden;
}
.masthead::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 80%; height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.masthead .masthead-avatar {
  width: 18rem;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transition: transform 0.5s ease;
}
.masthead .masthead-avatar:hover { transform: scale(1.05); }
.masthead .masthead-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.masthead .masthead-subheading {
  font-weight: 300;
  letter-spacing: 0.15em;
  opacity: 0.9;
  font-size: 1.3rem !important;
}

.page-section { padding: 7rem 0; }
.page-section-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.divider-custom { margin: 1.5rem 0 2rem; }
.divider-custom .divider-custom-line {
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent) !important;
  height: 2px !important;
  max-width: 8rem;
  border: none !important;
}
.divider-custom.divider-light .divider-custom-line {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent) !important;
}
.divider-custom .divider-custom-icon { color: var(--clr-accent) !important; font-size: 1.5rem; }
.divider-custom.divider-light .divider-custom-icon { color: rgba(255,255,255,0.8) !important; }

.portfolio .portfolio-item {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 28rem;
}
.portfolio .portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.portfolio .portfolio-item .portfolio-item-caption {
  background: linear-gradient(135deg, rgba(12,74,110,0.9), rgba(20,184,166,0.85)) !important;
  transition: all 0.4s ease;
}
.portfolio .portfolio-item img { transition: transform 0.6s ease; }
.portfolio .portfolio-item:hover img { transform: scale(1.08); }

#location { background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%) !important; }
#location .lead { font-size: 1.15rem; line-height: 1.8; font-weight: 300; }
#location iframe { border-radius: 1rem; box-shadow: 0 10px 40px rgba(0,0,0,0.2); margin-top: 1.5rem; }

#reservation { background: var(--clr-light); }
.form-floating input.form-control,
.form-floating textarea.form-control {
  border: none !important;
  border-bottom: 2px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: transparent;
  font-size: 1.1rem !important;
  transition: border-color 0.3s ease;
}
.form-floating input.form-control:focus,
.form-floating textarea.form-control:focus {
  border-bottom-color: var(--clr-accent) !important;
  box-shadow: none !important;
}
.form-floating label { font-size: 1.1rem !important; color: #94a3b8; }

#activities { background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-dark) 100%) !important; }

.btn-primary {
  background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-accent)) !important;
  border: none !important;
  border-radius: 2rem !important;
  padding: 0.75rem 2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14,116,144,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14,116,144,0.4) !important;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-primary-light)) !important;
}
.btn-xl { padding: 1rem 2.5rem !important; font-size: 1.1rem; border-radius: 3rem !important; }

.btn-outline-light.btn-social {
  border-radius: 50%;
  width: 3.5rem; height: 3.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  border-width: 2px;
}
.btn-outline-light.btn-social:hover {
  background: var(--clr-accent) !important;
  border-color: var(--clr-accent) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(20,184,166,0.3);
}

.footer {
  background: var(--clr-dark) !important;
  padding-top: 6rem; padding-bottom: 6rem;
}
.footer h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; letter-spacing: 0.08em;
  font-size: 1rem; margin-bottom: 1.5rem !important;
}
.footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s ease; }
.footer a:hover { color: var(--clr-accent); }
.footer .lead { font-size: 1rem; font-weight: 300; line-height: 1.8; }

.copyright { background: var(--clr-darker) !important; padding: 1.5rem 0; }
.copyright small { font-weight: 300; letter-spacing: 0.05em; opacity: 0.7; }

.portfolio-modal .modal-content { border: none; border-radius: 1.5rem; overflow: hidden; }
.portfolio-modal .modal-body { padding: 2rem; }
.portfolio-modal .portfolio-modal-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; color: var(--clr-primary) !important;
}
.portfolio-modal .btn-close { opacity: 0.5; transition: opacity 0.3s ease; }
.portfolio-modal .btn-close:hover { opacity: 1; }
.portfolio-modal img.img-fluid { border-radius: 1rem; box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.portfolio-modal iframe { border-radius: 1rem; box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

.img-fluid.rounded { border-radius: 1rem !important; }
#location .img-fluid { border-radius: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

#ApartmentLogo {
  
  height: 2.5rem; margin-right: 0.5rem;
  transition: all 0.3s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-section .portfolio-item,
.page-section .col-lg-4,
.page-section .col-lg-8 { animation: fadeInUp 0.6s ease-out both; }
.page-section .col-md-6:nth-child(1) { animation-delay: 0.1s; }
.page-section .col-md-6:nth-child(2) { animation-delay: 0.2s; }
.page-section .col-md-6:nth-child(3) { animation-delay: 0.3s; }
.page-section .col-md-6:nth-child(4) { animation-delay: 0.4s; }
.page-section .col-md-6:nth-child(5) { animation-delay: 0.5s; }
.page-section .col-md-6:nth-child(6) { animation-delay: 0.6s; }

@media (max-width: 767px) {
  .masthead .masthead-avatar { width: 14rem; }
  .masthead .masthead-heading { font-size: 2rem !important; }
  .masthead .masthead-subheading { font-size: 1rem !important; letter-spacing: 0.1em; }
  .page-section { padding: 4rem 0; }
  .footer { padding-top: 3rem; padding-bottom: 3rem; }
}

.navbar.bg-primary { background: var(--clr-dark) !important; }
section.bg-primary { background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%) !important; }
.text-secondary { color: var(--clr-primary) !important; }
::selection { background: var(--clr-accent); color: #fff; }


/* === EXPLORE CARDS === */
#activities .card {
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.04) !important;
}
#activities .card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.1) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}
#activities .card .card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}
#activities .card .card-text {
  font-size: 0.92rem;
  line-height: 1.7;
}
#activities .card i.fa-3x {
  transition: transform 0.3s ease;
}
#activities .card:hover i.fa-3x {
  transform: scale(1.15);
}


/* === MOBILE FIXES === */

/* Responsive iframes */
iframe {
  max-width: 100%;
}
@media (max-width: 767px) {
  iframe {
    height: 280px !important;
  }

  /* Cards spacing on mobile */
  #activities .card .card-body {
    padding: 1.2rem !important;
  }
  #activities .card .card-text {
    font-size: 0.88rem;
  }
  #activities .card i.fa-3x {
    font-size: 2rem !important;
  }

  /* Modal images full width */
  .portfolio-modal .modal-body {
    padding: 1rem;
  }
  .portfolio-modal img.img-fluid {
    margin-bottom: 1.5rem !important;
  }

  /* Footer columns spacing */
  .footer .col-lg-4 {
    margin-bottom: 2rem;
  }

  /* Intro paragraph padding */
  #activities > .container > p {
    padding: 0 1rem;
  }
}

/* Navbar toggler styling */
.navbar-toggler {
  border-color: rgba(255,255,255,0.3) !important;
  background: rgba(255,255,255,0.1) !important;
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(20,184,166,0.4) !important;
}

/* Fix modal scrolling on mobile */
.portfolio-modal .modal-dialog {
  margin: 0.5rem;
}
@media (min-width: 576px) {
  .portfolio-modal .modal-dialog {
    margin: 1.75rem auto;
  }
}


/* === CONTACT CARDS === */
.contact-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  border-color: #14b8a6;
}
.contact-icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e7490, #14b8a6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.contact-card:hover .contact-icon-wrap {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* === SCROLL TO TOP === */
#scrollToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e7490, #14b8a6);
  color: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14,116,144,0.3);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#scrollToTop.visible {
  opacity: 1;
  visibility: visible;
}
#scrollToTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(14,116,144,0.4);
}

/* === HERO CROSSFADE === */
.masthead .container {
  position: relative;
}
.mySlides {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}
.mySlides.active-slide {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* === LOCATION SECTION IMPROVEMENTS === */
#location .lead {
  font-size: 1.15rem;
  line-height: 1.9;
}
#location .row {
  align-items: center;
}

/* === APARTMENTS LABELS === */
#apartments .portfolio-item {
  margin-bottom: 0.5rem;
}
