/* Root page of mockups.elry.dev. Mirrors elry.dev (Hugo, biztrox theme +
   assets/scss/custom.scss): Poppins, Water Caltrop #31353D, text green
   #3A7A1A (the only green for text), bright greens for decoration only,
   the four-green accent rule, white cards with a green top accent. */

@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url('/fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url('/fonts/poppins-latin-700-normal.woff2') format('woff2'); }

:root {
    --primary: #3a7a1a;
    --primary-hover: #4a9a22;
    --dark: #31353d;
    --text-dark: #31353d;
    --text: #54585f;
    --muted: #d7d8da;
    --bg-gray: #f5f6f5;
    --border: #e5e5e5;
    --white: #fff;
    --g1: #76d431;
    --g2: #6abf2c;
    --g3: #64b329;
    --g4: #5ea826;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 0.5em;
}

a {
    color: var(--primary);
    text-decoration: none;
}

img {
    max-width: 100%;
}

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

.narrow {
    max-width: 820px;
}

/* --- Header ---------------------------------------------------------- */
.top-header {
    background: var(--dark);
    font-size: 14px;
}

.top-header ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    display: flex;
    justify-content: flex-end;
    gap: 28px;
}

.top-header a {
    color: var(--muted);
}

.top-header a span {
    color: var(--g1);
    font-weight: 600;
    margin-left: 6px;
}

.navigation {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(49, 53, 61, 0.06);
    position: relative;
    z-index: 10;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 84px;
}

.navbar-brand {
    align-self: flex-start;
    background: var(--dark);
    padding: 12px 18px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    margin-bottom: -40px;
}

.navbar-brand img {
    display: block;
    width: 110px;
    height: auto;
}

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

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- Buttons ----------------------------------------------------------- */
.btn {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 16px 44px;
    border-radius: 35px;
    border: 2px solid transparent;
    transition: 0.2s ease;
    text-align: center;
}

.btn-sm {
    padding: 10px 24px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-light {
    background: var(--white);
    color: var(--text-dark);
    border-color: var(--white);
}

.btn-light:hover {
    background: transparent;
    color: var(--white);
}

/* --- Hero -------------------------------------------------------------- */
.hero {
    background: var(--dark);
    color: var(--white);
    padding: 130px 0 100px;
}

.hero h1 {
    color: var(--white);
    font-weight: 700;
    font-size: 3.25rem;
    max-width: 20ch;
    margin-bottom: 24px;
}

.accent-rule {
    display: block;
    height: 4px;
    width: 132px;
    border-radius: 2px;
    margin-bottom: 24px;
    background: linear-gradient(to right, var(--g1) 0 25%, var(--g2) 25% 50%, var(--g3) 50% 75%, var(--g4) 75% 100%);
}

.hero-body {
    max-width: 640px;
    font-size: 1.15rem;
    margin: 0 0 16px;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    max-width: 680px;
}

.hero-bullets li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 6px;
}

.hero-bullets li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 7px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--g1);
    border-bottom: 2px solid var(--g1);
    transform: rotate(-45deg);
}

/* --- Sections ---------------------------------------------------------- */
.section {
    padding: 100px 0;
}

.bg-gray {
    background: var(--bg-gray);
}

.section-head {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.section-title-border,
.section-title-border-half {
    position: relative;
}

.section-title-border::before {
    content: '';
    position: absolute;
    height: 2px;
    width: 120px;
    background: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-border::after {
    content: '';
    position: absolute;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background: var(--bg-gray);
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 5px var(--bg-gray);
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-border-half::before {
    content: '';
    position: absolute;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    bottom: -14px;
    left: 0;
}

.section-title-border-half::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 50px;
    left: 15px;
    bottom: -10px;
    background: var(--primary);
}

.section p {
    font-size: 1.05rem;
}

.section .btn {
    margin-top: 16px;
}

/* --- Mockup cards ------------------------------------------------------ */
.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.mockup-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 6px;
    border-top: 3px solid var(--g1);
    box-shadow: 0 6px 18px rgba(49, 53, 61, 0.06);
    padding: 28px 24px 24px;
    color: var(--text);
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.mockup-card:nth-child(4n + 2) {
    border-top-color: var(--g2);
}

.mockup-card:nth-child(4n + 3) {
    border-top-color: var(--g3);
}

.mockup-card:nth-child(4n + 4) {
    border-top-color: var(--g4);
}

.mockup-card:hover {
    box-shadow: 0 10px 26px rgba(49, 53, 61, 0.14);
    transform: translateY(-3px);
}

.card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.round-icon {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--primary);
}

.round-icon svg {
    width: 24px;
    height: 24px;
}

.mockup-card h3 {
    font-size: 1.2rem;
    margin: 0;
}

.card-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: #eef7e6;
    border-radius: 999px;
    padding: 1px 10px;
    margin-top: 4px;
}

.card-summary {
    margin: 0 0 16px;
    flex: 1;
}

.card-business {
    font-size: 14px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin: 0 0 14px;
}

.card-business strong {
    color: var(--text-dark);
    font-weight: 600;
}

.card-link {
    font-weight: 600;
    color: var(--primary);
}

.mockup-card:hover .card-link {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* --- Footer ------------------------------------------------------------ */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-top: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid #454547;
}

.footer-brand img {
    width: 140px;
    height: auto;
    margin-bottom: 24px;
}

.footer-descriptor a {
    color: var(--white);
}

.footer-ownership {
    font-size: 0.875rem;
    max-width: 420px;
}

footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 18px;
}

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

footer li {
    margin-bottom: 8px;
}

footer a {
    color: rgba(255, 255, 255, 0.75);
}

footer a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    padding-bottom: 24px;
    font-size: 14px;
}

/* --- Small screens ----------------------------------------------------- */
@media (max-width: 991px) {
    .nav-links {
        display: none;
    }

    .navbar-brand {
        margin-bottom: 0;
        align-self: center;
        padding: 8px 14px;
    }

    .navbar-brand img {
        height: 56px;
        width: auto;
    }

    .nav-inner {
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .top-header ul {
        justify-content: center;
        gap: 16px;
        font-size: 13px;
    }

    .hero {
        padding: 70px 0 70px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}
