/*
Theme Name: Markentrax
Author: Markentrax
Description: Markentrax SEO & Digital Growth Agency Theme
Version: 3.0
*/

/* =========================================
   ROOT
   ========================================= */

:root {
    --n: #0b1033;
    --n2: #1e2a78;
    --a: #4f6bff;
    --a2: #7b8cff;
    --bg: #f6f8fc;
    --white: #ffffff;
    --text: #18203a;
    --muted: #68708a;
    --border: #e5e9f3;
    --shadow: 0 15px 45px rgba(11, 16, 51, 0.09);
    --radius: 16px;
}

/* =========================================
   RESET
   ========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--white);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: var(--a);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

p {
    margin: 0 0 18px;
}

h1,
h2,
h3,
h4 {
    color: var(--n);
    line-height: 1.2;
    margin-top: 0;
}

h1 {
    font-size: clamp(38px, 5vw, 64px);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

h2 {
    font-size: clamp(30px, 4vw, 44px);
    margin-bottom: 18px;
    letter-spacing: -0.8px;
}

h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

/* =========================================
   COMMON WIDTH
   ========================================= */

.w {
    width: min(1100px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   HEADER
   ========================================= */

#site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1000;
}

#site-header > .w {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    display: block;
    width: 180px;
    max-width: 180px;
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

#primary-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
}

#primary-navigation a {
    color: var(--n);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

#primary-navigation a:hover {
    color: var(--a);
}

#primary-navigation .mx-nav-cta {
    color: var(--white);
    background: var(--a);
    padding: 11px 18px;
    border-radius: 9px;
}

#primary-navigation .mx-nav-cta:hover {
    background: var(--n2);
    color: var(--white);
}

.mx-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--white);
    cursor: pointer;
}

.mx-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--n);
    margin: 5px auto;
}

/* =========================================
   SECTIONS
   ========================================= */

section {
    padding: 78px 0;
}

section.alt {
    background: var(--bg);
}

/* =========================================
   HERO
   ========================================= */

.hero {
    background: var(--n);
    color: var(--white);
    padding: 105px 0;
}

.hero h1,
.hero h2,
.hero h3 {
    color: var(--white);
}

.hero p {
    color: rgba(255, 255, 255, 0.82);
}

.hero .sub {
    font-size: 20px;
    max-width: 760px;
}

.sub {
    color: var(--muted);
    font-size: 18px;
    max-width: 780px;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
    display: inline-block;
    padding: 13px 21px;
    border-radius: 9px;
    font-weight: 700;
    line-height: 1.3;
    transition: 0.2s ease;
}

.btn.p {
    background: var(--a);
    color: var(--white);
}

.btn.p:hover {
    background: var(--n2);
    color: var(--white);
    transform: translateY(-1px);
}

.btn.s {
    background: var(--white);
    color: var(--n);
    border: 1px solid var(--border);
}

.btn.s:hover {
    border-color: var(--a);
    color: var(--a);
}

/* =========================================
   TWO COLUMN LAYOUT
   ========================================= */

.two {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.two > div {
    min-width: 0;
}

.two .pic {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
    border-radius: 16px;
}

/* =========================================
   ABOUT PAGE
   ========================================= */

.page-template-page-about .two {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 55px;
    align-items: center;
}

.page-template-page-about .two > div {
    display: block;
    visibility: visible;
    opacity: 1;
    min-width: 0;
}

.page-template-page-about .two .pic {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
}

.page-template-page-about section:first-of-type {
    padding-top: 85px;
    padding-bottom: 85px;
}

.page-template-page-about section:first-of-type p {
    color: var(--muted);
}

.page-template-page-about section:first-of-type h1 {
    margin-bottom: 22px;
}

.page-template-page-about section:first-of-type h2 {
    font-size: 30px;
}

.page-template-page-about section:first-of-type .btn {
    margin-top: 5px;
}

/* =========================================
   CARDS / GRID
   ========================================= */

.g {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.c {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.c p {
    color: var(--muted);
}

.alt .c {
    box-shadow: none;
}

/* =========================================
   SERVICE CARDS
   ========================================= */

.service-card,
.g .c {
    min-width: 0;
}

.g .c h3 {
    color: var(--n);
}

.g .c a {
    color: inherit;
}

/* =========================================
   LISTS
   ========================================= */

.k {
    padding-left: 22px;
    margin: 20px 0;
}

.k li {
    margin-bottom: 9px;
}

/* =========================================
   CTA
   ========================================= */

.cta,
.mx-cta {
    background: var(--n);
    color: var(--white);
    padding: 72px 0;
}

.cta h2,
.cta h3,
.mx-cta h2,
.mx-cta h3 {
    color: var(--white);
}

.cta p,
.mx-cta p {
    color: rgba(255, 255, 255, 0.78);
}

/* =========================================
   STATS
   ========================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.stat {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
}

.stat strong {
    display: block;
    color: var(--n);
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 7px;
}

.stat span {
    color: var(--muted);
}

/* =========================================
   TESTIMONIALS
   ========================================= */

.mx-testimonials-heading {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 35px;
}

.mx-eyebrow {
    display: inline-block;
    color: var(--a);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

/* =========================================
   FORMS
   ========================================= */

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 13px 14px;
    font: inherit;
    color: var(--text);
    background: var(--white);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--a);
}

/* =========================================
   FOOTER
   ========================================= */

footer {
    background: #080c27;
    color: rgba(255, 255, 255, 0.72);
    padding: 55px 0 30px;
}

footer h3,
footer h4 {
    color: var(--white);
}

footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: var(--white);
}

/* =========================================
   WHATSAPP / FLOATING ELEMENTS
   ========================================= */

.mx-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
}

/* =========================================
   TABLETS
   ========================================= */

@media (max-width: 900px) {

    .w {
        width: min(100% - 32px, 760px);
    }

    #site-header > .w {
        min-height: 74px;
    }

    .logo img {
        width: 160px;
        max-width: 160px;
        max-height: 44px;
    }

    .mx-menu-toggle {
        display: block;
    }

    #primary-navigation {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        padding: 15px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    #primary-navigation.mx-open {
        display: flex;
    }

    #primary-navigation a {
        display: block;
        padding: 12px 10px;
    }

    #primary-navigation .mx-nav-cta {
        text-align: center;
        margin-top: 6px;
    }

    .two {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .page-template-page-about .two {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .page-template-page-about .two .pic {
        max-width: 420px;
    }

    .g {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    section {
        padding: 65px 0;
    }

    .hero {
        padding: 80px 0;
    }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .w {
        width: min(100% - 28px, 620px);
    }

    h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    h2 {
        font-size: 30px;
    }

    .sub {
        font-size: 17px;
    }

    section {
        padding: 55px 0;
    }

    .hero {
        padding: 65px 0;
    }

    .hero .sub {
        font-size: 18px;
    }

    .g {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .c {
        padding: 23px;
    }

    .page-template-page-about section:first-of-type {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .page-template-page-about .two {
        gap: 28px;
    }

    .page-template-page-about .two .pic {
        max-width: 420px;
    }
}

/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 400px) {

    .w {
        width: min(100% - 24px, 360px);
    }

    .logo img {
        width: 135px;
        max-width: 135px;
        max-height: 40px;
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 27px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .page-template-page-about .two .btn {
        margin-left: 0 !important;
        margin-top: 10px;
    }
}