/* ══════════════════════════════════════════
   AVIRA PROJECT PAGE — Redesigned Theme
   ══════════════════════════════════════════ */

/* ── Hero ── */
.avira-hero {
  min-height: 85vh;
  height: 85vh;
}
.avira-hero .detail-hero-gradient {
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.1) 100%);
}
.avira-hero-inner {
  padding: 0 4rem 2rem;
}
.avira-hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  line-height: 1.15;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.avira-hero-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.5rem;
}
.avira-hero-name {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
}
.avira-hero-divider {
  width: 1px;
  height: 2rem;
  background: rgba(255,255,255,0.35);
}
.avira-hero-location {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.avira-hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
  .avira-hero-inner {
    padding: 0 1.5rem 1rem;
  }
  .avira-hero-meta {
    gap: 0.75rem;
  }
  .avira-hero-divider {
    height: 1.5rem;
  }
}

/* ── Sticky Section Nav ── */
.avira-section-nav {
  position: fixed;
  top: -60px;
  left: 0;
  right: 0;
  z-index: 49;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  transition: top 0.35s ease;
}
.avira-section-nav.visible {
  top: 5rem;
}
.avira-snav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 52px;
}
.avira-snav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.avira-snav-link {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c5c6d;
  text-decoration: none;
  padding: 1rem 0;
  position: relative;
  transition: color 0.25s;
}
.avira-snav-link:hover {
  color: #363346;
}
.avira-snav-link.active {
  color: #363346;
  font-weight: 700;
}
.avira-snav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #363346;
  transform: scaleX(0);
  transition: transform 0.25s;
}
.avira-snav-link:hover::after {
  transform: scaleX(1);
}
.avira-snav-link.active::after {
  transform: scaleX(1);
}
.avira-snav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.avira-snav-brochure {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0e3a2f;
  background: transparent;
  border: 1.5px solid #0e3a2f;
  padding: 0.45rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.avira-snav-brochure:hover {
  background: #0e3a2f;
  color: #fff;
}
.avira-snav-enquire {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: #0e3a2f;
  padding: 0.5rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s;
}
.avira-snav-enquire:hover {
  background: #0b2f27;
}

/* Keep section headings visible below fixed main + section nav */
#av-overview,
#av-lifestyle,
#av-highlights,
#av-neighbourhood,
#av-design,
#av-plans,
#av-specs,
#av-faq,
#cr-overview,
#cr-lifestyle,
#cr-highlights,
#cr-design,
#cr-plans,
#cr-gallery {
  scroll-margin-top: calc(5rem + 52px + 1.5rem);
}

@media (max-width: 768px) {
  #av-overview,
  #av-lifestyle,
  #av-highlights,
  #av-neighbourhood,
  #av-design,
  #av-plans,
  #av-specs,
  #av-faq,
  #cr-overview,
  #cr-lifestyle,
  #cr-highlights,
  #cr-design,
  #cr-plans,
  #cr-gallery {
    scroll-margin-top: calc(4.5rem + 46px + 1rem);
  }
}

/* ── Developer Story ── */
.av-developer-section {
  padding: 5rem 2rem;
  background: #fafaf9;
}
.av-developer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
}
.av-developer-trust-line {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0e3a2f;
  margin-bottom: 1rem;
}
.av-developer-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: #363346;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.av-developer-subheading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: #363346;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.av-developer-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #5c5c6d;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.av-developer-text:last-child {
  margin-bottom: 0;
}

/* ── Project Highlights ── */
.av-highlights-section {
  padding: 5rem 2rem;
  background: #f7f7f7;
}
.av-highlights-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.av-highlights-heading {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 400;
  color: #363346;
  text-align: center;
  margin-bottom: 3rem;
}
.av-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.av-highlight-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.av-highlight-thumb {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
}
.av-highlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.av-highlight-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0ebe3, #faf7f2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #8b7355;
}
.av-highlight-card h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: #363346;
  margin-bottom: 0.5rem;
}
.av-highlight-card p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #888;
  line-height: 1.5;
  margin: 0;
}

.av-features-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.av-feature-item {
  padding: 0.75rem 2rem;
  text-align: center;
}
.av-feature-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.35rem;
}
.av-feature-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  color: #363346;
}
.av-feature-divider {
  width: 1px;
  height: 36px;
  background: #e0e0e0;
}

@media (max-width: 768px) {
  .av-highlights-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .av-features-strip {
    flex-direction: column;
    gap: 0.5rem;
  }
  .av-feature-divider {
    width: 40px;
    height: 1px;
  }
}

/* ── Why AVIRA (Premium) ── */
.avira-why-section {
  position: relative;
  padding: 6rem 2rem;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avira-why-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avira-why-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,58,47,0.92) 0%, rgba(11,47,39,0.9) 50%, rgba(14,58,47,0.92) 100%);
}
.avira-why-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}
.avira-why-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem;
}
.avira-why-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.avira-why-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8fd4b0, transparent);
  margin: 0 auto 2.5rem;
}
.avira-why-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.avira-stat {
  padding: 1rem 2.5rem;
  text-align: center;
}
.avira-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: #8fd4b0;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.avira-stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.avira-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
}
.avira-why-points {
  max-width: 700px;
  margin: 0 auto 2.5rem;
}
.avira-why-points p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin: 0 0 0.75rem;
  position: relative;
  padding-left: 1.25rem;
}
.avira-why-points p::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #8fd4b0;
}
.avira-why-points p:last-child {
  margin-bottom: 0;
}
.avira-why-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: #0e3a2f;
  border: 1.5px solid #8fd4b0;
  padding: 0.85rem 2.8rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.avira-why-cta:hover {
  transform: translateY(-2px);
  background: #0b2f27;
  box-shadow: 0 8px 30px rgba(14,58,47,0.45);
}

@media (max-width: 768px) {
  .avira-why-section {
    padding: 4rem 1.5rem;
  }
  .avira-stat {
    padding: 0.75rem 1.5rem;
  }
  .avira-stat-divider {
    height: 30px;
  }
  .avira-why-points p {
    font-size: 0.88rem;
  }
}
@media (max-width: 500px) {
  .avira-why-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  .avira-stat-divider {
    width: 40px;
    height: 1px;
  }
}

/* ── Floor Plans ── */
.av-floorplan-block {
  margin-bottom: 3rem;
}
.av-floorplan-block:last-child {
  margin-bottom: 0;
}
.av-floorplan-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: #363346;
  margin-bottom: 1rem;
}
.av-floorplan-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.av-floorplan-table thead {
  background: #0e3a2f;
}
.av-floorplan-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.av-floorplan-table td {
  padding: 0.75rem 1rem;
  color: #5c5c6d;
  border-bottom: 1px solid #eee;
}
.av-floorplan-table tbody tr:hover {
  background: #f9f9f9;
}
.av-floor-sep td {
  font-weight: 700;
  color: #363346;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f5f5f5;
  padding: 0.6rem 1rem;
}

@media (max-width: 600px) {
  .av-floorplan-table {
    font-size: 0.8rem;
  }
  .av-floorplan-table th,
  .av-floorplan-table td {
    padding: 0.6rem 0.5rem;
  }
}

/* ── Specifications ── */
.av-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.av-spec-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.av-spec-card h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #363346;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #0e3a2f;
}
.av-spec-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.av-spec-card li {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #5c5c6d;
  line-height: 1.6;
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
}
.av-spec-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0e3a2f;
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid #e4e4e4;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #363346;
  text-align: left;
}
.faq-question:hover {
  color: #7a5c40;
}
.faq-question svg {
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}
.faq-answer p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #5c5c6d;
  line-height: 1.7;
}

/* ── Responsive: 2-column grids → 1 column on mobile ── */
@media (max-width: 768px) {
  .av-lifestyle-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .av-gallery-responsive {
    grid-template-columns: 1fr !important;
  }
}

/* ── AVIRA Mobile + Floor plan image frames (landscape) ── */
.av-floorplan-frame {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f0f0f2;
  width: 100%;
}

.av-floorplan-frame img,
#av-floorplans .av-gallery-responsive img,
#av-floorplans .av-floorplan-block img,
#cr-plans .av-floorplan-block img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
  display: block;
  background: #f0f0f2;
}

/* Overview row: show full landscape renders without heavy crop */
.av-overview-gallery .av-floorplan-frame {
  aspect-ratio: 2 / 1;
}

.av-overview-gallery .av-floorplan-frame img {
  object-fit: contain !important;
  background: #e8ebe6;
}

#av-floorplans .av-gallery-responsive > div,
#cr-plans .av-floorplan-block > .av-floorplan-frame,
#cr-plans .cr-fp-2col > .av-floorplan-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #f0f0f2;
}

.av-floorplan-table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

.av-floorplan-table thead,
.av-floorplan-table tbody,
.av-floorplan-table tr {
  width: 100%;
}

@media (max-width: 992px) {
  .avira-snav-inner {
    padding: 0 1rem;
  }

  .avira-snav-links {
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .avira-snav-links::-webkit-scrollbar {
    display: none;
  }

  .avira-snav-brochure {
    font-size: 0.6rem;
    padding: 0.35rem 0.9rem;
  }

  .avira-snav-enquire {
    font-size: 0.65rem;
    padding: 0.4rem 1.1rem;
  }
}

@media (max-width: 768px) {
  #av-overview,
  #av-lifestyle,
  #av-neighbourhood,
  #av-design,
  #av-plans,
  #av-floorplans,
  #av-specs,
  #av-faq {
    padding: 3.5rem 1rem !important;
  }

  #av-overview h2,
  #av-lifestyle h2,
  #av-neighbourhood h2,
  #av-design h2,
  #av-plans h2,
  #av-floorplans h2,
  #av-specs h2,
  #av-faq h2 {
    font-size: clamp(1.7rem, 7vw, 2.2rem) !important;
    line-height: 1.2 !important;
  }

  #av-neighbourhood img {
    height: auto !important;
    min-height: 240px;
  }

  .av-specs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .av-spec-card {
    padding: 1.25rem;
  }

  .faq-question {
    font-size: 0.92rem;
    gap: 0.75rem;
  }

  .faq-answer p {
    font-size: 0.88rem;
  }
}

@media (max-width: 560px) {
  .avira-snav-enquire {
    display: none;
  }
}

/* ── Floor plan image preview (lightbox) ── */
.av-floorplan-thumb {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.av-floorplan-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(54, 51, 70, 0.12);
}

.av-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(20, 18, 28, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.av-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.av-lightbox-content {
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.av-lightbox-content img {
  max-width: 100%;
  max-height: calc(90vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.av-lightbox-caption {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.av-lightbox-close,
.av-lightbox-prev,
.av-lightbox-next {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.av-lightbox-close:hover,
.av-lightbox-prev:hover,
.av-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.av-lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
}

.av-lightbox-prev,
.av-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
}

.av-lightbox-prev {
  left: 1.25rem;
}

.av-lightbox-next {
  right: 1.25rem;
}

@media (max-width: 768px) {
  .av-lightbox {
    padding: 1rem;
  }

  .av-lightbox-prev {
    left: 0.5rem;
  }

  .av-lightbox-next {
    right: 0.5rem;
  }

  .av-lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
  }
}
