/* Base Reset & Typography */

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

html {
    height: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--font-size-b1);
    line-height: var(--line-height-b1);
    color: var(--color-body);
    background-color: var(--color-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

#main-content {
    flex: 1;
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-heading-1);
    font-weight: var(--p-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: var(--p-semi-bold); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

img.logo,
img.no-radius {
    border-radius: 0;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (max-width: 575px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    h1, h2, h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col,
[class*="col-"] {
    padding: 0 15px;
}

.col {
    flex: 1;
}

.text-center { text-align: center; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.u-mb-40 { margin-bottom: 40px; }
.u-mb-60 { margin-bottom: 60px; }

.btn {
    height: 55px;
    max-width: max-content;
    padding: 13px 29px;
    border: none;
    box-shadow: none;
    min-width: max-content;
    border-radius: var(--radius-md);
    transition: 800ms;
    font-weight: 600;
    font-family: var(--font-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/*
 * BUTTON ANIMATION EXPLANATION:
 * - Button has visible background color
 * - ::before is a circle hidden BELOW the button (top: 110%)
 * - On hover, ::before slides UP (top: -40%), filling button with its color
 * - overflow: hidden clips the circle to button shape
 */

/* Dark button → Light wave on hover */
/* Using .btn.btn-primary for higher specificity over Bootstrap */
.btn.btn-primary,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: none;
    border-radius: var(--radius-md);
}

.btn.btn-primary::before {
    content: "";
    position: absolute;
    transition-duration: 800ms;
    width: 200%;
    height: 200%;
    top: 110%;
    left: 50%;
    background: #F2F2F2;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: -1;
}

.btn.btn-primary:hover,
.btn.btn-primary:active {
    color: var(--color-secondary);
    background-color: var(--color-secondary); /* Keep until wave covers */
}

.btn.btn-primary:hover::before,
.btn.btn-primary:active::before {
    top: -40%;
}

/* Light/White button → Simple hover animation */
.btn.btn-primary.btn-white {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-secondary);
    transition: all 0.4s ease;
}

.btn.btn-primary.btn-white::before {
    display: none;
}

.btn.btn-primary.btn-white:hover,
.btn.btn-primary.btn-white:active {
    background-color: var(--color-heading-1);
    border-color: var(--color-heading-1);
    color: var(--color-white);
    transform: translateY(-5px) scale(1.1);
}

/* Contact subscribe button override */
.contact-subscribe .contact-subscribe__btn:hover,
.contact-subscribe .contact-subscribe__btn:active {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
}


.section {
    padding: var(--spacing-lg) 0;
}

/* --- Partners Section --- */
.partners-section {
    /*padding-bottom: 60px;*/
    background: var(--color-white);
}

.partners-title {
    font-size: var(--h1);
    font-weight: var(--p-bold);
    color: var(--color-heading-1);
}

.partners-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.partner-item {
    flex: 0 0 auto;
}

.partner-logo {
    max-height: 70px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s ease-out;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-3px) scale(1.1);
}

.partner-logo:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .partners-row {
        gap: 30px;
    }

    .partner-logo {
        max-height: 50px;
    }
}

/* --- Contact Subscribe Section --- */
.contact-subscribe {
    background: var(--color-white);
    padding: 4rem 0;
}

.contact-subscribe__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.contact-subscribe__content {
    flex: 1;
}

.contact-subscribe__subtitle {
    display: block;
    font-size: 14px;
    font-weight: var(--p-medium);
    color: var(--color-primary);
    margin-bottom: 10px;
}

.contact-subscribe__title {
    font-size: var(--h3);
    font-weight: var(--p-bold);
    color: var(--color-heading-1);
    margin: 0;
    line-height: 1.3;
}

.contact-subscribe__form {
    flex: 0 0 auto;
}

.contact-subscribe__input-group {
    display: flex;
    align-items: center;
    background: var(--color-secondary);
    border-radius: var(--radius-md);
    padding: 5px 5px 5px 20px;
    min-width: 450px;
}

.contact-subscribe__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--color-white);
    font-family: var(--font-secondary);
    padding: 8px 0;
}

.contact-subscribe__input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-subscribe__btn {
    flex-shrink: 0;
    height: 36px;
    padding: 0 18px;
    background: var(--color-white);
    color: var(--color-secondary);
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .contact-subscribe__wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .contact-subscribe__form {
        width: 100%;
        max-width: 500px;
    }

    .contact-subscribe__input-group {
        min-width: 100%;
    }
}

@media (max-width: 575px) {
    .contact-subscribe {
        padding: 50px 0;
    }

    .contact-subscribe__title {
        font-size: var(--h4);
    }

    .contact-subscribe__input-group {
        flex-direction: column;
        padding: 15px;
        gap: 12px;
        min-width: 0;
        width: 100%;
        max-width: none;
    }

    .contact-subscribe__input {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .contact-subscribe__btn {
        width: 100%;
        height: 40px;
    }
}
