/* Buyers Guide Page CSS */
/* Import Google Fonts - Same as other pages */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Reset and Base Styles */
.buyers-guide-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FULL WIDTH OVERRIDE - Same as other pages */
.buyers-guide-page {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

/* Force all sections to take full width */
.buyers-guide-page section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Container styles - Consistent padding */
.buyers-guide-page .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    width: 100% !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Typography - Same fonts as other pages */
.buyers-guide-page h1,
.buyers-guide-page h2,
.buyers-guide-page h3,
.buyers-guide-page h4 {
    font-family: 'Lora', serif;
}

.buyers-guide-page p,
.buyers-guide-page span,
.buyers-guide-page div {
    font-family: 'Montserrat', sans-serif;
}

/* Hero Section */
.buyers-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35)), url('https://demo.bharatvillaprojects.com/wp-content/uploads/2025/06/united-mix-raced-team-students-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-text {
    text-align: center;
    width: 100%;
}

.hero-text h1 {
    font-family: 'Lora', serif;
    font-size: 5rem;
    font-weight: 300;
    color: white;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subheading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-cta {
    margin-top: 40px;
}

.cta-btn {
    display: inline-block;
    padding: 18px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #125849, #1a7a62);
    color: white;
    box-shadow: 0 8px 25px rgba(18, 88, 73, 0.3);
}

.cta-btn.primary:hover {
    background: linear-gradient(135deg, #0f4a3c, #167055);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(18, 88, 73, 0.4);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: #125849;
    transform: translateY(-2px);
}

/* Hero Background - Legacy support */
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
    z-index: 2;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Headers - Consistent styling */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Lora', serif;
    font-size: 4rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-title .italic {
    font-style: italic;
    font-weight: 400;
    color: #125849;
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #999;
    font-weight: 400;
}

/* Why Buyers Guide Section */
.why-buyers-guide {
    background: white !important;
    padding: 120px 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.content-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    gap: 80px;
}

.guide-content h2 {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: #333;
    line-height: 1.2;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.guide-content h2 .italic {
    font-style: italic;
    font-weight: 400;
    color: #125849;
}

.guide-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    font-weight: 400;
    margin-bottom: 30px;
}

.guide-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 50px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid #125849;
}

.highlight-item:hover {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateX(10px);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: #125849;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.2rem;
}

.highlight-text h4 {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.highlight-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.guide-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    height: 500px;
    background: url('https://demo.bharatvillaprojects.com/wp-content/uploads/2025/06/Placeholder-Image-2-2.png');
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.guide-image:hover {
    transform: scale(1.02);
}

.guide-image img {
    display: none; /* Hide img tags since we're using background images */
}

/* Step by Step Guide Section */
.step-by-step-guide {
    background: #f8f9fa !important;
    padding: 120px 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.step-card {
    background: white;
    padding: 50px 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #f8f9fa;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    animation-play-state: paused;
}

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }
.step-card:nth-child(5) { animation-delay: 0.5s; }
.step-card:nth-child(6) { animation-delay: 0.6s; }

.step-card::before {
    content: attr(data-step);
    position: absolute;
    top: -15px;
    right: 20px;
    background: #125849;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    border-color: #125849;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #125849, #1a7a62);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #1a7a62, #125849);
}

.step-card h3 {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.step-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #125849, #1a7a62) !important;
    padding: 100px 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 65% 35%;
    align-items: center;
    gap: 60px;
}

.contact-text h2 {
    font-family: 'Lora', serif;
    font-size: 3rem;
    font-weight: 300;
    color: white;
    margin-bottom: 25px;
    line-height: 1.2;
}

.contact-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-cta {
    text-align: center;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: white;
    color: #125849;
    padding: 20px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-btn:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.contact-btn i {
    font-size: 1.3rem;
}

.contact-note {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
}

/* FAQs Section */
.faqs-section {
    background: white !important;
    padding: 120px 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
}

.faq-question {
    padding: 30px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #125849;
}

.faq-question h3 {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.faq-question i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    color: #125849;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    background: #125849;
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    padding: 0 0 30px 0;
    margin: 0;
}

/* Final CTA Section */
.final-cta {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('https://demo.bharatvillaprojects.com/wp-content/uploads/2025/07/traditional-house-architecture-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    color: white;
    text-align: center;
}

.cta-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-bg-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.cta-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.cta-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: white;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 50px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============ RESPONSIVE DESIGN ============ */

/* Large Desktop */
@media (max-width: 1400px) {
    .buyers-guide-page .container {
        padding: 0 30px !important;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 4.2rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .guide-content h2 {
        font-size: 3rem;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .content-grid {
        grid-template-columns: 60% 40%;
        gap: 60px;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .buyers-guide-page .container {
        padding: 0 25px !important;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .guide-content h2 {
        font-size: 2.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .checklist-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .checklist-features {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .cta-content h2 {
        font-size: 3rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
        .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .contact-features {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

}

/* Tablet Portrait */
@media (max-width: 768px) {
    .buyers-guide-page .container {
        padding: 0 20px !important;
    }
    
    .buyers-hero {
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .hero-content {
        padding-top: 60px;
    }
    
        .contact-text h2 {
        font-size: 2.5rem;
    }
    
    .contact-text p {
        font-size: 1.1rem;
    }
    
    .contact-btn {
        padding: 18px 30px;
        font-size: 1rem;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
        margin-bottom: 25px;
    }
    
    .hero-subheading {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .why-buyers-guide,
    .step-by-step-guide,
    .checklist-download,
    .faqs-section,
    .final-cta {
        padding: 80px 0 !important;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 2.5rem !important;
    }
    
    .guide-content h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .guide-content p {
        font-size: 1rem;
    }
    
    .guide-image {
        height: 350px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .step-card {
        padding: 40px 25px;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 30px 25px;
    }
    
    .checklist-text h2 {
        font-size: 2.5rem;
    }
    
    .checklist-text p {
        font-size: 1.1rem;
    }
    
    .download-btn {
        padding: 18px 30px;
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 25px 0;
        gap: 20px;
    }
    
    .faq-question h3 {
        font-size: 1.2rem;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

/* Mobile Large */
@media (max-width: 480px) {
    .buyers-guide-page .container {
        padding: 0 22px !important;
    }
    
    .buyers-hero {
        min-height: 350px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-subheading {
        font-size: 1rem;
    }
    
        .contact-text h2 {
        font-size: 2rem;
    }
    
    .contact-btn {
        padding: 16px 25px;
        font-size: 0.9rem;
    }
    
    .cta-btn {
        padding: 15px 25px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .guide-content h2 {
        font-size: 1.8rem;
    }
    
    .guide-image {
        height: 280px;
    }
    
    .step-card {
        padding: 35px 20px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .highlight-item {
        padding: 25px 20px;
    }
    
    .checklist-text h2 {
        font-size: 2rem;
    }
    
    .download-btn {
        padding: 16px 25px;
        font-size: 0.9rem;
    }
    
    .faq-question {
        padding: 20px 0;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .final-cta {
        background-attachment: scroll;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 1.9rem;
    }
    
    .section-title {
        font-size: 1.7rem !important;
    }
    
    .guide-content h2 {
        font-size: 1.6rem;
    }
    
    .step-card {
        padding: 30px 15px;
    }
    
        .contact-text h2 {
        font-size: 1.8rem;
    }
    
    .checklist-text h2 {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 1.9rem;
    }
}

/* ============ ACCESSIBILITY & PERFORMANCE ============ */

/* Focus Management */
.cta-btn:focus,
.download-btn:focus,
.faq-question:focus {
    outline: 2px solid #125849;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .step-card,
    .highlight-item,
    .guide-image,
    .cta-btn,
    .download-btn,
    .faq-question,
    .step-icon {
        transition: none;
        animation: none;
    }
    
    .highlight-item:hover,
    .step-card:hover,
    .guide-image:hover {
        transform: none;
    }
    
    .cta-btn:hover,
    .download-btn:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .step-card,
    .highlight-item,
    .faq-item {
        border: 2px solid #000;
    }
    
    .cta-btn.primary,
    .download-btn {
        background: #125849;
        border: 2px solid #000;
    }
}

/* Print Styles */
@media print {
    .buyers-guide-page {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: white;
    }
    
    .buyers-hero,
    .why-buyers-guide,
    .step-by-step-guide,
    .checklist-download,
    .faqs-section,
    .final-cta {
        background: white !important;
        color: #000 !important;
    }
    
    .hero-bg-image,
    .guide-image,
    .cta-bg-image {
        display: none;
    }
    
    .cta-btn,
    .download-btn {
        background: #125849 !important;
        color: white !important;
        border: 2px solid #125849;
    }
}

/* Performance Optimization */
.step-card,
.highlight-item,
.guide-image,
.step-icon {
    will-change: transform, box-shadow;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.buyers-guide-page img {
    transition: opacity 0.3s ease;
}

.buyers-guide-page img[loading="lazy"] {
    opacity: 0;
}

.buyers-guide-page img[loading="lazy"].loaded {
    opacity: 1;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}