/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

:root {
    --primary-color: #DBC1AC;
    --accent-color: #FFE566;
    --text-color: #1A1A1A;
    --card-bg: #D2B48C;
    --benefit-bg: #EADDCA;
    --main-bg: #FAF7EF;
    --main-brown: #5C4033;
}

body {
    background-color: var(--main-bg);
    color: var(--text-color);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--main-bg);
    position: static;
    z-index: 100;
    flex-wrap: wrap;
}

.logo img {
    height: 35px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    margin-left: 125px;
}

.nav-links a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
    font-size: 18px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--main-brown);
}

/* Contact button in navbar */
.contact-btn {
    background-color: #5C4033;
    color: #fff !important;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    font-size: 18px;
    border-radius: 38px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.2s;
    border: none;
    margin-left: 1rem;
    display: inline-block;
}

.contact-btn:hover {
    background-color: #7a5230;
    color: #fff;
    text-decoration: none;
}

/* Main Container */
.container {
    max-width: 900px;
    margin: 2rem auto 0 auto;
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    padding: 2.5rem 2rem 2rem 2rem;
    text-align: center;
}

.container h1 {
    font-size: 2.2rem;
    color: var(--main-brown);
    margin-bottom: 1.2rem;
    word-wrap: break-word;
}

.container h2 {
    font-size: 1.4rem;
    color: var(--main-brown);
    margin: 2rem 0 0.7rem 0;
    word-wrap: break-word;
}

.container p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.container ul {
    text-align: left;
    margin: 0 auto 1.2rem auto;
    max-width: 700px;
    padding-left: 1.2rem;
}

.container ul li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: #444;
}

.container img {
    display: block;
    margin: 2rem auto 1.5rem auto;
    max-width: 100%;
    border-radius: 0.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Form Styles */
form {
    margin: 2rem auto 0 auto;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--benefit-bg);
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

form input,
form textarea {
    padding: 0.8rem 1rem;
    border-radius: 0.7rem;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

form textarea {
    min-height: 90px;
    max-height: 220px;
}

form button,
form input[type="submit"] {
    background-color: var(--main-brown);
    color: #fff;
    font-weight: 500;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

form button:hover,
form input[type="submit"]:hover {
    background-color: #7a5230;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--main-brown);
    color: #5C4033;
    padding: 2.5rem 5% 1rem 5%;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.footer-section {
    flex: 1 1 260px;
    min-width: 220px;
    max-width: 350px;
    text-align: left;
}

.footer-logo {
    height: 32px;
    margin-bottom: 1rem;
}

.footer-section h3 {
    color: #FFE566;
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #5C4033;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: #FFE566;
}

.footer-section p, .footer-section a {
    color: #5C4033;
    font-size: 0.97rem;
}

.social-icons {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.social-icon svg {
    vertical-align: middle;
    transition: transform 0.2s;
}

.social-icon:hover svg {
    transform: scale(1.15);
}

.footer-bottom {
    border-top: 1px solid #FFE56633;
    padding-top: 1rem;
    font-size: 0.95rem;
    color: #5C4033;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0;
}

.footer-bottom-links a {
    color: #FFE566;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #5C4033;
}

/* Make navbar sticky only on mobile */
.navbar {
    position: static;
}

@media (max-width: 900px) {
    .navbar {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--main-bg);
    }
}

/* Burger button hidden by default */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
    z-index: 110;
}
.burger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #5C4033;
    border-radius: 2px;
    margin: 4px 0;
    transition: 0.3s;
}

/* Show burger on mobile */
@media (max-width: 900px) {
    .burger {
        display: flex;
    }
    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #FAF7EF;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2rem 0;
        display: none;
        z-index: 109;
        box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    }
    .nav-links.active {
        display: flex;
    }
    /* Center all footer items on mobile */
    .footer-container {
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .footer-section {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 auto !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1rem !important;
    }
    .footer-bottom-links {
        justify-content: center !important;
        align-items: center !important;
        margin-top: 0.5rem !important;
    }
}

@media (max-width: 1100px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 900px) {
    .nav-links {
        margin-left: 0;
        gap: 1.5rem;
    }
    .footer-section {
        max-width: 95vw;
    }
    .container {
        padding: 2rem 1rem 1.5rem 1rem;
    }
    /* Hide contact button in navbar and show floating on mobile */
    .navbar .contact-btn {
        display: none !important;
    }
    .floating-actions {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 999;
        gap: 10px;
        align-items: center;
    }
    .floating-contact-btn {
        background: #5C4033;
        color: #fff;
        padding: 0.7rem 1.4rem;
        margin-bottom: 40px;
        border-radius: 38px;
        font-weight: 600;
        font-size: 1rem;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        transition: background 0.2s, transform 0.2s;
        border: none;
        cursor: pointer;
        display: inline-block;
    }
    .floating-contact-btn:hover {
        background: #7a5230;
        transform: translateY(-2px) scale(1.04);
    }
}

@media (max-width: 700px) {
    .container h1 {
        font-size: 1.5rem;
    }
    .container h2 {
        font-size: 1.1rem;
    }
    .footer-section {
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .navbar, .footer, .container {
        margin-top: 0px;
        padding-left: 2vw;
        padding-right: 2vw;
    }
    .footer-section {
        width: 100%;
        max-width: 100vw;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-bottom-links {
        margin-top: 0.5rem;
    }
}

/* RTL Support */
body[dir="rtl"] .navbar,
body[dir="rtl"] .footer-container {
    flex-direction: row-reverse;
}

body[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

body[dir="rtl"] .container {
    text-align: right;
}

body[dir="rtl"] .footer-section {
    text-align: right;
}

.footer {
    background-color: #FFE566;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #5C4033;
    padding: 3rem 5% 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #5C4033;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
    /* background-color: #FAF7EF; */
    padding: 0.5rem;
    border-radius: 10px;
}

.about p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #5C4033;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s;
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: #5C4033;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover svg {
    fill: #5C4033;
}

.links ul {
    list-style: none;
}

.links li {
    margin-bottom: 0.8rem;
}

.links a, .footer-bottom-links a {
    color: #5C4033;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.links a:hover, .footer-bottom-links a:hover {
    color: #5C4033;
    transform: translateX(5px);
}

.contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.contact svg {
    min-width: 20px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(250, 247, 239, 0.2);
    padding-top: 1.5rem;
}

.footer-bottom p {
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.9rem;
}

/* RTL Support for Arabic */
body[dir="rtl"] .social-icons {
    flex-direction: row-reverse;
}

body[dir="rtl"] .contact p {
    flex-direction: row-reverse;
}

body[dir="rtl"] .links a:hover, 
body[dir="rtl"] .footer-bottom-links a:hover {
    transform: translateX(-5px);
}

body[dir="rtl"] .footer-bottom-links {
    flex-direction: row-reverse;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .contact p {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 1.5rem 1rem;
        align-items: center;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.7rem;
        align-items: center;
    }
    
    .contact p {
        flex-direction: column;
        align-items: center;
    }
}
.floating-actions {
    display: none;
}

@media (max-width: 900px) {
    .floating-actions {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 999;
        gap: 10px;
        align-items: center;
    }
}

.language-switcher-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
.language-switcher-sticky select {
    padding: 8px;
    font-size: 14px;
    border-radius: 5px;
    background-color: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
}

/* Mobile: Add side margins and improve alignment, but keep footer as before */
@media (max-width: 900px) {

    .container {
        padding-left: 6vw;
        padding-right: 6vw;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        box-sizing: border-box;
    }
    .nav-links {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    .floating-actions,
    .language-switcher-sticky {
        right: 24px;
        left: auto;
    }
    #sourcing-hero-desc {
        text-align:justify;
    }
    
    /* Do NOT override .footer, .footer-container, .footer-section, .footer-bottom, .footer-bottom-links here */
}
