/**
 * Create by XIAOMU
 * Date: 2025/11/5
 * Name : APP
 */
@import "../../../assets/font/ukij.css";

:root {
    --white: #ffffff;
    --paper: #f7f8fb;
    --ink: #172033;
    --muted: #667085;
    --line: #e4e9f1;
    --primary: #2166d5;
    --primary-dark: #174da8;
    --accent: #12a594;
    --rose: #e85b7a;
    --shadow: 0 18px 45px rgba(23, 32, 51, 0.12);
    --transition: all 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    overflow-x: hidden;
    background: var(--white);
    color: var(--ink);
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

body.lang-ug,
body.lang-ug button,
body.lang-ug input,
body.lang-ug textarea {
    font-family: "UKIJ Tor", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a {
    color: inherit;
}

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

body [lang="zh"] {
    display: block;
}

body [lang="ug"] {
    display: none;
    direction: rtl;
}

html.lang-zh body [lang="ug"] {
    display: none;
}

html.lang-zh body [lang="zh"] {
    display: block;
}

html.lang-ug body [lang="zh"] {
    display: none;
}

html.lang-ug body [lang="ug"] {
    display: block;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
    align-items: center;
    width: 100%;
    min-height: 76px;
    padding: 12px clamp(16px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(228, 233, 241, 0.9);
    box-shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
    backdrop-filter: blur(18px);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    text-decoration: none;
}

.logo-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
    font-weight: 800;
    line-height: 1;
}

.logo-text {
    display: grid;
    gap: 1px;
}

.logo-text strong {
    color: var(--ink);
    font-size: 17px;
    line-height: 1.2;
}

.logo-text small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.nav {
    display: inline-flex;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
}

.nav a {
    min-width: 78px;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--muted);
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    transition: var(--transition);
}

.nav a:hover,
.nav a.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 6px 18px rgba(23, 32, 51, 0.08);
}

.language-switcher {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
}

.lang-btn {
    min-width: 78px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 650;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(33, 102, 213, 0.24);
}

.section {
    position: relative;
    padding: 110px clamp(16px, 4vw, 56px);
}

.content {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.hero-section {
    display: flex;
    min-height: 92vh;
    align-items: center;
    padding-top: 126px;
    padding-bottom: 72px;
    background: var(--paper);
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: clamp(32px, 6vw, 86px);
}

.hero-copy {
    max-width: 660px;
}

.eyebrow {
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border: 1px solid rgba(18, 165, 148, 0.24);
    border-radius: 999px;
    background: rgba(18, 165, 148, 0.08);
    color: #087d70;
    font-size: 13px;
    font-weight: 750;
}

body.lang-ug .eyebrow {
    margin-right: 0;
    margin-left: auto;
}

h1,
h2,
h3,
h4,
p {
    overflow-wrap: anywhere;
}

h1 {
    color: var(--ink);
    font-size: clamp(42px, 5.6vw, 74px);
    line-height: 1.04;
    font-weight: 850;
    letter-spacing: 0;
}

.hero-text {
    max-width: 580px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
}

body.lang-ug .hero-copy,
body.lang-ug .section-heading {
    text-align: right;
}

body.lang-ug .hero-text {
    margin-right: auto;
    margin-left: 0;
}

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

body.lang-ug .hero-actions {
    justify-content: flex-end;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 750;
    transition: var(--transition);
}

.primary-action {
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 14px 28px rgba(33, 102, 213, 0.26);
}

.primary-action:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.secondary-action {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
}

.secondary-action:hover {
    border-color: rgba(33, 102, 213, 0.35);
    color: var(--primary);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 560px;
    margin-top: 36px;
}

.hero-stats div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.hero-stats strong {
    display: block;
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
}

.hero-stats span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-preview {
    width: min(380px, 100%);
    aspect-ratio: 9 / 16;
    padding: 18px;
    border: 10px solid var(--ink);
    border-radius: 34px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.phone-top {
    width: 84px;
    height: 6px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: #d4dbe7;
}

.preview-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--paper);
    color: var(--muted);
    font-size: 14px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.preview-grid img {
    width: 100%;
    aspect-ratio: 1;
    padding: 22%;
    border-radius: 8px;
    background: #edf4ff;
    object-fit: contain;
}

.preview-grid img:nth-child(2) {
    background: #effaf7;
}

.preview-grid img:nth-child(3) {
    background: #fff4f6;
}

.preview-grid img:nth-child(4) {
    background: #f6f2ff;
}

.preview-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.preview-list span {
    display: block;
    height: 46px;
    border-radius: 8px;
    background: var(--paper);
}

.feature-section {
    background: var(--white);
}

.contact-section {
    background: var(--paper);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading h2 {
    color: var(--ink);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 850;
}

.section-heading p:not(.eyebrow) {
    margin-top: 14px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.features-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.contact-card,
.hours-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(23, 32, 51, 0.06);
}

.feature-card,
.contact-card {
    padding: 26px;
    transition: var(--transition);
}

.feature-card:hover,
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon,
.card-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 8px;
    background: rgba(33, 102, 213, 0.1);
    color: var(--primary);
    font-size: 20px;
}

.feature-card:nth-child(2) .feature-icon {
    background: rgba(18, 165, 148, 0.1);
    color: var(--accent);
}

.feature-card:nth-child(3) .feature-icon {
    background: rgba(232, 91, 122, 0.1);
    color: var(--rose);
}

.feature-card h3,
.contact-card h3 {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.3;
}

.feature-card p,
.contact-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.contact-card a {
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-auto-rows: 190px;
    gap: 18px;
    margin-top: 28px;
}

.showcase-grid figure {
    overflow: hidden;
    border-radius: 8px;
    background: var(--paper);
}

.showcase-grid figure:first-child {
    grid-row: span 2;
}

.showcase-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.showcase-grid figure:hover img {
    transform: scale(1.04);
}

.contact-meta {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    gap: 18px;
    margin-top: 18px;
}

.hours-section,
.social-section {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(23, 32, 51, 0.06);
}

.hours-title,
.social-title {
    margin-bottom: 16px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.3;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hours-item {
    padding: 16px;
    box-shadow: none;
}

.hours-item h4 {
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 15px;
}

.hours-item p {
    color: var(--muted);
    font-size: 14px;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(4, 48px);
    gap: 10px;
}

.social-link {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--muted);
    font-size: 14px;
}

.site-footer strong {
    color: var(--ink);
    font-weight: 700;
}

body.lang-ug .features-grid,
body.lang-ug .contact-grid,
body.lang-ug .hours-grid,
body.lang-ug .contact-meta,
body.lang-ug .site-footer {
    direction: rtl;
}

body.lang-ug .feature-card,
body.lang-ug .contact-card,
body.lang-ug .hours-section,
body.lang-ug .social-section {
    text-align: right;
}

body.lang-ug .feature-icon,
body.lang-ug .card-icon {
    margin-right: 0;
    margin-left: auto;
}

@media (max-width: 980px) {
    #header {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .nav {
        grid-column: 1 / -1;
        justify-self: center;
        order: 3;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: none;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    body.lang-ug .hero-visual {
        justify-content: flex-end;
    }

    .features-grid,
    .contact-grid,
    .contact-meta {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    #header {
        min-height: auto;
        padding: 10px 12px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .logo-text small {
        display: none;
    }

    .language-switcher {
        padding: 4px;
    }

    .lang-btn {
        min-width: 64px;
        height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .nav {
        width: 100%;
        overflow-x: auto;
        justify-content: stretch;
    }

    .nav a {
        flex: 1 0 0;
        min-width: 0;
        padding: 8px 10px;
        font-size: 13px;
    }

    .section {
        padding: 90px 14px 64px;
    }

    .hero-section {
        min-height: auto;
        padding-top: 150px;
    }

    h1 {
        font-size: 38px;
        line-height: 1.08;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-actions,
    body.lang-ug .hero-actions {
        justify-content: stretch;
    }

    .primary-action,
    .secondary-action {
        width: 100%;
    }

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

    .phone-preview {
        width: 100%;
        max-width: 330px;
        border-width: 8px;
        border-radius: 28px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 210px;
    }

    .showcase-grid figure:first-child {
        grid-row: span 1;
    }

    .social-links {
        grid-template-columns: repeat(4, minmax(42px, 48px));
    }

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