/*
Theme Name: Green Skyline Theme V5
Theme URI: https://green-skyline.com.vn/
Author: TBS Land & Senior WordPress Engineering Team
Author URI: https://tbsland.vn/
Description: WordPress Custom Theme cao cấp dành riêng cho dự án Bất Động Sản Green Skyline - TBS Land. Tích hợp Custom Post Types (Apartment, Progress, FAQ), ACF Custom Fields, Fullscreen Lightbox, Lead Form AJAX, chuẩn SEO, responsive 100%.
Version: 5.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: green-skyline
Tags: real-estate, luxury, green-gold, custom-theme, acf-ready, responsive, seo-optimized
*/

/* 1. Google Fonts Direct Import with Full Vietnamese Subsets */
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

/* 2. Core Design System Variables */
:root {
  --color-primary-dark: #063B2E;
  --color-primary-deep: #04261E;
  --color-gold: #C9A35B;
  --color-gold-hover: #B8934B;
  --color-bg-cream: #F7F4EC;
  --color-text-dark: #1D2722;
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Alex Brush', cursive;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-bg-cream);
  color: var(--color-text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
  min-height: 100% !important;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg-cream);
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
  min-height: 100% !important;
  position: relative !important;
}

/* Global Page Layout & Wrapper Infinite Vertical Scrolling Safeguards */
main,
.page-wrapper,
.section-wrapper {
  position: relative !important;
  height: auto !important;
  max-height: none !important;
  min-height: 100% !important;
  overflow: visible !important;
  display: block !important;
}

/* Floorplan Section Natural Height & Expansion */
#floorplan,
.floorplan-section {
  position: relative !important;
  height: auto !important;
  max-height: none !important;
  min-height: min-content !important;
  overflow: visible !important;
  display: block !important;
}

.js-floorplan-pane {
  position: relative !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}


/* 3. Global Section Spacing System (Desktop: 80px 0, Mobile: 50px 0) */
section, 
.section-padding,
.theme-section {
  padding-top: 50px !important;
  padding-bottom: 50px !important;
}

@media (min-width: 768px) {
  section, 
  .section-padding,
  .theme-section {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }
}

/* Section Specific Overrides */
section#hero {
  padding-top: 110px !important;
  padding-bottom: 50px !important;
}
@media (min-width: 768px) {
  section#hero {
    padding-top: 130px !important;
    padding-bottom: 80px !important;
  }
}

section#stats,
section#overview,
.stats-bar-section {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}
@media (min-width: 768px) {
  section#stats,
  section#overview,
  .stats-bar-section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
}

/* Footer Section Spacing */
footer {
  background-color: #04261E !important;
  color: #FFFFFF !important;
  padding-top: 50px !important;
  padding-bottom: 40px !important;
}
@media (min-width: 768px) {
  footer {
    padding-top: 80px !important;
    padding-bottom: 48px !important;
  }
}

/* 4. Headings & Typography Rules for Vietnamese Accents */
h1, h2, h3, h4, h5, h6, .font-serif, .font-serif-display {
  font-family: var(--font-serif) !important;
  letter-spacing: normal !important;
  line-height: 1.25 !important;
  font-weight: 600;
}

.font-script {
  font-family: var(--font-script) !important;
}

.font-sans {
  font-family: var(--font-sans) !important;
}

/* 5. Core Section Background Safety Overrides */
section.bg-\[\#063B2E\], 
div.bg-\[\#063B2E\] {
  background-color: #063B2E !important;
}

.bg-gradient-to-r,
section[class*="bg-gradient-to-r"] {
  background-image: linear-gradient(to right, #063B2E, #042920, #063B2E) !important;
}

/* 6. Scrollbar Styling */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #F7F4EC;
}
::-webkit-scrollbar-thumb {
  background: #063B2E;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C9A35B;
}

/* Hide scrollbar helper */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 7. Brand Logo Component Sizing, Containment & Pure White Filter Rules */
.site-logo,
.header-logo,
.footer-logo,
.header-logo img,
.footer-logo img,
img.site-logo,
img[alt="The AI Logo"],
a.group img.site-logo {
  width: auto !important;
  max-width: 180px !important;
  height: auto !important;
  max-height: 60px !important;
  object-fit: contain !important;
  display: block;
  filter: brightness(0) invert(1) !important;
}

@media (max-width: 768px) {
  .site-logo,
  .header-logo,
  .footer-logo,
  .header-logo img,
  .footer-logo img,
  img.site-logo,
  img[alt="The AI Logo"],
  a.group img.site-logo {
    max-width: 120px !important;
    max-height: 45px !important;
  }
}

/* 8. Global Container System for Luxury Real Estate Brochure Layout */
.container,
.pricing-container,
.section-container,
.pricing-wrapper {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  position: relative !important;
}

@media (min-width: 1440px) {
  .container,
  .pricing-container,
  .section-container,
  .pricing-wrapper {
    max-width: 1280px !important;
  }
}

@media (max-width: 768px) {
  .container,
  .pricing-container,
  .section-container,
  .pricing-wrapper {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* 9. Developer Logo Styling */
.developer-logo,
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.developer-logo img,
.logo img {
  width: auto !important;
  max-width: 180px !important;
  height: auto !important;
  max-height: 60px !important;
  object-fit: contain !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 10. Luxury Pricing Grid & Cards Layout */
.price-cards,
.pricing-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 60px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 1024px) {
  .price-cards,
  .pricing-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

.price-card,
.pricing-card {
  background-color: #FFFFFF !important;
  border: 1px solid #E5D7B8 !important;
  border-radius: 20px !important;
  padding: 32px !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
  box-sizing: border-box !important;
}

/* 11. Price Table Container & Row Cell Padding */
.price-table-wrapper {
  max-width: 1200px !important;
  margin: 60px auto 32px auto !important;
  background-color: #FFFFFF !important;
  border: 1px solid #E5D7B8 !important;
  border-radius: 20px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.price-table-header,
.pricing-header {
  background-color: #F7F4EC !important;
  border-bottom: 1px solid #E5D7B8 !important;
  padding: 24px 32px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

@media (max-width: 768px) {
  .price-table-header,
  .pricing-header {
    padding: 20px !important;
  }
}

.price-table-header h2,
.price-table-header h3,
.price-section-title,
.pricing-header h2,
.pricing-header h3 {
  color: #07352B !important; /* rgb(7, 53, 43) */
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

.price-table-header span,
.pricing-header span {
  color: #66756D !important;
  font-family: 'Inter', sans-serif !important;
}

.price-table-header span strong,
.pricing-header span strong,
.price-table-header .gold-accent,
.pricing-header .gold-accent {
  color: #B89A62 !important;
}

.price-table-wrapper table th,
.price-table-wrapper table td {
  padding: 20px 32px !important;
  border-bottom: 1px solid rgba(229, 215, 184, 0.7) !important;
}

@media (max-width: 768px) {
  .price-table-wrapper table th,
  .price-table-wrapper table td {
    padding: 16px 20px !important;
  }
}

/* 12. Promotion Section Centered Container */
.pricing-promo-wrapper,
.promo-container {
  max-width: 1200px !important;
  margin: 60px auto 0 auto !important;
  padding: 60px !important;
  background-color: #07352B !important;
  color: #F7F4EC !important;
  border-radius: 20px !important;
  border: 1px solid rgba(184, 154, 98, 0.3) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  .pricing-promo-wrapper,
  .promo-container {
    padding: 32px 24px !important;
  }
}

/* 13. Header & Navigation Structure Constraints */
#main-navbar,
nav#main-navbar {
  min-height: 80px;
  max-height: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  #main-navbar,
  nav#main-navbar {
    min-height: 70px !important;
    max-height: 70px !important;
    height: 70px !important;
    padding: 0 20px !important;
  }
}

/* Luxury Real Estate Mobile Navigation Drawer & Typography */
#mobile-drawer {
  background-color: #07352B !important;
  padding: 30px 20px !important;
  box-sizing: border-box !important;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#mobile-drawer.is-open {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.mobile-nav-link {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #F7F4EC !important;
  padding: 14px 0 !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-decoration: none !important;
  transition: color 0.3s ease, border-color 0.3s ease !important;
}

.mobile-nav-link:hover,
.mobile-nav-link.active,
.mobile-nav-link.text-\[\#C9A35B\],
.mobile-nav-link.text-\[\#C6A15B\] {
  color: #C6A15B !important;
  border-bottom-color: rgba(198, 161, 91, 0.4) !important;
}

.mobile-cta-btn {
  width: 100% !important;
  height: 48px !important;
  background-color: #C6A15B !important;
  color: #07352B !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(198, 161, 91, 0.25) !important;
  transition: background-color 0.3s ease !important;
}

.mobile-cta-btn:hover {
  background-color: #b8934b !important;
  color: #07352B !important;
}

.mobile-phone-btn {
  width: 100% !important;
  height: 48px !important;
  background-color: transparent !important;
  border: 1px solid #C6A15B !important;
  color: #C6A15B !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
}

.mobile-phone-btn:hover {
  background-color: rgba(198, 161, 91, 0.1) !important;
  color: #C6A15B !important;
}

/* Footer Logo Constraints */
footer img.site-logo,
footer .footer-logo img {
  max-width: 180px !important;
  max-height: 60px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
}

/* 14. Infinite Vertical Scrolling & Section Flow Safety Overrides */
section,
#hero,
#stats,
#story,
#location,
#amenities,
#floorplan,
#bang-gia-green-skyline,
#contact,
#progress,
#developer,
#faq,
#banner-cta,
footer {
  position: relative !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  clear: both !important;
}







/* Green Skyline payment policy responsive refinement */
#payment-policy { padding-left: 16px; padding-right: 16px; }
#payment-policy > div { max-width: 1200px !important; margin-left:auto; margin-right:auto; }
.gs-policy-card { max-width:1200px; margin-left:auto; margin-right:auto; }
.gs-policy-score { flex:0 0 270px; }
@media(max-width:768px){
 #payment-policy { padding:40px 12px; }
 #payment-policy h2 { font-size:28px !important; line-height:1.25; }
 #payment-policy h3 { font-size:22px !important; }
 #payment-policy table { min-width:720px; }
 .gs-policy-card { flex-direction:column; border-radius:20px; }
 .gs-policy-score { width:100%; flex:none; padding:28px 20px !important; }
 .gs-policy-score .text-5xl { font-size:42px !important; }
 .gs-policy-list { padding:20px !important; }
 .gs-policy-list div { gap:16px; font-size:14px; }
}
