/* =========================================
   Design System & Base Variables
   ========================================= */
:root {
    --color-black: #0a0a0a;
    --color-gold: #d4af37;
    --color-white: #ffffff;
    --font-primary: 'Inter', sans-serif;

    --transition-smooth: 0.3s ease-out;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

input,
button,
textarea,
select {
    font-family: var(--font-primary);
}

/* =========================================
   Typography & Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* =========================================
   Navigation Bar
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-smooth);
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
}

.navbar:not(.scrolled) {
    padding: 20px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    margin-left: 15px;
    /* Moved slightly to the right */
    gap: 4px;
}

.navbar-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 0.70rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    transition: color var(--transition-smooth);
}

.navbar-logo:hover .logo-text {
    color: var(--color-gold);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--color-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background-color: #e60000 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 4px;
    transition: all var(--transition-smooth);
    animation: glowPulse 2s infinite !important;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(230, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(230, 0, 0, 0.8), 0 0 30px rgba(230, 0, 0, 0.6);
    }

    100% {
        box-shadow: 0 0 5px rgba(230, 0, 0, 0.5);
    }
}

.nav-cta:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(230, 0, 0, 0.8), 0 0 40px rgba(230, 0, 0, 0.6) !important;
}

.nav-admin {
    background-color: transparent;
    border-radius: 4px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
    text-decoration: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1005;
}

.nav-admin img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-admin:hover {
    background-color: transparent;
    transform: translateX(-50%) translateY(-4px);
    box-shadow: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-smooth);
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 40px;
    /* Accounts for fixed navbar height */
    background-image: url('../images/bg.png');
    /* Assumes bg.png is in the same directory */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Dark Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Strong dark overlay for readability */
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.8) 50%, rgba(10, 10, 10, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    /* Center-left constraint */
}

/* Typography styles */
.hero-headline {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;

    /* Animation state */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.2s;
    /* Start quickly */
}

.hero-subheadline {
    font-size: clamp(1.125rem, 1.5vw, 1.35rem);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    /* Slightly muted for hierarchy */
    margin-bottom: 48px;
    max-width: 600px;

    /* Animation state */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.4s;
    /* Staggered wait */
}

/* Calls to Action */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;

    /* Animation state */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.6s;
    /* Staggered wait */
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    /* Minimal and corporate */
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-black);
    border: 2px solid var(--color-gold);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    /* Soft gold shadow */
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-gold);
}

.btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

/* WhatsApp Icon SVG Styling */
.whatsapp-icon {
    transition: stroke var(--transition-smooth);
}

/* =========================================
   Internal Pages (About, etc)
   ========================================= */
.page-header {
    background-color: var(--color-black);
    padding: 180px 0 80px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.85));
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.section {
    padding: 80px 0;
}

.section-dark {
    background-color: #111111;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-gold);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
    margin: 0 auto 24px;
}

.text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Cards & Elements */
.card {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 6px;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.4);
}

.card-icon {
    color: var(--color-gold);
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-white);
}

.card-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.check-list {
    list-style: none;
    text-align: left;
    margin-top: 20px;
    padding: 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

.check-list li svg {
    color: var(--color-gold);
    flex-shrink: 0;
}

.cta-section {
    background-color: var(--color-gold);
    color: var(--color-black);
    padding: 80px 0;
    text-align: center;
}

.cta-section .section-title {
    color: var(--color-black);
}

.cta-section .section-divider {
    background-color: var(--color-black);
}

.cta-section .text-content {
    color: rgba(0, 0, 0, 0.8);
}

.cta-section .btn-primary {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
    margin-top: 30px;
}

.cta-section .btn-primary:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* =========================================
   Homepage Sections
   ========================================= */
.product-simple-card {
    background-color: #111;
    border-radius: 6px;
    overflow: hidden;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-simple-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
}

.product-img-box {
    width: 100%;
    height: 200px;
    background-color: #222;
    background-image: url('../images/bg.png');
    /* generic fallback if no specific image is provided */
    background-size: cover;
    background-position: center;
}

.product-details {
    padding: 20px;
    text-align: left;
}

.product-label {
    font-size: 0.8rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.product-name {
    font-size: 1.2rem;
    color: var(--color-white);
    font-weight: 600;
    margin: 0;
}

/* Quick Contact Form */
.quick-contact-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #111;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--color-white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-gold);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* =========================================
   Icon Styles
   ========================================= */
i[class^="fa-"] {
    transition: transform var(--transition-smooth), color var(--transition-smooth);
}

i[class^="fa-"]:not(.btn i):not(.check-list i):hover {
    transform: scale(1.1);
}

.check-list i {
    color: var(--color-gold);
    margin-right: 12px;
}

.btn i {
    margin-right: 8px;
    transition: transform var(--transition-smooth);
}

.btn:hover i {
    transform: scale(1.15);
}

/* =========================================
   Keyframe Animations
   ========================================= */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 40px 0;
        gap: 30px;
        align-items: center;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .navbar-menu.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media screen and (max-width: 1024px) {
    .section {
        padding: 60px 0;
    }

    .page-title {
        font-size: clamp(2rem, 3.5vw, 3rem);
    }

    .grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.85) 60%, rgba(10, 10, 10, 0.6) 100%);
    }

    .hero-content {
        padding-top: 70px;
    }

    .hero-headline {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-subheadline {
        font-size: 1rem;
        line-height: 1.5;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        gap: 12px;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-top: 0 !important;
    }

    .quick-contact-container {
        padding: 24px !important;
    }

    .contact-info-card {
        padding: 24px;
    }

    /* Ensure flex form buttons stack properly on mobile */
    .quick-contact-container>form>div:last-child {
        flex-direction: column !important;
    }

    .quick-contact-container>form>div:last-child .btn {
        flex: 1 1 100% !important;
    }
}

/* =========================================
   Products Page Styles (Light Mode Theme)
   ========================================= */
.products-catalog-section {
    background-color: #f7f7f7;
    /* Clean, light background */
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Card Styling */
.product-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Initial soft shadow */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Hover Effect: Slight lift and increased shadow */
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    height: 240px;
    background-color: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-desc {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
    /* Pushes content below it to the bottom */
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.product-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1.05rem;
    border-radius: 6px;
}

/* =========================================
   Product Image Slider
   ========================================= */
.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 240px;
    background-color: #eaeaea;
    border-bottom: 1px solid #f0f0f0;
}

.slides {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    height: 100%;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    z-index: 2;
    transition: background 0.2s ease;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover,
.next:hover {
    background: rgba(0, 0, 0, 0.8);
}