/*:root {
    --bg: #090910;
    --shadow: #16181f;
    --font: #f0f1fd;
    --card: #21263f;
    --accent: #6a76e4;
    --sec: #3FA9E0;
    --accent-2: #E8734A;
    --bars: #11111c;
}*/

:root[data-theme="light"] {
    --bg: #e8ecf9;
    --shadow: rgb(113, 121, 147);
    --font: #0e0f26;
    --card: #aebcdc;
    --accent: #2f4174;
    --bars: #d6dbed;
}

:root[data-theme="dark"] {
    --bg: #06141b;
    --shadow: #030a0e;
    --font: #ccd0cf;
    --card: #253745;
    --accent: #849faf;
    --bars: #11212d;

    & > img[src$=".svg"] {
        filter: invert(50%) brightness(219%) contrast(100%)
    }
}


html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0px;
}

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

body {
    margin: 80px 0px 0px 0px;
    background-color: var(--bg);
}

#has-title li:first-child {
    list-style: none;
    font-weight: 600;
}

::marker {
    color: var(--accent);
}

p {
    color: var(--font);
    margin: 12px 0;
    font-family: "Noto Sans";
}
h6 {
    color: var(--font);
    font-family: "Open Sans";
}
h5 {
    color: var(--font);
    font-family: "Open Sans";

}
h4 {
    color: var(--font);
    font-family: "Open Sans";
}
h3 {
    color: var(--font);
    font-family: "Open Sans";
}
h2 {
    color: var(--font);
    font-family: "Open Sans";
}
h1 {
    color: var(--font);
    font-family: "Open Sans";
}
li {
    color: var(--font);
    font-family: "Noto Sans";
}
a {
    color: var(--font);
    font-family: "Noto Sans";
}

.purple {
    color: var(--accent);
    font-family: "JetBrains Mono", monospace;
}

.purple-with-bg {
    color: var(--accent);
    background-color: var(--card);
    box-shadow: 0 0 0 3px var(--card);
    width: fit-content;
    padding: 0 0.5rem;
    border-radius: 4px;
    line-height: 1.5;
    font-family: "JetBrains Mono", monospace;

    display: inline;

    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

header {
    box-sizing: border-box;
    padding: 12px 2%;
    background-color: var(--bars);
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style-type: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 5px 12px var(--shadow);
}

header.scroll {
    box-sizing: border-box;
    padding: 12px 2%;
    background-color: var(--bars);
    display: flex;
    align-items: center;
    list-style-type: none;
    position: fixed;
    top: 0;
    right: 0;
    border-bottom-left-radius: 16px;
    width: fit-content;
    z-index: 100;
    box-shadow: 0 6px 12px var(--shadow);
}

.logo {
    z-index: 1;
    align-items: center;
    width: 120px;
    height: 40px;
    background-color: var(--accent);
    -webkit-mask: url(images/logo.svg) no-repeat center;
    mask: url(images/logo.svg) no-repeat center / contain;
}

.logo-bottom {
    z-index: 1;
    display: block;
    flex: 0 0 160px;
    width: 160px;
    height: 70px;
    background-color: var(--accent);
    -webkit-mask: url(images/logo.svg) no-repeat center;
    -webkit-mask-size: contain;
    mask: url(images/logo.svg) no-repeat center;
    mask-size: contain;
}

header li {
    display: flex;
    align-items: center;
}

.logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    height: 48px;
    line-height: 1;
    text-decoration: none;
}

ul.no-marker > li {
    list-style-type: none;
}

header a {
    display: block;
    color: var(--font);
    text-align: center;
    padding: 12px 16px;
    line-height: 1;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    color: var(--accent);
}

header a.highlighted {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 3px;
    text-underline-offset: 9px;
    text-decoration-inset: -5px;
}

.theme-toggle {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
    background: transparent;
    color: var(--font);
    padding: 8px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.theme-toggle svg {
    display: block;
    color: var(--font);
    stroke: currentColor;
}

.theme-toggle:hover {
    color: var(--accent);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.card {
    background-color: var(--card);
    padding: 20px 1%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px var(--shadow);
}

.centered {
    text-align: center;
    justify-content: space-around;
    align-items: center;
}

.row {
    justify-content: space-between;
    padding: 12px 3%;
    display: flex;
}

.resp-row {
    justify-content: space-between;
    padding: 12px 3%;
    display: flex;
}

.break-words {
    overflow-wrap: break-word;
    word-break: break-all;
    word-wrap: wrap;
}

footer {
    background-color: var(--bars);
    overflow: hidden;
    padding: 24px 4%;
    box-shadow: 0px -8px 16px var(--shadow);
    min-height: 180px;
}

.footer-lists {
    gap: clamp(24px, 6vw, 120px);
}

.home-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        farthest-side at 60% 70%,
        transparent 5%,
        var(--card) 80%
    );
    z-index: 10;
    pointer-events: none;
    border-radius: inherit;
}

.home-img {
    width: 60%;
    height: auto;
    position: absolute; 
    bottom: 0; 
    right: 0;
}

.home-img img {
    height: 100%;
    width: 100%;
    display: block;
}

.home-img .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-img .slide-current {
    position: relative;
    z-index: 1;
    opacity: 1;
}

.home-img .slide-next {
    position: absolute;
    z-index: 2;
    opacity: 0;
    transition: opacity 700ms ease-in-out;
}

.home-img .slide-next.is-visible {
    opacity: 1;
}

.form-row-buttons {
    position: relative;
    height: 100px;
}


.mobile-menu-toggle {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    color: var(--font);
    width: 40px;
    height: 40px;
    padding: 8px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--font);
    border-radius: 2px;
}


.form-row-buttons .help-button,
.form-row-buttons .price-button {
    position: absolute;
    top: 0;
    bottom: 0;
    min-width: 0;
    min-height: 100px;
    padding: 10px 2%;
    overflow: hidden;
    white-space: pretty;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    transition:
        width 280ms cubic-bezier(.2,.8,.2,1),
        border-radius 280ms cubic-bezier(.2,.8,.2,1),
        opacity 180ms ease;

    z-index: 1;
}

.form-row-buttons .help-button {
    left: 0;
    width: 71%;
    font-size: clamp(0.75rem, 4cqw, 1.6rem);
}

.form-row-buttons .price-button {
    right: 0;
    width: 26%;
    font-size: clamp(0.75rem, 4cqw, 1.6rem);
    text-decoration: none;
}

.form-row-buttons .help-button:hover,
.form-row-buttons .help-button:focus-visible,
.form-row-buttons .price-button:hover,
.form-row-buttons .price-button:focus-visible {
    width: 100%;
    border-radius: 16px;
    z-index: 2;
}

.form-row-buttons:has(.help-button:hover) .price-button,
.form-row-buttons:has(.help-button:focus-visible) .price-button,
.form-row-buttons:has(.price-button:hover) .help-button,
.form-row-buttons:has(.price-button:focus-visible) .help-button {
    opacity: 0;
    pointer-events: none;
}

.form-row-buttons .help-button:active,
.form-row-buttons .price-button:active {
    transform: scale(0.95);
}

.form-row-buttons .help-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


#container {
    width: 100%;
    padding: 1% 0;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

#container .scroll {
    display: flex;
    align-items: center;
    width: fit-content;
    white-space: nowrap;
    animation: loop 30s linear infinite;
    z-index: 1;
    display: flex;
    align-items: center;
}

.fade {
    width: 100%;
    padding: 1% 0;
    position: absolute;
    background: linear-gradient(
        90deg,
        var(--bg),
        var(--bg),
        transparent 5%,
        transparent 95%,
        var(--bg),
        var(--bg)
    );
    inset: 0;
}

@keyframes loop {
    0% {transform: translateX(0%);}
    100% {transform: translateX(-50%);}
}

.companies-item {
    display: flex;
    align-items: center;
    gap: 0 0.2rem;
    color: #e2e8f0;
    padding: 0.7rem 1rem;
    margin: 1rem 1rem;
    border-radius: 0.4rem;
    white-space: nowrap;
    box-shadow:
        0 0.1rem 0.2rem var(--accent)0033,
        0 0.1rem 0.5rem var(--accent)004d,
        0 0.2rem 01.5rem var(--accent)0066;
}

.companies-img {
    height: 120px;
    width: auto;
}

select {
    width: 100%;
    height: 40px;
    background-color: var(--bg);
    border-color: transparent;
    color: var(--font);
    border-radius: 8px;
    padding: 0 8px;
    font-size: medium;
    margin: 0 0 8px;
}

input {
    width: 100%;
    height: 40px;
    background-color: var(--bg);
    border-color: transparent;
    
    color: var(--font);
    border-radius: 8px;
    padding: 0 8px;
    font-size: medium;
    margin: 0 0 8px;
}

.help-button {
    min-height: 100px;
    background-color: var(--accent);
    color: var(--bg);
    font-size: clamp(1rem, 0.7rem + 1.6vw, 1.6rem);
    font-weight: 700;
    border-width: 0;
    padding: 10px 1%;
    display: inline-flex; /* center text vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
}

.price-button {
    min-height: 100px;
    background-color: var(--accent);
    color: var(--bg);
    font-size: clamp(1rem, 0.7rem + 1.6vw, 1.6rem);
    font-weight: 700;
    border-width: 0;
    padding: 10px 1%;
    display: inline-flex; /* anchors behave like buttons now */
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none; /* remove underline for <a> */
}

.form-status {
    margin-top: 10px;
    min-height: 1.3em;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    text-align: center;
}
.form-status.success {
    color: var(--font);
}
.form-status.error {
    color: #e0555f;
}

header::before {
    content: "";
    position: absolute;
    background-color: transparent;
    left: -1px;
    bottom: -100px;
    height: 100px;
    width: 50px;
    border-top-left-radius: 50px;
    box-shadow: 0 -50px 0 0 var(--bars);
    padding: 0;
    z-index: 0;
}

header::after {
    content: "";
    position: absolute;
    background-color: transparent;
    right: -1px;
    bottom: -100px;
    height: 100px;
    width: 50px;
    border-top-right-radius: 50px;
    box-shadow: 0 -50px 0 0 var(--bars);
    padding: 0;
    z-index: 0;
}

header.no-after:after {
    content: none;
}

header.no-before:before {
    content: none;
}

.empty {
    content: none;
}

.title {
    margin: 8px 0 12px 1.5%;
    position: relative;
    display: inline-block;
    font-size: xx-large;
}

.services-icon {
    width: 100px;
    margin-bottom: 5%;
}
.services-title {
    margin-bottom: 4%;
    font-size: x-large;
}
.services-text {
    padding: 0 2%;
    font-size: large;
}
.services-price {
    margin-bottom: 10px;
    font-size: xx-large;
}

.advs-title {
    font-size: 1.4rem;
    max-width: 90%;
    display: inline;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.advs-line {
    flex: 1;
    margin-left: 1.35em;
    height: 1px;
    color: var(--accent);
    width: 75%;
}
.advs-text {
    padding-left: 4%;
    padding-right: 6%;
    font-size: large;
}

.tl-32 {
    border-top-left-radius: 32px;
}
.tr-32 {
    border-top-right-radius: 32px;
}
.bl-32 {
    border-bottom-left-radius: 32px;
}
.br-32 {
    border-bottom-right-radius: 32px;
}
.tl-16 {
    border-top-left-radius: 16px;
}
.tr-16 {
    border-top-right-radius: 16px;
}
.bl-16 {
    border-bottom-left-radius: 16px;
}
.br-16 {
    border-bottom-right-radius: 16px;
}
.tl-12 {
    border-top-left-radius: 12px;
}
.tr-12 {
    border-top-right-radius: 12px;
}
.bl-12 {
    border-bottom-left-radius: 12px;
}
.br-12 {
    border-bottom-right-radius: 12px;
}
.tl-8 {
    border-top-left-radius: 6px;
}
.tr-8 {
    border-top-right-radius: 6px;
}
.bl-8 {
    border-bottom-left-radius: 6px;
}
.br-8 {
    border-bottom-right-radius: 6px;
}

/* Utility classes generated to replace inline styles in site.html */
.no-padding { padding: 0 !important; }
nav { display: flex; }
.topbar-item { z-index: 1; }
.topbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}
/* on desktop the burger is hidden, so without this the theme button
   (now first in the DOM so it can sit left-of-burger on mobile) would
   render before the nav links instead of after them */
.topbar-links {
    order: 2;
}
.hidden { display: none; }
.home-main-card { width: 67%; min-height: 600px; padding: 2% 1% 2% 2%; position: relative; }
.col-between {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    position: relative;
    z-index: 20;
}
.z2 { z-index: 2; }
.pad-left-0 { padding-left: 0 !important; }
form { width: 31%; min-height: 600px; height: 100%; display: flex; flex-direction: column; justify-content: space-around; }
.text-center { text-align: center; }
.mt-3 { margin-top: 3%; }
.service-card { width: 32%; min-height: 500px; }
.col-center-between { display:flex; flex-direction:column; align-items:center; justify-content:space-between; height:100%; }
.row-header { padding: 1% 1% 2% 1%; align-items: center; }
.advs-card { width: 49%; min-height: 500px; }
.contact-card { width: 32%; min-height: 400px; }
.col-evenly { height:100%; display:flex; flex-direction:column; justify-content:space-evenly; }
.icon-100 { width: 100px !important; }
.mt-10px { margin-top: 10px !important; }
.full-hr { color: var(--accent); width: 100%; border: none; height:1px; background: var(--accent); }
.align-center { align-items: center; justify-content: space-between; }
.no-margin { margin: 0 !important; }


/* ============ TABLET: ≤900px — burger nav + 2-column grids ============ */
@media only screen and (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .resp-row:first-child {
        justify-content: space-between;
        padding: 12px 3%;
        display: flex;
        flex-direction: column;
    }

    .home-main-card {
        width: 100%;
        min-height: 0;
        padding: 6% 5% 6% 5%;
        border-radius: 32px;
        margin-bottom: 20px;
    }
    
    form {
        width: 100%;
        min-height: 0;
        padding: 12px 16px !important;
        margin-bottom: 0;
        border-radius: 32px !important;
    }

    .topbar-links {
        position: absolute; /* anchors to .topbar (position: fixed), so it always sits right below it regardless of topbar height */
        top: 100%;
        right: 0;
        left: auto;
        width: max-content;
        min-width: 220px;
        max-width: calc(100vw - 24px); /* safety net: never wider than the viewport */
        flex-direction: column;
        align-items: stretch;
        background-color: var(--bars);
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 10px 16px var(--shadow);
        transition: max-height 0.3s ease;
        border-radius: 16px;
        scrollbar-width: none;
    }
    .topbar-links.mobile-open {
        max-height: 80vh;
        overflow-y: auto;
    }
    .topbar-links li {
        width: 100%;
        justify-content: center;
    }
    .topbar-links a {
        width: 100%;
        padding: 18px 32px;
    }

    .service-card {
        width: 32%;
    }
    .contact-card {
        width: 32%;
    }

    .logo-bottom {
        display: none;
    }

    .advs-line {
        margin-left: 1rem;
    }
    .advs-title {
        font-size: 1.2rem;
        max-width: 80%;
    }
    
}

/* ============ PHONE: ≤600px — single column layout ============ */

@media only screen and (max-width: 600px) {
    .resp-row {
        justify-content: space-between;
        padding: 12px 3%;
        display: flex;
        flex-direction: column;
    }

    .card {
        margin: 10px 0 10px 0;
        padding: 12px 16px;
    }

    /* hero + form cards */
    .home-main-card {
        width: 100%;
        min-height: 0;
        padding: 6% 5% 6% 5%;
    }
    form {
        width: 100%;
        min-height: 0;
        padding-bottom: 6%;
        margin-bottom: 0;
    }
    /* decorative hero photo overlaps text at narrow widths — hide it */
    .home-img {
        display: none;
    }

    /* services / advantages / contacts grids collapse to one column */
    .service-card,
    .advs-card,
    .contact-card {
        width: 100%;
        min-height: 0;
    }
    .advs
-text {
        font-size: 1rem;
        padding-left: 0;
        padding-right: 0;
    }
    .advs-line {
        margin-left: 1rem;
    }
    .advs-title {
        font-size: 1.2rem;
        max-width: 80%;
    }

    .companies-img {
        height: 70px;
    }

    /* buttons stack instead of squeezing side by side */
    .form-row-buttons {
        gap: 10px;
    }
    .form-row-buttons .help-button,
    .form-row-buttons .price-button {
        min-height: 60px;
        font-size: larger;
        text-wrap: normal;
    }

    /* footer stacks vertically */
    footer {
        align-items: flex-start;
        height: auto;
        gap: 20px;
        padding: 24px 6% 32px;
    }
    .logo-bottom {
        display: none;
    }

    .mobile-column {
        flex-direction: column;
    }

    .contact-card {
        height: 360px;
    }

    .mobile-row-short {
        width: 60%;
        height: 45%;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }
    
    .mobile-row {
        width: 100%;
        height: 45%;
        justify-content: space-between;
        align-items: center;
    }


    .tl-12 {
    border-top-left-radius: 32px;
    }
    .tr-12 {
        border-top-right-radius: 32px;
    }
    .bl-12 {
        border-bottom-left-radius: 32px;
    }
    .br-12 {
        border-bottom-right-radius: 32px;
    }
    .tl-8 {
        border-top-left-radius: 16px;
    }
    .tr-8 {
        border-top-right-radius: 16px;
    }
    .bl-8 {
        border-bottom-left-radius: 16px;
    }
    .br-8 {
        border-bottom-right-radius: 16px;
    }
}
