/* --- public/static/css/style.css --- */

/* === GENERAL & RESET === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:root {
    --primary-color: #c5a45e; /* Gold from the logo */
    --dark-color: #000000;    /* True black for a premium feel */
    --light-color: #f8f9fa;   /* A subtle light grey for section backgrounds */
    --accent-color: #c5a45e;  /* Gold for accents like icons */
    --text-color: #2b2b2b;
    --text-light: #ffffff;
    --danger-color: #D93025;  /* A clear red for error messages */
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff; /* Explicitly set to pure white */
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.section {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -2rem auto 3rem auto;
    font-size: 1.1rem;
    color: #666;
}

.bg-light {
    background-color: var(--light-color);
}

.bg-dark {
    background-color: var(--dark-color);
    color: var(--text-light);
}
.bg-dark h2, .bg-dark .section-subtitle {
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #ab8f52; /* Darker gold for hover */
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}


/* === HEADER & NAVBAR === */

.navbar-collapse {
    display: flex;
    align-items: center;
    flex-grow: 1; /* Takes up the remaining space */
    justify-content: space-between; /* Pushes nav links and actions to opposite ends */
}

.navbar-toggler {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--dark-color);
    cursor: pointer;
    z-index: 1100; /* Ensure it's on top of the mobile menu */
}

/* Styles for when the mobile menu is open */
.navbar-toggler .bx-x {
    color: var(--text-light); /* Make the close icon white against the dark background */
}

.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0; /* Increased vertical padding */
}

.navbar {
    display: flex;
    justify-content: flex-start; /* Align items to the start */
    align-items: center;
    gap: 60px; /* Creates the space between the logo and the nav links */
}

.navbar-logo img {
    height: 45px; /* Slightly reduced for better balance */
    width: auto;
}

.navbar-nav {
    display: flex;
    list-style: none;
}

.navbar-nav li {
    margin-left: 40px; /* Increased spacing */
}

.navbar-nav a {
    color: var(--text-color); /* Changed to text-color for consistency */
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar-nav a:hover {
    color: var(--primary-color);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px; /* Adds space between language switcher and button */
}

.language-switcher {
    position: relative;
}

.language-switcher select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px 32px 8px 12px; /* Right padding for custom arrow */
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.3s ease;
    line-height: 1.5; /* Ensure consistent height */
}

.language-switcher select:hover,
.language-switcher select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.language-switcher::after {
    content: '\eb82'; /* Corrected Boxicons chevron-down icon */
    font-family: 'boxicons';
    font-weight: normal; /* Prevents font-weight inheritance issues */
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-color);
}

/* === HERO SECTION === */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero-background.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* === PRODUCT SECTION === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card h3 {
    padding: 20px 20px 10px 20px;
}

.product-card p {
    padding: 0 20px 20px 20px;
    color: #555;
}

/* === SERVICE SECTION === */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-item {
    text-align: center;
    padding: 30px;
}
.service-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.service-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* === ADVANTAGE SECTION === */
.advantage-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.advantage-image {
    flex: 1;
}
.advantage-image img {
    width: 100%;
    border-radius: 10px;
}
.advantage-text {
    flex: 1;
}
.advantage-text h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
}
.advantage-text p {
    margin-bottom: 2rem;
}


/* === CONTACT FORM === */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    color: var(--text-color);
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
.error-text {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 5px;
}
.flash-message {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}
.flash-message.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}


/* === THANK YOU PAGE === */
.thank-you-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Ensures it takes up a good portion of the screen */
    padding: 80px 0;
}

.thank-you-icon {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.thank-you-content h1 {
    margin-bottom: 1rem;
}

.thank-you-content .section-subtitle {
    margin: 0 auto 2rem auto; /* Reset negative margin */
    font-size: 1.2rem;
    max-width: 500px;
}


/* === THANK YOU PAGE === */
.thank-you-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Ensures it takes up a good portion of the screen */
    padding: 80px 0;
}

.thank-you-icon {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.thank-you-content h1 {
    margin-bottom: 1rem;
}

.thank-you-content .section-subtitle {
    margin: 0 auto 2rem auto; /* Reset negative margin */
    font-size: 1.2rem;
    max-width: 500px;
}


/* === FOOTER === */
.main-footer {
    background-color: var(--text-color); /* Using the dark charcoal color */
    color: #a9b3c1; /* A softer light color for text */
    padding: 80px 0 20px 0;
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    /* Use a slightly larger min value to better suit 4 columns */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 40px;
    margin-bottom: 40px; /* Adjusted spacing */
}
.footer-logo {
    height: 65px; /* Increased from 40px for better visibility */
    width: auto;  /* Ensure aspect ratio is maintained */
    margin-bottom: 1.5rem;
}
.footer-col p {
    margin-bottom: 1.5rem;
}
.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color); /* Make headings gold */
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 12px;
}
.footer-col a {
    color: #a9b3c1; /* Match the softer text color */
    transition: color 0.3s ease, padding-left 0.3s ease;
    position: relative;
}
.footer-col a:hover {
    color: var(--primary-color);
    padding-left: 5px; /* Add a subtle hover effect */
}
.contact-list {
    list-style: none;
}
.contact-item {
    display: flex;
    align-items: flex-start; /* Align icon with the start of the text */
    margin-bottom: 15px;
}
.contact-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-right: 15px;
    margin-top: 3px; /* Fine-tune vertical alignment */
}
.contact-item span,
.contact-item a {
    flex: 1;
}
.contact-item a:hover {
    padding-left: 0; /* Disable the padding-left hover effect for contact links */
}
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}
.social-links a {
    font-size: 2rem;
    color: var(--light-color);
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    padding-left: 0; /* Disable the padding-left hover effect for social icons */
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle, theme-appropriate separator */
    padding-top: 40px; /* Increased spacing */
    color: #8c96a5;
    font-size: 0.9rem;
}

/* RTL Support */
[dir="rtl"] .navbar-nav li {
    margin-left: 0;
    margin-right: 40px; /* Match the new spacing */
}

[dir="rtl"] .language-switcher select {
    padding: 8px 12px 8px 32px; /* Swap padding */
}

[dir="rtl"] .language-switcher::after {
    right: auto;
    left: 12px;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .navbar {
        justify-content: space-between; /* Restore for mobile logo/toggler alignment */
        gap: 0; /* Reset gap */
    }
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-color);
        color: var(--text-light);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1050;
    }

    .navbar-collapse.is-open {
        transform: translateX(0);
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .navbar-nav li {
        margin: 20px 0;
        margin-left: 0; /* Reset margin */
    }
    
    .navbar-nav a {
        font-size: 1.5rem;
        color: var(--text-light);
    }

    .navbar-actions {
        flex-direction: column;
        margin-top: 30px;
    }

    .language-switcher select {
        margin: 0 0 20px 0;
    }

    .navbar-toggler {
        display: block;
    }
    
    /* RTL support for mobile menu */
    [dir="rtl"] .navbar-collapse {
        transform: translateX(-100%);
    }
    [dir="rtl"] .navbar-collapse.is-open {
        transform: translateX(0);
    }
    [dir="rtl"] .navbar-nav li {
        margin-right: 0;
    }

    .advantage-content {
        flex-direction: column;
    }

    .advantage-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }

    .section {
        padding: 60px 0;
    }

    .contact-form-wrapper {
        padding: 25px;
    }
    
    .footer-grid {
        text-align: center;
    }
    
    .footer-col {
        margin-bottom: 20px;
    }

    .social-links {
        justify-content: center; /* Horizontally center the social media icons */
    }

    .contact-list {
        display: inline-block; /* Allows the entire list to be centered as a block */
        text-align: left;      /* Ensures icon and text alignment is preserved inside the list */
    }
    
    [dir="rtl"] .contact-list {
        text-align: right;
    }
}