@font-face {
    font-family: "Aleo";
    src: url("./fonts/Aleo/Aleo-VariableFont_wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Spacing system */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --extra-1: 4rem;
    --extra-2: 6rem;

    /* Weights */
    --weight-regular: 400;
    --weight-bold: 700;
    --weight-black: 900;

    /* Color system */
    --color-light-1: #f8fafc;
    --color-light-2: #e0f2fe;
    --color-primary: #0056b3;
    --color-dark-1: #0f172a;
    --color-dark-2: #334155;
    --color-grey-light-2: #e2e8f0;
    --color-border: #cbd5e1;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: "Aleo", serif;
    color: var(--color-dark-1);
    background: var(--color-light-1);
    line-height: 1.6;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.naveg {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    color: var(--color-dark-1);
    padding: var(--space-4) var(--space-6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--color-grey-light-2);
}

.naveg h2 {
    font-size: var(--space-6);
    font-weight: var(--weight-black);
}
.naveg ul {
    list-style: none;
    display: flex;
    gap: var(--space-4);
    align-items: center;
}
.naveg a {
    color: var(--color-dark-1);
    text-decoration: none;
    font-weight: var(--weight-bold);
}
.naveg .button {
    border-radius: 999px;
    background: var(--color-primary);
    color: white;
    padding: 0.7rem 1rem;
}

#hero {
    padding: var(--extra-2) 0;
    text-align: center;
    background: var(--color-grey-light-2);
}
#hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.2rem);
    font-weight: var(--weight-black);
    margin-bottom: var(--space-4);
}
#hero p {
    max-width: 600px;
    margin: 0 auto var(--space-5);
}
.hero-ctas {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}
.button {
    border-radius: 12px;
    background: var(--color-primary);
    color: white;
    padding: 0.9rem 1.2rem;
    text-decoration: none;
    font-weight: var(--weight-bold);
}
.button.ghost {
    background: white;
    color: var(--color-dark-1);
    border: 1px solid var(--color-border);
}

#about,
#services,
#work,
#contact {
    padding: var(--extra-1) 0;
}
#about h2,
#services h2,
#work h2,
#contact h2 {
    font-size: 2.2rem;
    font-weight: var(--weight-black);
    margin-bottom: var(--space-5);
    text-align: center;
}

.about-founder {
    display: flex;
    gap: var(--space-5);
    align-items: center;
    max-width: 800px;
    margin: 0 auto var(--space-7);
}
.founder-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    border: solid 2px #007bff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.443);
}
.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.4);
    transform-origin: 35% 25%;
}
.duty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
}
.columns-duty {
    background: white;
    padding: var(--space-5);
    border-radius: 20px;
    border: 1px solid var(--color-grey-light-2);
    text-align: center;
}

.services-header {
    text-align: center;
    margin-bottom: var(--space-6);
}
.columns-services {
    display: flex;
    gap: var(--space-5);
    align-items: center;
    background: white;
    border-radius: 24px;
    border: 1px solid var(--color-grey-light-2);
    overflow: hidden;
    margin-bottom: var(--space-5);
}
.columns-services:nth-child(even) {
    flex-direction: row-reverse;
}
.image-services {
    flex: 7;
    height: 300px;
    background: var(--color-grey-light-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark-2);
    overflow: hidden;
}
.image-services img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
}
.info-services {
    flex: 4;
    padding: var(--space-6);
}
.info-services h3 {
    font-size: 1.4rem;
    margin-bottom: var(--space-2);
}
.work-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-6);
}
.work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: var(--space-4);
}
.work-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-dark-2);
}
.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--space-4);
}
.work-item.big {
    grid-column: span 2;
}
.work-item.right {
    grid-column: 3 / span 2;
}
.work-item.last {
    grid-column: 2 / span 2;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
}
.contact-card {
    background: white;
    border: 1px solid var(--color-grey-light-2);
    border-radius: 20px;
    padding: var(--space-5);
    text-decoration: none;
    color: var(--color-dark-1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}
.contact-card span {
    font-size: 1.8rem;
}

.site-footer {
    background: var(--color-dark-1);
    color: white;
    padding: var(--space-6) 0;
    margin-top: var(--extra-1);
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}
.site-footer a {
    color: white;
    text-decoration: none;
    margin-right: var(--space-4);
}
@media (max-width: 768px) {
    .naveg {
        flex-direction: column;
        gap: var(--space-3);
    }
    .naveg ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .columns-services,
    .columns-services:nth-child(even) {
        flex-direction: column;
        align-items: stretch;
    }
    .image-services {
        width: 100%;
        height: 240px;
    }
    .info-services {
        padding: var(--space-4);
    }
    .about-founder {
        flex-direction: column;
        text-align: center;
    }
}
