/* style.css - MCSX Web Development */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    min-width:300px;
}
body {
    color: #333;
    background-color: #4278ba;
    font-family: 'Manrope', 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
	font-size: 1em;
    line-height: 1.4em;
}
body:after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    pointer-events: none;
    transition: all 3s;
}
body.clear:after {
    opacity: 0;
}
body.waiting {
    cursor: wait;
}
body.waiting input,
body.waiting textarea,
body.waiting button {
    opacity: 0.5;
    pointer-events: none;
}

#bgVideo {
    position: fixed;
    inset: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
}

.modal {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color:transparent;
    transition: background-color 0.7s ease-in-out;
    pointer-events: none;
}
.modal-dialog {
    position: absolute;
    top:-1000px;
    left:50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 20px -4px #00000030;
    z-index: 1001;
    width:500px;
    max-width: 90%;
    transition: top 0.7s ease-in-out;
    pointer-events: all;
}
.modal.show {
    background-color: #000000aa;
}
.modal.show .modal-dialog {
    top:50%;
}

.modal-content {
    padding: 1.5rem;
    text-align: center;
}
.modal-footer {
    text-align: center;
    padding: 1rem;
}

.content {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}
.logo {
    width: 300px;
    max-width: 90%;
    height: auto;
    mask-image: linear-gradient(to bottom, rgb(0 0 0), rgba(0, 0, 0, 0.6) 66%, rgba(0, 0, 0, 0) 91%);
    cursor: pointer;
}
h1 {
    color: #1a1a1a;
    font-size: 1.8rem;
    margin: 0;
	font-weight:600;
    text-shadow: 2px 2px 5px #00000030;
}
h2 {
    color: #222;
    font-size: 1.5rem;
}
h4 {
    color: #222;
    font-size: 1.2rem;
    margin:0 0 0.5rem 0;
}
main {
    max-width: 700px;
    margin: 0 auto;
    padding: 1.4rem 5rem;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}
main.hidden {
    display: none;
}
main.out {
    opacity: 0;
}
section {
    position: relative;
    margin-bottom: 5rem;
    background: #f1f1f194;
    color:#1a1a1a;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 0 20px -4px #00000059;
}
section.hang-next::after {
    content: "";
    position: absolute;
    left: 10%; 
    right: 10%;
    top: calc(100% - 1rem);
    height: 7rem;
    z-index: +1;

    /* 1. Create the two vertical lines (strings) */
    /* 2. Create the 4 circles (holes) */
    background:
        /* The Strings */
        linear-gradient(to bottom, #bcbcbc, #999) no-repeat 0 0 / 2px calc(100% - 8px),
        linear-gradient(to bottom, #888, #bcbcbc) no-repeat 100% 0 / 2px calc(100% - 8px),
            /* The Holes (Top) */
        radial-gradient(circle, rgba(26, 62, 96, 0.5) 3px, transparent 4px) no-repeat 0 0 / 10px 10px,
        radial-gradient(circle, rgba(19, 64, 103, 0.5) 3px, transparent 4px) no-repeat 100% 0 / 10px 10px,
            /* The Holes (Bottom) */
        radial-gradient(circle, rgba(56, 76, 89, 0.5) 3px, transparent 4px) no-repeat 0 100% / 10px 10px,
        radial-gradient(circle, rgba(15, 54, 89, 0.5) 3px, transparent 4px) no-repeat 100% 100% / 10px 10px;

    /* Center the holes over the lines */
    background-position:
        4px 4px,    /* Line 1 */
        calc(100% - 4px) 4px,  /* Line 2 */
        0 0,               /* Hole Top Left */
        100% 0,             /* Hole Top Right */
        0 100%,             /* Hole Bottom Left */
        100% 100%;           /* Hole Bottom Right */
}
section p {
	margin:0;
	padding:0;
}
section p + p {
	margin-top:1em;
}
.intro h2, .services h2, .contact h2 {
    color: #222;
    font-size: 1.6rem;
    margin-top: 0;
}
.intro p:first-child {
	font-weight:500;
	color:#000;
}
.services ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}
.services li {
    margin: 0.5rem 0;
    padding-left: 1.2em;
    position: relative;
}
.services li:before {
    content: '•';
    color: #c0c0c0;
    position: absolute;
    left: 0;
}
.contact-wrapper section {
    margin-bottom: 0;
    width: 100%;
}
.contact-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 5rem;
    transition: transform 1s ease-in-out;
}
.contact-wrapper.send {
    transform: rotate3d(1, 1, 1, -120deg);
}
form {
    display: flex;
    flex-direction: column;
}
input[name="phone"] {
    display: none;
}
.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}
.input-wrapper label {
    position: absolute;
    pointer-events: none;
    top: 1.2rem;
    left: 1rem;
    transition: 0.2s ease all;
    color: #666666;
}
.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label,
.input-wrapper textarea:focus + label,
.input-wrapper textarea:not(:placeholder-shown) + label {
    top: 0.1rem;
    left: 1rem;
    font-size: 13px;
    opacity: 1;
    font-weight: 600;
    color:#4f86c7;
}
.input-wrapper input,
.input-wrapper textarea {
    font:inherit;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 1.2rem 1rem;
    font-size: 1rem;
    resize: none;
}
.input-wrapper input:focus, .input-wrapper textarea:focus,
.input-wrapper input:focus-visible, .input-wrapper textarea:focus-visible {
    outline: 2px solid #8ba5cb;
}
button {
    background: #5885c9;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.3rem 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}
.modal button {
    padding: 0.3rem 1rem;
    font-size:1.2rem;
}
button:hover {
    background: #3877d6;
}
#form-message {
    margin-top: 1rem;
    color: #8f8;
    font-size: 1rem;
}
footer {
    margin-top:auto;
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    padding: 2rem 1rem 1rem 1rem;
    background: #000000c0;
}
footer nav a {
    color: #aaa;
    text-decoration: none;
    margin: 0 0.5em;
    transition: color 0.2s;
}
footer nav a:hover {
    color: #fff;
}
.grecaptcha-badge {
    display:none;
}
@media (max-width: 600px) {
    body {
        padding-top: 6rem;
    }
    header {
        position:fixed;
        display:flex;
        justify-content: space-between;
        align-items: center;
        top:0;
        left:0;
        width:100%;
        background: linear-gradient(to bottom, #0f1a27, #0f1a2740);
        z-index: 1000;
    }
    header .logo {
        width: 84px;
        margin: 0;
        mask-image: linear-gradient(to bottom, rgb(0 0 0), rgba(0, 0, 0, 0.6) 66%, rgba(0, 0, 0, 0.2) 100%);
    }
    header h1 {
        padding: 0 1rem;
        font-size: 1.2rem;
        color: #fff;
    }
    main {
        padding: 1rem 0.5rem 2rem 0.5rem;
    }
    section {
        padding: 1.2rem 0.7rem;
    }
    h2, .intro h2, .services h2, .contact h2, h2 {
        font-size: 1.2rem;
    }
}
