
/* ==========================================
   DJALMAD - MAIN STYLES
========================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f7f9fc;
    color: #16243a;
    font-family: Poppins, Arial, sans-serif;
}

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

.wrap {
    max-width: 1160px;
    margin: auto;
    padding: 0 24px;
}

/* ==========================================
   HEADER AND NAVIGATION
========================================== */

.top {
    background: white;
    border-bottom: 1px solid #e8edf4;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 23px;
}

.brand-mark {
    background: #1c69ef;
    color: white;
    border-radius: 12px;
    padding: 7px 15px;
    font-size: 24px;
}

.nav nav {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 14px;
    font-weight: 600;
}

.contact,
.button {
    background: #2169e9;
    color: white;
    padding: 13px 22px;
    border-radius: 11px;
    font-weight: 700;
    display: inline-block;
}

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

.hero {
    background: linear-gradient(120deg, #081b39, #143d79);
    color: white;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 70px;
    align-items: center;
    min-height: 480px;
    padding-top: 70px;
    padding-bottom: 70px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    color: #468bff;
    font-weight: 800;
}

.hero .eyebrow {
    color: #8cbcff;
}

h1 {
    font-size: clamp(36px, 5vw, 57px);
    line-height: 1.16;
    letter-spacing: -2px;
    margin: 22px 0;
}

h1 em {
    font-style: normal;
    color: #6fb5ff;
}

.hero p {
    color: #d3e1f5;
    line-height: 1.9;
    max-width: 620px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.outline {
    background: transparent;
    border: 1px solid #7798c9;
}

.hero-panel {
    background: linear-gradient(145deg, #2359a6, #10284e);
    padding: 40px;
    border: 1px solid #5274a6;
    border-radius: 24px;
    box-shadow: 0 24px 65px #04112688;
}

.hero-panel > span {
    font-size: 12px;
    letter-spacing: 2px;
}

.panel-icon {
    font-size: 90px;
    text-align: center;
    color: #87c5ff;
}

.hero-panel h2 {
    font-size: 25px;
}

/* ==========================================
   CATEGORIES
========================================== */

.categories {
    padding-top: 42px;
    padding-bottom: 40px;
}

.categories > span {
    font-size: 12px;
    color: #63738b;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.chips a {
    background: white;
    border: 1px solid #e2e9f2;
    border-radius: 25px;
    padding: 10px 16px;
    font-size: 13px;
}

/* ==========================================
   BLOG AND CONTENT
========================================== */

.content {
    padding-top: 35px;
    padding-bottom: 75px;
}

.section-head h2 {
    font-size: 35px;
    margin: 8px 0;
}

.section-head p {
    color: #617188;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.post {
    background: white;
    border: 1px solid #e5ebf3;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 28px #193c6510;
    transition: transform .2s;
}

.post:hover {
    transform: translateY(-4px);
}

.visual {
    height: 180px;
    background: linear-gradient(135deg, #0c3168, #3987ea);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.visual span {
    font-size: 64px;
}

.visual small {
    letter-spacing: 2px;
}

.visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    padding: 25px;
}

.tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    color: #236be9;
}

.post h3 {
    font-size: 19px;
    line-height: 1.45;
}

.post p {
    font-size: 14px;
    line-height: 1.8;
    color: #69778b;
    min-height: 75px;
}

.post strong {
    font-size: 13px;
    color: #226bea;
}

/* ==========================================
   AUTOMOTIVE KEY REMOTE SERVICE
========================================== */

.key-service {
    padding-top: 20px;
    padding-bottom: 70px;
    scroll-margin-top: 100px;
}

.key-service-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    margin-top: 28px;
}

/* Updated desktop advertisement size: 420px */

.key-service-photo {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px #193c6520;
}

.key-service-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.key-service-details {
    background: #0b2041;
    color: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 14px 35px #122f5d22;
}

.key-language + .key-language {
    border-top: 1px solid #38516f;
    margin-top: 22px;
    padding-top: 18px;
}

.key-language h3 {
    color: #ffdd55;
    margin: 0 0 12px;
}

.key-language p,
.key-compat p {
    line-height: 1.8;
    font-size: 14px;
}

.key-language strong {
    color: #ffdd55;
}

.key-compat {
    border: 1px solid #4d79ad;
    background: #122f59;
    border-radius: 12px;
    padding: 15px;
    margin: 22px 0;
}

.key-compat strong {
    color: #ffdd55;
}

.key-compat p {
    margin: 8px 0 0;
}

.key-service-details .button {
    line-height: 1.5;
}

/* ==========================================
   CALL TO ACTION
========================================== */

.cta {
    background: #e9f1ff;
    border-radius: 24px;
    padding: 35px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 75px;
}

.cta h2 {
    font-size: 26px;
}

.cta p {
    color: #66758b;
}

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

footer {
    background: #091d3a;
    color: white;
    padding: 35px 0;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer p {
    font-size: 12px;
    color: #b3c3db;
}

.footer > a:last-child {
    font-size: 13px;
}

/* ==========================================
   ARTICLE PAGES
========================================== */

.article {
    max-width: 850px;
    padding-top: 65px;
    padding-bottom: 100px;
    min-height: 65vh;
}

.article h1 {
    font-size: clamp(32px, 5vw, 48px);
}

.back {
    display: block;
    color: #2869da;
    margin-bottom: 45px;
    font-weight: 600;
}

.intro {
    font-size: 19px;
    color: #6a7890;
}

.article-body {
    background: white;
    border: 1px solid #e5ebf3;
    border-radius: 16px;
    padding: 35px;
    margin-top: 35px;
    line-height: 1.95;
}

.article-image {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 16px;
    margin-top: 25px;
}

/* ==========================================
   TABLET RESPONSIVE
========================================== */

@media (max-width: 800px) {

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 14px;
        padding-bottom: 16px;
    }

    .nav nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cta,
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .key-service-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================
   MOBILE RESPONSIVE - 550px AND BELOW
========================================== */

@media (max-width: 550px) {

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

    .hero-inner {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero-panel {
        padding: 24px;
    }

    .cta {
        margin-left: 16px;
        margin-right: 16px;
        padding: 24px;
    }

    .article-body {
        padding: 22px;
    }

    .key-service-details {
        padding: 22px;
    }

    .key-service .section-head h2 {
        font-size: 28px;
    }

    .key-service-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    /* Updated mobile advertisement size: 300px */

    .key-service-photo {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 15px;
        border-radius: 12px;
        overflow: hidden;
    }

    .key-service-photo img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}
