/* Land Development 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 */
.land-development-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FULL WIDTH OVERRIDE - Same as other pages */
.land-development-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 */
.land-development-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 */
.land-development-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 */
.land-development-page h1,
.land-development-page h2,
.land-development-page h3,
.land-development-page h4 {
    font-family: 'Lora', serif;
}

.land-development-page p,
.land-development-page span,
.land-development-page div {
    font-family: 'Montserrat', sans-serif;
}

/* Hero Section */
.land-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-text h1 {
    font-family: 'Lora', serif;
    font-size: 5.5rem;
    font-weight: 500;
    color: white;
    line-height: 1.1;
    margin-bottom: 60px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* CSS for the hero subheading */

.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: 600px;
    margin: 0;
}

/* Hero Background */
.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;
}

/* Development Content Section */
.development-content {
    background: white !important;
    padding: 120px 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.content-grid {
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: center;
    margin-bottom: 120px;
}

.content-grid:last-child {
    margin-bottom: 0;
}

/* Remove the old reverse styles and add this: */
.content-grid.reverse {
    direction: initial;
    gap: 6rem;
}

.content-grid.reverse > * {
    direction: initial;
}

/* Target the ACTUAL classes used in your HTML */
.content-grid.reverse .development-text {
    grid-column: 2;
    order: 2;
}

.content-grid.reverse .development-image {
    grid-column: 1;
    order: 1;
}

/* Force it with !important if needed */
.content-grid.reverse .development-text {
    grid-column: 2 !important;
    order: 2 !important;
}

.content-grid.reverse .development-image {
    grid-column: 1 !important;
    order: 1 !important;
}

.content-left h2 {
    font-family: 'Lora', serif;
    font-size: 3.2rem;
    font-weight: 300;
    color: #333;
    line-height: 1.2;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.content-left h2 .italic {
    font-style: italic;
    font-weight: 400;
    color: #125849;
}

.content-right h2 {
    font-family: 'Lora', serif;
    font-size: 3.2rem;
    font-weight: 300;
    color: #333;
    line-height: 1.2;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.content-right h2 .italic {
    font-style: italic;
    font-weight: 400;
    color: #125849;
}

.development-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    font-weight: 400;
    padding-right: 4rem;
}

.development-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.development-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Iconic Properties Section */
.iconic-properties {
    background: #f8f9fa !important;
    padding: 120px 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.section-title {
    font-family: 'Lora', serif;
    font-size: 4rem;
    font-weight: 300;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #999;
    text-align: center;
    margin-bottom: 80px;
    font-weight: 400;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.property-image {
    height: 200px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-content {
    padding: 30px 25px;
}

.property-content h3 {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.property-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #125849;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0d4035;
}

/* Get In Touch Section */
.get-in-touch {
    background: white !important;
    padding: 120px 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.contact-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 80px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-left: 1rem;
}

.info-item {
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #125849;
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.contact-form {
    background: #f8f9fa;
    padding: 50px 40px;
    border-radius: 15px;
}

.land-contact-form {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row input,
.form-row select,
.form-row textarea {
    flex: 1;
    padding: 18px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #125849;
}

.form-row select {
    cursor: pointer;
}

.form-row textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #125849;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 18px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #0d4035;
}

/* Project Gallery Section */
.project-gallery {
    background: #f8f9fa !important;
    padding: 120px 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    height: 600px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item.large {
    grid-row: 1 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(18, 88, 73, 0.9));
    color: white;
    padding: 30px 25px 25px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff !important;
}

.gallery-overlay p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* RESPONSIVE DESIGN - MOBILE FIRST APPROACH */

/* Tablet Styles - 1024px and below */
@media (max-width: 1024px) {
    .land-development-page .container {
        padding: 0 30px !important;
    }
    
    .hero-text h1 {
        font-size: 4.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .content-left h2,
    .content-right h2 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
    }
    
    .gallery-item.large {
        grid-row: auto;
        grid-column: 1 / 3;
    }
}

/* Mobile Styles - 768px and below */
@media (max-width: 768px) {
    .land-development-page .container {
        padding: 0 20px !important;
    }
    
    .land-hero {
        min-height: 500px;
    }
    
    .hero-content {
        padding-top: 60px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
        margin-bottom: 40px;
    }
    
    .hero-tabs {
        flex-direction: column;
        gap: 20px;
    }
    
    .development-content,
    .iconic-properties,
    .get-in-touch,
    .project-gallery {
        padding: 80px 0 !important;
    }
    
    .content-grid {
        margin-bottom: 80px;
    }
    
    .content-left h2,
    .content-right h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .development-text p {
        font-size: 1rem;
        padding-right: 0px !important;
    }
    
    .development-image img {
        height: 250px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-form {
        padding: 40px 30px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-subtitle{
        padding: 0px 5px 0px 5px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item.large {
        grid-column: auto;
    }
}

/* Small Mobile Styles - 480px and below */
@media (max-width: 480px) {
    .land-development-page .container {
        padding: 0 15px !important;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .content-left h2,
    .content-right h2 {
        font-size: 1.8rem;
        padding: 0px 3px 0px 3px !important;
        line-height: 2.2rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .property-content {
        padding: 25px 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

/* Print Styles */
@media print {
    .land-development-page {
        font-size: 12pt;
        line-height: 1.4;
        color: #000 !important;
        background: white !important;
    }
    
    .land-hero,
    .project-gallery {
        background: white !important;
        color: #000 !important;
    }
    
    .hero-bg-image {
        display: none;
    }
}

/* Performance Optimization */
.property-card,
.development-image,
.gallery-item {
    will-change: transform, box-shadow;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .property-card,
    .tab,
    .read-more,
    .submit-btn,
    .gallery-item {
        transition: none !important;
    }
}

/* Focus Styles for Keyboard Navigation */
.tab:focus,
.read-more:focus,
.submit-btn:focus,
.land-contact-form input:focus,
.land-contact-form select:focus,
.land-contact-form textarea:focus {
    outline: 3px solid #125849;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .land-development-page {
        background: white !important;
        color: black !important;
    }
    
    .tab.active {
        background: #125849;
        color: white;
    }
    
    .property-card,
    .contact-form {
        border: 2px solid black;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.land-development-page img {
    transition: opacity 0.3s ease;
}

.land-development-page img[loading="lazy"] {
    opacity: 0;
}

.land-development-page img[loading="lazy"].loaded {
    opacity: 1;
}

/* Additional 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;
}