@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oswald:wght@200..700&display=swap');

:root {
    --color-white: #ffffff;
    --color-dark-bg: #151515;
    --color-card-dark: #202020;
    --color-primary-green: #64BF7F;
    --color-indigo-blue: #2E3159;
    --color-accent-yellow: #E5B744;
    --color-light-green: #E8F5EC;
    --color-light-blue: #EAEAEE;
    --color-gray-666: #666666;
    --color-gray-100: #f5f5f7;
    --nav-text: #2E3159;
    --text-opaque-70: rgba(255, 255, 255, 0.7);
    --text-opaque-40: rgba(255, 255, 255, 0.4);
    --black-opaque-80: rgba(0, 0, 0, 0.8);
    --black-opaque-10: rgba(0, 0, 0, 0.1);
    --black-opaque-5: rgba(0, 0, 0, 0.05);

    --font-headings: 'Oswald', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --tab-height-sm: 20px;
    --tab-height-lg: 30px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-white);
}

.container {
    padding-inline: clamp(16px, 2.5vw, 24px);
}

.section-padding {
    padding-block: 80px;
}

@media (min-width: 768px) {
    .container {
        padding-inline: clamp(24px, 3.5vw, 64px);
    }
    
    .section-padding {
        padding-block: 40px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-inline: clamp(64px, 8vw, 140px);
    }
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: var(--font-headings);
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 2.6vw, 1.8rem);
}

h4 {
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}

h5 {
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

p {
    font-size: clamp(14px, 1.1vw, 18px);
    font-family: var(--font-body);
}

.section-heading h5 {
    font-weight: 400;
    color: var(--color-primary-green);
}

.section-heading h2 {
    text-transform: uppercase;
    margin-top: 15px;
}

.hero-section {
    width: 100%;
    padding: 12px;
    position: relative;
}

.hero-section .hero-section-bg {
    width: 100%;
}

.hero-section .container {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
}

.hero-section .hero-content {
    color: var(--color-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    text-transform: uppercase;
    margin: 0;
}

.hero-content p {
    font-weight: 500;
}

.hero-content p a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-content p a:hover {
    color: var(--color-primary-green);
}

.hero-content p span {
    color: var(--color-primary-green);
}

@media (max-width: 1024px) {

    .hero-section .container {
        transform: translateY(90%);
    }

    .hero-content {
        padding-inline: 30px;
    }

    .hero-section {
        position: relative;
        min-height: auto;
        padding-top: 80px;
    }
}

@media (max-width: 554px) {
    .hero-section .container {
        transform: translateY(100%);
    }

    .hero-content h1 {
        font-size: 28px;
    }
}

@media (max-width: 471px) {

    .hero-section .container {
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/hero-background.webp) no-repeat;
        background-size: cover;
        padding-block: 50px;
        transform: translateY(0%);
        position: static;
        border-radius: 25px;
    }

    .hero-content {
        flex-direction: column;
        gap: 20px;
    }

    .hero-section-bg {
        display: none;
    }
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    margin-top: 30px;
    gap: 30px;
}

.contact-card {
    position: relative;
}

.contact-info-card-img {
    width: 100%;
    height: 100%;
}

.contact-card .contact-info {
    position: absolute;
    top: 10%;
    width: 80%;
    padding-left: 30px;
    color: white;
}

.contact-info h3 {
    text-transform: uppercase;
}

.contact-info .info-item {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    align-items: start;
}

.contact-info .info-item h5 {
    margin-bottom: 7px;
    font-weight: 400;
}

.contact-info .phone a {
    font-size: 24px;
    white-space: nowrap;
}

.contact-info .social-medias {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    margin-left: 21px;
}

.social-medias a {
    transition: transform 0.3s ease;
}

.social-medias a:hover {
    transform: translateY(-3px);
}

.contact-info .social-medias a img {
    width: 20px;
    height: 20px;
}

/* form style */

.form-wrap {
    width: 100%;
    margin-top: 10px;
    font-family: var(--font-body);
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 28px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full {
    grid-column: 1 / -1;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

input,
textarea {
    border: none;
    border-bottom: 1px solid #d9d9d9;
    padding: 6px 2px 12px;
    font-size: 14px;
    color: #1a1a1a;
    outline: none;
    background: transparent;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: #b3b3b3;
}

input:focus,
textarea:focus {
    border-bottom-color: #22c55e;
}

textarea {
    resize: none;
    min-height: 24px;
}

/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Subject selector */
.subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 10px;
}

.subject-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4d4d4d;
    cursor: pointer;
    user-select: none;
}

.subject-option input[type="radio"] {
    display: none;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e6e6e6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.subject-option input[type="radio"]:checked+.dot {
    background: #22c55e;
}

.subject-option input[type="radio"]:checked+.dot::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

.subject-option input[type="radio"]:checked~span.label-text {
    color: #1a1a1a;
    font-weight: 500;
}

/* Send button */
.send-btn {
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--color-primary-green);
    color: var(--color-white);
    border: none;
    border-radius: 10px;
    padding: 6px 6px 6px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    font-family: var(--font-body);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.send-btn .arrow {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn img {
    width: 16px;
    height: 16px;
}

.send-btn:hover {
    transform: translateY(-1px);
    background-color: #57a86a;
    box-shadow: 0 5px 11px rgba(100, 191, 127, 0.32);
}

@media (max-width: 1273px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
    }
}

@media (max-width: 910px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-card {
        position: relative;
        max-width: 430px;
        height: 500px;
    }
}

@media (max-width: 560px) {

    .contact-info-card-img {
        width: 100%;
        height: 70vh;
    }

    form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 370px) {
    .contact-form {
        margin-top: 30px;
    }
}