/* Spey Software Ltd — single-page site */

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

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a { color: #337ab7; text-decoration: none; }
a:hover, a:focus { color: #23527c; text-decoration: underline; }

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

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

/* ---------- Navbar ---------- */

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    min-height: 70px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1030;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.navbar.scrolled {
    background: #fff;
    border-bottom: 1px solid #aaa;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}
.brand:hover, .brand:focus { text-decoration: none; color: #fff; }
.navbar.scrolled .brand { color: #777; }

.brand-logo { width: 36px; height: auto; }

.text-theme { color: #348fe2; }

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-links a {
    display: block;
    padding: 25px 15px;
    color: #8F8E8E;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
    color: #348fe2;
    text-decoration: none;
}
.navbar.scrolled .nav-links a { color: #2d353c; }
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a:focus,
.navbar.scrolled .nav-links a.active { color: #348fe2; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #fff;
    border-radius: 4px;
    padding: 9px 10px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 4px 0;
}
.navbar.scrolled .nav-toggle { border-color: #2d353c; }
.navbar.scrolled .nav-toggle span { background: #888; }

/* ---------- Hero ---------- */

.cover {
    position: relative;
    min-height: 100vh;
    background: url(/img/spey-bg.jpg) top center / cover no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: url(/img/content-bg-cover.png) repeat;
    pointer-events: none;
}

.home-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 15px;
}

.home-content h1 {
    font-size: 64px;
    font-weight: 600;
    margin: 0 0 40px;
}
.home-content h3 {
    font-size: 32px;
    font-weight: 300;
    margin: 0 0 60px;
}

.btn-outline {
    display: inline-block;
    color: #fff;
    border: 2px solid #8F8E8E;
    background: none;
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 3px;
    text-decoration: none;
    transition: border-color 0.2s ease;
}
.btn-outline:hover,
.btn-outline:focus {
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

/* ---------- Sections ---------- */

.section-title {
    text-align: center;
    margin: 0;
    padding-top: 50px;
    font-size: 30px;
    font-weight: 500;
}

/* ---------- Projects ---------- */

.projects {
    background-color: #f9f9f9;
}

.project-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 100px 0;
}
.project-row.reverse { flex-direction: row-reverse; }

.project-image,
.project-copy { flex: 1 1 0; min-width: 0; }

.project-copy h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 500;
}
.project-copy p {
    color: #777;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px;
}
.project-copy.text-right { text-align: right; }

/* ---------- Clients ---------- */

.clients {
    text-align: center;
    background: #fff;
}

.clients .logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 100px;
    gap: 20px 60px;
}
.clients .logos img {
    max-height: 80px;
    width: auto;
}

/* ---------- Footer ---------- */

.footer {
    background-color: #28282e;
    color: #9ba1ac;
    padding-top: 60px;
}

.footer h5 {
    color: #fff;
    font-weight: 600;
    margin: 0 0 15px;
    font-size: 16px;
}

.footer p { margin: 0 0 10px; }

.footer a { color: #9ba1ac; }
.footer a:hover, .footer a:focus { color: #fff; text-decoration: underline; }

.footer-grid {
    display: grid;
    grid-template-columns: 4fr 3fr 4fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col strong { color: #c5cad1; font-size: 14px; font-weight: 600; }

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #3B3B40;
    font-size: 13px;
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 992px) {
    .home-content h1 { font-size: 48px; margin: 0 0 30px; }
    .home-content h3 { font-size: 24px; margin: 0 0 40px; }

    .project-row,
    .project-row.reverse {
        flex-direction: column;
        text-align: center;
        margin: 60px 0;
        gap: 30px;
    }
    .project-copy.text-right { text-align: center; }
    .project-image img { margin: 0 auto; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .home-content h1 { font-size: 36px; margin: 0 0 15px; }
    .home-content h3 { font-size: 18px; margin: 0 0 30px; }

    .nav-toggle { display: block; }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        border-bottom: 1px solid #aaa;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease;
    }
    .nav-links.open { max-height: 400px; }
    .nav-links a {
        padding: 15px 20px;
        color: #2d353c;
        border-bottom: 1px solid #eee;
    }

    .clients .logos {
        flex-direction: column;
        gap: 30px;
    }
    .clients .logos img { margin: 0 auto; }
}
