@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&family=Playfair+Display:ital,wght@0,400..700;1,400..700&display=swap');
@import "tailwindcss";

@font-face {
  font-family: "Season VF";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: local("Season VF"), local("SeasonVF"), local("Season"), local("Season-VF"), local("Season Variable"), local("Season Regular");
}

@font-face {
  font-family: "Season VF";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: local("Season VF Italic"), local("SeasonVF-Italic"), local("Season-Italic"), local("Season-VF-Italic");
}

:root {
  --serif: "Season VF", "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --sans: "Merriweather Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: var(--serif);
  --font-sans: var(--sans);
  --dark: #141210;
  --dark-sub: #4a453e;
  --gold-accent: #f4f0e5;
  --cream-footer: #f3efe6;
  --border-light: #e6dfd5;
}

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

html, body {
  background-color: #f4f0e5;
  color: var(--dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

.avira-site {
  width: 100%;
  overflow-x: hidden;
  background-color: #f4f0e5;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* background-color: #0b0c0e; */
  
  color: #f4f0e5;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
    background-image: url("https://duville.s3.ap-southeast-2.amazonaws.com/assets/images/banner/avira-banner3-desktop.avif");
  background-position: center 35%;
  z-index: 1;
  transform: scale(1.02);
  transition: transform 1.2s ease-out;
}

.hero-scrim {
  position: absolute;
  inset: 0;
   background: linear-gradient(
    /* to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.30) 40%,
    rgba(0, 0, 0, 0.90) 100%
     */

     to bottom,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.30) 60%,
    rgba(0, 0, 0, 0.90) 100%
  );

  z-index: 2;
  pointer-events: none;
}

/* TOP NAVIGATION */
.hero-nav {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-nav-container {
  max-width: 1460px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img-white {
  width: 135px;
  height: auto;
  filter: brightness(1.2) contrast(1.1);
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: #f4f0e5;
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.4px;
  opacity: 0.92;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-quick-connect {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #f4f0e5;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-quick-connect:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #f4f0e5;
}

/* MOBILE QUICK CONNECT BUTTON */
.btn-quick-connect.mobile-quick-btn {
  display: none;
}

/* HERO LEFT CONTENT */
.hero-content-container {
  position: relative;
  z-index: 10;
  max-width: 1460px;
  width: 100%;
  margin: auto auto 80px auto;
  padding: 0 32px;
  display: flex;
  justify-content: flex-start;
}

.hero-text-wrap {
  max-width: 600px;
}

.gold-accent-line {
  width: 42px;
  height: 2px;
  background: var(--gold-accent);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.8vw, 4.4rem);
  font-weight: 400;
  line-height: 1.1;
  color: #f4f0e5;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-subtext {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 34px;
  max-width: 480px;
}

.btn-outline-hero {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #f4f0e5;
  padding: 10px 28px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.btn-outline-hero:hover {
  background: #ffffff;
  color: var(--dark);
}

/* ==========================================================================
   2. SECTION 2: WHAT SETS AVIRA APART?
   ========================================================================== */
.apart-section {
  background-color: #f4f0e5;
  padding: 80px 0;
  border-bottom: 1px solid var(--border-light);
}

.apart-container {
  max-width: 1460px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

.apart-heading {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.2vw, 2.75rem);
  font-weight: 400;
  text-align: center;
  color: var(--dark);
  margin-bottom: 56px;
  letter-spacing: -0.2px;
}

.apart-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apart-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.apart-icon-box {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--gold-accent);
}

.apart-svg {
  width: 46px;
  height: 46px;
  stroke: var(--gold-accent);
}

.apart-item-label {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
  white-space: pre-line;
}

.apart-sep {
  width: 1px;
  height: 60px;
  background-color: #e0d7cb;
  flex-shrink: 0;
}

/* ==========================================================================
   3. SECTION 3: FIND THE HOME THAT FITS YOUR NEEDS
   ========================================================================== */
.residences-section {
  background-color: #f4f0e5;
  padding: 60px 0 80px;
}

.residences-container {
  max-width: 1460px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

.residences-hero-card {
  position: relative;
  width: 100%;
  height: 640px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-image: url("https://d3ui3vcopk68p0.cloudfront.net/avira/apartment/masterBedroom-1.avif");
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  
}

.residences-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 12, 10, 0.95) 0%,
    rgba(14, 12, 10, 0.7) 35%,
    rgba(14, 12, 10, 0.2) 70%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.residences-bottom-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 36px 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.find-home-wrap {
  flex-shrink: 0;
}

.find-home-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: #f4f0e5;
  letter-spacing: -0.3px;
}

.residences-cards-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.residence-glass-card {
  background: rgba(18, 16, 14, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(198, 168, 125, 0.42);
  border-radius: 5px;
  padding: 18px 10px;
  width: 195px;
  min-height: 135px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
}

.residence-glass-card:hover,
.residence-glass-card.active {
  background: rgba(26, 23, 20, 0.92);
  border-color: var(--gold-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.residence-card-name {
  font-size: 0.98rem;
  font-weight: 600;
  color: #f4f0e5;
  margin-bottom: 4px;
}

.residence-card-specs {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.4px;
  margin-bottom: 16px;
}

.btn-explore-plans {
  align-self: flex-start;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #f4f0e5;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-explore-plans:hover {
  background: #ffffff;
  color: var(--dark);
  border-color: #f4f0e5;
}

/* ==========================================================================
   4. SECTION 4: AMENITIES ACROSS THREE LEVELS
   ========================================================================== */
.amenities-level-section {
  background-color: #f4f0e5;
  padding: 70px 0 90px;
}

.amenities-level-container {
  max-width: 1460px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

.amenities-level-heading {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.2vw, 2.75rem);
  font-weight: 400;
  text-align: center;
  color: var(--dark);
  margin-bottom: 64px;
  letter-spacing: -0.2px;
}

.amenities-blocks-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.amenity-level-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.amenity-level-block.reverse {
  flex-direction: row-reverse;
}

.amenity-level-visual {
  flex: 1.6;
  height: 440px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.amenity-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
}

.amenity-photo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.04);
  pointer-events: none;
}

.amenity-photo-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.amenity-slider-overlay-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 13, 11, 0.6) 0%,
    rgba(14, 13, 11, 0.05) 45%,
    transparent 100%
  );
  pointer-events: none;
}

.amenity-slider-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 17, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 5;
}

.amenity-arrow-btn {
  background: transparent;
  border: none;
  color: #f4f0e5;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.amenity-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.amenity-slide-counter {
  font-size: 0.78rem;
  letter-spacing: 1px;
  font-weight: 600;
  color: #f4f0e5;
  user-select: none;
}

.amenity-dots-row {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.amenity-dot {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
  padding: 0;
}

.amenity-dot.active {
  background: #ffffff;
  width: 36px;
}

.amenity-level-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.level-badge {
  font-family: var(--serif);
  font-size: clamp(2rem, 2.8vw, 2.5rem);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.level-dynamic-content {
  animation: fadeInAmenityText 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInAmenityText {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.level-feature-name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--dark);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.level-feature-desc {
  font-size: 0.95rem;
  color: var(--dark-sub);
  line-height: 1.6;
}

.level-dynamic-content {
  animation: slideUpFade 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   5. SECTION 5: YOUR AVIRA EXPERIENCE STARTS HERE
   ========================================================================== */
.experience-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 0;
  color: #f4f0e5;
  overflow: hidden;
  /* background-color: #0b0e10; */
}

.experience-bg {
  position: absolute;
  inset: -20px;
  background-image: url("https://d3ui3vcopk68p0.cloudfront.net/avira/amenities/LesiurePool-1.avif");
  background-size: cover;
  background-position: center;
  filter: blur(6px);
  z-index: 1;
}

.experience-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 12, 14, 0.72) 0%,
    rgba(8, 12, 14, 0.82) 50%,
    rgba(8, 12, 14, 0.90) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.experience-container {
  position: relative;
  z-index: 10;
  max-width: 1460px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: center;
}

.experience-content-box {
  max-width: 580px;
  width: 100%;
  text-align: center;
}

.experience-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  font-weight: 400;
  color: #f4f0e5;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.experience-subtitle {
  font-size: 0.96rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

.experience-feedback {
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.experience-form {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
}

/* .underlined-input-wrap {
  position: relative;
  margin-bottom: 30px;
  text-align: left;
}

.underlined-input-wrap input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 0.96rem;
  color: #f4f0e5;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.underlined-input-wrap input:focus {
  border-bottom-color: #f4f0e5;
}

.underlined-input-wrap label {
  position: absolute;
  top: 10px;
  left: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  transition: 0.2s ease all;
}

.underlined-input-wrap input:focus ~ label,
.underlined-input-wrap input:not(:placeholder-shown) ~ label {
  top: -14px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.85);
} */
 .underlined-input-wrap {
  position: relative;
  margin-bottom: 28px;
  text-align: left;
}

.underlined-input-wrap input,
.underlined-input-wrap select {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 0.96rem;
  color: #ffffff;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.underlined-input-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

.underlined-input-wrap select option {
  background-color: #141311;
  color: #ffffff;
  padding: 10px 14px;
  font-size: 0.92rem;
}

.underlined-input-wrap input:focus,
.underlined-input-wrap select:focus {
  border-bottom-color: #ffffff;
}

.underlined-input-wrap label {
  position: absolute;
  top: 10px;
  left: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  transition: 0.2s ease all;
}

.underlined-input-wrap input:focus ~ label,
.underlined-input-wrap input:not(:placeholder-shown) ~ label,
.underlined-input-wrap select:focus ~ label,
.underlined-input-wrap select.has-val ~ label {
  top: -14px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.85);
}

.experience-consent-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 36px;
  cursor: pointer;
  user-select: none;
}

.experience-consent-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold-accent);
  cursor: pointer;
}

.btn-connect-with-us {
  align-self: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #f4f0e5;
  padding: 12px 36px;
  font-size: 0.82rem;
  letter-spacing: 2px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.btn-connect-with-us:hover:not(:disabled) {
  background: #ffffff;
  color: var(--dark);
}

.btn-connect-with-us:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  position: relative;
  background: #ffffff;
  color: var(--dark);
  max-width: 480px;
  width: 100%;
  padding: 36px 32px 32px;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--dark);
  cursor: pointer;
  line-height: 1;
}

.modal-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 0.88rem;
  color: var(--dark-sub);
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-unit-tag {
  display: inline-block;
  background: #f4efe6;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 2px;
  margin-bottom: 18px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dcd5ca;
  background: #faf8f5;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--dark);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease;
}

.modal-input:focus {
  border-color: var(--dark);
  background: #ffffff;
}

.privacy-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--dark-sub);
  cursor: pointer;
}

.btn-modal-submit {
  background: var(--dark);
  color: #f4f0e5;
  border: none;
  padding: 12px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s ease;
  margin-top: 6px;
}

.btn-modal-submit:hover:not(:disabled) {
  background: #2b2723;
}

.btn-modal-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-download-box {
  background: #faf8f5;
  border: 1px solid #e2dad0;
  padding: 16px;
  border-radius: 3px;
  margin-top: 18px;
}

.modal-download-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark-sub);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.download-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--dark);
  color: var(--dark);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.download-pill-item:hover {
  background: var(--dark);
  color: #f4f0e5;
}

.modal-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 16px;
  border-radius: 3px;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}

/* ==========================================================================
   SCROLL REVEAL & SLIDE-UP ANIMATIONS (PREMIUM LUXURY TRANSITIONS)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Image reveal with subtle scale settle */
.reveal-img {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-img.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hero Entrance Animations */
@keyframes heroSlideUp {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate-1 {
  animation: heroSlideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-animate-2 {
  animation: heroSlideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero-animate-3 {
  animation: heroSlideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-animate-4 {
  animation: heroSlideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE STYLES (ALL SCREEN SIZES)
   ========================================================================== */

/* Large Tablets & Small Laptops (1025px - 1280px) */
@media (max-width: 1280px) {
  .hero-nav-container,
  .hero-content-container,
  .apart-container,
  .residences-container,
  .amenities-level-container,
  .experience-container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .residence-glass-card {
    width: 175px;
    padding: 16px 14px;
  }
}

/* Tablets Landscape & Portrait (769px - 1024px) */
@media (max-width: 1024px) {
  .apart-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 24px;
  }

  .apart-item {
    flex: 1 1 calc(33.333% - 24px);
    max-width: 280px;
  }

  .apart-sep {
    display: none;
  }

  .residences-bottom-content {
    position: relative;
    padding: 32px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .find-home-wrap {
    width: 100%;
  }

  .residences-cards-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .residence-glass-card {
    width: 100%;
    min-height: 125px;
  }

  .amenity-level-block,
  .amenity-level-block.reverse {
    flex-direction: column !important;
    gap: 36px;
  }

  .amenity-level-visual {
    flex: none;
    width: 100%;
    height: 380px;
    min-width: 0;
    position: relative;
  }

  .amenity-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
  }

  .amenity-photo-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


}

/* Mobile Devices & Small Tablets (481px - 768px) */
@media (max-width: 768px) {
  .hero-nav-container,
  .hero-content-container,
  .apart-container,
  .residences-container,
  .amenities-level-container,
  .experience-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-section {
    min-height: 92vh;
  }

  .hero-nav-container {
    padding: 18px 20px;
  }

  .logo-img-white {
    width: 120px;
  }

  .nav-links {
    display: none;
  }

  .btn-quick-connect.mobile-quick-btn {
    display: block;
    padding: 9px 12px;
    font-size: 0.72rem;
  }

  .hero-content-container {
    margin-bottom: 50px;
  }

  .hero-headline {
    font-size: clamp(2.1rem, 7.5vw, 2.85rem);
    margin-bottom: 16px;
  }

  .hero-subtext {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 28px;
  }

  .btn-outline-hero {
    padding: 10px 24px;
    font-size: 0.75rem;
  }

  .apart-section {
    padding: 56px 0;
  }

  .apart-heading {
    font-size: clamp(1.8rem, 6vw, 2.3rem);
    margin-bottom: 40px;
  }

  .apart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }

  .apart-item {
    flex: none;
    max-width: none;
    width: 100%;
  }

  .apart-item:last-child {
    grid-column: span 2;
  }

  .apart-icon-box {
    width: 52px;
    height: 52px;
  }

  .apart-item-label {
    font-size: 0.78rem;
  }

  .residences-section {
    padding: 56px 0;
  }

  .residences-hero-card {
    height: auto;
    min-height: 540px;
    border-radius: 3px;
    
  }

  .residences-bottom-content {
    padding: 24px 18px;
    gap: 20px;
  }

  .find-home-title {
    font-size: clamp(1.8rem, 5.5vw, 2.25rem);
  }

  .residences-cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .residence-glass-card {
    padding: 14px 14px;
    min-height: 120px;
  }

  .residence-card-name {
    font-size: 0.9rem;
  }

  .residence-card-specs {
    font-size: 0.68rem;
    margin-bottom: 10px;
  }

  .btn-explore-plans {
    padding: 6px 10px;
    font-size: 0.62rem;
    letter-spacing: 0.6px;
  }
 .amenities-level-section {
    padding: 56px 0 72px;
  }

  .amenities-level-heading {
    font-size: clamp(1.85rem, 6vw, 2.35rem);
    margin-bottom: 40px;
  }

  .amenities-blocks-list {
    gap: 48px;
  }

  .amenity-level-block,
  .amenity-level-block.reverse {
    flex-direction: column !important;
    gap: 24px;
  }

  .amenity-level-visual {
    width: 100%;
    height: 290px;
    min-height: 290px;
    flex: none;
  }

  .amenity-slider-container {
    width: 100%;
    height: 100%;
    min-height: 290px;
  }

  .amenity-photo-slide {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .amenity-slider-controls {
    bottom: 12px;
    right: 12px;
    padding: 4px 10px;
  }

  .amenity-arrow-btn {
    width: 26px;
    height: 26px;
  }

  .amenity-slide-counter {
    font-size: 0.75rem;
  }

  .amenity-dots-row {
    bottom: 16px;
    left: 14px;
    gap: 6px;
  }

  .amenity-dot {
    width: 16px;
    height: 3px;
  }

  .amenity-dot.active {
    width: 24px;
  }

  .level-badge {
    font-size: 1.85rem;
    margin-bottom: 8px;
  }

  .level-feature-name {
    font-size: 1.15rem;
  }

  .level-feature-desc {
    font-size: 0.88rem;
  }

  .experience-section {
    padding: 60px 0;
    min-height: auto;
  }

  .experience-title {
    font-size: clamp(1.9rem, 6vw, 2.5rem);
    margin-bottom: 12px;
  }

  .experience-subtitle {
    font-size: 0.85rem;
    margin-bottom: 36px;
  }

  .experience-inputs-row {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
  }

  .experience-consent-label {
    align-items: flex-start;
    text-align: left;
    font-size: 0.76rem;
    line-height: 1.45;
    margin-bottom: 28px;
  }

  .btn-connect-with-us {
    width: 100%;
    padding: 14px 24px;
    font-size: 0.85rem;
  }

  .modal-box {
    width: 92%;
    max-width: 420px;
    padding: 24px 20px;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-sub {
    font-size: 0.84rem;
  }
}

/* Extra Small Phones (320px - 480px) */
@media (max-width: 480px) {
  .hero-nav-container,
  .hero-content-container,
  .apart-container,
  .residences-container,
  .amenities-level-container,
  .experience-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-nav-container {
    padding: 16px;
  }

  .logo-img-white {
    width: 105px;
  }

  .hero-headline {
    font-size: 1.85rem;
    line-height: 1.15;
  }

  .hero-subtext {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .apart-heading {
    font-size: 1.7rem;
    margin-bottom: 32px;
  }

  .apart-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }

  .apart-icon-box {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
  }

  .apart-item-label {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .find-home-title {
    font-size: 1.65rem;
  }

  .residences-cards-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .residence-glass-card {
    padding: 12px 14px;
    min-height: auto;
  }

   .amenity-level-visual {
    width: 100%;
    height: 230px;
    min-height: 230px;
    flex: none;
  }

  .amenity-slider-container {
    min-height: 230px;
  }

  .level-badge {
    font-size: 1.65rem;
  }

  .level-feature-name {
    font-size: 1.05rem;
  }

  .level-feature-desc {
    font-size: 0.84rem;
  }

  .experience-title {
    font-size: 1.75rem;
  }

  .modal-box {
    padding: 20px 16px;
  }

  .modal-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 1440px) {
  .hero-bg {
    background-image: url("https://duville.s3.ap-southeast-2.amazonaws.com/assets/images/banner/avira-banner3-laptop.avif");
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-bg {
    background-image: url("../images/banner-mobile.avif");
  }


  .hero-scrim {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.2) 20%,
      rgba(0, 0, 0, 0.4) 60%,
      rgba(0, 0, 0, 0.85) 80%,
      rgba(0, 0, 0, 0.99) 100%
    );
  }
}
select.modal-input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

select.modal-input:invalid,
select.modal-input option[value=""] {
  color: #888888;
}

select.modal-input option {
  color: #1c1a17;
  background: #ffffff;
}