/* === RESET & BASE (Unified) === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: #0b0b0c; /* Updated to dark theme */
  color: #f3f4f6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* === TYPOGRAPHY (Unified) === */
h1, h2, h3 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  /* Retain gradient text for all headers, but h2/h3 will be overridden in specific sections */
  background: linear-gradient(90deg, #FFD700, #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
p, a, li, span {
  font-weight: 300;
  line-height: 1.8;
  color: #ccc;
}
.lead {
  font-size: 1.1rem;
  color: #ccc;
}
h2 {
  margin-bottom: 18px;
  font-size: 22px;
  color: #ffd66a;
  text-align: left;
  letter-spacing: 0.6px;
  /* Override gradient for main section titles */
  -webkit-text-fill-color: #ffd66a;
  background: none;
}

/* === UTILITY & ANIMATION === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 44px 0;
}
.fade-in-up {
  animation: fadeUp 0.45s ease both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* === HEADER & NAV (Compact Desktop/Tablet Styles) === */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(8px);
  padding: 0.8rem 0;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Force single line on desktop/tablet */
  flex-wrap: nowrap;
  width: 90%;
  margin: 0 auto;
  padding: 0 1rem; /* Reduced padding for more space */
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  /* Increased logo height for more prominence */
  height: 95px; 
  width: auto;
  margin-right: 12px;
}

.brand-text h1 {
  font-weight: 700;
  /* Increased font size for balance */
  font-size: 1.8rem;
  color: #ffb400;
  -webkit-text-fill-color: #ffb400;
  background: none;
  text-transform: none;
  letter-spacing: 0;
}

.brand-text .staria {
  font-weight: 600;
  color: #ffd700;
}

.brand-text .dot {
  color: #ff8c00;
  font-weight: 800;
}

.brand-text p {
  /* Increased font size for balance */
  font-size: 1.0rem;
  color: #ffcc66;
  letter-spacing: 1px;
  font-weight: 500;
  margin-top: 4px;
}

nav {
  display: flex;
  align-items: center;
  /* Reduced gap for compaction */
  gap: 12px;
  flex-shrink: 0;
  /* Ensure nav items don't wrap */
  flex-wrap: nowrap;
}

nav a {
  color: #f3f3f3;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  /* Reduced padding/font for compaction */
  padding: 8px 12px;
  font-size: 0.9rem;
  white-space: nowrap;
}

nav a:hover, nav a.active {
  color: #ffb400;
}

.calendar-btn, .cta-btn {
  border: none;
  outline: none;
  font-weight: 700;
  /* Reduced padding/font for compaction */
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.calendar-btn, .cta-btn {
  background: linear-gradient(90deg, #ffd700, #ff8c00);
  color: #000;
}

.calendar-btn:hover, .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 180, 0, 0.4);
}

/* === HERO (Generic style for pre-selling.html/tanza.html) === */
.hero {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
              url('https://images.unsplash.com/photo-1560184897-67f4b0c0f5d8?q=80&w=1500') center/cover no-repeat;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
/* Re-added search styles for pre-selling pages */
.search input, .search select, .search button {
  padding: 10px;
  margin: 5px;
  border: none;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}
.search button {
  background: linear-gradient(90deg, #FFD700, #FF8C00);
  color: black;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.search button:hover {
  background: linear-gradient(90deg, #FFB700, #FF6A00);
  color: #fff;
}


/* === PROPERTY CARDS (Specific to pre-selling/tanza structure) === */
.grid-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.property-card-link {
  flex: 1 1 45%;
  max-width: 350px;
  min-width: 280px;
  text-align: center;
  position: relative;
}

.property-card {
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 180, 0, 0.35);
}

.property-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.property-card:hover img {
  transform: scale(1.08);
}

.property-card-link h3 {
  font-size: 1.3rem;
  margin-top: 0.8rem;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.property-card-link p {
  color: #ccc;
  font-size: 0.95rem;
  padding: 0 1.2rem 1.5rem;
}

/* === MODALS (From comelec-village.css for consistency) === */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal.show {
  opacity: 1;
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Calendly Modal Styles */
.calendly-modal .calendly-card {
  background: #fff;
  color: #000;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 550px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.modal.show .calendly-modal .calendly-card {
    transform: scale(1);
}
.calendly-card .card-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  color: #000;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease, color 0.2s ease;
  background: none;
  border: none;
}
.calendly-card .card-title {
    color: #000;
    -webkit-text-fill-color: #000;
    background: none;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
}
.calendly-inner {
    overflow: hidden;
    border-radius: 8px;
}
.calendly-inline-widget {
    min-width: 320px;
    height: 620px;
    /* Ensure the widget takes full available space */
    width: 100% !important;
    height: 550px !important;
}

/* List Property Modal Styles */
.list-modal .list-card {
  background: #fff;
  color: #000;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.modal.show .list-modal .list-card {
    transform: scale(1);
}
.list-card .card-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  color: #000;
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
}
.list-card .card-title {
  color: #000;
  -webkit-text-fill-color: #000;
  background: none;
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: center;
}
.list-form label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-top: 10px;
}
.list-form input, .list-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}
.list-form textarea {
  resize: vertical;
}
.list-form .submit-btn {
  background: linear-gradient(to right, #ffcc00, #ff8c00);
  border: none;
  color: #000;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 20px;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease, transform 0.2s ease;
}
.list-form .submit-btn:hover {
  background: linear-gradient(to right, #ffd700, #ff6a00);
  transform: translateY(-1px);
}

/* === FOOTER (New unified style) === */
.about-footer-section {
  padding: 40px 0;
  background: #111;
  border-top: 1px solid #222;
}

.about-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.about-block, .footer-block {
  flex: 1;
  min-width: 250px;
}

.about-block h3 {
  color: #ffd66a;
  margin-bottom: 10px;
}

.about-block p {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.copyright {
  font-size: 0.8rem;
  color: #666;
  padding-top: 15px;
  border-top: 1px solid #333;
  margin-top: 20px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icons a {
  color: #ccc;
  font-size: 1.2rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
  color: #ffb400;
  transform: translateY(-2px);
}

/* === TEAM SECTION STYLES (NEW) === */
#our-team h2 {
    text-align: center;
}

.team-grid {
    display: grid;
    /* Responsive grid: Min 280px wide cards, auto-fitting as many as possible */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.team-card {
    background: #151515;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #ffb400; /* Subtle colored top border */
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 180, 0, 0.2);
}

.img-placeholder {
    width: 120px;
    height: 120px;
    background: #222; /* Dark placeholder color */
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid #ffb400; /* Yellow border */
    /* Center the placeholder icon */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ffb400;
}

.team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #ffd66a; /* Use the primary color for names */
    -webkit-text-fill-color: #ffd66a;
    background: none;
    text-transform: none;
    letter-spacing: normal;
}

.team-card .role {
    font-size: 0.9rem;
    color: #ffb400;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-card p {
    font-size: 0.95rem;
    color: #ccc;
}

.team-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
  border: 3px solid #ffb400;
  background: #222;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* --- MOBILE MEDIA QUERY (Compact Mobile Styles) --- */
@media (max-width: 768px) {
  /* Mobile: Revert to column layout */
  .nav {
    flex-direction: column;
    text-align: center;
    flex-wrap: wrap; 
  }
  
  nav {
    margin-top: 10px;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap; 
  }
  
  /* Larger logo for mobile */
  .logo-img {
    height: 80px;
    margin-right: 8px;
  }
  .brand-text h1 {
    font-size: 1.4rem;
  }
  .brand-text p {
    font-size: 0.7rem;
  }

  /* Compacted nav links for mobile */
  nav a, .calendar-btn, .cta-btn {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  /* Other mobile adjustments */
  .hero h1 {
    font-size: 1.8rem;
  }
  .about-footer-inner {
    flex-direction: column;
  }
  .about-block {
    text-align: center;
    margin-bottom: 20px;
  }
  .footer-block {
    text-align: center;
    align-items: center;
  }
  .social-icons {
    justify-content: center;
  }
}

/* === SCROLL TO TOP BUTTON === */
#scrollTopBtn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd966, #ff8a00);
  color: #0b0b0b;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
}
#scrollTopBtn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.6);
}
#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#scrollTopBtn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 200, 50, 0.6);
  opacity: 0;
  transition: opacity 0.5s ease;
}
#scrollTopBtn.show::after {
  opacity: 1;
}


