/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #052442;
    --secondary-color: #f5f1e8;
    --accent-color: #c9a961;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* Header Styles */
.main-header {
    background-color: var(--primary-color);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .main-header {
        padding: 1rem 0;
    }
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: inline-block;
    text-decoration: none;
}

.logo img {
    height: 75px;
    width: auto;
    display: block;
    max-width: 280px;
}

@media (max-width: 768px) {
    .logo img {
        height: 65px;
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 55px;
        max-width: 180px;
    }
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle:hover span {
    background-color: var(--accent-color);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 4rem 2rem 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        width: 100%;
    }
    
    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 1rem;
        width: 100%;
    }
    
    .main-nav ul li a.active::after {
        display: none;
    }
    
    .dropdown {
        position: relative;
        z-index: auto;
    }
    
    .dropdown-menu {
        position: relative !important;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2);
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100% !important;
        left: auto !important;
        top: auto !important;
        z-index: auto;
        display: block;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown.active {
        z-index: auto;
    }
    
    /* Ensure dropdown doesn't overlap other menu items */
    .main-nav ul li.dropdown {
        overflow: visible;
    }
    
    /* Prevent hover from interfering on mobile */
    @media (hover: none) and (pointer: coarse) {
        .dropdown:hover .dropdown-menu {
            max-height: 0;
        }
    }
    
    .dropdown-menu li {
        border-bottom: none;
        width: 100%;
    }
    
    .dropdown-menu a {
        padding-left: 2rem;
        font-size: 0.95rem;
        width: 100%;
    }
}

.main-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    display: block !important;
    width: 100%;
    flex-direction: column !important;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    list-style: none;
    float: none !important;
    flex: none !important;
}

.dropdown-menu li:first-child {
    margin-top: 0 !important;
}

.dropdown-menu li:last-child {
    margin-bottom: 0 !important;
}

.dropdown-menu a {
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    display: block !important;
    width: 100% !important;
    transition: background-color 0.3s;
    white-space: nowrap;
    margin: 0 !important;
    text-decoration: none;
    box-sizing: border-box;
}

.dropdown-menu a:hover {
    background-color: #f7fafc;
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a3d5f 100%);
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background image on left side */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-background.jpg');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 65%, rgba(0, 0, 0, 0) 80%);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 65%, rgba(0, 0, 0, 0) 80%);
}

/* Fade overlay for the image - blends image into background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(to right, transparent 0%, transparent 30%, rgba(5, 36, 66, 0.2) 50%, rgba(5, 36, 66, 0.5) 65%, rgba(5, 36, 66, 0.8) 80%, rgba(5, 36, 66, 1) 100%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 50 L50 0 L100 50 L50 100 Z" fill="rgba(255,255,255,0.03)"/></svg>');
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2.5rem 0;
    }
}


.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 10px;
    }
}

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        padding: 0 5px;
        word-wrap: break-word;
    }
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        padding: 0 5px;
        line-height: 1.5;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .hero-buttons {
        gap: 0.75rem;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0 10px;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    min-height: 44px;
}

@media (max-width: 480px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }
}

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

.btn-primary:hover {
    background-color: #b8964f;
    border-color: #b8964f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

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

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

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: #f7fafc;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.feature-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* New Hero Section */
.hero-section-new {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a3d5f 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content-new {
    position: relative;
    z-index: 1;
}

/* Fullscreen Hero Section with Slideshow */
.hero-section-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 36, 66, 0.4) 0%, rgba(5, 36, 66, 0.6) 100%);
    z-index: 1;
}

.hero-content-fullscreen {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-portfolio {
    display: inline-block;
    padding: 1.25rem 3rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s;
    margin-top: 2rem;
    border: 2px solid var(--accent-color);
}

.btn-portfolio:hover {
    background-color: #b8964f;
    border-color: #b8964f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
}

@media (max-width: 768px) {
    .hero-section-fullscreen {
        min-height: 500px;
    }
    
    .hero-main-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .btn-portfolio {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section-fullscreen {
        min-height: 400px;
    }
    
    .hero-main-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .btn-portfolio {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

.hero-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--white);
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    color: var(--white);
    opacity: 0.95;
}

@media (max-width: 768px) {
    .hero-section-new {
        padding: 5rem 0 4rem;
    }
    
    .hero-main-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section-new {
        padding: 4rem 0 3rem;
    }
    
    .hero-main-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* New Services Section */
.services-section-new {
    padding: 6rem 0;
    background-color: var(--white);
}

.services-grid-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card-new {
    background-color: var(--white);
}

.service-content-new h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.service-content-new p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.service-content-new p strong {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-service {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-service:hover {
    background-color: #0a3d5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 968px) {
    .services-grid-new {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-content-new h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .services-section-new {
        padding: 4rem 0;
    }
    
    .services-grid-new {
        gap: 2.5rem;
    }
}

/* Featured Projects Section */
.featured-projects-section {
    padding: 6rem 0;
    background-color: #f7fafc;
}

.section-title-new {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 700;
}

.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-project-card {
    display: block;
    background-color: var(--white);
    border-radius: 0;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.featured-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.featured-project-card:link,
.featured-project-card:visited,
.featured-project-card:hover,
.featured-project-card:active {
    text-decoration: none;
    color: inherit;
}

.featured-project-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: var(--secondary-color);
    position: relative;
}

.featured-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-project-card:hover .featured-project-image img {
    transform: scale(1.08);
}

.featured-project-title {
    padding: 1.5rem 1rem;
    text-align: center;
    background-color: var(--white);
    position: relative;
}

.featured-project-title::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid var(--white);
}

.featured-project-title h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: #c9a961;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: none;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .featured-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .featured-project-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .featured-projects-section {
        padding: 4rem 0;
    }
    
    .section-title-new {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .featured-projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-project-image {
        height: 300px;
    }
    
    .featured-project-title h3 {
        font-size: 1.4rem;
    }
    
    .featured-project-title::before {
        border-left-width: 10px;
        border-right-width: 10px;
        border-bottom-width: 10px;
        top: -10px;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a3d5f 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a3d5f 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .page-header {
        padding: 2.5rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.service-card {
    display: flex;
    gap: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-image {
    flex: 0 0 200px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.service-image-custom {
    position: relative;
}

.service-image-custom img {
    object-position: top right;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-placeholder {
    font-size: 4rem;
}

.service-content {
    padding: 2rem;
    flex: 1;
}

.service-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-content ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.service-content li {
    margin-bottom: 0.5rem;
}

/* Find Home Section */
.find-home-section {
    padding: 5rem 0;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.option-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.option-image {
    height: 250px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.option-placeholder {
    font-size: 5rem;
}

.option-content {
    padding: 2rem;
}

.option-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Listings Section */
.listings-section {
    padding: 4rem 0;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

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

.listing-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.listing-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background-color: var(--secondary-color);
}

.price-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.25rem;
    z-index: 2;
}

.sold-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120px;
    background-color: rgba(220, 38, 38, 0.9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 3rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 3;
    transform: translate(-50%, -50%) rotate(-25deg);
    transform-origin: center;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
    pointer-events: none;
}

.sold-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
}

@media (max-width: 768px) {
    .sold-banner {
        font-size: 2rem;
        height: 100px;
        width: 110%;
    }
}

@media (max-width: 480px) {
    .sold-banner {
        font-size: 1.5rem;
        letter-spacing: 0.1em;
        height: 80px;
        width: 110%;
    }
}

.listing-content {
    padding: 1.5rem;
}

.listing-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.listing-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-directions-dark {
    background-color: #052442;
    color: #ffffff;
    border-color: #052442;
}

.btn-directions-dark:hover {
    background-color: #0a3d5f;
    border-color: #0a3d5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.listing-location {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.listing-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.contract-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: #f59e0b;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    white-space: nowrap;
}

.listing-details {
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.listing-directions,
.listing-agent {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.listing-directions strong,
.listing-agent strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.no-listings {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.25rem;
}

/* Detail Section */
.detail-section {
    padding: 4rem 0;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--secondary-color);
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slideshow-image.active {
    display: block;
    opacity: 1;
}

.slideshow-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 20px;
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.slideshow-dot:hover {
    transform: scale(1.2);
}

.slideshow-dot.active {
    background-color: var(--white);
    transform: scale(1.3);
}

.image-placeholder.large {
    width: 100%;
    height: 400px;
    font-size: 6rem;
}

/* Lightbox Modal Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, color 0.3s;
    z-index: 10001;
}

.lightbox-close:hover {
    transform: scale(1.2);
    color: var(--accent-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10001;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .lightbox-container {
        max-width: 95vw;
        padding: 1rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-counter {
        bottom: 10px;
        font-size: 0.9rem;
    }
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slideshow-container {
        height: 300px;
    }
    
    .main-image {
        height: 300px;
    }
}

.image-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

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

.detail-info {
    background-color: #f7fafc;
    padding: 2rem;
    border-radius: 10px;
}

.detail-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.info-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.price-highlight .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 480px) {
    .detail-actions {
        flex-direction: column;
    }
    
    .detail-actions .btn {
        width: 100%;
    }
}

/* About Section */
.about-section {
    padding: 4rem 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-text ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.about-text li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.values-section {
    padding: 4rem 0;
    background-color: #f7fafc;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.value-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-image {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.contact-image:hover img {
    transform: scale(1.05);
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-form-container {
    background-color: #f7fafc;
    padding: 2rem;
    border-radius: 10px;
}

.lot-inquiry-info,
.home-inquiry-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.lot-inquiry-info h3,
.home-inquiry-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.lot-info-display,
.home-info-display {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 5px;
}

.lot-info-display p,
.home-info-display p {
    margin: 0.5rem 0;
    color: var(--white);
}

.lot-info-display strong,
.home-info-display strong {
    color: var(--white);
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.message.success {
    background-color: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.message.error {
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.contact-cta {
    padding: 4rem 0;
    background-color: #f7fafc;
    text-align: center;
}

.contact-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

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

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    .detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        flex-direction: column;
    }
    
    .service-image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .features-section,
    .services-section,
    .about-section,
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-image {
        height: 250px;
        margin-bottom: 1.5rem;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 0.75rem 0;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .feature-card,
    .service-card,
    .option-card,
    .listing-card {
        padding: 1.5rem;
    }
    
    .listing-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .listing-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .detail-info {
        padding: 1.5rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

