/* ========================================
   RESET & GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arapey', serif;
    font-weight: 400;
    font-size: 18px;
    color: #2a1a0b;
    line-height: 1.6;
    background-color: #f6f1eb;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #c5a47e;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #444444;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Alegreya Sans SC', sans-serif;
    font-weight: 400;
    color: #2a1a0b;
    text-transform: uppercase;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   HEADER
   ======================================== */
#site-header {
    background-color: #190b00;
    padding: 20px 0 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

#site-header.scrolled {
    background-color: #190b00;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#site-logo img {
    max-height: 40px;
    width: auto;
}

/* Navigation */
#site-navigation ul.menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

#site-navigation .menu li {
    position: relative;
}

#site-navigation .menu > li > a {
    font-family: 'Alegreya Sans SC', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #f6f1eb;
    text-transform: uppercase;
    letter-spacing: 0;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

#site-navigation .menu > li > a:hover {
    color: #c5a47e;
}

/* Submenu */
#site-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f6f1eb;
    min-width: 250px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

#site-navigation .has-submenu:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#site-navigation .sub-menu li {
    border-bottom: 1px solid rgba(42, 26, 11, 0.1);
}

#site-navigation .sub-menu li:last-child {
    border-bottom: none;
}

#site-navigation .sub-menu a {
    color: #2a1a0b;
    padding: 12px 20px;
    display: block;
    font-size: 16px;
}

#site-navigation .sub-menu a:hover {
    background-color: rgba(197, 164, 126, 0.1);
    color: #c5a47e;
}

/* Search Toggle */
.search-toggle a {
    color: #f6f1eb;
    font-size: 18px;
}

.search-toggle a:hover {
    color: #c5a47e;
}

/* Mobile Menu Toggle */
#mobile-menu-toggle {
    display: none;
}

.mobile-menu-btn {
    color: #f6f1eb;
    font-size: 24px;
    cursor: pointer;
}

/* Search Form */
#search-form {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #190b00;
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

#search-form.active {
    transform: translateY(0);
}

.searchform {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.searchform input[type="search"],
.searchform .search-field {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #c5a47e;
    background-color: #f6f1eb;
    color: #2a1a0b;
    font-family: 'Arapey', serif;
    font-size: 16px;
}

.searchform button,
.search-submit {
    background-color: #c5a47e;
    color: #f6f1eb;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.searchform button:hover,
.search-submit:hover {
    background-color: #444444;
}

.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #f6f1eb;
    font-size: 24px;
    cursor: pointer;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
#main {
    margin-top: 70px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/MANUFACTOR.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-logo img {
    max-width: 400px;
    width: 80%;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intro Section */
.intro-section {
    padding: 60px 0 20px;
    background-color: #f6f1eb;
}

.separator-top,
.separator-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
}

.separator-line {
    flex: 1;
    height: 1px;
    background-color: #2a1a0b;
}

.separator-top h4,
.separator-bottom h4 {
    margin: 0 20px;
    font-size: 24px;
    color: #2a1a0b;
}

.main-title {
    text-align: center;
    font-family: 'Alegreya Sans SC', sans-serif;
    font-weight: 400;
    font-size: 30px;
    color: #2a1a0b;
    margin: 40px 0;
}

.intro-text {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text p {
    text-align: justify;
    margin-bottom: 20px;
}

/* Image Banners */
.image-banners {
    padding: 0;
}

.banner-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.banner-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

.banner-item:hover .banner-image {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(246, 241, 235, 0);
    transition: background-color 0.3s ease;
}

.banner-item:hover .banner-overlay {
    background-color: rgba(246, 241, 235, 0.1);
}

.banner-title {
    font-family: 'Alegreya Sans SC', sans-serif;
    font-weight: 400;
    font-size: 28px;
    color: #2a1a0b;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.banner-caption {
    font-family: 'Arapey', serif;
    font-size: 16px;
    color: #2a1a0b;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

/* Final Separator */
.final-separator {
    padding: 40px 0;
    background-color: #f6f1eb;
}

.separator {
    display: flex;
    align-items: center;
    justify-content: center;
}

.separator .separator-line {
    flex: 1;
    height: 1px;
    background-color: #2a1a0b;
}

.separator h4 {
    margin: 0 20px;
    font-size: 24px;
    color: #2a1a0b;
}

/* ========================================
   FOOTER
   ======================================== */
#footer {
    background-color: #190a00;
    color: #f6f1eb;
    padding: 60px 0 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column {
    text-align: center;
}

.footer-logo {
    max-width: 200px;
    width: 100%;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #f6f1eb;
    font-family: 'Arapey', serif;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #c5a47e;
}

/* Footer Search */
.footer-searchform {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.footer-searchform input {
    flex: 1;
    padding: 10px;
    border: 1px solid #f6f1eb;
    background-color: transparent;
    color: #f6f1eb;
    font-family: 'Arapey', serif;
}

.footer-searchform input::placeholder {
    color: rgba(246, 241, 235, 0.6);
}

.footer-searchform button {
    background-color: #c5a47e;
    color: #f6f1eb;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-searchform button:hover {
    background-color: #444444;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(246, 241, 235, 0.1);
    border-radius: 50%;
    color: #f6f1eb;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #c5a47e;
    transform: translateY(-3px);
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    color: #2a1a0b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#scroll-to-top:hover {
    background-color: #c5a47e;
    color: #ffffff;
    transform: translateY(-5px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 960px) {
    #site-navigation {
        display: none;
    }

    #mobile-menu-toggle {
        display: block;
    }

    .banner-row {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-title {
        font-size: 24px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body {
        font-size: 16px;
    }

    #site-header {
        padding: 15px 0;
    }

    .hero-logo img {
        max-width: 280px;
    }

    .intro-section {
        padding: 40px 0 20px;
    }

    .intro-text p {
        text-align: left;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .banner-title {
        font-size: 20px;
    }

    .banner-caption {
        font-size: 14px;
    }

    #scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 479px) {
    .container {
        padding: 0 15px;
    }

    .hero-logo img {
        max-width: 220px;
    }

    .main-title {
        font-size: 20px;
    }
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background-color: #190b00;
    transition: left 0.3s ease;
    z-index: 998;
    overflow-y: auto;
    padding: 20px;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(246, 241, 235, 0.1);
}

.mobile-menu a {
    display: block;
    padding: 15px 10px;
    color: #f6f1eb;
    font-family: 'Alegreya Sans SC', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
}

.mobile-menu a:hover {
    color: #c5a47e;
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 997;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
