/* Root Variables - Color Palette & Typography */
:root {
    --primary-color: #1a3c34;
    /* Deep Forest Green - Trust, Stability */
    --secondary-color: #c5a059;
    /* Gold/Bronze - Luxury, Premium */
    --accent-color: #f4f1ea;
    /* Off-white/Cream - Backgrounds */
    --text-dark: #121212;
    --text-light: #f4f1ea;
    --text-gray: #666666;
    --white: #ffffff;
    --transition: all 0.3s ease;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --spacing-section: 5rem;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--accent-color);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--spacing-section) 0;
}

.bg-light {
    background-color: var(--white);
}

.highlight {
    color: var(--secondary-color);
    font-style: italic;
}

.subtitle {
    display: block;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-light {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: bold;
}

.btn-light:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.logo-sub {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Fix for Contact Us button text color (overriding .nav-links a) */
.nav-links .btn-primary {
    color: var(--white) !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1600596542815-3ad19fb2a258?ixlib=rb-4.0.3&auto=format&fit=crop&w=2074&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 60, 52, 0.7), rgba(26, 60, 52, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--secondary-color);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(197, 160, 89, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Why Choose Us - Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.feature-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ddd;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Founder Image */
.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.designation {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.bio {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.experience-timeline {
    border-left: 2px solid rgba(0, 0, 0, 0.1);
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-item:not(:last-child) {
    margin-bottom: 2rem;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.timeline-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.education-box {
    background-color: var(--white);
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    padding: 4rem 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-info {
    background-color: var(--primary-color);
    padding: 3rem;
    color: var(--white);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.info-item h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-family: var(--font-body);
}

.info-item p,
.info-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contact-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 60, 52, 0.1);
}

/* Footer */
footer {
    background-color: #0e231f;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    text-align: center;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 2rem;
}

.footer-brand p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-social {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.social-links-container {
    display: block !important;
    /* Override flex from info-item */
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.social-links-container h3 {
    margin-bottom: 1rem !important;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links .btn-primary {
        margin-top: 1rem;
        display: inline-block;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .about-image {
        min-height: 300px;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* ===== VIEW SITES BUTTON & DROPDOWN ===== */
.view-sites-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 1.2rem;
}

.btn-view-sites {
    background: linear-gradient(135deg, var(--primary-color), #2a5c4e);
    color: var(--white);
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 60, 52, 0.3);
}

.btn-view-sites:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 60, 52, 0.4);
    background: linear-gradient(135deg, #2a5c4e, var(--primary-color));
}

.btn-view-sites i {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.btn-view-sites.open i {
    transform: rotate(180deg);
}

.sites-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-width: 180px;
    z-index: 500;
    animation: dropdownSlide 0.25s ease;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.sites-dropdown.open {
    display: block;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sites-dropdown button {
    width: 100%;
    background: none;
    border: none;
    padding: 0.85rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.2s ease;
    text-align: left;
}

.sites-dropdown button:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.sites-dropdown button i {
    color: var(--secondary-color);
    font-size: 0.95rem;
    width: 18px;
}

.sites-dropdown button:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Admin Navbar Button */
.btn-admin-nav {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-admin-nav:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-admin-nav.admin-logged {
    background: #c0392b;
    border-color: #c0392b;
    color: var(--white);
}

/* Ensure active card is above others for dropdown visibility */
.service-card {
    position: relative;
    z-index: 1;
    /* base z-index */
}

/* ===== MODAL OVERLAYS ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 18, 0.75);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    padding: 1rem;
}

/* Ensure SweetAlert2 is always on top of custom modals and lightbox */
.swal2-container {
    z-index: 11000 !important;
}

.modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-box {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 600px;
}

.modal-gallery {
    max-width: 820px;
    text-align: left;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--primary-color);
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #e0ddd5;
    transform: rotate(90deg);
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(26, 60, 52, 0.1), rgba(197, 160, 89, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.add-icon {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.15), rgba(197, 160, 89, 0.3));
    color: var(--secondary-color);
}

.view-icon {
    background: linear-gradient(135deg, rgba(26, 60, 52, 0.15), rgba(26, 60, 52, 0.25));
    color: var(--primary-color);
}

.modal-box h3 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
    color: var(--primary-color);
}

.modal-box p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.modal-form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.modal-form-group input,
.modal-form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e8e5de;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--accent-color);
    color: var(--text-dark);
    resize: none;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 60, 52, 0.1);
    background: var(--white);
}

.modal-btn-primary {
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), #2a5c4e);
    color: var(--white);
    border: none;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(26, 60, 52, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(26, 60, 52, 0.4);
}

/* Action row: Save + My Listings buttons side by side */
.modal-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.modal-btn-manage {
    background: none;
    border: 2px solid #c0392b;
    color: #c0392b;
    padding: 0.83rem 1.4rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.3s ease;
}

.modal-btn-manage:hover {
    background: #c0392b;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(192, 57, 43, 0.35);
}


/* ===== PHOTO UPLOAD AREA ===== */
.photo-upload-area {
    border: 2px dashed rgba(197, 160, 89, 0.5);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--accent-color);
    margin-bottom: 1rem;
}

.photo-upload-area:hover {
    border-color: var(--secondary-color);
    background: rgba(197, 160, 89, 0.05);
}

.photo-upload-area i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.photo-upload-area p {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.photo-upload-area span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.preview-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(197, 160, 89, 0.3);
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-thumb .remove-photo {
    position: absolute;
    top: 3px;
    right: 3px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.preview-thumb .remove-photo:hover {
    background: #c0392b;
}

/* ===== SITES GALLERY ===== */
.modal-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.modal-header-row h3 {
    margin-bottom: 0.2rem;
    font-size: 1.5rem;
}

.modal-header-row p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-gray);
}

.sites-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.site-card-gallery {
    background: var(--accent-color);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
}

.site-card-gallery:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.site-gallery-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.4rem;
    padding: 0.8rem 0.8rem 0;
}

.site-gallery-photo {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.site-gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.site-gallery-photo:hover img {
    transform: scale(1.07);
}

.site-gallery-photo::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: rgba(26, 60, 52, 0.45);
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.site-gallery-photo:hover::after {
    opacity: 1;
}

.site-card-info {
    padding: 1rem 1.2rem 1.2rem;
}

.site-card-info h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.site-card-address {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--secondary-color);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.site-card-desc {
    color: var(--text-gray);
    font-size: 0.88rem;
    line-height: 1.5;
}

.site-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.site-card-date {
    font-size: 0.78rem;
    color: var(--text-gray);
}

.delete-site-btn {
    background: none;
    border: none;
    color: #c0392b;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-body);
    font-weight: 500;
    transition: background 0.2s ease;
    display: none;
    /* hidden for all users by default */
}

.delete-site-btn.owner-logged {
    display: flex;
}

.delete-site-btn:hover {
    background: #fdf2f2;
}

.empty-gallery {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-gray);
}

.empty-gallery i {
    font-size: 3rem;
    color: rgba(197, 160, 89, 0.4);
    display: block;
    margin-bottom: 1rem;
}

.empty-gallery h4 {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 0.4rem;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Market-specific card tweaks */
.site-card-gallery.market-card {
    border-left: 4px solid var(--secondary-color);
    background: var(--white);
}

.market-card .site-card-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.market-card .site-card-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Scrollbar for modals */
.modal-box::-webkit-scrollbar {
    width: 5px;
}

.modal-box::-webkit-scrollbar-track {
    background: transparent;
}

.modal-box::-webkit-scrollbar-thumb {
    background: rgba(26, 60, 52, 0.2);
    border-radius: 10px;
}

/* Responsive modals */
@media (max-width: 768px) {
    .modal-box {
        padding: 1.8rem 1.4rem;
    }

    .modal-gallery {
        max-height: 85vh;
    }

    .site-gallery-photos {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Visitor Action Grid (Home Selling) */
.visitor-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1.5rem;
    width: 100%;
}

.visitor-actions-grid .btn-view-sites {
    margin-top: 0 !important;
    padding: 0.7rem 0.5rem;
    font-size: 0.8rem;
    justify-content: center;
}

.btn-secondary-view {
    background: transparent !important;
    border: 1px solid var(--secondary-color) !important;
    color: var(--secondary-color) !important;
}

.btn-secondary-view:hover {
    background: var(--secondary-color) !important;
    color: var(--white) !important;
}

/* Root Variables - Color Palette & Typography */
:root {
    --primary-color: #1a3c34;
    /* Deep Forest Green - Trust, Stability */
    --secondary-color: #c5a059;
    /* Gold/Bronze - Luxury, Premium */
    --accent-color: #f4f1ea;
    /* Off-white/Cream - Backgrounds */
    --text-dark: #121212;
    --text-light: #f4f1ea;
    --text-gray: #666666;
    --white: #ffffff;
    --transition: all 0.3s ease;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --spacing-section: 5rem;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--accent-color);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--spacing-section) 0;
}

.bg-light {
    background-color: var(--white);
}

.highlight {
    color: var(--secondary-color);
    font-style: italic;
}

.subtitle {
    display: block;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-light {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: bold;
}

.btn-light:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.logo-sub {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Fix for Contact Us button text color (overriding .nav-links a) */
.nav-links .btn-primary {
    color: var(--white) !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1600596542815-3ad19fb2a258?ixlib=rb-4.0.3&auto=format&fit=crop&w=2074&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 60, 52, 0.7), rgba(26, 60, 52, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--secondary-color);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(197, 160, 89, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Why Choose Us - Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.feature-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ddd;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Founder Image */
.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.designation {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.bio {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.experience-timeline {
    border-left: 2px solid rgba(0, 0, 0, 0.1);
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-item:not(:last-child) {
    margin-bottom: 2rem;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.timeline-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.education-box {
    background-color: var(--white);
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    padding: 4rem 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-info {
    background-color: var(--primary-color);
    padding: 3rem;
    color: var(--white);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.info-item h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-family: var(--font-body);
}

.info-item p,
.info-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contact-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 60, 52, 0.1);
}

/* Footer */
footer {
    background-color: #0e231f;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    text-align: center;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 2rem;
}

.footer-brand p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-social {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.social-links-container {
    display: block !important;
    /* Override flex from info-item */
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.social-links-container h3 {
    margin-bottom: 1rem !important;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links .btn-primary {
        margin-top: 1rem;
        display: inline-block;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .about-image {
        min-height: 300px;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;

}