/*
Theme Name: Sabie Condo Launch
Author: Eibas
Description: Sabrina Soong personal website style
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sabie-condo
*/

/* ==========================================================================
   CSS Variables & Base
   ========================================================================== */
:root {
  --color-primary: #1a1a2e;
  --color-secondary: #16213e;
  --color-accent: #e94560;
  --color-accent-hover: #c73e54;
  --color-text: #333;
  --color-text-muted: #666;
  --color-bg: #fff;
  --color-bg-alt: #f8f9fa;
  --color-border: #e0e0e0;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-heading: "Playfair Display", Georgia, serif;
  --container-max: 1200px;
  --spacing-unit: 8px;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.site-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: var(--color-primary);
  color: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.site-header .site-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-branding a {
  color: #fff;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
}

.site-branding a:hover {
  opacity: 0.9;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
}

.main-navigation a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
}

.main-navigation a:hover {
  color: #fff;
}

.hero-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}

.hero-cta:hover {
  background: var(--color-accent-hover);
  color: #fff !important;
}

/* ==========================================================================
   Condo Hero
   ========================================================================== */
.condo-hero {
  padding: 48px 0 32px;
  text-align: center;
}

.condo-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 24px;
  color: var(--color-primary);
}

.condo-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.condo-hero-actions .button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}

.condo-hero-actions .button:hover {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-1px);
}

.condo-hero-actions .button-secondary {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.condo-hero-actions .button-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ==========================================================================
   Quick Facts
   ========================================================================== */
.quick-facts {
  background: var(--color-bg-alt);
  padding: 32px 0;
  margin: 24px 0;
}

.quick-facts h2 {
  font-size: 1.5rem;
  margin: 0 0 24px;
  color: var(--color-primary);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.fact-item {
  background: #fff;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.fact-item dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.fact-item dd {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.fact-item dd a {
  color: var(--color-primary);
  text-decoration: none;
}

.fact-item dd a:hover {
  text-decoration: underline;
}

/* Attachments */
.attachments {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.attachments h3 {
  font-size: 1rem;
  margin: 0 0 12px;
}

.attachment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.attachment-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.attachment-list a:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
}

/* ==========================================================================
   Sections (MRT, Schools, etc.)
   ========================================================================== */
.condo-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.condo-section:last-of-type {
  border-bottom: none;
}

.condo-section h2 {
  font-size: 1.5rem;
  margin: 0 0 20px;
  color: var(--color-primary);
}

.section-cta {
  margin-top: 20px;
}

.section-cta .button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
}

.section-cta .button:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

/* MRT / Schools lists */
.location-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.location-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.location-list li:last-child {
  border-bottom: none;
}

.location-list a {
  color: var(--color-primary);
  text-decoration: none;
}

.location-list a:hover {
  text-decoration: underline;
}

.location-list .distance {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Floorplan Overview Table
   ========================================================================== */
.floorplan-overview {
  overflow-x: auto;
  margin: 20px 0;
}

.floorplan-overview table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
}

.floorplan-overview th,
.floorplan-overview td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.floorplan-overview th {
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-primary);
}

.floorplan-overview tr:hover {
  background: var(--color-bg-alt);
}

.floorplan-overview a {
  color: var(--color-primary);
  text-decoration: none;
}

.floorplan-overview a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Unit Type Sections (1 BR, 2 BR, etc.)
   ========================================================================== */
.unit-type-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}

.unit-type-section h2 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: var(--color-primary);
}

.unit-type-section .back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

.unit-type-section .back-link:hover {
  color: var(--color-accent);
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.unit-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}

.unit-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.unit-card h3 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  color: var(--color-primary);
}

.unit-card a {
  display: block;
  padding: 10px 0;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.unit-card a:hover {
  color: var(--color-accent);
}

.unit-card .meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.unit-card .sold-out {
  color: var(--color-accent);
  font-weight: 600;
}

/* ==========================================================================
   Location Map
   ========================================================================== */
.location-map-section {
  padding: 40px 0;
  background: var(--color-bg-alt);
}

.location-map-section h2 {
  font-size: 1.5rem;
  margin: 0 0 20px;
  color: var(--color-primary);
}

.map-placeholder {
  background: var(--color-border);
  border-radius: var(--radius);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   Nearby Condos
   ========================================================================== */
.nearby-condos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.nearby-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s;
}

.nearby-card:hover {
  box-shadow: var(--shadow-hover);
}

.nearby-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.nearby-card h3 a {
  color: var(--color-primary);
  text-decoration: none;
}

.nearby-card h3 a:hover {
  color: var(--color-accent);
}

.nearby-card .meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

/* ==========================================================================
   Upcoming TOP Section
   ========================================================================== */
.top-years {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.top-year-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.top-year-card a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.top-year-card a:hover {
  color: var(--color-accent);
}

.top-year-card .year {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

/* ==========================================================================
   Newsletter / Alerts
   ========================================================================== */
.property-alerts {
  background: var(--color-primary);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.property-alerts h2 {
  font-size: 1.75rem;
  margin: 0 0 16px;
  color: #fff;
}

.property-alerts p {
  max-width: 560px;
  margin: 0 auto 24px;
  opacity: 0.95;
}

.property-alerts .button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
}

.property-alerts .button:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

/* ==========================================================================
   Homepage (index.php – Amanda Tan style)
   ========================================================================== */
.home-page {
  padding-bottom: 0;
}

.home-hero {
  padding: 56px 0 48px;
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--color-bg-alt) 0%,
    var(--color-bg) 100%
  );
}

.home-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin: 0 0 24px;
  color: var(--color-primary);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.home-hero-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.home-hero-intro a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.home-hero-intro a:hover {
  text-decoration: underline;
}

.home-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

.home-section:last-of-type {
  border-bottom: none;
}

.home-section-title {
  font-size: 1.75rem;
  margin: 0 0 12px;
  color: var(--color-primary);
  text-align: center;
}

.home-section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 0 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Featured Condos */
.featured-condos {
  background: var(--color-bg-alt);
}

.featured-condos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.featured-condo-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.featured-condo-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  color: inherit;
}

.featured-condo-card h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: var(--color-primary);
}

.featured-condo-card .meta {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 0 8px;
}

.featured-condo-card .address {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Success Stories */
.success-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.success-story-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s;
}

.success-story-card:hover {
  box-shadow: var(--shadow);
}

.success-story-card h3 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  color: var(--color-primary);
}

.success-story-card p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.success-story-card .date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.success-story-card .link-arrow {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.success-story-card .link-arrow:hover {
  text-decoration: underline;
}

/* Value Props */
.value-props {
  background: var(--color-bg-alt);
}

.value-props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.value-prop-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.value-prop-card h3 {
  font-size: 1.15rem;
  margin: 0 0 12px;
  color: var(--color-primary);
}

.value-prop-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Testimonials */
.testimonials-section {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.95);
}

.testimonials-section .home-section-title {
  color: #fff;
}

.testimonials-tagline {
  text-align: center;
  font-style: italic;
  opacity: 0.9;
  margin: 0 0 32px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0;
  border-left: 4px solid var(--color-accent);
}

.testimonial-card p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.testimonial-card footer {
  font-size: 0.9rem;
  opacity: 0.9;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
}

/* Sell CTA */
.sell-cta {
  text-align: center;
  padding: 56px 0;
  background: var(--color-bg-alt);
}

.sell-cta .button-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-secondary);
  color: rgba(255, 255, 255, 0.85);
  padding: 32px 0;
  font-size: 0.9rem;
}

.site-footer .site-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
