/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --primary: #A7824B;
    --primary-dark: #8c6938;
    --secondary: #3B2F25;
    --accent: #D8C39A;
    --bg-main: #FAF9F6;
    --white: #FFFFFF;
    --text-main: #4A4A4A;
    --border-color: #E5E0D8;
    
    --font-heading: 'Fraunces', serif;
    --font-body: 'Google Sans', sans-serif;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-sm: 0 2px 8px rgba(59, 47, 37, 0.05);
    --shadow-md: 0 8px 24px rgba(59, 47, 37, 0.08);
    --shadow-lg: 0 12px 48px rgba(59, 47, 37, 0.12);
    
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.text-primary { color: var(--primary); }

/* ==========================================================================
   Layout & Containers
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-light { background-color: var(--white); }
.section-dark { background-color: var(--secondary); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-green {background-color: #a7824b;}
.section-green p {color: #3b2f25;}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    margin-right: 0.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #FFF;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    display: block;
    align-items: center;
    width: 150px;
    margin-top: 45px;
    position: fixed;
}

.logo span {
    color: var(--primary);
    margin-left: 0.25rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    position: relative;
    margin-left: 185px;
}

.nav-links a {
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.9375rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.header-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Mobile Menu Toggle (Checkbox Hack) */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--secondary);
    user-select: none;
}

@media (max-width: 991px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.125rem;
        text-align: center;
    }
    
    .menu-icon {
        display: block;
    }
    
    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }
    
    .header-cta .btn {
        display: none;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 750px;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(59, 47, 37, 0.9) 0%, rgba(59, 47, 37, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    color: var(--white);
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
}

.stat-item h4 {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.875rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}


/* ==========================================================================
   Price Section
   ========================================================================== */
.price-grid {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    gap: 4rem;
    align-items: center;
    text-align: center;
}
.supporting {
    border-top: solid 1px #625951;
    margin: 40px auto 0px auto;
    padding-top: 40px;
    position: relative;
    text-align: center;
}
.supporting p {
    font-size: 13px;
}


/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 8px solid var(--white);
}

.about-badge span {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-badge {
        bottom: 10px;
        right: 10px;
        width: 100px;
        height: 100px;
        padding: 1rem;
        border-width: 4px;
    }
    .about-badge span {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Highlights & Features
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--primary);
}

/* ==========================================================================
   Segments (Floor Plans types)
   ========================================================================== */
.segments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.segment-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.segment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.segment-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.segment-content {
    padding: 2rem;
}

.segment-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    display: block;
}

.segment-features {
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.segment-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

/* ==========================================================================
   Amenities
   ========================================================================== */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.amenity-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.amenity-item:hover {
    border-color: var(--primary);
    background: rgba(167, 130, 75, 0.03);
    transform: translateY(-3px);
}

.amenity-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.amenity-item span {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Gallery (Swipeable CSS Only)
   ========================================================================== */
.gallery-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 2rem;
    margin-top: 3rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--border-color);
}

.gallery-container::-webkit-scrollbar {
    height: 6px;
}

.gallery-container::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 4px;
}

.gallery-container::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 4px;
}

.gallery-item {
    scroll-snap-align: center;
    flex: 0 0 calc(85% - 1.5rem);
    max-width: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .gallery-item {
        flex: 0 0 calc(40% - 1.5rem);
    }
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   FAQs
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item details {
    width: 100%;
}

.faq-item summary {
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    position: relative;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item details[open] summary::after {
    transform: rotate(45deg);
}

.faq-item details[open] summary {
    border-bottom: 1px solid var(--border-color);
}

.faq-answer {
    padding: 1.5rem;
    color: var(--text-main);
    line-height: 1.7;
}

/* ==========================================================================
   Contact CTA
   ========================================================================== */
.contact-section {
    background-color: var(--secondary);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(167, 130, 75, 0.1);
    background-color: var(--white);
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 2rem;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #2a2119;
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    display: block;
    font-weight: 700;
}

.footer h4 {
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: inherit;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

.disclaimer {
    font-size: 0.75rem;
    margin-top: 1rem;
    opacity: 0.5;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   Mobile Sticky CTA
   ========================================================================== */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 0.75rem 1rem;
}

.mobile-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.mobile-cta .btn {
    padding: 0.75rem;
    font-size: 0.9375rem;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

@media (max-width: 768px) {
    .mobile-cta {
        display: block;
    }
    /* Add padding to body to prevent content from hiding behind mobile CTA */
    body {
        padding-bottom: 80px;
    }
}

/* ==========================================================================
   Blog Listing & Single Post
   ========================================================================== */
.blog-header {
    padding: 140px 0 80px;
    background-color: var(--secondary);
    color: var(--white);
    text-align: center;
}
.blog-header h1 {
    color: var(--white);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.blog-title a {
    color: var(--secondary);
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-read-more {
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
}

.blog-read-more:hover {
    color: var(--primary-dark);
}

/* Blog Single Post Layout */
.blog-single-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 4rem;
    padding: 4rem 0;
}

@media (max-width: 991px) {
    .blog-single-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.blog-main-content img {
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.blog-main-content h2, 
.blog-main-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-main-content p {
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.8;
}
.blog-main-content a {
    color: #a7824b;
    font-weight: 500;
    border-bottom: 2px dashed #a7824b;
    padding-bottom: 2px;
    transition: border-bottom-style 0.2s ease-in-out;
}
.blog-main-content a:hover {
    border-bottom: 2px solid currentColor;
}
.blog-main-content ul {
    margin: 0 0 0 40px;
}
.blog-main-content ul li {
    list-style-type: disc;
    padding: 3px 0;
}

.blog-main-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--secondary);
    margin: 2.5rem 0;
    background: var(--white);
    padding: 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem auto;
  /* font-family: 'Segoe UI', Arial, sans-serif; */
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 12px 16px;
  text-align: left;
}

th {
  background-color: #3b2f25;
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

tr:nth-child(even) {
  background-color: #f4f6f8;
}

tr:nth-child(odd) {
  background-color: #ffffff;
}

tr:hover {
  background-color: #eef3ff;
  transition: background-color 0.2s ease-in-out;
}

td {
  border-bottom: 1px solid #e0e0e0;
  color: #333;
}

tr:last-child td {
  border-bottom: none;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.sidebar-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-list a {
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
}

.sidebar-list a:hover {
    color: var(--primary);
}

.recent-post {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.recent-post:last-child {
    margin-bottom: 0;
}

.recent-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.recent-post h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-body);
}

.recent-post h4 a {
    color: var(--secondary);
}

.recent-post h4 a:hover {
    color: var(--primary);
}

.recent-post-date {
    font-size: 0.8125rem;
    color: var(--text-main);
}
