/* public.css - Styles for the public-facing landing pages */

/* Reset & Variables */
:root {
    --primary-color: #2c3e50;
    --accent-color: #d4af37; /* gold */
    --text-color: #333333;
    --text-light: #777777;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Hide mobile-only header strictly on desktop */
.mobile-menu-header {
    display: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* --- Top Contact Bar --- */
.top-bar {
    background-color: var(--bg-light);
    border-bottom: 1px solid #eaeaea;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-light);
    position: relative;
    z-index: 1001;
}

.mobile-contact-info,
.mobile-menu-close,
.nav-overlay {
    display: none;
}

.top-bar__container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__socials a {
    margin-right: 15px;
    color: var(--text-light);
    font-size: 1rem;
}

.top-bar__socials a:hover {
    color: var(--accent-color);
}

.top-bar__contact span {
    margin-left: 20px;
}

.top-bar__contact span a:hover {
    color: var(--accent-color);
}

.top-bar__contact i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* --- Header & Logo --- */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    padding: 15px 0;
}

.header__logo img {
    height: 60px; /* Reduced height as requested */
    display: block;
}

/* --- Main Navigation --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0;
}

.nav-list > li {
    position: relative;
    padding: 25px 20px; /* Increased vertical padding to match header height */
}

.nav-list > li > a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-list > li > a:hover {
    color: var(--accent-color);
}

.nav-arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    vertical-align: middle;
}

.nav-login {
    margin-left: auto; /* Push login to the right if space allows, or keep centered */
}
.nav-login a {
    color: var(--accent-color) !important;
}

/* --- Dropdown Menu --- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
    border-top: 2px solid var(--accent-color);
}

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

.dropdown-menu li {
    border-bottom: 1px solid #eaeaea;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
    padding-left: 25px;
}

/* --- Hero Section --- */
.hero-section {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: #bfa036;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* --- About Us Section --- */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--accent-color);
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-light);
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .header__container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 3%;
    }
    
    .about-grid {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .header__container {
        position: relative;
    }

    .top-bar {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 3%;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .header__logo {
        z-index: 1001;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 80px 0 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        display: flex;
        align-items: flex-start;
        border-top: none;
        z-index: 2000;
        overflow-y: auto;
    }
    
    .nav-list.nav-active {
        transform: translateX(0);
    }
    
    .nav-list > li {
        width: 100%;
        padding: 12px 25px;
        border-bottom: 1px solid #f5f5f5;
    }

    .nav-list > li:last-child {
        border-bottom: none;
    }

    .nav-list > li > a {
        font-size: 1rem;
    }

    .nav-login {
        margin-left: 0;
    }

    /* Mobile Close Button */
    .mobile-menu-close {
        display: block !important;
        position: absolute;
        top: 20px;
        right: 20px;
        padding: 0 !important;
        border-bottom: none !important;
    }

    .mobile-menu-close button {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
    }

    /* Mobile Menu Header Label */
    .mobile-menu-header {
        display: block !important;
        text-align: center;
        padding: 0 20px 20px !important;
        border-bottom: 1px solid #f0e8da !important;
        margin-bottom: 10px;
        width: 100% !important;
    }

    .mobile-menu-header h3 {
        font-family: 'Playfair Display', Georgia, serif;
        font-size: 1.6rem;
        color: var(--primary-color);
        margin-bottom: 6px;
        letter-spacing: 1.5px;
    }

    .mobile-menu-header p {
        font-size: 0.75rem;
        color: #888;
        font-family: 'Lato', sans-serif;
        text-transform: uppercase;
        letter-spacing: 3px;
    }

    /* Mobile Dropdown Overrides - Animated Accordion to prevent Ghost Clicks */
    .has-dropdown .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        background: transparent !important;
        border-top: none !important;
        padding-left: 20px !important;
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-5px) !important;
        margin-top: 0;
        min-width: 100% !important;
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s ease-out;
    }
    
    .has-dropdown .dropdown-menu.active {
        max-height: 400px;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        margin-top: 5px;
    }
    
    .nav-arrow {
        transition: transform 0.3s ease;
        display: inline-block;
    }
    
    .nav-arrow.rotated {
        transform: rotate(180deg);
    }

    /* Overlay for mobile menu */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 999; /* Below the header (1000) so the nav menu is clickable */
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        display: block !important;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Contact Section Styles */
    .mobile-contact-info {
        margin-top: auto;
        padding: 30px 25px !important;
        background-color: var(--bg-light);
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mobile-contact-info__socials {
        display: flex;
        gap: 20px;
        justify-content: center;
        margin-bottom: 10px;
    }

    .mobile-contact-info__socials a {
        font-size: 1.4rem;
        color: var(--primary-color);
    }

    .mobile-contact-info__socials a:hover {
        color: var(--accent-color);
    }

    .mobile-contact-info__details {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-contact-info__details a {
        font-size: 0.9rem;
        color: var(--text-light);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-contact-info__details i {
        color: var(--accent-color);
        width: 16px;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 20px;
        border-left: 2px solid var(--accent-color);
        border-top: none;
        margin-top: 10px;
    }

    .has-dropdown:hover .dropdown-menu {
        display: block;
    }

    .nav-list .dropdown-menu.active {
        display: block;
    }
    
    .nav-arrow.rotated {
        transform: rotate(180deg);
    }
    
    .header__logo img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .btn-primary {
        padding: 10px 20px;
    }
    .about-text h2 {
        font-size: 2rem;
    }
}

/* --- Image Optimization & Lazy Loading --- */
img {
    background-color: #f0f0f0;
    min-height: 100px;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
