/*
=================================================================
| PALLIUM ALLIED LTD - MASTER STYLESHEET (FINAL CORRECTED VERSION) |
=================================================================
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
    --primary-color: #0a2e36; --secondary-color: #D4AF37; --background-color: #fdfdfd;
    --light-background-color: #f7f9fa; --text-color: #333; --text-light-color: #6c757d;
    --light-text-color: #f4f4f4; --card-bg-color: #ffffff; --footer-bg-color: #062329;
    --border-color: #e2e8f0; --font-family: 'Poppins', sans-serif; --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Basic Reset & Setup --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-family); background-color: var(--background-color); color: var(--text-color); line-height: 1.6; overflow-x: hidden; }

/* --- Preloader --- */
.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--primary-color); z-index: 9999; display: flex; justify-content: center; align-items: center; flex-direction: column; transition: opacity 0.8s ease, visibility 0.8s ease; }
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader .loader-logo img { width: 150px; margin-bottom: 20px; }
.loader-circle { width: 50px; height: 50px; border: 4px solid rgba(255, 255, 255, 0.2); border-top-color: var(--secondary-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Global Styles --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
a { text-decoration: none; color: var(--secondary-color); transition: var(--transition); }
a:hover { opacity: 0.8; }
h1, h2, h3, h4 { font-weight: 700; color: var(--primary-color); line-height: 1.2; }
h1 { font-size: 3.5rem; } h2 { font-size: 2.5rem; } h3 { font-size: 1.5rem; }
.section-title { text-align: center; margin-bottom: 4rem; position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background-color: var(--secondary-color); border-radius: 2px; }
.text-center { text-align: center; } section { padding: 6rem 0; } .mt-4 { margin-top: 2.5rem; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 12px 28px; border-radius: 50px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border: 2px solid transparent; transition: var(--transition); cursor: pointer; font-size: 0.9rem; }
.btn-primary { background-color: var(--secondary-color); color: var(--primary-color); }
.btn-primary:hover { background-color: #c49a24; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4); }
.btn-secondary { background-color: transparent; color: var(--light-text-color); border-color: var(--secondary-color); }
.btn-secondary:hover { background-color: var(--secondary-color); color: var(--primary-color); transform: translateY(-3px); }
.btn-tertiary { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-tertiary:hover { background: var(--primary-color); color: #fff; }
.btn.full-width { width: 100%; text-align: center; margin-top: 1.5rem; }

/* --- Header & Navigation --- */
.main-header { position: sticky; top: 0; left: 0; width: 100%; z-index: 1000; padding: 1rem 0; transition: var(--transition); background-color: var(--primary-color); box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
.navbar { display: flex; justify-content: space-between; align-items: center; }
.nav-logo img { width: 120px; }
.nav-menu { display: flex; list-style: none; gap: 2.5rem; }
.nav-link { color: var(--light-text-color); font-weight: 500; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background-color: var(--secondary-color); transition: var(--transition); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: white; transition: all 0.3s ease-in-out; }

/* --- Hero Section --- */
.hero-section { height: calc(100vh - 80px); /* Adjust for sticky header */ display: flex; align-items: center; color: var(--light-text-color); position: relative; overflow: hidden; margin-top: -80px; /* Overlap sticky header */ }
.hero-video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; background-color: var(--primary-color); }
.hero-video-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 46, 54, 0.7); z-index: -1; }
.hero-content { max-width: 800px; text-align: center; z-index: 1; }
.hero-content h1 { color: #fff; font-size: 4.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.1; }
.hero-content p { font-size: 1.2rem; margin-bottom: 2.5rem; max-width: 600px; margin: 0 auto 2.5rem; }
.hero-buttons { display: flex; justify-content: center; gap: 1.5rem; }

/* --- Animations --- */
.animate-on-load { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s ease-out forwards; }
.hero-content h1.animate-on-load { animation-delay: 0.5s; }
.hero-content p.animate-on-load { animation-delay: 0.7s; }
.hero-buttons.animate-on-load { animation-delay: 0.9s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.animate-on-scroll { opacity: 0; transform: translateY(50px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.property-card.animate-on-scroll:nth-child(2), .team-card:nth-child(2) { transition-delay: 0.1s; }
.property-card.animate-on-scroll:nth-child(3), .team-card:nth-child(3) { transition-delay: 0.2s; }
.team-card:nth-child(4) { transition-delay: 0.3s; }

/* --- General Content Pages --- */
.page-header { padding: 5rem 0; background: linear-gradient(rgba(10, 46, 54, 0.8), rgba(10, 46, 54, 0.8)), url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?q=80&w=1992&auto=format&fit=crop') no-repeat center center/cover; text-align: center; color: #fff; }
.page-header h1 { color: #fff; font-size: 3rem; }
.page-header p { font-size: 1.1rem; max-width: 600px; margin: 1rem auto 0; }

/* --- Property & Blog Cards --- */
.property-grid, .blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minma(300px, 1fr)); gap: 2.5rem; }
.property-card, .blog-card { background-color: var(--card-bg-color); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column; }
.property-card:hover, .blog-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }
.property-card img, .blog-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s ease; }
.property-card:hover img, .blog-card:hover img { transform: scale(1.05); }
.property-card-content, .blog-card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.property-location, .blog-card-meta { font-size: 0.8rem; color: var(--text-light-color); margin-bottom: 0.5rem; text-transform: uppercase; font-weight: 600; }
.blog-card-meta { display: flex; justify-content: space-between; }
.property-card h3, .blog-card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.blog-card h3 a { color: var(--primary-color); }
.property-card p, .blog-card p { font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; color: var(--text-light-color); }
.property-card-price { margin-bottom: 1.5rem; border-top: 1px solid var(--border-color); padding-top: 1rem; }
.property-card-price span { font-size: 0.9rem; color: #555; }
.property-card-price strong { display: block; font-size: 1.8rem; color: var(--primary-color); font-weight: 700; }
.read-more-link { font-weight: 600; color: var(--secondary-color); }

/* --- Property Details Page (Corrected) --- */
.property-details-page { padding: 4rem 0; }
.property-header { text-align: center; margin-bottom: 2rem; }
.property-header h1 { font-size: 2.8rem; }
.gallery-container { margin-bottom: 3rem; }
.main-image-display { width: 100%; height: 550px; margin-bottom: 1rem; border-radius: 10px; overflow: hidden; }
.main-image-display img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-strip { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 10px; }
.thumbnail { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 3px solid transparent; transition: border-color 0.3s ease; }
.thumbnail:hover, .thumbnail.active { border-color: var(--secondary-color); }
.property-details-body { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.info-card { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); position: sticky; top: 120px; }
.info-card h3 { margin-bottom: 1.5rem; }
.info-item { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--border-color); }
.info-item span { color: var(--text-light-color); }
.info-item strong { font-size: 1.2rem; }
.amenities-list { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; }
.amenities-list li { background: var(--light-background-color); padding: 0.5rem 1rem; border-radius: 50px; font-weight: 500; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; background: #000; margin-top: 1rem; border-radius: 8px; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* --- About Us Page (Corrected) --- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.about-image img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { margin-bottom: 1rem; color: var(--text-light-color); }
.mission-vision { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.mission-vision h3 { color: var(--secondary-color); margin-bottom: 0.5rem; }
.team-section { background-color: var(--light-background-color); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.team-card { text-align: center; position: relative; overflow: hidden; border-radius: 10px; box-shadow: var(--shadow); height: 350px;}
.team-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.team-card:hover img { transform: scale(1.1); }
.team-info { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: #fff; padding: 2.5rem 1.5rem 1.5rem; transition: background 0.3s; }
.team-info h4 { color: #fff; } .team-info p { font-weight: 300; }

/* --- Forms, Legal, FAQ, Services, Careers --- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: flex-start; }
.contact-form-container, .booking-form-wrapper { background: #fff; padding: 2.5rem; border-radius: 8px; box-shadow: var(--shadow); }
.contact-form-container h2, .booking-form-wrapper h2 { margin-bottom: 2rem; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact-form .form-group { grid-column: span 2; }
.contact-form .form-group:nth-child(1), .contact-form .form-group:nth-child(2), .contact-form .form-group:nth-child(3), .contact-form .form-group:nth-child(4) { grid-column: span 1; }
.booking-form-wrapper .contact-form .form-group { grid-column: span 2; }
.contact-form label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-color); }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; font-family: var(--font-family); transition: all 0.2s ease-in-out; background-color: var(--light-background-color); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--secondary-color); background-color: #fff; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button { grid-column: span 2; justify-self: start; }
.form-success-message, .form-error-message { padding: 1.5rem; border-radius: 8px; margin-bottom: 2rem; text-align: center; }
.form-success-message { background-color: #d1fae5; color: #065f46; } .form-error-message { background-color: #fee2e2; color: #991b1b; }
.faq-container, .legal-container, .careers-container, .single-post-container { max-width: 850px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question { padding: 1.5rem 0; font-size: 1.2rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; } .faq-answer p { padding-bottom: 1.5rem; }
.faq-icon { font-size: 1.5rem; font-weight: 300; transition: transform 0.4s ease; }
.faq-item.active .faq-answer { max-height: 300px; } .faq-item.active .faq-icon { transform: rotate(45deg); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.service-card { background: #fff; padding: 2.5rem; text-align: center; border: 1px solid var(--border-color); border-radius: 10px; transition: var(--transition); }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--secondary-color); }
.service-icon { font-size: 3rem; color: var(--secondary-color); margin-bottom: 1.5rem; }
.service-card h3 { margin-bottom: 1rem; } .service-card p { color: var(--text-light-color); }

/* --- Footer --- */
.main-footer { background-color: var(--footer-bg-color); color: #a9a9a9; padding-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; padding-bottom: 4rem; }
.footer-col h3 { color: #fff; margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-logo { width: 150px; margin-bottom: 1rem; }
#footer-about p { margin-bottom: 1.5rem; }
.social-links a { margin-right: 1rem; }
.social-links img { width: 24px; height: 24px; opacity: 0.7; }
.social-links img:hover { opacity: 1; transform: translateY(-3px); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul a { color: #a9a9a9; }
.footer-col ul a:hover { color: var(--secondary-color); padding-left: 5px; }
#footer-contact p { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.btn-whatsapp { background-color: #25D366; color: #fff; padding: 10px 20px; border-radius: 50px; display: inline-block; margin-top: 1rem; }
.btn-whatsapp:hover { background-color: #1DAE51; }
.footer-bottom { border-top: 1px solid #2b2b2b; padding: 1.5rem 0; text-align: center; font-size: 0.9rem; }

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .nav-menu { position: fixed; left: -100%; top: 78px; /* Match header height */ flex-direction: column; background-color: var(--primary-color); width: 100%; height: calc(100vh - 78px); text-align: center; transition: 0.3s; gap: 2rem; padding-top: 3rem; }
    .nav-menu.active { left: 0; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-btn { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .property-details-body { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; } h2 { font-size: 2rem; }
    section { padding: 4rem 0; }
    .container { padding: 0 1rem; }
    .hero-section { margin-top: -72px; height: calc(100vh - 72px); }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-buttons { flex-direction: column; gap: 1rem; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    #footer-about, #footer-contact { align-items: center; }
    #footer-contact p { justify-content: center; }
    .contact-form .form-group,
    .contact-form .form-group:nth-child(1), .contact-form .form-group:nth-child(2),
    .contact-form .form-group:nth-child(3), .contact-form .form-group:nth-child(4) { grid-column: span 2; }
}

/* --- Properties Filter Form (Corrected) --- */
.filter-section {
    padding: 2.5rem 0;
    background-color: var(--light-background-color);
    border-bottom: 1px solid var(--border-color);
}
.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: flex-end;
}
.filter-group {
    display: flex;
    flex-direction: column;
}
.filter-group label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-light-color);
}
.filter-form input, .filter-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
}
.filter-form button {
    width: 100%;
    padding: 13px;
}
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.2rem;
    padding: 4rem 0;
    color: var(--text-light-color);
}