/* =========================================================================
   Global IT Technologies -- landing page styles
   Theme is controlled by [data-theme="light" | "dark"] on <html>,
   toggled from assets/js/theme.js and persisted to localStorage.
   ========================================================================= */

/* ---------- Light theme (default) ---------- */
:root {
    --bg:            #ffffff;
    --bg-soft:       #f4f6f9;
    --surface:       #ffffff;
    --surface-2:     #eef1f6;
    --text:          #16191f;
    --text-muted:    #565d6b;
    --border:        #e1e5ec;
    --accent:        #2457e0;
    --accent-hover:  #1b45bd;
    --accent-soft:   #e8edfc;
    --shadow:        0 4px 20px rgba(20, 25, 40, 0.06);
    --header-bg:     rgba(255, 255, 255, 0.9);
    --hero-grad:     linear-gradient(135deg, #0f1c3f 0%, #17306e 45%, #2457e0 100%);
    --hero-text:     #ffffff;
    --logo-accent:   #3b84a8;
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
    --bg:            #0d1017;
    --bg-soft:       #11151d;
    --surface:       #161b25;
    --surface-2:     #1c2230;
    --text:          #eef1f6;
    --text-muted:    #9aa3b5;
    --border:        #2a3142;
    --accent:        #5b84ff;
    --accent-hover:  #7a9aff;
    --accent-soft:   #1c2742;
    --shadow:        0 4px 24px rgba(0, 0, 0, 0.4);
    --header-bg:     rgba(13, 16, 23, 0.85);
    --hero-grad:     linear-gradient(135deg, #060a17 0%, #0f1c3f 45%, #1a3a8f 100%);
    --hero-text:     #ffffff;
    --logo-accent:   #81c8eb;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color .2s ease, color .2s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0 0 1rem; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .15s ease, transform .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--accent);
    color: #ffffff;
}
.btn-primary:hover { background: var(--accent-hover); }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1rem;
}
.logo {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--text);
}
.logo-accent { color: var(--logo-accent); }
.logo-short { display: none; }

.site-nav ul {
    display: flex;
    gap: 1.75rem;
}
.site-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color .15s ease;
}
.site-nav a:hover { color: var(--accent); }

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.lang-switch {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.lang-switch-item {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.lang-switch-item + .lang-switch-item { border-left: 1px solid var(--border); }
.lang-switch-item:hover { background: var(--surface-2); }
.lang-switch-item.is-active {
    background: var(--accent);
    color: #fff;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: background-color .15s ease;
}
.theme-toggle:hover { background: var(--surface-2); }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }

/* Mobile nav toggle (checkbox hack) */
.nav-toggle { display: none; }
.nav-toggle-label {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    cursor: pointer;
}
.nav-toggle-label span { flex-shrink: 0; width: 100%; }
.nav-toggle-label span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
    background: var(--hero-grad);
    color: var(--hero-text);
    padding: 6rem 0 5rem;
}
.hero-inner { max-width: 760px; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.75rem;
}
.hero h1 {
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}
.hero-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 620px;
}
.hero-architect {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2rem;
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-soft); }
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}
.about-block { margin-top: 3rem; }
.about-block h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}
.about-block p { color: var(--text-muted); }

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
}
.card h3, .card h4 { margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card-accent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    background: var(--accent-soft);
    border-color: transparent;
}

.badge {
    display: inline-block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent);
    margin: 0;
}
.badge-outline { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }

.check-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.timeline {
    display: grid;
    gap: 1.25rem;
}
.timeline-item {
    border-left: 3px solid var(--accent);
    padding-left: 1.25rem;
}
.timeline-item h4 { font-size: 1.05rem; }
.timeline-item p { color: var(--text-muted); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1rem;
}

/* ---------- Projects (accordion, always full width) ----------
   Plain native <details>/<summary> toggle -- no animation, it just
   opens and closes instantly. */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.project-card summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background-color .15s ease;
}
.project-card summary:hover { background: var(--surface-2); }
.project-card summary::-webkit-details-marker { display: none; }
.project-card summary::marker { content: ""; }
.project-title { flex: 1; }
.project-toggle {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
}
.project-toggle::before, .project-toggle::after {
    content: "";
    position: absolute;
    background: var(--accent);
    border-radius: 2px;
}
.project-toggle::before { width: 100%; height: 2px; top: 9px; left: 0; }
.project-toggle::after  { width: 2px; height: 100%; top: 0; left: 9px; }
.project-card[open] .project-toggle::after { display: none; }

.project-body {
    padding: 0.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
}
.project-body p { margin-bottom: 0.85rem; }
.project-body p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 3.5rem 24px 2.5rem;
}
.footer-logo { margin-bottom: 0.9rem; }
.footer-address, .footer-email { color: var(--text-muted); }
.footer-email a { color: var(--accent); font-weight: 600; }
.footer-heading {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}
.partners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.partners-list li {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .value-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .container { padding: 0 16px; }
    .header-inner { gap: 0.6rem; }
    .logo { font-size: 1rem; }
    .lang-switch-item { padding: 0.35rem 0.5rem; font-size: 0.72rem; }
    .theme-toggle { width: 34px; height: 34px; }
    .header-controls { gap: 0.5rem; }
    .nav-toggle-label { display: flex; }
    .site-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height .2s ease;
    }
    .site-nav ul {
        flex-direction: column;
        padding: 0.5rem 24px 1rem;
        gap: 0.25rem;
    }
    .site-nav a {
        display: block;
        padding: 0.6rem 0;
    }
    .nav-toggle:checked ~ .site-nav { max-height: 320px; }
    .hero { padding: 4rem 0 3.5rem; }
    .section { padding: 3.5rem 0; }
    .footer-inner { padding-top: 4rem; padding-bottom: 3.5rem; }
    .footer-bottom { padding-top: 1.75rem; padding-bottom: 1.75rem; }
}

/* Very narrow phones: the full wordmark no longer fits next to the
   language switcher and theme toggle, so swap in a short logo. */
@media (max-width: 480px) {
    .logo-full { display: none; }
    .logo-short { display: inline; }
    .lang-switch-item { padding: 0.3rem 0.4rem; font-size: 0.68rem; }
}
