/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --blue: #3A9BD5;
    --blue-dark: #2878B5;
    --bg: #141618;
    --bg-raised: #1C1F22;
    --bg-card: #22262A;
    --border: #2E3338;
    --text: #D4D8DC;
    --text-muted: #8A9099;
    --white: #F0F2F4;
    --nav-height: 64px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-dark); }

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

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--blue);
    color: var(--bg);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: background 0.2s;
}
.btn:hover { background: var(--blue-dark); color: var(--bg); }

.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--bg); }

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
    background: var(--bg-raised);
    box-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img { height: 36px; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}
.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s, opacity 0.2s;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/hero-banner.jpg') center/cover no-repeat;
    margin-top: var(--nav-height);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20,22,24,0.5) 0%, rgba(58,155,213,0.2) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-content p {
    max-width: 540px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ===== Sections ===== */
.section {
    padding: 56px 0;
}
.section-alt {
    background: var(--bg-raised);
}
.section-accent {
    background: var(--bg-card);
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: -0.01em;
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 28px 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(58,155,213,0.08);
}

.service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--blue);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ===== About ===== */
.about-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 36px;
    align-items: start;
}

.about-photo img {
    border-radius: 6px;
    width: 200px;
    object-fit: cover;
}

.about-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.credentials {
    list-style: none;
    margin-bottom: 20px;
}
.credentials li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.credentials li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 2px;
    background: var(--blue);
}

/* ===== Contact ===== */
.contact-content {
    display: flex;
    justify-content: center;
    gap: 64px;
    text-align: center;
    margin-top: 24px;
}

.contact-item h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.contact-item a {
    font-size: 1.1rem;
    color: var(--white);
}
.contact-item a:hover { color: var(--blue); }

/* ===== Footer ===== */
.footer {
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
}

.footer-logo {
    height: 32px;
    margin: 0 auto 10px;
    opacity: 0.5;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-raised);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        display: block;
        padding: 14px 24px;
        border-bottom: 1px solid var(--border);
    }

    .hero { height: 300px; }
    .hero-content h1 { font-size: 1.7rem; }
    .hero-content p { font-size: 0.95rem; }

    .section { padding: 40px 0; }
    .section-title { font-size: 1.4rem; margin-bottom: 24px; }

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

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-photo img {
        width: 180px;
        margin: 0 auto;
    }

    .contact-content { flex-direction: column; gap: 24px; }
}
