/* ========================================
   Al Araimi Trad - Main Stylesheet
   ======================================== */

/* CSS Variables (Design System) */
:root {
    --color-black: #000000;
    --color-blue: #045cb4;
    --color-dark: #1e293b;
    --color-slate: #334155;
    --color-white: #FFFFFF;
    --color-light: #F0F5FA;
    --color-near-black: #111111;
    --color-gray: #D1D5DB;
    --color-hover: #737376;

    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Arsenal', serif;

    --container-width: 1200px;
    --container-wide: 1240px;
    --header-height: 80px;

    --transition: all 0.3s ease;
    --radius: 4px;
    --shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-slate);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover, a:focus {
    color: var(--color-blue);
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.3;
}

h1 { font-size: 2.25rem; line-height: 1.4em; }
h2 { font-size: 1.875rem; line-height: 1.3em; }
h3 { font-size: 1.5rem; line-height: 1.3em; }
h4 { font-size: 1.25rem; line-height: 1.2em; }
h5 { font-size: 1.125rem; line-height: 1.2em; }
h6 { font-size: 1rem; line-height: 1.25em; }

p {
    margin-bottom: 1em;
}

::selection {
    background-color: var(--color-black);
    color: var(--color-white);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.skip-link {
    position: absolute;
    top: -1000px;
    left: 0;
    background: var(--color-black);
    color: var(--color-white);
    padding: 10px 20px;
    z-index: 99999;
}

.skip-link:focus {
    top: 0;
}

/* Container */
.container {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: inherit;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1em;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--color-black);
    color: var(--color-white);
    border: 2px solid var(--color-black);
}

.btn-primary:hover {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-black);
    border: 2px solid var(--color-black);
}

.btn-outline:hover {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: var(--color-white);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-black);
    border: 2px solid var(--color-white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--color-white);
}

.btn-book {
    background-color: var(--color-black);
    color: var(--color-white) !important;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.btn-book:hover {
    background-color: var(--color-blue);
}

/* Section */
.section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 1em;
}

.text-center {
    text-align: center;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-gray);
}

/* Mobile Header */
.mobile-header {
    display: none;
}

.mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    min-height: 60px;
}

.mobile-logo .logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-black);
    transition: var(--transition);
}

.menu-toggle.active .menu-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    background: var(--color-white);
    border-top: 1px solid var(--color-gray);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
}

.mobile-menu li {
    border-bottom: 1px solid var(--color-gray);
}

.mobile-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--color-dark);
    font-weight: 500;
}

.mobile-menu li a:hover {
    background-color: var(--color-light);
}

.mobile-menu .sub-menu {
    display: none;
    background: var(--color-light);
}

.mobile-menu .sub-menu li a {
    padding-left: 40px;
    font-size: 0.9rem;
}

.mobile-menu .menu-item-has-children > a {
    position: relative;
}

.mobile-menu .menu-item-has-children > a::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.2rem;
}

/* Desktop Header */
.desktop-header {
    display: block;
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: var(--header-height);
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 40px;
}

.header-left {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-right {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
}

.header-center {
    flex: 0 0 auto;
    text-align: center;
    padding: 0 30px;
}

.site-logo {
    display: inline-block;
    text-decoration: none;
}

.site-logo .logo-text {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--color-dark);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 0 0.9em;
    line-height: var(--header-height);
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.right-nav {
    flex-shrink: 0;
}

.right-nav .nav-menu {
    flex-wrap: nowrap;
}

.right-nav .nav-menu li a {
    padding: 0 0.7em;
    font-size: 0.85rem;
}

.nav-menu li a:hover {
    color: var(--color-hover);
}

.nav-menu .current-menu-item > a {
    color: var(--color-black);
}

/* Sub-menu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: var(--color-white);
    border-top: 2px solid var(--color-black);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-menu li a {
    line-height: 1.4;
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-gray);
    font-size: 0.9rem;
}

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



.header-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.header-phone > a {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.85rem;
    white-space: nowrap;
}

.header-phone > a:hover {
    color: var(--color-blue);
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.whatsapp-link:hover {
    color: #25D366;
}

.whatsapp-link svg {
    width: 16px;
    height: 16px;
    fill: #25D366;
    flex-shrink: 0;
}

/* ========================================
   HERO SLIDER
   ======================================== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: var(--header-height);
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    animation: kenBurns 8s ease-in-out infinite alternate;
}

.slide.active {
    opacity: 1;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.slider-content {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.slider-title {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 1.5em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--color-white);
    transform: scale(1.2);
}

/* ========================================
   SHOWROOM SECTION
   ======================================== */
.showroom-section {
    background-color: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    padding: 100px 0;
}

.showroom-section .section-title {
    color: var(--color-white);
    margin-bottom: 0.5em;
}

.showroom-section .section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2em;
    opacity: 0.9;
}

/* Materials Section */
.materials-section { background: var(--color-white); padding: 100px 0; }
.materials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 3em; }
.material-card { background: var(--color-white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.08); transition: var(--transition); }
.material-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.material-image { height: 280px; background-size: cover; background-position: center; }
.material-info { padding: 25px; }
.material-info h3 { margin-bottom: 0.5em; }
.material-info p { font-size: 0.9rem; color: var(--color-slate); margin-bottom: 1em; line-height: 1.6; }
.material-info .features { list-style: none; padding: 0; margin: 0 0 1.2em; }
.material-info .features li { font-size: 0.85rem; padding: 4px 0; color: var(--color-slate); position: relative; padding-left: 20px; }
.material-info .features li::before { content: '—'; position: absolute; left: 0; color: var(--color-black); }

/* Products Showcase */
.products-showcase { background: var(--color-light); padding: 100px 0; }
.products-showcase-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 3em; }
.product-showcase-item { position: relative; height: 350px; border-radius: var(--radius); overflow: hidden; }
.product-showcase-item .ps-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.5s ease; }
.product-showcase-item:hover .ps-image { transform: scale(1.05); }
.product-showcase-item .ps-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 25px 20px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); }
.product-showcase-item .ps-overlay h3 { color: #fff; font-size: 1.1rem; margin: 0; }

/* CTA Banner */
.cta-banner { background-size: cover; background-position: center; background-attachment: fixed; padding: 120px 0; position: relative; text-align: center; }
.cta-banner::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; font-size: 2.2rem; margin-bottom: 1.5em; }

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    background-color: var(--color-white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    margin-bottom: 1em;
}

.about-content p {
    margin-bottom: 1.2em;
    line-height: 1.8;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-section {
    background-color: var(--color-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 3em;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    margin-bottom: 0.5em;
}

.product-info p {
    font-size: 0.95rem;
    margin-bottom: 1.2em;
    color: var(--color-slate);
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */
.portfolio-section {
    background-color: var(--color-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 3em;
}

.portfolio-item {
    position: relative;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
}

.portfolio-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 1em;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
    padding: 100px 0;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 0.5em;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2em;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    background-color: var(--color-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 0.5em;
}

.contact-info > p {
    margin-bottom: 2em;
}

.info-item {
    margin-bottom: 1.2em;
}

.info-item strong {
    display: block;
    color: var(--color-dark);
    margin-bottom: 3px;
}

.contact-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-gray);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background-color: var(--color-near-black);
    color: var(--color-white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1em;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 1em;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    margin: 0;
}

/* ========================================
   SCROLL TO TOP
   ======================================== */
#scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
}

#scroll-top:hover {
    background: var(--color-blue);
}

#scroll-top.visible {
    display: flex;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .nav-menu li a {
        padding: 0 0.6em;
        font-size: 0.85rem;
    }

    .header-center {
        padding: 0 15px;
    }

    .site-logo .logo-text {
        font-size: 1.4rem;
    }
}

@media (max-width: 921px) {
    .desktop-header {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    .hero-slider {
        margin-top: 60px;
        height: 70vh;
        min-height: 400px;
    }

    .slider-title {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .materials-grid {
        grid-template-columns: 1fr;
    }

    .products-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-showcase-item:last-child {
        grid-column: span 2;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5625rem; }
    h3 { font-size: 1.25rem; }

    .section {
        padding: 60px 0;
    }

    .header-phone {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 544px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-showcase-grid {
        grid-template-columns: 1fr;
    }

    .product-showcase-item:last-child {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .slider-title {
        font-size: 1.5rem;
    }

    .cta-banner h2 {
        font-size: 1.6rem;
    }

    .contact-form {
        padding: 25px;
    }

    .section {
        padding: 40px 0;
    }
}
