/* =========================================================
   ZelloSheet – Main Stylesheet
   ========================================================= */

/* Layout */

.container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.site-main {
    min-height: 60vh;
}

/* Header */

.site-header {
    width: 100%;
}

.topbar {
    background: var(--zs-dark);
    color: #fff;
}

.topbar-inner {
    min-height: 105px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

.topbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 12px;
    max-width: 100%;
    margin-inline-start: auto;
}

/* Header rows use the available viewport width with a small safe inset. */
.topbar-inner,
.navigation-inner {
    width: 100%;
    max-width: none;
    padding-inline: clamp(12px, 2vw, 28px);
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1.5px;
    text-decoration: none;
}

.site-logo:hover,
.footer-logo:hover {
    color: #fff;
}

.logo-z,
.logo-s {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--zs-orange);
    color: var(--zs-dark);
    border-radius: 7px;
    width: 39px;
    height: 43px;
    margin-right: 2px;
}

.logo-s {
    margin-left: 7px;
}

.custom-logo {
    max-width: 300px;
    max-height: 75px;
    width: auto;
    height: auto;
}

/* Main navigation */

.main-navigation {
    background: var(--zs-dark-soft);
    border-top: 3px solid var(--zs-orange);
}

.navigation-inner {
    display: flex;
    align-items: center;
}

.primary-menu {
    display: flex;
    align-items: stretch;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.primary-menu li {
    margin: 0;
}

.primary-menu a {
    display: block;
    padding: 6px 17px;
    color: #f3f4f6;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    background: var(--zs-orange);
    color: var(--zs-dark);
}

/* Mobile menu */

.menu-toggle {
    display: none;
    width: 44px;
    height: 42px;
    padding: 9px;
    border: 1px solid #555;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
}

/* Footer */

.site-footer {
    background: var(--zs-dark);
    color: #d1d5db;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 55px;
    padding-top: 55px;
    padding-bottom: 45px;
}

.footer-logo {
    font-size: 27px;
}

.footer-logo .logo-z,
.footer-logo .logo-s {
    width: 32px;
    height: 35px;
    border-radius: 6px;
}

.footer-brand p {
    max-width: 390px;
    color: #aeb4bd;
    margin-top: 18px;
}

.footer-content h3 {
    color: #fff;
    font-size: 17px;
    margin: 0 0 18px;
}

.footer-content a {
    color: #d1d5db;
}

.footer-content a:hover {
    color: var(--zs-orange);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #41444a;
    padding: 18px 0;
    color: #9ca3af;
    font-size: 13px;
}

/* Responsive */

@media (max-width: 850px) {
    .topbar-inner {
        min-height: 85px;
    }

    .site-logo {
        font-size: 29px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
    }

    .main-navigation.is-open {
        display: block;
    }

    .primary-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .primary-menu a {
        padding: 13px 10px;
        border-bottom: 1px solid #41444a;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .container {
        width: calc(100% - 30px);
    }

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

    .footer-brand {
        grid-column: auto;
    }
}

/* =========================================================
   Homepage
   ========================================================= */

.hero {
    background: linear-gradient(115deg, #f5f6f8 0%, #ffffff 70%);
    overflow: hidden;
}

.hero-content {
    min-height: 450px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 50px;
    padding-top: 65px;
    padding-bottom: 65px;
}

.eyebrow {
    display: inline-block;
    color: #d98200;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 650px;
    margin: 15px 0 20px;
    color: var(--zs-dark);
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--zs-orange);
}

.hero-text > p {
    max-width: 570px;
    color: var(--zs-text-muted);
    font-size: 18px;
    line-height: 1.7;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 23px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    transition: all .2s ease;
}

.button-primary {
    background: var(--zs-orange);
    color: var(--zs-dark);
}

.button-primary:hover {
    background: #e58a00;
    color: #fff;
    transform: translateY(-2px);
}

.button-outline {
    border-color: #d1d5db;
    color: var(--zs-dark);
}

.button-outline:hover {
    border-color: var(--zs-orange);
    color: var(--zs-dark);
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 245px;
    height: 245px;
    border-radius: 50%;
    background: var(--zs-dark);
    box-shadow: 0 20px 50px rgba(0,0,0,.16);
}

.hero-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 125px;
    height: 135px;
    border-radius: 22px;
    background: var(--zs-orange);
    color: var(--zs-dark);
    font-size: 105px;
    font-weight: 900;
}

.signal {
    position: absolute;
    border: 5px solid transparent;
    border-top-color: var(--zs-orange);
    border-radius: 50%;
    transform: rotate(45deg);
}

.signal-one {
    top: 22px;
    right: 22px;
    width: 55px;
    height: 55px;
}

.signal-two {
    top: 8px;
    right: 8px;
    width: 83px;
    height: 83px;
}

.signal-three {
    top: -8px;
    right: -8px;
    width: 112px;
    height: 112px;
}

.hero-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 22px;
}

.hero-caption strong {
    color: var(--zs-dark);
    font-size: 21px;
}

.hero-caption span {
    color: var(--zs-text-muted);
    font-size: 13px;
}

/* Intro and feature cards */

.intro-section {
    padding: 85px 0;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-heading h2,
.highlight-section h2,
.join-section h2 {
    margin: 12px 0;
    color: var(--zs-dark);
    font-size: clamp(28px, 3.5vw, 38px);
    line-height: 1.2;
}

.section-heading p,
.highlight-section p,
.join-section p {
    color: var(--zs-text-muted);
    font-size: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    padding: 30px;
    border: 1px solid var(--zs-border);
    border-radius: var(--zs-radius);
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,.07);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #fff1d9;
    color: #c77700;
    font-size: 29px;
    font-weight: 700;
}

.feature-card h3 {
    margin: 20px 0 10px;
    color: var(--zs-dark);
    font-size: 20px;
}

.feature-card p {
    min-height: 75px;
    color: var(--zs-text-muted);
    font-size: 14px;
}

.feature-card > a {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
}

/* Highlight section */

.highlight-section {
    padding: 75px 0;
    background: var(--zs-dark);
    color: #fff;
}

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

.highlight-section h2 {
    max-width: 600px;
    color: #fff;
}

.highlight-section p {
    max-width: 650px;
    color: #c4c8cf;
}

.highlight-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border: 4px solid var(--zs-orange);
    border-radius: 50%;
    color: var(--zs-orange);
    font-size: 95px;
    font-weight: 900;
}

/* Join section */

.join-section {
    padding: 75px 0;
    background: var(--zs-background-soft);
}

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

.join-section h2 {
    font-size: 32px;
}

.join-section p {
    max-width: 650px;
    margin-bottom: 0;
}

/* Homepage responsive */

@media (max-width: 850px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 45px;
        text-align: center;
    }

    .hero-text > p {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

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

    .feature-card p {
        min-height: auto;
    }

    .highlight-content,
    .join-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .highlight-mark {
        align-self: center;
    }
}

@media (max-width: 520px) {
    .hero-content {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero-circle {
        width: 190px;
        height: 190px;
    }

    .hero-symbol {
        width: 100px;
        height: 108px;
        font-size: 80px;
    }

    .signal-one {
        width: 42px;
        height: 42px;
    }

    .signal-two {
        width: 65px;
        height: 65px;
    }

    .signal-three {
        width: 87px;
        height: 87px;
    }

    .intro-section,
    .highlight-section,
    .join-section {
        padding: 55px 0;
    }

    .hero-actions .button {
        width: 100%;
    }
}
