/*
Theme Name: WAKS Theme
Author: Khaled
Description: Custom clean modern theme for WAKS
Version: 1.0
*/

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.waks-header {
    background: #E2D6C2;
    padding: 20px 0;
    border-bottom: 1px solid #ccc;
}

.header-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 50px;
    /* Adjust this number if the logo is too big or small */
    width: auto;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #2F2F2F;
    font-weight: 500;
}

/* Dropdown Menu Styling */
.main-nav ul li {
    position: relative;
}

/* Hide the sub-menu by default */
.main-nav ul li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #E2D6C2;
    min-width: 260px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    flex-direction: column;
    gap: 15px;
    border-radius: 4px;
}

/* Show the sub-menu when hovering over 'Products' */
.main-nav ul li:hover>ul.sub-menu {
    display: flex;
}

/* Make sub-menu text slightly smaller */
.main-nav ul li ul.sub-menu li a {
    font-size: 15px;
    color: #2E4F3E;
}

/* =========================================
   Footer Styling
   ========================================= */
.waks-footer {
    background: #E2D6C2;
    /* Kraft color */
    padding: 60px 0 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: #2E4F3E;
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-col p {
    color: #444;
    line-height: 1.6;
    font-size: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #444;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #2E4F3E;
    font-weight: bold;
}

.footer-bottom {
    background: #d6c8b1;
    /* Slightly darker kraft */
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    color: #555;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 480px;
    background: url('https://images.pexels.com/photos/4481458/pexels-photo-4481458.jpeg') center/cover no-repeat;
}

/* Update Hero Overlay for perfect contrast */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 50, 40, 0.85);
    /* Deep rich dark green */
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #2F2F2F;
    max-width: 800px;
    padding: 140px 40px;
}

/* Make text bright and readable */
.hero-content h1 {
    font-size: 56px;
    margin-bottom: 15px;
    color: #ffffff;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 30px;
    color: #E2D6C2;
    /* Kraft accent color */
}

.hero-buttons a {
    display: inline-block;
    padding: 12px 24px;
    margin-right: 12px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
}

/* Make buttons pop against the dark background */
.hero .btn-primary {
    background: #E2D6C2;
    color: #2E4F3E;
}

.hero .btn-primary:hover {
    background: #ffffff;
    color: #1f3a2d;
}

.hero .btn-outline {
    background: transparent;
    border: 2px solid #E2D6C2;
    color: #ffffff;
}

.hero .btn-outline:hover {
    background: #E2D6C2;
    color: #2E4F3E;
}

/* Product Categories Section */
.product-categories {
    padding: 60px 0;
    background: #ffffff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #2E4F3E;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}


.category-card {
    text-decoration: none;
    background: #f5f0e7;
    padding-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid #e0d8c8;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.category-card h3 {
    margin: 20px;
    font-size: 20px;
    color: #2F2F2F;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: #f8f5ef;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2E4F3E;
}

.about-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #333;
}

.about-btn {
    padding: 12px 28px;
    display: inline-block;
}


/* Why Choose WAKS */
.why-waks {
    padding: 80px 0;
    background: #ffffff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    background: #f8f5ef;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #e0d8c8;
    transition: all 0.2s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.benefit-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2E4F3E;
}

.benefit-item p {
    color: #444;
    font-size: 16px;
    line-height: 1.5;
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: #f5f0e7;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
}

.process-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.process-step h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #2E4F3E;
}

.process-step p {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}


/* Final CTA Section */
.cta-section {
    background: #2E4F3E;
    padding: 60px 0;
    color: #fff;
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cta-text h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.cta-text p {
    font-size: 18px;
    margin: 0;
}

.cta-btn {
    background: #fff;
    color: #2E4F3E;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
}

.cta-btn:hover {
    background: #dfeee6;
}

/* CTA Section */
.cta-section {
    background: #2E4F3E;
    padding: 60px 0;
    color: #ffffff;
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-content {
    max-width: 600px;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #ffffff;
}

.cta-content p {
    font-size: 18px;
    color: #e0d8c8;
    line-height: 1.5;
    margin: 0;
}

.cta-btn {
    background: #E2D6C2;
    color: #2E4F3E;
    font-size: 18px;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    background: #ffffff;
    color: #1f3a2d;
}

/* =========================================
   Internal Pages (page.php)
   ========================================= */
.page-banner {
    position: relative;
    background: url('<?php echo get_template_directory_uri(); ?>/images/hero.jpg') center/cover no-repeat;
    background-color: #2E4F3E;
    /* Fallback color */
    padding: 80px 0;
    text-align: center;
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 79, 62, 0.85);
    /* Dark green overlay */
}

.page-banner-content {
    position: relative;
    z-index: 10;
}

.page-banner h1 {
    color: #ffffff;
    font-size: 42px;
    margin: 0;
}

.page-content {
    padding: 60px 0;
    background: #ffffff;
    min-height: 400px;
}

.page-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

/* =========================================
   Contact Form & Map Styling
   ========================================= */

/* Fix the Map */
.page-content iframe,
.page-content img {
    width: 100%;
    border: none !important;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Style the Form Container */
.wpcf7 {
    background: #f8f5ef;
    /* Soft kraft background */
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e0d8c8;
    margin-top: 40px;
}

/* Force inputs to be full width and look modern */
.wpcf7-form-control-wrap {
    display: block !important;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 15px;
    margin-top: 8px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    box-sizing: border-box;
    background: #ffffff;
}

/* Make the message box actually tall enough to type in */
.wpcf7-form textarea {
    min-height: 160px;
    resize: vertical;
}

/* Style the Submit Button */
.wpcf7-form input[type="submit"] {
    background: #2E4F3E;
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background: #1f3a2d;
}

/* Style the Reset Button */
.wpcf7-form input[type="reset"] {
    background: transparent;
    color: #2E4F3E;
    border: 2px solid #2E4F3E;
    padding: 13px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 15px;
    font-weight: bold;
}

.thank-you-box {
    margin: 10% 10%;
    padding: 2% 5%;
    text-align: center;
    border: solid 3px #2e4f3ed9;
    border-radius: 15px;
}

.thank-you-box i {
    color: #2e4f3ed9;
    font-size: 58px;
}

.thank-you-box a {
    display: inline-block;
    margin-top: 40px;
    padding: 10px 25px;
    background: #2e4f3ed9;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.thank-you-box a:hover {
    background: #1f3a2d;
}

/* =========================================
   Page Layout & Typography Polish
   ========================================= */

/* 1. Stop text from stretching across the whole monitor */
.page-content .container {
    max-width: 900px !important;
    margin: 0 auto;
}

/* 2. Give the paragraphs and bullet points better spacing */
.page-content p,
.page-content ul {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

.page-content li {
    margin-bottom: 10px;
}

/* 3. Make the green title banner look highly professional */
.page-banner {
    padding: 100px 0;
}

.page-banner h1 {
    font-size: 48px;
    letter-spacing: 1px;
}

/* Add a beautiful kraft accent line under the page title */
.page-banner h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #E2D6C2;
    margin: 20px auto 0;
    border-radius: 2px;
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 768px) {

    /* Header */
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Stack the menu cleanly on mobile */
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    /* Make sub-menus flow naturally on mobile instead of floating */
    .main-nav ul li ul.sub-menu {
        position: static;
        box-shadow: none;
        padding: 10px 0 0 0;
        min-width: 100%;
        text-align: center;
    }

    /* Hero Section */
    .hero-content {
        padding: 60px 20px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    /* Fix the hero buttons so they are uniform */
    .hero-buttons a {
        display: block;
        width: 80%;
        margin: 12px auto;
        padding: 14px 24px;
    }

    /* Grids (Products, About, Benefits, Process) */
    .category-grid,
    .about-grid,
    .benefits-grid,
    .process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* About Section tweaks */
    .about-grid {
        text-align: center;
    }

    /* CTA Section */
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* Product Technical Tables & Images */
.page-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 14px;
}

.page-content table th {
    background-color: #2E4F3E;
    color: #ffffff;
    padding: 12px;
    text-align: left;
}

.page-content table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0d8c8;
    color: #333;
}

.page-content table tr:hover {
    background-color: #f8f5ef;
}

/* Floating Social Media Buttons */
.floating-social {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.facebook:hover {
    background: #165dbf;
}

.social-btn.linkedin {
    background: #0a66c2;
}

.social-btn.linkedin:hover {
    background: #084b9a;
}

.social-btn.whatsapp {
    background: #25d366;
}

.social-btn.whatsapp:hover {
    background: #1ba855;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .floating-social {
        right: 10px;
        bottom: 10px;
        gap: 10px;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}