/* =========================================================
   BALCODE
   PUBLIC WEBSITE
========================================================= */

:root {
    --bg: #0b0b0c;
    --bg-soft: #111114;
    --surface: #151518;
    --surface-2: #1a1a1f;

    --text: #f5f2ea;
    --text-soft: #b9b4aa;
    --text-muted: #7f7b74;

    --gold: #d7a85f;
    --gold-soft: #f0c77f;
    --gold-dark: #9f6e2f;

    --border: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(215, 168, 95, 0.32);

    --shadow:
        0 18px 55px rgba(0, 0, 0, 0.32);

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;

    --container: 1220px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family: "Inter", sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at top right,
            rgba(215, 168, 95, 0.08),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #0b0b0c 0%,
            #0d0d10 100%
        );

    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: var(--gold);
    color: #0b0b0c;
}


/* =========================================================
   GLOBAL
========================================================= */

.container {
    width:
        min(
            calc(100% - 40px),
            var(--container)
        );

    margin-inline: auto;
}

.section {
    padding: 110px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--gold-soft);

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";

    width: 28px;
    height: 1px;

    background: var(--gold);
}

h1,
h2,
h3 {
    font-family: "Manrope", sans-serif;
    margin-top: 0;
}

h1,
h2 {
    letter-spacing: -0.04em;
}

h2 {
    font-size:
        clamp(
            2.3rem,
            4vw,
            3.7rem
        );

    line-height: 1;

    margin-bottom: 26px;
}

h2 span,
.hero-title span {
    color: var(--gold-soft);
}

p {
    color: var(--text-soft);
    line-height: 1.75;
}


/* =========================================================
   BUTTON
========================================================= */

.button {
    min-height: 50px;

    padding: 0 22px;

    border-radius: 999px;
    border: 1px solid transparent;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 0.95rem;
    font-weight: 700;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        color 0.22s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #0c0c0e;

    background:
        linear-gradient(
            135deg,
            var(--gold-soft),
            var(--gold)
        );

    box-shadow:
        0 10px 28px
        rgba(215, 168, 95, 0.18);
}

.button-primary:hover {
    background:
        linear-gradient(
            135deg,
            #f5d493,
            #ddb06b
        );
}

.button-secondary {
    border-color: var(--border);

    background:
        rgba(255, 255, 255, 0.03);

    color: var(--text);
}

.button-secondary:hover {
    border-color: var(--border-gold);
    color: var(--gold-soft);
}

.button-large {
    min-height: 56px;
    padding-inline: 28px;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.05);

    background:
        rgba(9, 9, 10, 0.76);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    width: 175px;
    max-height: 58px;

    object-fit: contain;
}

.desktop-nav {
    display: flex;
    align-items: center;

    gap: 34px;
}

.nav-link {
    position: relative;

    color: var(--text-soft);

    font-size: 0.94rem;
    font-weight: 600;
}

.nav-link::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -10px;

    width: 100%;
    height: 1px;

    transform: scaleX(0);
    transform-origin: left;

    background: var(--gold);

    transition:
        transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;

    gap: 12px;
}

.mobile-menu-toggle {
    display: none;

    width: 48px;
    height: 48px;

    border:
        1px solid
        var(--border);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.03);

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 1.5px;

    background: var(--text);
}

.mobile-menu {
    display: none;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100vh;

    padding-top: 180px;
    padding-bottom: 100px;

    display: flex;
    align-items: center;

    position: relative;

    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;

    pointer-events: none;
}

.hero-background::before {
    content: "";

    position: absolute;

    top: 80px;
    right: -180px;

    width: 650px;
    height: 650px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(215, 168, 95, 0.16),
            transparent 70%
        );

    filter: blur(5px);
}

.hero-background::after {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size:
        55px 55px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.4),
            transparent 75%
        );
}

.hero-grid {
    display: grid;

    grid-template-columns:
        1.05fr 0.95fr;

    gap: 72px;

    align-items: center;

    position: relative;
    z-index: 2;
}

.hero-title {
    max-width: 760px;

    font-size:
        clamp(
            3.3rem,
            6.4vw,
            5.2rem
        );

    line-height: 0.95;

    margin:
        22px 0
        30px;
}

.hero-description {
    max-width: 690px;

    font-size: 1.1rem;

    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    gap: 14px;

    flex-wrap: wrap;
}

.hero-features {
    display: flex;

    gap: 26px;

    flex-wrap: wrap;

    margin-top: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;

    gap: 10px;

    color: var(--text-soft);

    font-size: 0.9rem;
}

.feature-icon {
    width: 23px;
    height: 23px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    color: var(--gold-soft);

    border:
        1px solid
        var(--border-gold);

    background:
        rgba(215, 168, 95, 0.08);

    font-size: 0.72rem;
}

.hero-visual {
    position: relative;

    min-height: 540px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-card {
    width: 100%;
    max-width: 610px;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    border-radius: 26px;

    background:
        linear-gradient(
            160deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.02)
        );

    box-shadow:
        0 40px 80px
        rgba(0, 0, 0, 0.48);

    overflow: hidden;

    transform:
        perspective(1200px)
        rotateY(-7deg)
        rotateX(3deg);
}

.browser-topbar {
    min-height: 52px;

    padding: 0 18px;

    display: flex;
    align-items: center;

    gap: 16px;

    border-bottom:
        1px solid
        var(--border);

    background:
        rgba(255, 255, 255, 0.025);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.18);
}

.browser-address {
    flex: 1;

    max-width: 290px;

    padding: 8px 14px;

    border-radius: 999px;

    font-size: 0.7rem;

    color: var(--text-muted);

    background:
        rgba(255, 255, 255, 0.035);
}

.browser-content {
    min-height: 410px;

    display: grid;

    grid-template-columns:
        74px 1fr;
}

.browser-sidebar {
    border-right:
        1px solid
        var(--border);

    background:
        linear-gradient(
            180deg,
            rgba(215, 168, 95, 0.08),
            transparent
        );
}

.browser-main {
    padding: 70px 48px;
}

.mock-badge {
    width: max-content;

    padding: 7px 10px;

    border-radius: 999px;

    color: var(--gold-soft);

    border:
        1px solid
        var(--border-gold);

    background:
        rgba(215, 168, 95, 0.05);

    font-size: 0.55rem;

    letter-spacing: 0.14em;
}

.mock-title {
    width: 82%;
    height: 20px;

    border-radius: 20px;

    margin-top: 24px;

    background:
        linear-gradient(
            90deg,
            var(--text),
            rgba(245, 242, 234, 0.4)
        );
}

.mock-title.short {
    width: 62%;

    margin-top: 10px;
}

.mock-text {
    width: 92%;
    height: 8px;

    border-radius: 20px;

    margin-top: 28px;

    background:
        rgba(255, 255, 255, 0.14);
}

.mock-text.short {
    width: 68%;

    margin-top: 9px;
}

.mock-buttons {
    display: flex;

    gap: 10px;

    margin-top: 28px;
}

.mock-buttons span {
    width: 105px;
    height: 35px;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            var(--gold-soft),
            var(--gold)
        );
}

.mock-buttons span:last-child {
    width: 85px;

    background:
        rgba(255, 255, 255, 0.05);

    border:
        1px solid
        var(--border);
}

.floating-card {
    position: absolute;

    min-width: 145px;

    padding: 16px 18px;

    border:
        1px solid
        var(--border-gold);

    border-radius: 16px;

    background:
        rgba(18, 18, 20, 0.88);

    backdrop-filter: blur(14px);

    box-shadow:
        var(--shadow);
}

.floating-card strong,
.floating-card span {
    display: block;
}

.floating-card strong {
    color: var(--gold-soft);

    margin-bottom: 3px;
}

.floating-card span {
    color: var(--text-muted);

    font-size: 0.78rem;
}

.floating-card-one {
    left: -30px;
    bottom: 70px;
}

.floating-card-two {
    right: -10px;
    top: 70px;
}


/* =========================================================
   TRUST STRIP
========================================================= */

.trust-strip {
    border-top:
        1px solid
        var(--border);

    border-bottom:
        1px solid
        var(--border);

    background:
        rgba(255, 255, 255, 0.015);
}

.trust-grid {
    min-height: 115px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);
}

.trust-item {
    padding: 22px 30px;

    display: flex;
    align-items: center;

    gap: 16px;

    border-right:
        1px solid
        var(--border);

    color: var(--text-soft);

    font-size: 0.92rem;
}

.trust-item:last-child {
    border-right: 0;
}

.trust-number {
    color: var(--gold);

    font-family:
        "Manrope",
        sans-serif;

    font-weight: 800;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    max-width: 850px;

    margin-bottom: 56px;
}

.section-heading p {
    max-width: 700px;
}

.section-heading.centered {
    text-align: center;

    margin-inline: auto;
}

.section-heading.centered .eyebrow {
    justify-content: center;
}


/* =========================================================
   SERVICES
========================================================= */

.services {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.015),
            transparent
        );
}

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.service-card {
    min-height: 420px;

    padding: 34px;

    position: relative;

    overflow: hidden;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-lg);

    background:
        linear-gradient(
            150deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.service-card::before {
    content: "";

    position: absolute;

    right: -80px;
    top: -80px;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(215, 168, 95, 0.14),
            transparent 70%
        );
}

.service-card:hover {
    transform:
        translateY(-8px);

    border-color:
        var(--border-gold);

    background:
        linear-gradient(
            150deg,
            rgba(215, 168, 95, 0.06),
            rgba(255, 255, 255, 0.015)
        );
}

.service-number {
    color: var(--text-muted);

    font-size: 0.75rem;

    letter-spacing: 0.14em;
}

.service-icon {
    width: 62px;
    height: 62px;

    margin:
        34px 0
        28px;

    border-radius: 18px;

    display: grid;
    place-items: center;

    color: var(--gold-soft);

    border:
        1px solid
        var(--border-gold);

    background:
        rgba(215, 168, 95, 0.07);

    font-size: 1.25rem;
    font-weight: 800;
}

.service-card h3 {
    font-size: 1.45rem;

    margin-bottom: 14px;
}

.service-card ul {
    list-style: none;

    padding: 0;

    margin:
        28px 0 0;
}

.service-card li {
    padding: 10px 0;

    color: var(--text-soft);

    border-top:
        1px solid
        var(--border);

    font-size: 0.9rem;
}

.service-card li::before {
    content: "→";

    margin-right: 10px;

    color: var(--gold);
}


/* =========================================================
   WHY
========================================================= */

.why {
    border-top:
        1px solid
        var(--border);

    border-bottom:
        1px solid
        var(--border);
}

.why-grid {
    display: grid;

    grid-template-columns:
        0.85fr 1.15fr;

    gap: 90px;

    align-items: start;
}

.why-content {
    position: sticky;

    top: 130px;
}

.why-content p {
    max-width: 560px;
}

.text-link {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    margin-top: 20px;

    color: var(--gold-soft);

    font-weight: 700;
}

.text-link span {
    transition:
        transform 0.2s ease;
}

.text-link:hover span {
    transform:
        translateX(5px);
}

.why-list {
    display: flex;

    flex-direction: column;
}

.why-item {
    padding: 32px 0;

    display: grid;

    grid-template-columns:
        70px 1fr;

    gap: 20px;

    border-bottom:
        1px solid
        var(--border);
}

.why-item:first-child {
    border-top:
        1px solid
        var(--border);
}

.why-index {
    color: var(--gold);

    font-weight: 800;
}

.why-item h3 {
    font-size: 1.35rem;

    margin-bottom: 8px;
}

.why-item p {
    margin-bottom: 0;
}


/* =========================================================
   PORTFOLIO
========================================================= */

.portfolio-heading {
    max-width: none;

    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 70px;
}

.portfolio-heading p {
    max-width: 470px;
}

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.project-card {
    overflow: hidden;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-lg);

    background:
        rgba(255, 255, 255, 0.025);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.project-card:hover {
    transform:
        translateY(-7px);

    border-color:
        var(--border-gold);
}

.project-image {
    min-height: 260px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    overflow: hidden;

    border-bottom:
        1px solid
        var(--border);

    font-family:
        "Manrope",
        sans-serif;

    font-size: 1.6rem;
    font-weight: 800;
}

.project-image::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(10, 10, 12, 0.72),
            transparent 60%
        );
}

.project-image span {
    position: relative;

    z-index: 2;
}

.project-image img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.project-content {
    padding: 26px;

    display: flex;
    flex-direction: column;

    align-items: flex-start;
}

.project-category {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--gold-soft);

    font-size: 0.73rem;
    font-weight: 700;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-content h3 {
    font-size: 1.45rem;

    margin-bottom: 24px;
}

.project-link {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    padding: 0;

    border: 0;

    background: transparent;

    color: var(--text);

    font-size: 0.9rem;
    font-weight: 700;

    cursor: pointer;
}

.project-link span {
    color: var(--gold);

    transition:
        transform 0.2s ease;
}

.project-link:hover span {
    transform:
        translateX(4px);
}


/* =========================================================
   PROJECT STATES
========================================================= */

.projects-loading,
.projects-empty,
.projects-error {
    grid-column: 1 / -1;

    min-height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-lg);

    background:
        rgba(255, 255, 255, 0.02);

    color:
        var(--text-muted);
}

.projects-error {
    color: #d98b8b;
}


/* =========================================================
   PROCESS
========================================================= */

.process {
    border-top:
        1px solid
        var(--border);

    border-bottom:
        1px solid
        var(--border);

    background:
        rgba(255, 255, 255, 0.012);
}

.process-grid {
    display: grid;

    grid-template-columns:
        1fr 80px
        1fr 80px
        1fr 80px
        1fr;

    align-items: start;
}

.process-item {
    text-align: center;
}

.process-number {
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    margin:
        0 auto
        22px;

    border:
        1px solid
        var(--border-gold);

    border-radius: 50%;

    color:
        var(--gold-soft);

    background:
        rgba(215, 168, 95, 0.06);

    font-family:
        "Manrope",
        sans-serif;

    font-weight: 800;
}

.process-item h3 {
    font-size: 1.25rem;

    margin-bottom: 10px;
}

.process-item p {
    font-size: 0.9rem;
}

.process-line {
    height: 1px;

    margin-top: 31px;

    background:
        linear-gradient(
            90deg,
            var(--border-gold),
            rgba(215, 168, 95, 0.05)
        );
}


/* =========================================================
   QUOTE
========================================================= */

.quote-grid {
    display: grid;

    grid-template-columns:
        0.8fr 1.2fr;

    gap: 80px;

    align-items: start;
}

.quote-content {
    position: sticky;

    top: 130px;
}

.quote-contact-list {
    margin-top: 42px;
}

.quote-contact-item {
    display: grid;

    grid-template-columns:
        52px 1fr;

    gap: 18px;

    padding: 22px 0;

    border-top:
        1px solid
        var(--border);
}

.quote-contact-item:last-child {
    border-bottom:
        1px solid
        var(--border);
}

.quote-contact-item > span {
    color: var(--gold);

    font-weight: 800;
}

.quote-contact-item strong {
    display: block;

    margin-bottom: 5px;
}

.quote-contact-item p {
    margin: 0;

    font-size: 0.9rem;
}


/* =========================================================
   FORM
========================================================= */

.quote-form-wrap {
    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-lg);

    background:
        linear-gradient(
            150deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.015)
        );

    box-shadow:
        var(--shadow);
}

.quote-form {
    padding: 34px;
}

.form-row {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 16px;
}

.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-bottom: 18px;
}

.form-group label {
    color:
        var(--text-soft);

    font-size: 0.82rem;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border:
        1px solid
        var(--border);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.03);

    color:
        var(--text);

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input,
.form-group select {
    min-height: 52px;

    padding:
        0 15px;
}

.form-group textarea {
    resize: vertical;

    min-height: 150px;

    padding: 15px;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color:
        rgba(255, 255, 255, 0.14);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color:
        var(--gold);

    background:
        rgba(215, 168, 95, 0.035);

    box-shadow:
        0 0 0 3px
        rgba(215, 168, 95, 0.07);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #65615d;
}


/* =========================================================
   CUSTOM SELECT
========================================================= */

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    min-height: 52px;

    padding:
        0 50px
        0 15px;

    color: var(--text);

    cursor: pointer;

    background-color:
        #151518;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            var(--gold) 50%
        ),
        linear-gradient(
            135deg,
            var(--gold) 50%,
            transparent 50%
        ),
        linear-gradient(
            to right,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.06)
        );

    background-position:
        calc(100% - 20px) 22px,
        calc(100% - 14px) 22px,
        calc(100% - 43px) 50%;

    background-size:
        6px 6px,
        6px 6px,
        1px 26px;

    background-repeat:
        no-repeat;
}

.form-group select:hover {
    border-color:
        var(--border-gold);
}

.form-group select:focus {
    border-color:
        var(--gold);

    background-color:
        #17171b;

    box-shadow:
        0 0 0 3px
        rgba(215, 168, 95, 0.08);
}

.form-group select option {
    background-color:
        #151518;

    color:
        #f5f2ea;
}

.form-group select option:disabled {
    color:
        #77736c;
}

.form-submit {
    width: 100%;

    margin-top: 5px;
}

.form-message {
    margin-top: 14px;

    text-align: center;

    font-size: 0.9rem;
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    border-top:
        1px solid
        var(--border);

    background:
        radial-gradient(
            circle at bottom left,
            rgba(215, 168, 95, 0.06),
            transparent 35%
        );
}

.contact-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 90px;

    align-items: end;
}

.contact-items {
    border-top:
        1px solid
        var(--border);
}

.contact-item {
    min-height: 95px;

    display: grid;

    grid-template-columns:
        110px 1fr 30px;

    gap: 18px;

    align-items: center;

    border-bottom:
        1px solid
        var(--border);

    transition:
        padding 0.2s ease,
        color 0.2s ease;
}

a.contact-item:hover {
    padding-left: 10px;

    color:
        var(--gold-soft);
}

.contact-label {
    color:
        var(--text-muted);

    font-size: 0.82rem;
}

.contact-arrow {
    color:
        var(--gold);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    border-top:
        1px solid
        var(--border);

    background:
        #09090a;
}

.footer-top {
    padding:
        70px 0
        52px;

    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 80px;
}

.footer-brand img {
    width: 175px;

    margin-bottom: 20px;
}

.footer-brand p {
    max-width: 390px;

    margin: 0;
}

.footer-nav {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                140px,
                1fr
            )
        );

    gap: 60px;
}

.footer-nav > div {
    display: flex;

    flex-direction: column;

    gap: 11px;
}

.footer-title {
    margin-bottom: 8px;

    color:
        var(--gold-soft);

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.footer-nav a {
    color:
        var(--text-soft);

    font-size: 0.9rem;
}

.footer-nav a:hover {
    color:
        var(--text);
}

.footer-bottom {
    min-height: 76px;

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    border-top:
        1px solid
        var(--border);

    color:
        var(--text-muted);

    font-size: 0.8rem;
}


/* =========================================================
   PROJECT MODAL
========================================================= */

body.modal-open {
    overflow: hidden;
}

.project-modal {
    position: fixed;
    inset: 0;

    z-index: 3000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.project-modal.open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   MODAL BACKDROP
========================================================= */

.project-modal-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(0, 0, 0, 0.82);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);
}


/* =========================================================
   MODAL DIALOG
========================================================= */

.project-modal-dialog {
    position: relative;

    z-index: 2;

    width:
        min(
            1180px,
            calc(100vw - 60px)
        );

    height:
        min(
            720px,
            calc(100vh - 80px)
        );

    overflow: hidden;

    border:
        1px solid
        var(--border);

    border-radius:
        26px;

    background:
        linear-gradient(
            145deg,
            #18181c,
            #0e0e10
        );

    box-shadow:
        0 40px 100px
        rgba(0, 0, 0, 0.65);

    transform:
        translateY(20px)
        scale(0.98);

    transition:
        transform 0.25s ease;
}

.project-modal.open
.project-modal-dialog {
    transform:
        translateY(0)
        scale(1);
}

.project-modal-content {
    width: 100%;
    height: 100%;
}


/* =========================================================
   MODAL CLOSE
========================================================= */

.project-modal-close {
    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 20;

    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    padding: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 50%;

    background:
        rgba(10, 10, 12, 0.75);

    backdrop-filter:
        blur(8px);

    color: #fff;

    font-size: 1.6rem;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.project-modal-close:hover {
    color:
        var(--gold-soft);

    border-color:
        var(--border-gold);

    background:
        rgba(20, 20, 23, 0.95);
}


/* =========================================================
   MODAL LAYOUT
========================================================= */

.project-modal-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(420px, 0.9fr);

    width: 100%;
    height: 100%;
}


/* =========================================================
   MODAL LEFT
========================================================= */

.project-modal-left {
    min-width: 0;

    padding:
        52px 48px
        42px;

    display: flex;

    flex-direction: column;

    overflow: hidden;
}

.project-modal-heading {
    margin-bottom: 22px;
}

.project-modal-left h2 {
    margin:
        10px 0 6px;

    font-size:
        clamp(
            2rem,
            3.2vw,
            3.1rem
        );

    line-height: 1.05;
}

.project-modal-client {
    color:
        var(--text-muted);

    font-size: 0.9rem;
}


/* =========================================================
   MODAL DESCRIPTION
========================================================= */

.project-modal-description {
    color:
        var(--text-soft);

    font-size: 0.95rem;

    line-height: 1.65;

    white-space: pre-line;
}


/* =========================================================
   CLIENT EXPECTATIONS
========================================================= */

.project-modal-detail {
    margin-top: 24px;

    padding-top: 20px;

    border-top:
        1px solid
        var(--border);
}

.project-modal-detail > span,
.project-modal-meta-item > span {
    display: block;

    margin-bottom: 7px;

    color:
        var(--gold-soft);

    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.project-modal-detail p {
    margin: 0;

    color:
        var(--text-soft);

    font-size: 0.9rem;

    line-height: 1.6;
}


/* =========================================================
   MODAL META
========================================================= */

.project-modal-meta {
    margin-top: 22px;

    padding-top: 20px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 20px;

    border-top:
        1px solid
        var(--border);
}

.project-modal-meta-item {
    min-width: 0;
}

.project-modal-meta-item strong {
    display: block;

    color:
        var(--text);

    font-size: 0.92rem;

    font-weight: 600;

    line-height: 1.5;
}


/* =========================================================
   MODAL ACTIONS
========================================================= */

.project-modal-actions {
    margin-top: auto;

    padding-top: 24px;
}

.project-modal-website {
    display: inline-flex;

    gap: 10px;
}


/* =========================================================
   MODAL IMAGE
========================================================= */

.project-modal-right {
    min-width: 0;

    height: 100%;

    padding:
        14px 14px
        14px 0;
}

.project-modal-image {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: 20px;

    background:
        #0a0a0c;
}

.project-modal-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position:
        top center;
}

.project-modal-image::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    box-shadow:
        inset 0 0 0 1px
        rgba(255, 255, 255, 0.06);

    border-radius: inherit;
}

.project-modal-image-empty {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    color:
        var(--text-muted);

    text-align: center;
}


/* =========================================================
   MODAL STATES
========================================================= */

.project-modal-loading,
.project-modal-error {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    color:
        var(--text-muted);
}

.project-modal-error {
    color:
        #d98b8b;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1100px) {

    .desktop-nav,
    .header-quote {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu.open {
        display: block;

        border-top:
            1px solid
            var(--border);

        background:
            rgba(9, 9, 10, 0.97);
    }

    .mobile-nav {
        width:
            min(
                calc(100% - 40px),
                var(--container)
            );

        margin:
            0 auto;

        padding:
            22px 0
            28px;

        display: flex;

        flex-direction: column;

        gap: 16px;
    }

    .mobile-nav a:not(.button) {
        padding: 10px 0;

        color:
            var(--text-soft);

        border-bottom:
            1px solid
            var(--border);
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: 820px;
    }

    .hero-visual {
        min-height: 500px;
    }

    .browser-card {
        max-width: 760px;
    }

    .trust-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .trust-item:nth-child(2) {
        border-right: 0;
    }

    .trust-item:nth-child(-n+2) {
        border-bottom:
            1px solid
            var(--border);
    }

    .services-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .projects-grid
    .project-card:last-child {
        grid-column:
            span 2;
    }

    .why-grid,
    .quote-grid,
    .contact-grid {
        grid-template-columns:
            1fr;

        gap: 55px;
    }

    .why-content,
    .quote-content {
        position: static;
    }

    .portfolio-heading {
        display: block;
    }

    .portfolio-heading p {
        max-width: 700px;
    }

    .process-grid {
        grid-template-columns:
            1fr 40px 1fr;

        row-gap: 50px;
    }

}


/* =========================================================
   MODAL TABLET
========================================================= */

@media (max-width: 950px) {

    .project-modal-dialog {
        width:
            min(
                760px,
                calc(100vw - 30px)
            );

        height:
            min(
                780px,
                calc(100vh - 30px)
            );
    }

    .project-modal-layout {
        grid-template-columns:
            1fr;

        grid-template-rows:
            minmax(0, 1fr)
            300px;
    }

    .project-modal-left {
        padding:
            38px 34px
            28px;
    }

    .project-modal-right {
        padding:
            0 14px
            14px;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 760px) {

    .container {
        width:
            min(
                calc(100% - 28px),
                var(--container)
            );
    }

    .section {
        padding:
            82px 0;
    }

    .header-inner {
        min-height: 72px;
    }

    .brand-logo {
        width: 145px;
    }


    /* =========================
       MOBILE HERO
    ========================= */

    .hero {
        min-height: auto;

        padding-top: 110px;
        padding-bottom: 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 42px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero .eyebrow {
        font-size: 0.68rem;

        line-height: 1.5;

        letter-spacing: 0.12em;
    }

    .hero-title {
        max-width: 100%;

        font-size:
            clamp(
                2.65rem,
                12vw,
                4rem
            );

        line-height: 0.98;

        margin:
            18px 0
            22px;
    }

    .hero-description {
        max-width: 100%;

        font-size: 0.98rem;

        line-height: 1.7;

        margin-bottom: 28px;
    }

    .hero-actions {
        display: grid;

        grid-template-columns: 1fr;

        gap: 12px;
    }

    .hero-actions .button {
        width: 100%;

        min-height: 54px;
    }

    .hero-features {
        display: grid;

        grid-template-columns: 1fr;

        gap: 12px;

        margin-top: 28px;
    }

    .hero-feature {
        font-size: 0.88rem;
    }

    .hero-visual {
        min-height: auto;

        display: block;

        margin-top: 4px;
    }

    .browser-card {
        width: 100%;

        max-width: none;

        transform: none;

        border-radius: 18px;

        box-shadow:
            0 20px 50px
            rgba(0, 0, 0, 0.42);
    }

    .browser-topbar {
        min-height: 44px;

        padding: 0 12px;

        gap: 10px;
    }

    .browser-address {
        max-width: none;

        padding: 7px 12px;

        font-size: 0.62rem;
    }

    .browser-content {
        min-height: 260px;

        grid-template-columns:
            36px 1fr;
    }

    .browser-main {
        padding:
            42px 22px;
    }

    .mock-badge {
        font-size: 0.48rem;

        padding: 6px 8px;
    }

    .mock-title {
        height: 14px;

        margin-top: 18px;
    }

    .mock-title.short {
        margin-top: 8px;
    }

    .mock-text {
        height: 6px;

        margin-top: 20px;
    }

    .mock-text.short {
        margin-top: 7px;
    }

    .mock-buttons {
        margin-top: 22px;

        gap: 8px;
    }

    .mock-buttons span {
        width: 82px;
        height: 30px;
    }

    .mock-buttons span:last-child {
        width: 68px;
    }

    .floating-card {
        display: none;
    }

    .hero-background::before {
        width: 380px;
        height: 380px;

        top: 60px;
        right: -180px;

        opacity: 0.75;
    }

    .hero-background::after {
        background-size:
            42px 42px;
    }


    /* =========================
       MOBILE TRUST
    ========================= */

    .trust-grid {
        grid-template-columns:
            1fr;
    }

    .trust-item {
        border-right: 0;

        border-bottom:
            1px solid
            var(--border);
    }

    .trust-item:last-child {
        border-bottom: 0;
    }


    /* =========================
       MOBILE SERVICES / PROJECTS
    ========================= */

    .services-grid,
    .projects-grid {
        grid-template-columns:
            1fr;
    }

    .projects-grid
    .project-card:last-child {
        grid-column: auto;
    }

    .service-card {
        min-height: 0;
    }


    /* =========================
       MOBILE WHY
    ========================= */

    .why-grid {
        gap: 45px;
    }

    .why-item {
        grid-template-columns:
            45px 1fr;
    }


    /* =========================
       MOBILE PORTFOLIO
    ========================= */

    .portfolio-heading {
        margin-bottom: 44px;
    }


    /* =========================
       MOBILE PROCESS
    ========================= */

    .process-grid {
        grid-template-columns:
            1fr;

        gap: 24px;
    }

    .process-line {
        width: 1px;
        height: 36px;

        margin:
            0 auto;

        background:
            linear-gradient(
                180deg,
                var(--border-gold),
                rgba(215, 168, 95, 0.04)
            );
    }


    /* =========================
       MOBILE QUOTE
    ========================= */

    .quote-grid {
        gap: 40px;
    }

    .quote-form {
        padding: 22px;
    }

    .form-row {
        grid-template-columns:
            1fr;

        gap: 0;
    }


    /* =========================
       MOBILE CONTACT
    ========================= */

    .contact-item {
        grid-template-columns:
            85px 1fr 20px;
    }


    /* =========================
       MOBILE FOOTER
    ========================= */

    .footer-top {
        grid-template-columns:
            1fr;

        gap: 45px;
    }

    .footer-nav {
        grid-template-columns:
            1fr 1fr;

        gap: 28px;
    }

    .footer-bottom {
        padding:
            18px 0;

        flex-direction:
            column;

        justify-content:
            center;

        align-items:
            flex-start;
    }

}


/* =========================================================
   MODAL MOBILE
========================================================= */

@media (max-width: 600px) {

    .project-modal {
        padding: 8px;
    }

    .project-modal-dialog {
        width: 100%;

        height:
            calc(100dvh - 16px);

        border-radius: 20px;
    }

    .project-modal-layout {
        grid-template-rows:
            minmax(0, 1fr)
            220px;
    }

    .project-modal-left {
        padding:
            30px 22px
            20px;
    }

    .project-modal-left h2 {
        font-size: 1.8rem;
    }

    .project-modal-description {
        font-size: 0.86rem;
    }

    .project-modal-detail {
        margin-top: 17px;

        padding-top: 15px;
    }

    .project-modal-detail p {
        font-size: 0.82rem;
    }

    .project-modal-meta {
        margin-top: 16px;

        padding-top: 15px;

        gap: 12px;
    }

    .project-modal-meta-item strong {
        font-size: 0.82rem;
    }

    .project-modal-actions {
        padding-top: 16px;
    }

    .project-modal-right {
        padding:
            0 8px
            8px;
    }

    .project-modal-image {
        border-radius: 14px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 460px) {

    .footer-nav {
        grid-template-columns:
            1fr;
    }

    .contact-item {
        grid-template-columns:
            1fr auto;
    }

    .contact-label {
        grid-column:
            1 / -1;
    }

    .contact-arrow {
        grid-column: 2;
        grid-row: 2;
    }

}


/* =========================================================
   VERY SMALL MOBILE HERO
========================================================= */

@media (max-width: 430px) {

    .hero {
        padding-top: 100px;
        padding-bottom: 54px;
    }

    .hero-title {
        font-size: 2.55rem;
    }

    .hero-description {
        font-size: 0.94rem;
    }

    .browser-content {
        min-height: 230px;
    }

    .browser-main {
        padding:
            36px 18px;
    }

}

/* =========================================================
   FORM MESSAGE
========================================================= */

.form-message {
    min-height: 24px;

    margin-top: 16px;

    text-align: center;

    font-size: 0.9rem;
    font-weight: 600;
}

.form-message.success {
    color: #7fd6a2;
}

.form-message.error {
    color: #e58d8d;
}

.form-submit:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

/* =====================================================
   SABLON / BEMUTATÓ PROJEKT
===================================================== */

.project-labels {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}


.project-template-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 24px;
    padding: 0 9px;

    border: 1px solid rgba(215, 168, 95, 0.4);
    border-radius: 999px;

    background: rgba(215, 168, 95, 0.1);

    color: #d7a85f;

    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
}


.project-image,
.project-modal-image {
    position: relative;
}


.project-template-image-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 11px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;

    background: rgba(10, 10, 10, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    color: #d7a85f;

    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;

    box-shadow:
        0 6px 20px
        rgba(0, 0, 0, 0.18);
}


.project-template-description {
    margin: 6px 0 0;

    color: #8f8b84;

    font-size: 0.82rem;
    font-weight: 500;
}


.project-modal-template-info {
    display: inline-flex;
    align-items: center;

    margin-top: 8px;
    padding: 7px 11px;

    border: 1px solid rgba(215, 168, 95, 0.2);
    border-radius: 8px;

    background: rgba(215, 168, 95, 0.06);

    color: #d7a85f;

    font-size: 0.78rem;
    font-weight: 600;
}

/* =====================================================
   SABLON / BEMUTATÓ PROJEKT
===================================================== */

.project-labels {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}


/* =====================================================
   KIS SABLON BADGE A KATEGÓRIA MELLETT
===================================================== */

.project-template-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 25px;
    padding: 0 10px;

    border: 1px solid rgba(215, 168, 95, 0.5);
    border-radius: 999px;

    background: rgba(215, 168, 95, 0.08);

    color: #d7a85f;

    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
}


/* =====================================================
   KÉP ALAP
===================================================== */

.project-image,
.project-modal-image {
    position: relative;
    overflow: hidden;
}


/* =====================================================
   SABLON KÉP SÖTÉTÍTÉS

   Csak azon a képen jelenik meg,
   amelyiken van SABLON badge.
===================================================== */

.project-image:has(.project-template-image-badge)::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        rgba(0, 0, 0, 0.52);

    pointer-events: none;
}


/* =====================================================
   NAGY SABLON FELIRAT A FŐOLDALI KÉPEN
===================================================== */

.project-image
.project-template-image-badge {
    position: absolute;

    top: 50%;
    left: 50%;
    right: auto;

    z-index: 3;

    transform:
        translate(-50%, -50%);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 130px;

    padding:
        11px
        22px;

    border:
        2px solid
        #d7a85f;

    border-radius:
        999px;

    background:
        rgba(8, 8, 9, 0.82);

    color:
        #ffffff;

    font-size:
        1rem;

    font-weight:
        800;

    letter-spacing:
        0.09em;

    line-height:
        1;

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, 0.4);

    backdrop-filter:
        blur(5px);

    -webkit-backdrop-filter:
        blur(5px);
}


/* =====================================================
   SABLON FELIRAT A MODAL KÉPÉN

   A modalban marad jobb felső sarokban,
   ott nem sötétítjük le a teljes képet.
===================================================== */

.project-modal-image
.project-template-image-badge {
    position: absolute;

    top: 18px;
    right: 18px;
    left: auto;

    z-index: 3;

    transform: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        9px
        14px;

    border:
        1px solid
        rgba(215, 168, 95, 0.7);

    border-radius:
        999px;

    background:
        rgba(8, 8, 9, 0.82);

    color:
        #d7a85f;

    font-size:
        0.72rem;

    font-weight:
        800;

    letter-spacing:
        0.1em;

    line-height:
        1;

    backdrop-filter:
        blur(6px);

    -webkit-backdrop-filter:
        blur(6px);
}


/* =====================================================
   BEMUTATÓ PROJEKT SZÖVEG
===================================================== */

.project-template-description {
    margin:
        6px
        0
        0;

    color:
        #8f8b84;

    font-size:
        0.82rem;

    font-weight:
        500;
}


/* =====================================================
   MODAL SABLON INFO
===================================================== */

.project-modal-template-info {
    display: inline-flex;
    align-items: center;

    margin-top: 8px;

    padding:
        7px
        11px;

    border:
        1px solid
        rgba(215, 168, 95, 0.25);

    border-radius:
        8px;

    background:
        rgba(215, 168, 95, 0.06);

    color:
        #d7a85f;

    font-size:
        0.78rem;

    font-weight:
        600;
}


/* =====================================================
   MOBIL
===================================================== */

@media (max-width: 768px) {

    .project-image
    .project-template-image-badge {

        min-width:
            115px;

        padding:
            10px
            18px;

        font-size:
            0.88rem;

    }


    .project-modal-image
    .project-template-image-badge {

        top:
            12px;

        right:
            12px;

        padding:
            8px
            12px;

        font-size:
            0.66rem;

    }

}