/*
 * File: assets/css/custom.css
 * Description: Custom styles for Geneva Watch Center
 * Updated for Image Logos
 */

/* Utility class for layout adjustment */
.input-buffer-offset {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 1px;
    width: 1px;
    overflow: hidden;
    opacity: 0;
}

/* 0. PRELOADER
-------------------------------------------------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #2c3e50; /* A dark, elegant background */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

#preloader .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3); /* Light grey circle */
    border-top-color: #fff; /* White spinner accent */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Class to fade out the preloader */
#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Classes to manage the visibility of the main content */
.content-hidden {
    opacity: 0;
}
.content-visible {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

#page-content {
    /* Prevent horizontal overflow from grid rows */
    overflow-x: hidden;
}

/* 1. GLOBAL & TYPOGRAPHY
-------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #333;
}

h2, h3, h4, h5, h6 {
    font-family: 'Times New Roman', serif;
    font-weight: 100;
    color: #00740a;
}

h1, .hero-title {
    font-family: 'Times New Roman', serif;
    font-weight: 100;
}

.section-title {
    font-weight: 100;
    color: #00740a;
}


/* 2. NAVIGATION BAR
-------------------------------------------------- */

/* Reinforces Bootstrap's .fixed-top */
.navbar.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

/* --- UPDATED: BRAND LOGO STYLES --- */
.navbar-brand {
    /* Removed text-specific fonts. Added flex to align images nicely */
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 1rem;
    top: 0; /* Reset top adjustment */
}

/* Controls the visual size of the logo in the Navbar */
.navbar-brand img {
    height: 60px; /* Adjust this to make logo larger/smaller */
    width: auto;
    transition: all 0.3s ease;
}

/* Mobile Adjustment: slightly smaller logo on phones */
@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 45px;
    }
}
/* ---------------------------------- */

.nav-link {
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .nav-link:hover {
    color: #fff;
}

/* --- SCROLLED STATE CONFIGURATION --- */

/* 1. The Navbar Container styling when scrolled */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* 2. Link colors when scrolled */
.navbar-scrolled .nav-link,
.navbar-scrolled .navbar-brand {
    color: #333;
}

.navbar-scrolled .nav-link:hover {
    color: #000;
}

.navbar-scrolled .nav-link.active {
    color: #000;
    font-weight: 600;
}

/* 3. Toggler (Mobile Menu) color when scrolled */
.navbar-scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- LOGO SWAPPING LOGIC --- */

/* Default State (Transparent BG): Show White Logo, Hide Dark Logo */
.navbar .logo-white {
    display: block;
}
.navbar .logo-dark {
    display: none;
}

/* Scrolled State (White BG): Hide White Logo, Show Dark Logo */
.navbar-scrolled .logo-white {
    display: none;
}
.navbar-scrolled .logo-dark {
    display: block;
}


/* 3. HERO SECTION & ANIMATIONS
-------------------------------------------------- */
.page-hero-section {
    height: 60vh;
    min-height: 300px;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-section::before,
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(98, 89, 56, 0.5); /* Overlay */
    z-index: 1;
    pointer-events: none;
}

.hero-section {
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    color: white;
    position: relative;
}

.hero-section::before {
    background: rgba(0, 0, 0, 0.4);
}

.hero-section .container,
.page-hero-section .container {
    position: relative;
    z-index: 2;
}

/* No-JS fallback */
.no-js .hero-title,
.no-js .hero-subtitle {
    opacity: 1 !important;
    transform: none !important;
}

/* 4. SCROLL-IN ANIMATION & FORMS
-------------------------------------------------- */
.fade-in-element {
    opacity: 1;
    transform: translateY(0);
}

.contact-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}
.contact-card {
    overflow: hidden;
}
.contact-info {
    background: #faf7f1;
}
.contact-form {
    background: #faf7f1;
}
.contact-form .form-label.small {
    letter-spacing: .06em;
    color: #666;
}
.contact-form .form-control,
.contact-form .form-select,
.contact-form textarea.form-control {
    border: 1px solid #e0d0b6;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus,
.contact-form textarea.form-control:focus {
    border-color: #c0a976;
    box-shadow: 0 0 0 0.12rem rgba(183,169,138,0.08);
}
.contact-card .btn-dark {
    background: #2c3e50;
    border-color: #2c3e50;
    color: #fff;
}
.contact-card .btn-dark:hover {
    background: #222f39;
    border-color: #222f39;
}

@media (max-width: 991.98px) {
    .contact-card { box-shadow: none; }
    .contact-info, .contact-form { padding: 1.5rem !important; }
}

/* Global Form Reset (Square corners) */
.form-control,
.form-select,
textarea.form-control {
    border-radius: 0 !important;
}

form .btn,
form button,
form input[type="submit"] {
    border-radius: 0 !important;
}

img {
    border-radius: 0 !important;
}

.required-star {
    color: #ea9c00;
    margin-left: 0.25rem;
    font-weight: 600;
}

.contact-mandatory-note {
    margin-top: 0.75rem;
    color: #6b6b6b;
}

.beige-row {
    background-color: #f6f1ec;
    padding: 1.5rem;
}
.beige-row .styled-box {
    background-color: transparent;
    padding: 0.75rem;
}
.beige-row .form-control,
.beige-row .form-select,
.beige-row textarea.form-control {
    background-color: #ffffff;
    border: 1px solid #cfc0ab;
    border-radius: 0;
    box-shadow: none;
}
.beige-row .form-control:focus,
.beige-row .form-select:focus,
.beige-row textarea.form-control:focus {
    border-color: #9a8f7a;
    box-shadow: 0 0 0 0.15rem rgba(154,143,122,0.08);
}


/* 5. LUXURY CARD STYLING
-------------------------------------------------- */
.luxury-card {
    background-color: #f6f1ec;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0;
}

.luxury-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.luxury-card .card-img-top {
    height: 260px;
    width: 100%;
    object-fit: cover;
    border-radius: 0;
}

.card-img-top-bg {
    height: 260px;
    width: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (max-width: 575.98px) {
    .card-img-top-bg {
        height: 180px;
    }
}

.btn-outline-dark {
    border-radius: 0;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    font-weight: 400;
    transition: all 0.3s ease; 
}

.btn-outline-dark:hover {
    background-color: #2c3e50;
    border-color: #2c3e50;
    color: #fff;
}

.filter-bar {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

/* 6. STYLED BOX COMPONENT
-------------------------------------------------- */
.styled-box {
    background-color: #f6f1ec;
    padding: 2rem;
    height: 100%;
    border-radius: 0;
}


/* 7. FOOTER
-------------------------------------------------- */
.footer-section {
    background-color: rgb(3, 49, 14);
    color: rgba(255, 255, 255, 0.7);
    border-top: none;
}

.footer-section h5 {
    color: #f6f1ec;
    font-family: 'Times New Roman', serif;
    font-weight: 600;
}

/* --- UPDATED: FOOTER LOGO --- */
.footer-logo {
    max-width: 250px; /* Ensures logo fits the column */
    height: auto;
    margin-bottom: 1rem;
    opacity: 0.95;
    display: inline-block;
}
/* ---------------------------- */

.footer-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-bottom {
    background-color: rgb(4, 32, 11);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section .text-muted {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.6) !important;
}


/* Mobile/Tablet Background Fix */
@media (max-width: 992px) {
    .hero-section,
    .page-hero-section {
        background-attachment: scroll;
    }
}