/* --- RESET & VARIABLES --- */
:root {
    --primary-color: #222;       /* Almost Black */
    --secondary-color: #555;     /* Dark Gray */
    --accent-color: #888;        /* Light Gray */
    --bg-light: #f4f4f4;         /* Off White */
    --white: #ffffff;
    --text-color: #333;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* --- UTILITIES --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 0 auto 20px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

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

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

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

/* Form Button Override */
.contact-form .btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    width: 100%;
}

.contact-form .btn-primary:hover {
    background-color: #000;
    border-color: #000;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: 0.4s;
    background-color: transparent; 
}

nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white); /* White initially */
}

.logo .light-text {
    font-weight: 400;
}

nav.scrolled .logo, nav.scrolled .nav-links a {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    opacity: 0.7;
}

.btn-nav {
    border: 1px solid var(--white);
    padding: 8px 20px;
}

nav.scrolled .btn-nav {
    border-color: var(--primary-color);
}

.hamburger {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

nav.scrolled .hamburger {
    color: var(--primary-color);
}

/* Dark navbar for contact page */
nav.dark-nav,
body.contact-page nav {
    background-color: rgba(17, 17, 17, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.contact-page nav .logo,
body.contact-page nav .nav-links a {
    color: var(--white);
}

body.contact-page nav .btn-nav {
    border-color: var(--white);
}

body.contact-page nav .hamburger {
    color: var(--white);
}

/* Dark background for contact page */
body.contact-page {
    background-color: #1a1a1a;
}

/* --- HERO SECTION --- */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-carousel {
    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%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

#hero h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns .btn {
    margin: 0 10px;
}

/* --- ABOUT SECTION --- */
#about {
    min-height: 700px;
    padding: 100px 0;
}

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

.about-main {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.about-image {
    flex-shrink: 0;
    width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-box {
    background: var(--bg-light);
    padding: 20px;
    text-align: center;
    border: 1px solid #ddd;
}

/* --- PROPERTY GALLERY SECTION --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

/* --- LIGHTBOX MODAL --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: lightboxFadeIn 0.3s ease;
    transition: opacity 0.3s ease;
}

.lightbox-content img.fade-out {
    opacity: 0;
}

.lightbox-content img.fade-in {
    opacity: 1;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

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

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

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

.stat-box i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.stat-box h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-card:hover {
    border-bottom: 3px solid var(--primary-color);
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-serif);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--secondary-color);
}

/* --- PRICING SECTION --- */
.pricing-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.pricing-card {
    background: var(--white);
    border: 1px solid #eee;
    padding: 40px;
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
}

.pricing-card.dark {
    background: var(--primary-color);
    color: var(--white);
}

.pricing-card h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pricing-card ul {
    margin-bottom: 30px;
}

.pricing-card ul li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 10px;
}

.pricing-card.dark ul li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.note {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.7;
}

.pricing-disclaimer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* --- RESOURCES ACCORDION --- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--white);
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-sans);
}

.accordion-content {
    display: none;
    padding: 0 20px 20px;
    color: var(--secondary-color);
}

.accordion-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-top: 10px;
}

/* --- CONTACT SECTION --- */
.dark-section {
    background-color: #1a1a1a;
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
    color: #ccc;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    color: var(--primary-color);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    font-family: var(--font-sans);
    font-size: 1rem;
}

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

.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
}

/* --- FOOTER --- */
footer {
    background-color: #111;
    color: #777;
    padding: 30px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        top: 60px;
        background-color: var(--white);
        flex-direction: column;
        width: 100%;
        text-align: center;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        transform: translateY(0%);
    }

    .nav-links li {
        margin: 20px 0;
    }
    
    .nav-links a {
        color: var(--primary-color);
    }

    .hamburger {
        display: block;
    }
    
    .about-main {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .about-stats .stat-box {
        width: 100%;
        max-width: 300px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }
    
    .gallery-item {
        padding-bottom: 75%; /* Maintain 4:3 aspect ratio on mobile */
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-content img {
        max-height: 80vh;
    }
    
    .lightbox-counter {
        bottom: 10px;
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .accordion-header {
        color: #000;
    }
}