/* ══════════════════════════════════════════
   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::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-enquire {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: #39384c;
  padding: 0.5rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.25s;
}
.avira-snav-enquire:hover {
  background: #2a2938;
}

@media (max-width: 768px) {
  .avira-snav-inner {
    padding: 0 1rem;
    height: 46px;
  }
  .avira-snav-links {
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .avira-snav-link {
    font-size: 0.6rem;
    white-space: nowrap;
  }
  .avira-snav-enquire {
    font-size: 0.65rem;
    padding: 0.4rem 1.2rem;
    flex-shrink: 0;
  }
}

/* ── 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: #c9a96e;
  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(30,27,45,0.92) 0%, rgba(54,51,70,0.88) 50%, rgba(40,36,55,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, #c9a96e, 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: #c9a96e;
  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: #c9a96e;
}
.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: #1e1b2d;
  background: linear-gradient(135deg, #c9a96e, #e0c78f);
  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);
  box-shadow: 0 8px 30px rgba(201,169,110,0.35);
}

@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: #363346;
}
.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 #c9a96e;
}
.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: #c9a96e;
}

/* ── 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 + Image Clarity Improvements ── */
#av-floorplans .av-gallery-responsive img,
#av-floorplans .av-floorplan-block img {
  object-fit: contain !important;
  background: #ffffff;
}

.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;
  }
}

@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;
  }
}
