
/* =========================================
   LAYERWELL DEVELOPMENT
   Main stylesheet
========================================= */

:root {
    --background: #101311;
    --surface: #171c19;
    --surface-hover: #1d241f;
    --accent: #b4d1ba;
    --accent-bright: #d7e7da;
    --text: #f4f5f1;
    --muted: #a1aaa3;
    --border: rgba(215, 231, 218, 0.13);
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

::selection {
    background: var(--accent);
    color: var(--background);
}

/* HEADER */

.site-header {
    width: min(var(--max-width), calc(100% - 64px));
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.brand-mark {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(180, 209, 186, 0.55);
    border-radius: 10px;
    color: var(--accent-bright);
    font-size: 19px;
    font-weight: 600;
}

.brand-light {
    color: var(--muted);
    font-weight: 400;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-header nav a {
    color: var(--muted);
    font-size: 13px;
    transition: color 0.2s ease;
}

.site-header nav a:hover {
    color: var(--text);
}

.site-header nav .nav-contact {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
}

.nav-contact span {
    margin-left: 6px;
    color: var(--accent);
}

/* HERO */

.hero {
    width: min(var(--max-width), calc(100% - 64px));
    min-height: 610px;
    margin: 0 auto;
    padding: 120px 0 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.5;
}

.hero .eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(180, 209, 186, 0.35);
}

.hero h1 {
    max-width: 850px;
    font-size: clamp(42px, 6.2vw, 76px);
    font-weight: 600;
    letter-spacing: -4px;
    line-height: 1.12;
}

.hero h1 span {
    color: var(--accent);
}

.hero-copy {
    max-width: 570px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 34px;
}

.button {
    min-height: 48px;
    padding: 12px 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--accent-bright);
    color: var(--background);
}

.button-primary:hover {
    background: var(--accent);
}

.button-secondary {
    border-color: var(--border);
    color: var(--text);
}

.button-secondary:hover {
    border-color: var(--accent);
}

.hero-note {
    margin-top: 38px;
    color: #818a82;
    font-size: 12px;
}

/* SHARED SECTIONS */

.section {
    width: min(var(--max-width), calc(100% - 64px));
    margin: 0 auto;
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.section h2 {
    max-width: 720px;
    margin-top: 18px;
    font-size: clamp(30px, 4vw, 45px);
    font-weight: 500;
    letter-spacing: -1.8px;
    line-height: 1.25;
}

.section-copy {
    max-width: 580px;
    margin-top: 17px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

/* SERVICES */

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 44px;
}

.service-card {
    position: relative;
    min-height: 235px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.service-card:hover {
    background: var(--surface-hover);
    border-color: rgba(180, 209, 186, 0.35);
    transform: translateY(-3px);
}

.card-number,
.project-type {
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.service-card h3 {
    margin-top: 27px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.service-card p {
    max-width: 410px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.card-arrow {
    position: absolute;
    top: 25px;
    right: 28px;
    color: var(--accent);
    font-size: 18px;
}

/* PORTFOLIO */

.project-card {
    margin-top: 34px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.project-visual {
    min-height: 280px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.visual-label {
    position: absolute;
    top: 24px;
    left: 27px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.aquarium-visual {
    background:
        radial-gradient(
            ellipse at 75% 70%,
            rgba(65, 119, 91, 0.25),
            transparent 45%
        ),
        linear-gradient(120deg, #17231d, #101a18 65%, #19251e);
}

.aquarium-title {
    font-size: clamp(36px, 6vw, 62px);
    font-weight: 600;
    letter-spacing: 5px;
}

.aquarium-subtitle {
    margin-top: 5px;
    color: #b8c9bc;
    font-size: 13px;
    letter-spacing: 1px;
}

.code-visual {
    background:
        radial-gradient(
            ellipse at 80% 20%,
            rgba(93, 124, 100, 0.13),
            transparent 55%
        ),
        #141916;
}

.code-window {
    width: min(100%, 410px);
    margin: 18px auto 0;
    padding: 23px;
    background: rgba(10, 13, 11, 0.7);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.code-window span {
    display: block;
    margin-bottom: 17px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
}

.code-window p {
    margin-top: 9px;
    color: #c4cdc5;
    font-family: Consolas, monospace;
    font-size: 12px;
}

.project-details {
    padding: 25px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--border);
}

.project-details h3 {
    margin-top: 7px;
    font-size: 21px;
    font-weight: 500;
}

.project-details p:not(.project-type) {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.text-link {
    flex-shrink: 0;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}

.text-link:hover {
    color: var(--accent-bright);
}

.project-status {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 12px;
}

/* ABOUT */

.about {
    padding-top: 95px;
    padding-bottom: 105px;
}

/* CONTACT */

.contact {
    margin-bottom: 30px;
    padding: 70px 45px;
    background:
        radial-gradient(
            ellipse at 90% 10%,
            rgba(180, 209, 186, 0.08),
            transparent 50%
        ),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.contact h2 {
    max-width: 620px;
}

.contact > p:not(.eyebrow) {
    max-width: 540px;
    margin-top: 17px;
    color: var(--muted);
    font-size: 14px;
}

.contact .button {
    margin-top: 27px;
}

/* FOOTER */

.site-footer {
    width: min(var(--max-width), calc(100% - 64px));
    min-height: 110px;
    margin: 0 auto;
    padding: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
}

.site-footer p {
    color: var(--muted);
    font-size: 11px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 760px) {
    .site-header {
        width: calc(100% - 36px);
        min-height: 76px;
        flex-wrap: wrap;
        gap: 14px;
        padding: 17px 0;
    }

    .brand {
        font-size: 14px;
    }

    .site-header nav {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .site-header nav a {
        font-size: 12px;
    }

    .site-header nav .nav-contact {
        padding: 7px 9px;
    }

    .hero,
    .section,
    .site-footer {
        width: calc(100% - 36px);
    }

    .hero {
        min-height: auto;
        padding: 95px 0 85px;
    }

    .hero h1 {
        font-size: clamp(39px, 9vw, 60px);
        letter-spacing: -2.5px;
    }

    .hero-copy {
        font-size: 14px;
    }

    .section {
        padding: 75px 0;
    }

    .section h2 {
        font-size: clamp(29px, 7vw, 39px);
        letter-spacing: -1px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 215px;
    }

    .project-visual {
        min-height: 230px;
    }

    .project-details {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact {
        width: calc(100% - 36px);
        padding: 42px 25px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 0;
    }
}

@media (max-width: 390px) {
    .brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: auto;
    height: 40px;
    max-width: 100%;
    object-fit: contain;
}

    .site-header nav {
        gap: 7px;
    }

    .site-header nav a {
        font-size: 11px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .button {
        width: 100%;
    }
}

/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
/* Footer logo adjustment */
.site-footer .brand-logo {
    height: 34px;
    width: auto;
}