/* =========================================================
   1. RESET & BASE STYLES
========================================================= */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: Rajdhani, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #121214;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

/* Images */
img {
    max-width: 100%;
    display: block;
}

/* Lists */
ul {
    list-style: none;
}


/* =========================================================
   2. CSS VARIABLES (THEME)
========================================================= */

:root {
    --primary-color: #121214;
    --secondary-color: #fff;
    --tertiary-color: #F1F0E2;
    --light-brown-color: #83675C;
    --bg-light-brown: #83675C;
    --text-color: #121214;
    --bg-color: #ffffff;
    --secondary-bg-color: #F1F0E2;
    --max-width: 1200px;
    --primary-font: 'Rajdhani', Helvetica, Arial, sans-serif;
    --secondary-font: 'Mohave', Helvetica, Arial, sans-serif;
    --compact-padding-horizontal: 0% 20%;
    --btn-border-radius: 200px;
}


/* =========================================================
   3. LAYOUT UTILITIES
========================================================= */

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.flex {
    display: flex;
    align-items: center;
}

.grid {
    display: grid;
}


/* =========================================================
   4. HEADER / NAVBAR
========================================================= */

header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    position: absolute !important;
    top: 0;
    width: 100%;
    z-index: 2;
}

    nav #nav-main-container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-flow: column;
    }

nav ul {
    display: flex;
    gap: 1.5rem;
}


/* =========================================================
   5. HERO SECTION
========================================================= */

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #f5f5f5;
}

.hero-title {
    color: var(--secondary-color);
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

#heroVideo {
    /* opacity: 0; */
    transition: opacity 1s ease;
}

#heroVideo.ready {
    opacity: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.overlay-darker {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-bg iframe,
.video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;

    /* FORCE overscan like background-cover */
    width: 140vw;
    height: 140vh;
    min-width: 177.78vh;  /* forces cover behavior */
    min-height: 56.25vw;

    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.uppercase-txt {
    text-transform: uppercase;
}

.prim-font {
    font-family: var(--primary-font);
}

.sec-font {
    font-family: var(--secondary-font);
}

.prim-txt {
    color: var(--primary-color);
}

.sec-txt {
    color: var(--secondary-color);
}

.ter-txt {
    color: var(--tertiary-color);
}

.light-brown-txt {
    color: var(--light-brown-color);
}

.light-brown-bg {
    background-color: var(--light-brown-color);
}

.light-txt {
    font-weight: 300;
}

.reg-txt {
    font-weight: normal;
}

.reg-more-txt {
    font-weight: 500;
}

.bold-txt {
    font-weight: bold;
}

.input-mm {
    background-color: var(--tertiary-color);
    font-weight: 400;
    font-family: var(--secondary-font);
}

form label {
    color: var(--secondary-color);
}

.main-btn {
    min-width: 250px;
    width: 100%;
    background-color: var(--light-brown-color) !important;
    color: var(--secondary-color) !important;
    outline: none !important;
    border-radius: var(--btn-border-radius) !important;
    border: none;
}

    .main-btn:hover {
        transform: scale(1.05) !important;
        transition: all 0.3s ease !important;
        text-shadow: var(--secondary-color) 0 0 6px;
        will-change: text-shadow;
    }

button,
button.btn {
    border-radius: var(--btn-border-radius);
    font-size: 1.2rem;
}

.hero-slider {
    width: 100%;
    height: 100vh;
}

.swiper-slide {
    width: 100%;
    height: 100%;

    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100vh;

    object-fit: cover;
    object-position: center;

    display: block;
}

.swiper-button-prev,
.swiper-button-next {
    width: 45px !important;
    height: 45px !important;
    border-radius: 200px !important;
    border: 1px solid var(--secondary-color);
    padding: .25rem .5rem;
    color: var(--secondary-color) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

    .swiper-button-prev svg,
    .swiper-button-next svg {
        height: 20px !important;
        width: 20px !important;
        transition: all 0.3s ease;
    }

.swiper-button-prev {
    left: 40px !important;
}

.swiper-button-next {
    right: 40px !important;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    transform: scale(1.05);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

#download-section .wrapper {
    display: flex;
    flex-flow: wrap;
    width: 100%;
    height: 100%;
}

#download-section #left,
#download-section #right {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    width: auto;
    padding: 5rem 0;
    flex: 1;
    z-index: 2;
}

#download-section #left {
    object-fit: cover;
    background: url('../images/webp/FundoMarmoreLight.webp') no-repeat center center/cover;
}

#download-section #right {
    object-fit: cover;
    background: url('../images/webp/FundoMarmorePreto.webp') no-repeat center center/cover;
}

.social-icon {
    font-size: 1.75rem;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0.4);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* Active state */
.modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Modal box */
.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 14px;
    max-width: 420px;
    width: 90%;

    text-align: center;

    /* start state */
    transform: translateY(30px);
    opacity: 0;
    filter: blur(8px);

    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animate in when modal opens */
.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
}

/* container */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* hidden state */
.cookie-banner.hidden {
    display: none;
}

/* box */
.cookie-box {
    width: 320px;
    background: rgba(20,20,20,0.95);
    color: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);

    transform: translateY(20px);
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

/* text */
.cookie-text {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.4;
    opacity: 0.9;
}

/* buttons */
.cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.cookie-btn {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* styles */
.cookie-btn.primary {
    background: #ffffff;
    color: #000;
}

.cookie-btn.ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.cookie-btn.link {
    background: transparent;
    color: rgba(255,255,255,0.7);
}

/* hover */
.cookie-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* animation */
@keyframes slideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* overlay */
.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.cookie-modal.show {
    opacity: 1;
    pointer-events: auto;
}

/* box */
.cookie-modal-box {
    width: 420px;
    background: #111;
    color: #fff;
    padding: 20px;
    border-radius: 14px;
    transform: translateY(20px);
    animation: modalIn 0.3s ease forwards;
}

/* header */
.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: white;
    cursor: pointer;
}

/* text */
.cookie-desc {
    font-size: 13px;
    opacity: 0.8;
    margin: 10px 0 20px;
}

/* options */
.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cookie-option p {
    font-size: 12px;
    opacity: 0.7;
    margin: 2px 0 0;
}

/* buttons */
.cookie-modal-actions {
    margin-top: 20px;
    text-align: right;
}

/* animation */
@keyframes modalIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #fff;
    border-radius: 999px;
    transition: 0.3s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    top: 3px;
    background: #795548;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .slider {
    background: #fff;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* =========================================================
   6. SECTIONS (GENERIC)
========================================================= */

section {
    padding: 4rem 0;
    height: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.main-section {
    min-height: 100vh;
    height: auto;
    align-items: center;
    justify-content: center;
}

.secondary-section {
    background: var(--secondary-bg-color);
}

.section-compact-h {
    padding: var(--compact-padding-horizontal);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

#intro-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-bg-color);
}

#intro-text {
    width: 60%;
}

#bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: url('../images/webp/FundoMarmorePreto.webp') no-repeat center center/cover;
}

.link {
    text-decoration:underline;
    /* color:#2196F3; */
    color: var(--primary-color);
}

.sec-link {
    text-decoration: underline;
    color: var(--secondary-color);
}

.error-message {
    display: none;
    color: firebrick;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: bold;
    text-transform: uppercase;
}

.error-message.show {
    display: block;
}

    .error-message::before {
        content: "\f071";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: firebrick;
        margin-right: 0.25rem;
    }

.fi {
    font-size: 20px;
    border-radius: 3px;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.fi.show {
    opacity: 1;
    transition: transform 0.2s ease;
}

.lang-btn:hover .fi {
    opacity: 1;
    transform: scale(1.2);
}

.loadingSpinner {
    position: fixed;
    opacity: 0;
    visibility: hidden; 
    pointer-events: none;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    background: rgba(0, 0, 0, 0.98);
    z-index: 9999;
    width: 100%;
    height: 100%;
    transition: 0.5s;
}

    .loadingSpinner.show {
        opacity: 1;
        visibility: visible;
    }
    
#menu-sticky {
    display: flex;
    align-items: flex-end;
    flex-flow: column; 
    padding: 2rem 2.5rem;
    font-size: 1.3rem;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 9998;
    /* opacity: 0; */
    /* pointer-events: none; */
    transition: opacity 0.35s ease;
}

#menu-sticky.show {
    opacity: 1;
    pointer-events: all;
}

    #menu-sticky i,
    #menu-sticky svg {
        background-color: var(--light-brown-color);
        padding: 0.25rem;
    }

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--secondary-color);
;
    position: relative;

    transition: background-color 0.25s ease, transform 0.25s ease, top 0.25s ease, opacity 0.15s ease;
}

    #menu-sticky.show .menu-icon,
    #menu-sticky.show .menu-icon::before,
    #menu-sticky.show .menu-icon::after {
            background-color: var(--light-brown-color);
    }

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-icon::before {
    top: -7px;
}

.menu-icon::after {
    top: 7px;
}

.menu-icon.open {
    background: transparent;
}

.menu-icon.open::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-icon.open::after {
    top: 0;
    transform: rotate(-45deg);
}

#backToTopBtn {
    position: fixed;
    bottom: 15px;
    left: 47%;
    transform: translateX(47%);
    display: flex;
    justify-content: center;
    z-index: 100;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    box-shadow: 0 0 3px 4px rgba(0, 0, 0, 0.1);
    border: none;
    opacity: 0;
    background-color: var(--secondary-color);
    /* visibility: hidden;
    pointer-events: none; */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    #backToTopBtn.show {
        opacity: 1;
    }

#menu-sticky .lang-switcher {
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.1);
}

/* =========================================================
   7. BUTTONS
========================================================= */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.8;
}


/* =========================================================
   8. FOOTER
========================================================= */

footer {
    background: var(--tertiary-color);
    color: var(--brown-color) !important;
    text-align: center;
    padding: 2rem 0;
}


/* =========================================================
   9. RESPONSIVE DESIGN
========================================================= */

/* =========================
   Large screens (desktops)
========================= */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

/* =========================
   Tablets
========================= */
@media (max-width: 992px) {

    nav ul {
        gap: 1rem;
    }

    #intro-text {
        width: 50%;
    }

    .hero {
        /* min-height: 70vh; */
        padding: 2rem;
    }
}

/* =========================
   Small tablets / large phones
========================= */
@media (max-width: 768px) {

    footer {
        padding: 2rem 2rem !important;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

        nav #nav-main-container {
            display: flex;
            justify-content: space-between !important;
            flex-flow: wrap !important;
        }
            nav #nav-main-container .lang-switcher {
                justify-content: flex-end !important;
                background-color: #fff;
                padding: 1rem;
            }

    /* .hero {
        min-height: 60vh;
    } */

    .section-title {
        font-size: 1.5rem;
    }

    #intro-text {
        width: auto;
    }

    .logo-main {
        width: 120px;
    }
    
    #form-main-div {
        flex-flow: column;
    }

    #transform-project-el {
        margin-bottom: 2.5rem;
    }

    .main-section {
        padding: 10% 10%;
    }

    .section-compact-h {
        padding: 0;
    }

    #footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-row {
        align-items: self-start !important;
        width: 100% !important; 
        margin-bottom: 1rem !important;
    }

    .contact-row:last-child {
        flex-flow: row;
        display: flex;
        justify-content: space-between;
    }

    #backToTopBtn {
        bottom: 15px !important;
        left: calc(100% - 15.5rem) !important;
        width: auto !important;
    }

    #menu-sticky {
        padding: 1rem .75rem;
        font-size: 1.3rem;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }

    #nav-main-container .navbar-toggler {
        font-size: 1rem;
    }
}

/* =========================
   Phones
========================= */
@media (max-width: 576px) {

    body {
        font-size: 14px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 2rem 0;
    }
}

/* =========================
   Extra small devices
========================= */
@media (max-width: 400px) {

    .hero {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

/* =========================
   Animations
========================= */

.animate {
    opacity: 0;

    transition:
        transform 0.6s ease-out,
        opacity 0.6s ease-out;

    will-change: transform, opacity;
}

.animate-left {
    transform: translate3d(-60px, 0, 0);
}

.animate-right {
    transform: translate3d(60px, 0, 0);
}

.animate-top {
    transform: translate3d(0, -60px, 0);
}

.animate-bottom {
    transform: translate3d(0, 60px, 0);
}

.animate.show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@keyframes myAnimation {
  from {background-color: red;}
  to {background-color: yellow;}
}   