/* ============================================================
   ARCOE RESIDENCES — PREMIUM CSS (OPTIMIZED & IMPROVED)
   ============================================================ */

:root {
  --c-white:        #ffffff;
  --c-offwhite:     #f8f7f4;
  --c-light:        #f0ede8;
  --c-border:       #e5e0d8;
  --c-shadow:       rgba(0,0,0,0.07);

  --c-charcoal:     #1c1c1c;
  --c-dark:         #0f1a0a;
  --c-gray:         #6b7280;
  --c-muted:        #9ca3af;

  --font-display:   'Playfair Display', serif;
  --font-body:      'Outfit', sans-serif;

  --c-forest:       #1a3a0f;
  --c-green:        #2d5a1a;
  --c-green-lt:     #3d7524;
  --c-sage:         #7aaa5e;
  --c-mint:         #e8f5e0;
  --c-error:        #dc3545;

  --c-platinum:     #78909c;
  --c-platinum-bg:  #eceff1;
  --c-gold-tier:    #b8860b;
  --c-gold-tier-bg: #fff8e1;
  --c-silver:       #90a4ae;
  --c-silver-bg:    #f0f4f5;

  --radius-lg:      20px;
  --radius-xl:      28px;
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --transition:     all 0.35s var(--ease);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--c-white);
  color: var(--c-charcoal);
  overflow-x: hidden;
  line-height: 1.65;
}
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.section-pad { padding: 100px 0; }

/* ── TYPOGRAPHY ── */
.section-eyebrow {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-green);
  margin-bottom: 12px; display: block;
}
.section-title { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 16px; }
.section-title em { font-style: italic; color: var(--c-forest); }
.section-desc { font-size: 1rem; color: var(--c-gray); max-width: 650px; margin-top: 10px; }
.title-underline { width: 60px; height: 4px; background: linear-gradient(90deg, var(--c-green), var(--c-sage)); border-radius: 4px; margin-top: 20px; margin-bottom: 24px; }

/* ── BUTTONS ── */
.btn-primary-pill {
  background: var(--c-forest); color: #fff; font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 14px 36px;
  border-radius: 50px; border: none; display: inline-block; transition: var(--transition);
  box-shadow: 0 4px 20px rgba(26,58,15,0.2);
}
.btn-primary-pill:hover { background: var(--c-green); transform: translateY(-3px); color: #fff; box-shadow: 0 8px 25px rgba(26,58,15,0.3); }

/* ============================================================
   HERO
============================================================ */
#hero { 
  position: relative; 
  width: 100%; 
  min-height: 100vh; 
  display: flex; 
  align-items: center; 
  background: var(--c-forest); 
  overflow: hidden; 
}
/* Fixed Background Implementation */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/lipa-view.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; padding: 100px 0; }
.hero-overlay { 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(to bottom, rgba(8,22,5,0.7) 0%, rgba(8,22,5,0.3) 50%, rgba(8,22,5,0.7) 100%); 
  z-index: 1; 
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border-radius: 50px; padding: 8px 24px; font-size: 0.72rem; font-weight: 700; color: #fff; text-transform: uppercase; margin-bottom: 24px; border: 1px solid rgba(255,255,255,0.1); }
.live-dot { width: 8px; height: 8px; background: #6ee26e; border-radius: 50%; box-shadow: 0 0 10px #6ee26e; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } 100% { transform: scale(1); opacity: 1; } }
.hero-h1 { font-size: clamp(2.8rem, 7vw, 5rem); color: #fff; margin-bottom: 20px; line-height: 1; }
.hero-h1 em { font-style: italic; color: #b0d98c; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 650px; margin-bottom: 40px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 20px; flex-wrap: wrap; }
.btn-hero-primary { background: #fff; color: var(--c-forest); font-weight: 700; padding: 16px 40px; border-radius: 50px; text-transform: uppercase; font-size: 0.85rem; border: none; transition: var(--transition); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.btn-hero-primary:hover { background: var(--c-mint); transform: translateY(-4px); box-shadow: 0 15px 35px rgba(0,0,0,0.3); }
.btn-hero-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); padding: 14px 38px; border-radius: 50px; text-transform: uppercase; font-size: 0.85rem; transition: var(--transition); }
.btn-hero-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ============================================================
   STATS BAR (REDESIGNED)
============================================================ */
#stats { background: var(--c-offwhite); border-bottom: 1px solid var(--c-border); padding: 80px 0; }
.stat-card-new { 
  background: #fff; 
  padding: 35px 25px; 
  border-radius: 20px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.04); 
  height: 100%; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}
.stat-card-new::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--c-forest), var(--c-sage));
  opacity: 0;
  transition: var(--transition);
}
.stat-card-new:hover { 
  transform: translateY(-10px); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
}
.stat-card-new:hover::before { opacity: 1; }

.stat-icon-wrap { 
  font-size: 2.2rem; 
  color: var(--c-forest); 
  margin-bottom: 20px; 
  background: var(--c-mint);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.stat-card-new:hover .stat-icon-wrap {
  transform: scale(1.1);
  background: var(--c-forest);
  color: #fff;
}

.stat-number { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--c-forest); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; color: var(--c-charcoal); letter-spacing: 0.05em; }
.stat-sub { font-size: 0.8rem; color: var(--c-gray); margin-top: 5px; }

/* ============================================================
   WHY LIPA SECTION
============================================================ */
.advantage-card {
  padding: 50px 40px;
  border-radius: 24px;
  border: 1px solid var(--c-border);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
/* Overlays */
.advantage-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,26,10,0.6), rgba(15,26,10,0.85));
  z-index: -1;
  transition: var(--transition);
}
.advantage-card:hover::after {
  background: linear-gradient(to bottom, rgba(45,90,26,0.7), rgba(15,26,10,0.9));
}
.advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Specific Backgrounds */
.adv-strategic { background-image: url('../images/highway.jpg'); }
.adv-weather   { background-image: url('../images/weather.png'); }
.adv-progressive { background-image: url('../images/buildings.png'); }
.adv-greenery   { background-image: url('../images/greenery.png'); }
.adv-culture    { background-image: url('../images/lomi.png'); }

.advantage-icon {
  width: 54px;
  height: 54px;
  background: var(--c-mint);
  color: var(--c-forest);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.advantage-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}
.advantage-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

/* ============================================================
   VIRTUAL TOUR
============================================================ */
.tour-container { border-radius: 24px; overflow: hidden; background: #000; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.tour-overlay-hint { position: absolute; bottom: 24px; left: 24px; background: rgba(0,0,0,0.7); color: #fff; padding: 10px 20px; border-radius: 50px; font-size: 0.8rem; pointer-events: none; backdrop-filter: blur(8px); display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,0.1); }

/* ============================================================
   REQUIREMENTS
============================================================ */
.req-panel { display: none; }
.req-panel.active { display: block; }

/* ============================================================
   HOUSE MODELS
============================================================ */
.tier-toggle { display: inline-flex; background: #f4f4f2; border-radius: 100px; padding: 8px; gap: 4px; border: 1px solid rgba(0,0,0,0.05); box-shadow: inset 0 2px 6px rgba(0,0,0,0.05); }
.tier-btn { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 14px 32px; border-radius: 100px; border: none; background: transparent; color: var(--c-gray); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); display: flex; align-items: center; gap: 10px; }
.tier-btn.active { background: var(--c-white); color: var(--c-forest); box-shadow: 0 6px 15px rgba(0,0,0,0.1); }
.tier-badge { font-size: 0.7rem; opacity: 0.5; color: var(--c-sage); }

.sub-tabs { display: inline-flex; background: var(--c-white); border: 1px solid var(--c-border); border-radius: 12px; padding: 4px; gap: 4px; }
.sub-tab-btn { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; padding: 10px 24px; border-radius: 10px; border: none; background: transparent; color: var(--c-gray); transition: var(--transition); }
.sub-tab-btn.active { background: var(--c-forest); color: #fff; box-shadow: 0 4px 10px rgba(26,58,15,0.2); }

/* Carousel */
.model-panel { display: none; }
.model-panel.active { display: block; animation: panelFadeIn 0.5s var(--ease); }
@keyframes panelFadeIn { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }

.carousel-wrapper { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 15px 50px rgba(0,0,0,0.2); background: #111; position: relative; }
.carousel-track { aspect-ratio: 4/3; position: relative; overflow: hidden; cursor: grab; }
.carousel-track:active { cursor: grabbing; }
.carousel-slide { position: absolute; inset: 0; display: none; }
.carousel-slide.active { display: block; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.carousel-slide.active img { transform: scale(1); }

.gnav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.95); border: none; color: var(--c-forest); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 10; cursor: pointer; transition: var(--transition); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.gnav:hover { background: var(--c-forest); color: #fff; transform: translateY(-50%) scale(1.1); }
.gnav.prev { left: 18px; }
.gnav.next { right: 18px; }

.gallery-counter { position: absolute; top: 18px; right: 18px; background: rgba(0,0,0,0.6); color: #fff; padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; backdrop-filter: blur(4px); }
.vtour-btn-mini { position: absolute; bottom: 18px; right: 18px; } /* Reused class name but changed positioning if needed */

.gallery-thumbs { display: flex; gap: 10px; margin-top: 15px; }
.gthumb { flex: 1; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; cursor: pointer; border: 3px solid transparent; opacity: 0.6; transition: var(--transition); }
.gthumb.active { border-color: var(--c-forest); opacity: 1; transform: translateY(-2px); }
.gthumb:hover { opacity: 0.9; }

/* Carousel Dots */
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 15px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-border); border: none; transition: var(--transition); padding: 0; }
.dot.active { width: 24px; border-radius: 10px; background: var(--c-forest); }

/* Specs Card */
.specs-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-xl); padding: 45px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); position: relative; overflow: hidden; }
.tier-ribbon { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 6px 20px; border-radius: 50px; margin-bottom: 20px; letter-spacing: 0.05em; }
.platinum-ribbon { background: var(--c-platinum-bg); color: var(--c-platinum); }
.gold-ribbon { background: var(--c-gold-tier-bg); color: var(--c-gold-tier); }
.silver-ribbon { background: var(--c-silver-bg); color: var(--c-silver); }
.specs-title { font-size: 2rem; margin-bottom: 12px; color: var(--c-forest); }
.specs-desc { font-size: 1rem; color: var(--c-gray); margin-bottom: 30px; line-height: 1.6; }
.spec-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #f2f2f2; }
.spec-row:last-child { border-bottom: none; }
.spec-key { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--c-gray); letter-spacing: 0.02em; }
.spec-val { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.spec-note { background: var(--c-mint); border: 1px solid rgba(45,90,26,0.12); border-radius: 16px; padding: 18px 22px; margin-top: 24px; font-size: 0.85rem; color: var(--c-forest); line-height: 1.6; }

/* ============================================================
   REQUIREMENTS
============================================================ */
.req-tabs { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.req-tab-btn { padding: 12px 30px; border-radius: 50px; border: 2px solid var(--c-border); background: #fff; font-weight: 700; font-size: 0.9rem; transition: var(--transition); color: var(--c-gray); }
.req-tab-btn.active { background: var(--c-forest); color: #fff; border-color: transparent; box-shadow: 0 6px 15px rgba(26,58,15,0.25); }
.req-grid { 
  display: flex;
  flex-wrap: wrap;
  gap: 40px; 
  max-width: 1600px; 
  margin: 0 auto;
  width: 100%;
  justify-content: center;
}
.req-group { 
  background: var(--c-white); 
  border-radius: 32px; 
  padding: 70px 50px; 
  border: 1px solid var(--c-border); 
  transition: var(--transition); 
  flex: 1 1 450px; /* Mataba: starts at 450px and grows */
  max-width: 500px; /* Prevents them from being too wide on ultra-wide screens */
  display: flex;
  flex-direction: column;
  align-items: center; /* Centering internal content */
  text-align: center; /* Centering text */
  box-shadow: 0 15px 45px rgba(0,0,0,0.04);
}
.req-group-title { 
  font-size: 1.1rem; 
  font-weight: 800; 
  text-transform: uppercase; 
  color: var(--c-forest); 
  margin-bottom: 25px; 
  border-bottom: 2px solid var(--c-mint); 
  padding-bottom: 15px; 
  display: flex; 
  flex-direction: column; /* Icon above text for more center feel */
  align-items: center; 
  gap: 12px; 
  width: 100%;
}
.req-group-title i { font-size: 2.5rem; margin-bottom: 5px; }

.req-item { 
  font-size: 1.05rem; 
  padding: 12px 0; 
  display: flex; 
  align-items: center; 
  justify-content: center; /* Center items */
  gap: 12px; 
  border-bottom: 1px solid rgba(0,0,0,0.03); 
  width: 100%;
}
.req-item:last-child { border-bottom: none; }
.req-dot { display: none; } /* Removed dots for a cleaner centered look */

/* ============================================================
   FORMS & INPUTS
============================================================ */
.form-card { background: #fff; padding: 50px; border-radius: var(--radius-xl); border: 1px solid var(--c-border); box-shadow: 0 15px 50px rgba(0,0,0,0.05); }
.field-label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--c-gray); margin-bottom: 8px; letter-spacing: 0.05em; }
.field-input { width: 100%; background: var(--c-offwhite); border: 2px solid var(--c-border); border-radius: 14px; padding: 14px 20px; transition: var(--transition); outline: none; font-size: 0.95rem; }
.field-input:focus { border-color: var(--c-forest); background: #fff; box-shadow: 0 0 0 4px rgba(26,58,15,0.1); }
.field-input.is-invalid { border-color: var(--c-error); background: #fff5f5; }
.field-input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220,53,69,0.15); }

.btn-submit { background: var(--c-forest); color: #fff; padding: 16px; border-radius: 14px; border: none; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; transition: var(--transition); position: relative; overflow: hidden; }
.btn-submit:hover:not(:disabled) { background: var(--c-green); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,58,15,0.2); }
.btn-submit:disabled { opacity: 0.8; cursor: not-allowed; }

/* ============================================================
   CONTACT INFO
============================================================ */
.contact-info-card { background: #fff; padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--c-border); box-shadow: 0 15px 50px rgba(0,0,0,0.05); }
.contact-item { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid #f2f2f2; }
.contact-item:last-child { border-bottom: none; }
.contact-icon { width: 48px; height: 48px; background: var(--c-mint); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--c-forest); font-size: 1.2rem; flex-shrink: 0; }
.contact-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--c-gray); }
.contact-value { font-size: 1.1rem; font-weight: 600; color: var(--c-forest); }
.contact-value a:hover { color: var(--c-sage); }

/* ============================================================
   FOOTER
============================================================ */
footer { background: var(--c-charcoal); color: rgba(255,255,255,0.7); padding: 100px 0 50px; position: relative; }
footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--c-forest), var(--c-sage), var(--c-forest)); }
.footer-brand img { height: 70px; width: auto; }
.footer-tagline { font-size: 1.1rem; max-width: 600px; color: rgba(255,255,255,0.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; font-size: 0.85rem; }

/* ============================================================
   FLOATING CONTROLS
============================================================ */
.floating-controls {
  position: fixed; bottom: 40px; right: 40px; z-index: 1000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 20px;
}
.floating-btn {
  width: 68px; height: 68px; background: var(--c-forest);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.8rem; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: var(--transition); border: 2px solid rgba(255,255,255,0.1);
}
.floating-btn:hover { background: var(--c-green); transform: scale(1.1) rotate(5deg); }

#scrollToTop {
  display: none; width: 58px; height: 58px; background: #fff;
  border: 2px solid var(--c-forest); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-forest); font-size: 2.2rem; cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15); transition: var(--transition);
}
#scrollToTop:hover { background: var(--c-forest); color: #fff; transform: translateY(-5px); }

/* ============================================================
   ANIMATIONS & UTILS
============================================================ */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

.gallery-stack-wrapper { display: grid; grid-template-columns: 1fr; position: relative; }
.sub-gallery-container { grid-area: 1 / 1 / 2 / 2; opacity: 0; visibility: hidden; transition: opacity 0.5s ease; }
.sub-gallery-container.active { opacity: 1; visibility: visible; pointer-events: auto; }

.success-icon { font-size: 5rem; animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
@keyframes bounceIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* RESPONSIVE */
@media (max-width: 991px) {
  #hero { min-height: 70vh; }
  .section-pad { padding: 80px 0; }
  .floating-controls { right: 25px; bottom: 25px; }
  .form-card, .specs-card { padding: 35px; }
}
@media (max-width: 767px) {
  .section-pad { padding: 60px 0; }
  .hero-h1 { font-size: 3.2rem; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; text-align: center; }
  .req-grid { grid-template-columns: 1fr; }
  .tier-toggle { flex-wrap: wrap; justify-content: center; }
  .tier-btn { padding: 10px 20px; font-size: 0.75rem; }
}
