/* ================= BASE LAYOUT ================= */
/*html, body {*/
/*    height: 100%;*/
/*}*/

/*body {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    min-height: 100vh;*/
/*    margin: 0;*/
/*}*/

main {
    flex: 1 0 auto;
    height: auto;
    overflow: hidden;
    transition: height 0.5s ease;
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    will-change: transform;
}

/* ================= CONTENT SECTIONS ================= */
.content {
    position: relative;
    background: white;
    padding: 4rem 0;
}

.content.product {
    background: #f4f0ea;
    z-index: 4;
    padding-bottom: 140px;
}

.content-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 6rem;
    z-index: 4;
    opacity: 0;
    transform: translateY(20px);
    transition:
            opacity 0.8s ease-out,
            transform 0.8s ease-out;
}

.content-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-inner .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.content-inner.visible .row {
    opacity: 1;
    transform: translateY(0);
}

.content-inner.visible .row:nth-child(1) { transition-delay: 0.1s; }
.content-inner.visible .row:nth-child(2) { transition-delay: 0.3s; }
.content-inner.visible .row:nth-child(3) { transition-delay: 0.5s; }

.product-carousel .carousel-slide:nth-child(2) .content-inner .row,
.product-carousel .carousel-slide:nth-child(3) .content-inner .row {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Content columns */
.content-inner .row .col.txt {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    line-height: 2;
}

.content-inner .row .col.img {
    flex: 1;
    align-self: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.col.img img {
    position: relative;
    z-index: 2;
}

/* Blurred circular shadow */
.col.img::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: #9ad8db;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0;
    z-index: 1;
}

/* First content section animations */
.content:first-of-type .row:nth-child(1) .col.img,
.content:first-of-type .row:nth-child(2) .col.img {
    transform: none;
}

.content:first-of-type .row:nth-child(1) .col.img {
    opacity: 0;
    transform: translateX(40px) translateY(20px);
}

.content:first-of-type .row:nth-child(2) .col.img {
    opacity: 0;
    transform: translateX(-40px) translateY(20px);
}

.content:first-of-type .content-inner.visible .row:nth-child(1) .col.img {
    opacity: 1;
    transform: translateX(0) translateY(0);
    transition: opacity 1s ease-out, transform 1.2s ease-out;
    transition-delay: 0.15s;
}

.content:first-of-type .content-inner.visible .row:nth-child(2) .col.img {
    opacity: 1;
    transform: translateX(0) translateY(0);
    transition: opacity 1s ease-out, transform 1.2s ease-out;
    transition-delay: 0.35s;
}

.content-inner .row.reverse {
    flex-direction: row-reverse;
}

/* Headings */
.col.txt h2, .contact-form h2 {
    color: #0b6f82;
    position: relative;
    z-index: 1;
}

/* Product section */
.product .content-inner .row {
    text-align: center;
}

/* Icon row */
.icon-row {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.item:not(.nav-list .item) {
    text-align: center;
    flex: 1;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
}

.item p {
    margin-top: 15px;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    min-height: 60px;
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform-origin: center;
}

/* ================= CONTACT FORM ================= */
.contact-form {
    scroll-margin-top: 150px;

    padding: 20px 20px;
    background: linear-gradient(180deg, #0F5C6E 0%, #F4F0EA 100%);
    color: #222;
    display: flex;
    justify-content: center;
    z-index: 4;
}

.contact-form .content-inner {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.contact-form .content-inner.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.contact-form h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #F4F0EA;
}

.contact-form p {
    font-size: 1rem;
    color: #F4F0EA;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.contact-form p.form-success {
    margin-bottom: 0;
    text-align: right;
    color: #1b2b66;
}

.contact-form p.form-error {
    margin-bottom: 0;
    text-align: right;
    color: var(--clr-coral-accent);
}


.contact-form .form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/*data-attributes for targeting */
.form-field {
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 16px 16px;
    font-size: 16px;
    border: 1px solid transparent;
    background: #F4F0EA;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    resize: none;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #243e86;
    box-shadow: 0 4px 12px rgba(36, 62, 134, 0.15);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: transparent;
}

.form-field label {
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 16px;
    color: #0F5C6E;
    pointer-events: none;
    background: transparent;
    padding: 0 4px;
    transition: all 0.3s ease;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
    top: -20px;
    left: 16px;
    font-size: 12px;
    color: #F4F0EA;
    background: transparent;
    padding: 2px;
    border-radius: 3px;
}


/* Contact form field animations */
/*.contact-form .content-inner.visible [data-field="name"] {*/
/*    transition-delay: 0.1s;*/
/*    opacity: 1;*/
/*    transform: translateY(0) scale(1);*/
/*}*/

/*.contact-form .content-inner.visible [data-field="email"] {*/
/*    transition-delay: 0.25s; !* Slightly longer delay for email *!*/
/*    opacity: 1;*/
/*    transform: translateY(0) scale(1);*/
/*}*/

/*.contact-form .content-inner.visible [data-field="message"] {*/
/*    transition-delay: 0.4s; !* Longer delay for message *!*/
/*    opacity: 1;*/
/*    transform: translateY(0) scale(1);*/
/*}*/

/*.contact-form .content-inner.visible .btn {*/
/*    transition-delay: 0.55s;*/
/*    opacity: 1;*/
/*    transform: translateY(0) scale(1);*/
/*}*/

/* Button styling */
.contact-form .btn {
    color: #F4F0EA;
    background: #0b6f82;
    border: 2px solid transparent;
    cursor: pointer;
    align-self: flex-start;
    font-size: 1rem;
    letter-spacing: 0.03rem;
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
}

.contact-form .btn:hover {
    border: 2px solid #0b6f82;
    color: #0b6f82;
    background: #F4F0EA;
    box-shadow: 0 6px 18px rgba(36, 62, 134, 0.25);
}

/* ================= TOOLTIP ================= */
.highlight {
    position: relative;
    cursor: pointer;
    border-bottom: 5px dotted var(--clr-coral-accent);
    font-weight: 500;
    transition: all 0.3s ease;
}

.highlight:hover {
    transform: translateY(-1px);
}

.highlight::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(8px);
    color: #0a6c83;
    border: 1px solid #0a6c83;
    padding: 10px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 10;
}

.highlight:hover::after,
.highlight:hover::before {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* ================= ANIMATIONS ================= */
@keyframes arrowBounce {
    0%, 100% {
        -webkit-mask-position: center, right 40px bottom 30px;
    }
    50% {
        -webkit-mask-position: center, right 40px bottom 45px;
    }
}

/* ================= FOOTER ================= */
footer {
    margin-top: auto;
    width: 100%;
}

@media (max-width: 760px) {
    .section.intro .content-inner {
        gap: 0;
    }

    .section.product.content {
        display: none;
    }

    /* ================= TOOLTIP ================= */
    .highlight {
        position: relative;
        cursor: pointer;
        border-bottom: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }



    .highlight::after {
        display: none;
    }

    .highlight:hover::after,
    .highlight:hover::before {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}