/*! Fonts — local files, so the page makes no third-party font request */
@font-face {
    font-family: "font_regular";
    src: url("../assets/fonts/Tajawal/Tajawal-Regular.ttf");
}

@font-face {
    font-family: "font_bold";
    src: url("../assets/fonts/Tajawal/Tajawal-Bold.ttf");
}

:root {
    /* ---- Brand colors ---- */
    --color-primary: #42605f;
    --color-primary-dark: #35504f;
    --color-primary-light: #8b967e;
    --color-primary-lighter: #aab3a0;
    --color-primary-surface: #eef1ea;
    --color-primary-surface-2: #f4f6f2;

    /* ---- Primary gradient (the main brand fill) ---- */
    --gradient-primary: linear-gradient(90deg, #8b967e 0%, #42605f 100%);
    --gradient-primary-vertical: linear-gradient(180deg, #8b967e 0%, #42605f 100%);
    --gradient-primary-diagonal: linear-gradient(135deg, #8b967e 0%, #42605f 100%);
    --gradient-primary-soft: linear-gradient(90deg, rgba(139, 150, 126, 0.12) 0%, rgba(66, 96, 95, 0.12) 100%);

    /* ---- Merchant rank accents ---- */
    --color-rank-platinum: #6e93a8;
    --color-rank-gold: #d9a441;
    --color-rank-green: #7fa05c;

    --white-color: #fff;
    --black-color: #000;
    --main-color: #42605F;
    --second-color: #8B967E;
}

html {
    /* The fixed header must not cover the section an in-page link jumps to. */
    scroll-padding-top: 90px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: "font_regular";
    overflow-x: hidden;
}

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

* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    outline: none;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

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

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

button {
    border: none;
}

/* Keyboard users still need to see where they are. */
:focus-visible {
    outline: 2px solid var(--second-color);
    outline-offset: 2px;
}

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

p, a {
    font-family: "font_regular";
}

img {
    width: 100%;
    height: 100%;
}

/*! Globals */
.main-container {
    width: 90%;
    margin: auto;
}

.main-btn {
    position: relative;
    overflow: hidden;
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
    padding: 7px;
    border-radius: 30px;
    width: fit-content;
    min-width: 200px;
    gap: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    font-size: 22px;
    transition: all 0.3s ease;
}
button.main-btn {
    font-family: inherit;
    cursor: pointer;
}
.main-btn .arrow-btn {
    position: relative;
    z-index: 2;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--main-color);
    font-size: 18px;
}
.main-btn .arrow-btn::before {
    content: "";
    position: absolute;
    width: 35px;
    height: 35px;
    background-color: var(--white-color);
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}
.main-btn .arrow-btn i {
    position: relative;
    z-index: 2;
    transform: rotate(-32deg);
    transition: all 0.3s ease;
    color: var(--main-color);
}
.main-btn:hover {
    background-color: var(--white-color);
    color: var(--main-color);
}
.main-btn:hover .arrow-btn {
    background-color: var(--main-color);
    color: var(--white-color);
}
.main-btn:hover .arrow-btn i {
    transform: rotate(0deg);
}
.main-btn:hover .arrow-btn::before {
    transform: translate(-50%, -50%) scale(13);
}
.main-btn > span:first-child {
    position: relative;
    z-index: 3;
    transition: color 0.4s ease;
}
.main-btn:hover > span:first-child {
    color: var(--main-color);
}
.main-btn:hover .arrow-btn i {
    animation: arrowMove 0.6s ease-in-out infinite alternate;
}
@keyframes arrowMove {
    from { transform: rotate(-32deg) translate(0, 0); }
    to { transform: rotate(-32deg) translate(4px, -4px); }
}
.second-btn {
    color: var(--main-color);
    border: 2px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--gradient-primary) border-box;
    background-clip: padding-box, border-box;
}
.second-btn:hover > span:first-child {
    color: var(--white-color);
}
.second-btn .arrow-btn::before {
    background: var(--gradient-primary);
}
.second-btn .arrow-btn i {
    color: var(--white-color);
}

/* Inner-page title block (Products, About, Merchant Journey, policies) */
.main-title {
    display: flex;
    justify-content: center;
    align-items: end;
    height: 100%;
    padding-bottom: 30px;
    font-size: clamp(40px, 4vw, 50px);
}
.pages.main-title {
    flex-direction: column;
    justify-content: end;
    align-items: center;
    z-index: 1;
    gap: 15px;
    text-align: center;
}
.pages.main-title h1,
.pages.main-title h2 {
    font-size: clamp(30px, 4vw, 50px);
    font-weight: bold;
}
.pages.main-title h1 {
    padding-inline: 20px;
}
.pages.main-title p {
    font-size: clamp(20px, 3vw, 30px);
    width: 50%;
    text-align: center;
}
