/* Global Variables & Reset */
:root {
    --bg-color: #FAFAFA;
    --text-color: #2C3E50;
    --primary-color: #2F4F4F;
    /* Dark Slate Gray */
    --accent-color: #C0A080;
    /* Muted Gold/Beige */
    --light-bg: #F0F4F8;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
    font-size: 1.1rem;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Buttons */
.btn-primary,
.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.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-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 15px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    font-family: var(--font-body);
    opacity: 0.9;
}

.navbar.scrolled .logo {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

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

.nav-links .btn-primary {
    color: var(--white) !important;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 4px;
    padding: 10px 0;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-color) !important;
    /* Force dark text in white dropdown */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-transform: none;
    /* Submenus can be normal case */
    font-weight: 400;
    font-size: 1rem;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.navbar.scrolled .nav-links .btn-primary {
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

.navbar.scrolled .bar {
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    background-image: url('public/assets/images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

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

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 20px;
}

/* Sections */
.section {
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    color: var(--primary-color);
}

.title-line {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 10px;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.about-image img {
    width: 60%;
    height: auto;
    display: block;
    margin: 0 auto;
    /* Center the image */
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Services */
.alt-bg {
    background-color: var(--light-bg);
}

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

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contact */
.contact-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-section h2 {
    color: var(--white);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin-top: 2rem;
    color: var(--white) !important;
    /* Force white for readability */
    font-weight: 600;
}

.contact-link:hover {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #999;
    padding: 40px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--white);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transform: translateY(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.cookie-banner.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.cookie-content h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Gallery & Lightbox */
.gallery-container {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-image {
    width: 30%;
    /* Requested 30% scale */
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 30px 0;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        color: var(--text-color);
    }

    .navbar.scrolled .nav-links {
        background-color: rgba(255, 255, 255, 0.98);
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo {
        position: relative;
        z-index: 1001;
        /* Above mobile menu */
    }

    .navbar .logo {
        color: var(--white);
    }

    /* Always visible on mobile if bg is white, but here bg is transparent initially. Let's fix mobile header style */

    /* Fix mobile header visibility */
    .navbar {
        background-color: transparent;
    }

    /* If menu is open, make navbar white */
    .navbar.menu-open {
        background-color: var(--white);
    }

    .navbar.menu-open .logo {
        color: var(--primary-color);
    }

    .navbar.menu-open .bar {
        background-color: var(--primary-color);
    }

    /* Mobile Dropdown */
    .dropdown {
        display: block;
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        display: none;
        background-color: #f9f9f9;
        box-shadow: none;
        width: 100%;
        padding-left: 0;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 20px;
    }

    .about-image {
        order: -1;
        /* Image on top on mobile */
        margin-bottom: 2rem;
    }

    .about-image img {
        margin: 0 auto;
    }

    /* Mobile Text Alignment & Spacing */
    .hero-content {
        text-align: center;
        padding: 0 20px;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        text-align: center;
        width: 100%;
        /* Full width buttons on mobile */
        display: block;
        box-sizing: border-box;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .contact-link {
        font-size: 1.2rem;
        flex-direction: column;
        /* Stack icon and text */
        gap: 5px;
    }

    .footer-content {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}