
/*
Theme Name: Optimum Value Theme
Theme URI: https://otimumval.com
Author: Yacine Ghommidh
Description: Custom theme made for optimum value.
Version: 1.0
*/


/* Global reset / base */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ov-primary-bg: linear-gradient(108.61deg, #AB874B -113.32%, #162435 73.14%);
    --ov-primary-bg-hover: linear-gradient(109.22deg, #AB874B -64.91%, #162435 73.37%);
    --ov-primary-text: #ffffff;
    --ov-primary-alt-bg: linear-gradient(110deg, #c8a66c, #9b7840);
    --ov-primary-alt-bg-hover: linear-gradient(110deg, #d2b27a, #8a6a36);
    --ov-secondary-bg: #ffffff;
    --ov-secondary-text: #111827;
    --ov-secondary-border: #E5E7EB;
    --ov-secondary-bg-hover: #F9FAFB;
}

body {
    font-family: "Noto Kufi Arabic", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    padding-bottom: 0;
    font-family: "Noto Kufi Arabic", sans-serif;
}

/* =========================================
   HEADER & MAIN NAV
   ========================================= */

/* Buttons (shared for header) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.btn-primary {
    background: var(--ov-primary-bg);
    color: var(--ov-primary-text);
}

.btn-primary:hover {
    background: var(--ov-primary-bg-hover);
    transform: translateY(-1px);
}


.btn-secondary {
    background-color: var(--ov-secondary-bg);
    color: var(--ov-secondary-text);
    border: 1px solid var(--ov-secondary-border);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--ov-secondary-bg-hover);
}

.lang-switch {
    position: relative;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: none;
    background: transparent;
    color: #1f2937;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.lang-toggle:focus {
    outline: none;
}

.lang-toggle:hover {
    color: #0f172a;
    background: rgba(17, 24, 39, 0.06);
}

.lang-toggle .lucide {
    width: 18px;
    height: 18px;
}

.lang-menu {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 8px);
    min-width: 120px;
    padding: 8px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 20;
}

.lang-switch.is-open .lang-menu {
    display: flex;
}

.lang-menu-item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: start;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-menu-item:hover {
    background: rgba(171, 135, 75, 0.12);
    color: #8a6a36;
}

.lang-menu-item.is-active {
    background: rgba(171, 135, 75, 0.2);
    color: #7a5b2c;
}

.btn-filled-gold,
.btn-whatsapp,
.hero-btn-primary,
.custom-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    background: var(--ov-primary-bg);
    color: var(--ov-primary-text);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.btn-filled-gold:hover,
.btn-whatsapp:hover,
.hero-btn-primary:hover,
.custom-submit-button:hover {
    background: var(--ov-primary-bg-hover);
    transform: translateY(-1px);
}

.custom-submit-button {
    width: 100%;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--ov-secondary-border);
    background: var(--ov-secondary-bg);
    color: var(--ov-secondary-text);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-outline:hover {
    background: var(--ov-secondary-bg-hover);
    transform: translateY(-1px);
}

.btn,
.btn:hover,
.btn:focus,
.btn:active {
    text-decoration: none;
}

.header-phone,
.header-phone:hover,
.header-phone:focus {
    text-decoration: none;
}


/* ===============================
   GLOBAL CONTAINER SYSTEM
   =============================== */

.container {
    width: 100%;
    max-width: 1440px;
    /* change depending on your design */
    margin-inline: auto;
    padding-inline: var(--container-padding, 24px);
}

/* Responsive container padding */
@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 16px;
    }
}


/* Header shell */
.site-header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
    z-index: 901;
}

.site-header.header-scrolled {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.header-inner {
    width: 100%;
    padding: 10px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Brand group */
.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* Desktop nav */
.site-nav {
    display: none;
    /* enabled at >= 992px */
    flex: 1;
}

/* Desktop nav links */
.site-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.site-nav-list a {
    position: relative;
    padding-block: 4px;
    padding-inline: 4px;
    font-size: 15px;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-nav-list a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(108deg, #AB874B, #162435);
    transform: scaleX(0);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-list a:hover {
    color: #111827;
}

.site-nav-list a:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

/* Active menu item (WP class on <li>) */
.site-nav-list .current-menu-item>a,
.site-nav-list .current_page_item>a {
    color: #111827;
    font-weight: 600;
}

.site-nav-list .current-menu-item>a::after,
.site-nav-list .current_page_item>a::after {
    transform: scaleX(1);
    opacity: 1;
}


/* Header CTA (phone + WhatsApp) */
.header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #AB874B;
    text-decoration: none;
    transition: color 0.15s ease;
}

.header-phone:hover {
    color: #8B6A3A;
}

.header-phone span {
    direction: ltr;
}

.header-phone i {
    font-size: 16px;
    line-height: 1;
}

/* Burger */
.nav-toggle {
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.nav-toggle .icon-menu {
    font-size: 20px;
    line-height: 1;
}

.nav-toggle:hover {
    background-color: #F9FAFB;
    transform: translateY(-1px);
}

/* Mobile dropdown */
.mobile-nav-panel {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    z-index: 1000;
}

.site-header.nav-open .mobile-nav-panel {
    max-height: calc(100vh - 64px);
    opacity: 1;
    overflow-y: auto;
}

.mobile-nav-inner {
    width: 100%;
    padding: 14px 24px 20px;
    background-color: #FFFFFF;
}

.mobile-nav-label {
    font-size: 12px;
    font-weight: 500;
    color: #9CA3AF;
    margin-bottom: 10px;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-nav-list li {
    flex: 1 1 calc(50% - 10px);
}

/* Burger icon (3 lines ? X on open) */
.nav-toggle-icon {
    position: relative;
    width: 20px;
    height: 2px;
    background-color: #111827;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    width: 20px;
    height: 2px;
    background-color: #111827;
    transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon::before {
    top: -6px;
}

.nav-toggle-icon::after {
    bottom: -6px;
}

/* When menu is open */
.site-header.nav-open .nav-toggle-icon {
    background-color: transparent;
}

.site-header.nav-open .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.site-header.nav-open .nav-toggle-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Full-page dark overlay behind mobile menu */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0 */
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 900;
    /* below panel (1000), above page content & header */
}

/* When open, make overlay clickable & visible */
.mobile-nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Slight slide-down for the panel itself */
.mobile-nav-panel {
    transform: translateY(-8px);
    transition: transform 0.25s ease, max-height 0.25s ease, opacity 0.25s ease;
}

.site-header.nav-open .mobile-nav-panel {
    transform: translateY(0);
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-nav-list li {
    flex: 1 1 calc(50% - 10px);
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    font-size: 15px;
    background-color: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    text-decoration: none;
    color: #374151;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
}

.mobile-nav-list a:hover {
    color: #111827;
    border-color: #D1D5DB;
    background-color: #F9FAFB;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Active on mobile */
.mobile-nav-list .current-menu-item>a,
.mobile-nav-list .current_page_item>a {
    border-color: #AB874B;
    color: #162435;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(171, 135, 75, 0.15);
}




/* Breakpoints */
@media (max-width: 600px) {
    .header-inner {
        padding-inline: 16px;
    }
    
    .header-phone span {
        display: none;
    }

    .btn-primary {
        padding-inline: 12px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .header-cta {
        gap: 8px;
    }

    .btn-primary {
        padding-inline: 10px;
    }

    .btn-primary .cta-text {
        display: none;
    }
}

@media (min-width: 768px) {
    .header-inner {
        padding-block: 12px;
    }
}

/* Show desktop nav, hide burger on large screens */
@media (min-width: 992px) {
    .site-nav {
        display: block;
    }

    .nav-toggle {
        display: none !important;
    }
}


/* ===========================
   Footer
   =========================== */

.footer {
    padding: 80px 240px 48px 240px;
    background: url('assets/img/raw/pattern-dark.png');
    background: image-set(
        url('assets/img/webp/pattern-dark.webp') type('image/webp'),
        url('assets/img/raw/pattern-dark.png') type('image/png')
    );
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    align-items: start;
}

.footer-rights {
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    text-align: center;
    margin-top: 32px;
}

.ft-logo-section .logo img {
    margin-bottom: 16px;
    width: 182px;
    height: auto;
}

.ft-logo-section .sub-title {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #D1D5DB;
}

.ft-contact-section .ft-section-title {
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.ft-links-section .ft-section-title {
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.ft-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ft-links-list a {
    text-decoration: none;
    color: #D1D5DB;
    font-size: 16px;
    line-height: 24px;
    transition: color 0.15s ease;
}

.ft-links-list a:hover {
    color: #ffffff;
}

.ft-contact-section .info-line {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.ft-contact-section .info-line .icon {
    color: #D1D5DB;
}

.ft-contact-section .info-line .value {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #D1D5DB;
}

.ft-contact-section .info-line .value a.ft-phone-link {
    text-decoration: none;
    color: #ffffff;
}

.ft-link {
    text-decoration: none;
    color: #D1D5DB;
}

.ft-link:hover {
    color: #ffffff;
}


/* ===========================
   Footer - Responsive
   =========================== */

@media (max-width: 1560px) {
    .footer {
        padding: 80px 120px 48px 120px;
    }
}

@media (max-width: 1264px) {
    .footer {
        padding: 32px 80px 32px 80px;
    }

    .footer-content {
        gap: 5%;
    }
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 24px;
        text-align: center;
    }

    .ft-contact-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 24px;
    }

    .ft-links-section {
        margin-top: 24px;
    }

    .ft-links-list {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media (max-width: 624px) {
    .footer {
        padding: 24px 32px 24px 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ft-links-list {
        grid-template-columns: 1fr;
    }
}


/* ===========================
   Utility Classes
   =========================== */

.flex {
    display: flex;
}

.flex-grow-1 {
    flex-grow: 1;
}

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

.button-regular {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
}

.button-regular:not(a):not(button) {
    padding: 0;
    box-shadow: none;
}

.button-regular,
.button-regular a {
    padding: 12px 24px;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.button-regular a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    border-radius: 8px;
    width: 100%;
}

a.btn-filled-gold:visited,
a.btn-whatsapp:visited,
a.btn-outline:visited,
a.hero-btn-primary:visited,
a.custom-submit-button:visited,
a.primary-button:visited,
a.secondary-button:visited,
a.button-regular:visited {
    color: inherit;
    text-decoration: none;
}

.hero-btn-primary,
.primary-button,
.primary-button a,
.button-regular.primary-button,
.button-regular.primary-button a,
.error-btn {
    background: var(--ov-primary-bg);
    color: var(--ov-primary-text);
    border: none;
}

.hero-btn-primary:hover,
.primary-button a:hover,
.button-regular.primary-button:hover,
.button-regular.primary-button a:hover,
.error-btn:hover {
    background: var(--ov-primary-bg-hover);
    transform: translateY(-1px);
}

.btn-primary-alt,
.btn-primary-alt:hover,
.btn-primary-alt:focus,
.btn-primary-alt:active,
.btn-primary-alt:visited {
    color: var(--ov-primary-text);
}

.btn-primary-alt,
.btn-primary-alt * {
    color: var(--ov-primary-text);
}

.btn-primary-alt,
.btn-primary-alt:visited,
.button-regular.primary-button.btn-primary-alt,
.button-regular.primary-button.btn-primary-alt:visited {
    background: var(--ov-primary-alt-bg);
    color: var(--ov-primary-text);
}

.btn-primary-alt:hover,
.button-regular.primary-button.btn-primary-alt:hover {
    background: var(--ov-primary-alt-bg-hover);
}

a.btn-primary-alt:visited {
    color: var(--ov-primary-text);
}

.secondary-button,
.secondary-button a,
.button-regular.secondary-button,
.button-regular.secondary-button a {
    background: var(--ov-secondary-bg);
    color: var(--ov-secondary-text);
    border: 1px solid var(--ov-secondary-border);
    box-shadow: none;
}

.secondary-button:hover,
.secondary-button a:hover,
.button-regular.secondary-button:hover,
.button-regular.secondary-button a:hover {
    background: var(--ov-secondary-bg-hover);
}

.button-regular.primary-button:not(a):not(button),
.button-regular.secondary-button:not(a):not(button) {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.primary-button a {
    background: var(--ov-primary-bg);
    color: var(--ov-primary-text);
}

.primary-button a:hover {
    background: var(--ov-primary-bg-hover);
}

.light-pattern{
    background: linear-gradient(105.34deg, rgba(255, 255, 255, 0.5) 4.84%, #FFFFFF 51.5%, rgba(255, 255, 255, 0.6) 94.7%), url('./assets/img/webp/light-pattern.webp') !important;
}

.dark-pattern{
    background: linear-gradient(97.59deg, rgba(21, 35, 53, 0.5) 10.85%, rgba(21, 35, 53, 0.8) 30.38%, #152335 49.02%, rgba(21, 35, 53, 0.8) 71.8%, rgba(21, 35, 53, 0.5) 91.86%), url('./assets/img/webp/dark-pattern.webp') !important;
}

.text-center{
    text-align: center !important;
    text-align-last: center !important;
}


.resources-card.resources-card--whatsapp .btn-whatsapp{
    background: white !important;
    color: green !important;
}
