/*
Theme Name: Alpha Theme
Theme URI: https://alphaups.net/
Author: MohammadReza Aminzade
Description: Custom WordPress theme for Alpha UPS
Version: 1.0.0
Text Domain: alpha-theme
*/


.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 999;
  border-bottom: 1px solid #eee;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 24px;
}

.logo img {
  height: 80px;
}


.main-nav .menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  position: relative;
}

.menu a {
  text-decoration: none;
  color: #222;
  font-size: 20px;
  white-space: nowrap;
  padding: 6px 2px;
  transition: 0.2s;
}


.menu > li > a:hover {
  color: #ef0000;
}


.has-sub > a::after {
  content: "\25BE";
  font-size: 22px;
  margin-right: 6px;
}


.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  list-style: none;
  padding: 8px 0;
  min-width: 210px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  border-radius: 6px;
}

.sub-menu li a {
  display: block;
  padding: 9px 16px;
  font-size: 16px;
}

.sub-menu li a:hover {
  background: #f5f7fa;
  color: #ef0000;
}


.has-sub:hover > .sub-menu {
  display: block;
}

.sub-menu .has-sub:hover > .sub-menu {
  right: 100%;
  top: 0;
}


.call-btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  font-size: 17px;
  background: #e80000;
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  z-index: 1;
  transition: all 0.3s ease;
}

.call-btn:hover {
transform: translatey(-3px);}


/* ===== MOBILE ===== */
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 992px) {

 .header-cta {
    display: none;
  }

@media (max-width: 992px) {
  .header-inner {
    justify-content: center;
    position: relative; 
  }


@media (min-width: 992px) {
  .has-sub:hover > .sub-menu {
    display: block;
  }
}

@media (max-width: 991px) {
   .has-sub:hover > .sub-menu {
    display: none;
  }
  
  .has-sub.open > .sub-menu {
    display: block !important;
    position: static; 
    box-shadow: none;
    padding-right: 20px; 
  }
}
  .hamburger {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
  }

  .logo {
    margin: 0; 
  }
}

  .hamburger {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
/*     border-top: 1px solid #eee; */
  }

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

  .menu {
    flex-direction: column;
    gap: 0;
  }

  .menu li {
    border-bottom: 1px solid #eee;
  }

  .menu a {
    padding: 8px 18px;
    display: block;
  }

  .sub-menu {
    position: static;
    box-shadow: none;
    padding-right: 14px;
    display: none;
  }

  .has-sub.open > .sub-menu {
    display: block;
  }


  
  
  .has-sub.open > a {
    background: #eef4ff;
    color: #ef0000;
  }

  .has-sub.open > a::after {
    transform: rotate(180deg);
    display: inline-block;
  }
}

/*
 * Alpha Theme — Global CSS
 * Base styles, reset, typography and layout.
 */


/* ==============================
   Fonts
   ============================== */

@font-face {
    font-family: "Vazir";
    src: url("assets/fonts/Vazir-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazir";
    src: url("assets/fonts/Vazir-Bold.woff2") format("woff2");
	font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* ==============================
   Design Tokens
   ============================== */

:root {

    /* Colors */
    --color-primary: #ff0101;
    --color-secondary: #2957c7;

    --color-white: #ffffff;
    --color-black: #111111;

    --color-text: #333333;
    --color-text-light: #666666;

    --color-background: #ffffff;
    --color-background-light: #f7f7f7;

    --color-border: #e5e5e5;


    /* Layout */
    --container-width: 1280px;
    --container-padding: 16px;


    /* Typography */
    --font-family: "Vazir", Tahoma, Arial, sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;


    /* Line Height */
    --line-height-base: 1.8;
    --line-height-heading: 1.4;


    /* Transition */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}


/* ==============================
   Reset
   ============================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background-color: var(--color-background);
    color: var(--color-text);

    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);

    text-align: right;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
}


/* ==============================
   Typography
   ============================== */

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.75em;

    line-height: var(--line-height-heading);
    font-weight: 700;
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

p {
    margin-bottom: 1em;
}


/* ==============================
   Layout
   ============================== */

.container {
    width: min(calc(100% - (var(--container-padding) * 2)),
            var(--container-width));

    margin-inline: auto;
}


/* ==============================
   Buttons
   ============================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding-inline: 20px;

    border: 1px solid transparent;
    border-radius: var(--radius-md);

    background-color: var(--color-primary);
    color: var(--color-white);

    font-weight: 700;

    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast);
}

.button:hover {
    background-color: #d90000;
}


/* ==============================
   WordPress Helpers
   ============================== */

.screen-reader-text {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}










/* alpha brands */
.trusted-clients-section {
    width: 100%;
    background: #ececec;
    padding: 80px 0;
}

.trusted-clients-container {
    width: min(1280px, calc(100% - 40px));
    margin-inline: auto;
}

.trusted-clients-header {
    text-align: center;
    margin-bottom: 45px;
}

.trusted-clients-header h2 {
    position: relative;
    margin: 0;
    padding-bottom: 14px;
    /* font-size: 32px; */
    line-height: 1.5;
    font-weight: 700;
    color: #222;
}

.trusted-clients-header h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 4px;
    background: #e30000;
    border-radius: 10px;
}

/* =========================================
   Mobile
========================================= */

@media (max-width: 768px) {

    .trusted-clients-section {
        padding: 60px 0;
    }

    .trusted-clients-container {
        width: min(100% - 30px, 600px);
    }

    .trusted-clients-header {
        margin-bottom: 30px;
    }

    .trusted-clients-header h2 {
        font-size: 26px;
    }

    }








.footerr {
    /* display: block;  */
    clear: both;
    background: #262626;

    color: #d9d9d9;

    padding-block: 60px 30px;
    /* width: 100vw; */
}

.container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 20px;

}



.footerr hr {

    border: none;

    height: 1px;

    background: rgba(255, 255, 255, .08);

    margin-block: 40px;
}


/* TOP */

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}


/* .footer-brand {

    flex: 1 1 450px;
} */



.footer-brand p {
    max-width: 550px;
    line-height: 1.9;
    text-align: justify;
}


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


.footer-social h3 {
    margin-block-end: 16px;
    color: #d9d9d9;
}


.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .08);
    color: white;
    text-decoration: none;
    transition: .3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
}


.btn-english-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    padding: 10px 20px;
    background: #d90000;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none !important;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.btn-english-version i {
    font-size: 15px;
}

.btn-english-version:hover {
    transform: translateY(-2px);
}



/* LINKS */

.footer-links {

    display: flex;

    flex-wrap: wrap;

    gap: 50px;
    justify-content: space-between;
}


.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h4 {
    color: #fc4444;
    margin-block-end: 10px;
    font-size: 1.2rem;
}

.footer-column a {
    color: #cfcfcf;
    text-decoration: none;
    transition: .3s;
}

.footer-column a:hover {
    color: white;
    transform: translateX(4px);
}

/* COPYRIGHT */

.footer-bottom {

    text-align: center;
}


.footer-bottom p {
    margin: 0;
    font-size: .95rem;
    color: #aaa;
}


/* نوار ثابت ==================== */
/* =========================
   Mobile Contact Bar
========================= */

.alp-mobile-contact-bar {
    display: none;
}

@media (max-width: 767px) {

    .alp-mobile-contact-bar {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 40px;
        width: 100%;
        padding: 10px 14px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #e8e8e8;
        box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.08);
    }

    .alp-mobile-contact-bar__text {
        flex: 0 0 auto;
        font-size: 16px;
        font-weight: 700;
        color: #222;
        white-space: nowrap;
    }

    .alp-mobile-contact-bar__actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 14px;
    }

    .alp-mobile-contact-bar__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 8px 12px;
        border-radius: 8px;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        text-decoration: none;
        transition:
            transform 0.2s ease,
            opacity 0.2s ease;
    }
	
    .alp-mobile-contact-bar__btn:active {
        transform: scale(0.96);
    }

    /* Bale */
    .alp-mobile-contact-bar__btn--bale {
        background: #00a8e8;
    }

    /* Phone */
    .alp-mobile-contact-bar__btn--phone {
        background: #404b87;
    }

    /* WhatsApp */
    .alp-mobile-contact-bar__btn--whatsapp {
        background: #1ea852;
    }

    /* جلوگیری از پوشیده شدن آخر صفحه */
    body {
        padding-bottom: 72px;
    }
}

