/* ==========================================================================
   Contact Us CSS — Energofor Design
   Contact page with hero, info, and contact form sections
   ========================================================================== */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
    --cu-font-serif: 'Nunito Sans', serif;
    --cu-font-sans: 'Nunito Sans', sans-serif;
    --cu-font-heading: 'Qaranta', serif;
    --cu-color-primary: #0e5d99;
    --cu-color-primary-light: #88c4ff;
    --cu-color-dark: #242c36;
    --cu-color-dark-mid: #3c5063;
    --cu-color-gray: #6b7280;
    --cu-color-gray-bg: #e6e8ea;
    --cu-color-gray-light: #f5f5f5;
    --cu-color-white: #ffffff;
    --cu-color-border: #d1d5db;
    --cu-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Global Resets ---------- */
.contact-us,
.contact-us *,
.contact-us *::before,
.contact-us *::after {
    box-sizing: border-box;
}

.contact-us {
    font-family: var(--cu-font-sans);
    color: var(--cu-color-dark);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* ==========================================================================
   SECTION 1: HERO
   ========================================================================== */
.cu-hero {
    position: relative;
    width: 100%;
    min-height: 45vh;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media screen and (min-width: 64rem) {
    .cu-hero {
        min-height: 60vh;
        max-height: 650px;
    }
}

.cu-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.cu-hero__bg--gradient {
    background: linear-gradient(135deg, #1d2e3c 0%, #0e5d99 100%);
}

.cu-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(29, 46, 60, 0.3) 0%,
            rgba(29, 46, 60, 0.6) 100%);
    z-index: 1;
}

.cu-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 90rem;
    padding: 100px 31px 60px;
    text-align: center;
}

@media screen and (min-width: 48.0625rem) {
    .cu-hero__content {
        padding: 120px 64px 80px;
    }
}

.cu-hero__inner {
    max-width: 700px;
    margin: 0 auto;
}

.cu-hero__label {
    display: inline-block;
    font-family: var(--cu-font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--cu-color-primary-light);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cu-color-primary-light);
}

.cu-hero__title {
    font-family: var(--cu-font-heading);
    font-size: 2.5rem;
    font-weight: 350;
    line-height: 1.1;
    color: #fff;
    margin: 0;
}

@media screen and (min-width: 48.0625rem) {
    .cu-hero__title {
        font-size: 3rem;
    }
}

@media screen and (min-width: 64rem) {
    .cu-hero__title {
        font-size: 3.5rem;
    }
}

/* ==========================================================================
   SECTION 2: CONTENT (Info + Form)
   ========================================================================== */
.cu-content {
    background-color: var(--cu-color-white);
    padding: 60px 31px;
}

@media screen and (min-width: 48.0625rem) {
    .cu-content {
        padding: 80px 64px;
    }
}

@media screen and (min-width: 64rem) {
    .cu-content {
        padding: 100px 64px;
    }
}

.cu-content__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

@media screen and (min-width: 64rem) {
    .cu-content__container {
        flex-direction: row;
        gap: 80px;
    }
}

/* ---------- Left Column: Contact Info ---------- */
.cu-content__info {
    flex: 1;
}

@media screen and (min-width: 64rem) {
    .cu-content__info {
        flex: 0 0 40%;
    }
}

/* .cu-info__wrapper {
    position: sticky;
    top: 100px;
} */

.cu-info__heading {
    font-family: var(--cu-font-heading);
    font-size: 2rem;
    font-weight: 350;
    line-height: 1.2;
    color: var(--cu-color-primary);
    margin: 0 0 1.5rem 0;
}

@media screen and (min-width: 48.0625rem) {
    .cu-info__heading {
        font-size: 2rem;
    }
}

.cu-info__intro {
    font-family: var(--cu-font-sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--cu-color-dark-mid);
    margin-bottom: 2rem;
}

.cu-info__intro p {
    margin: 0 0 1rem 0;
}

.cu-info__intro p:last-child {
    margin-bottom: 0;
}

/* Contact Details */
.cu-info__contacts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cu-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cu-contact__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(14, 93, 153, 0.1);
    border-radius: 10px;
    color: var(--cu-color-primary);
}

/* .cu-contact__icon--whatsapp {
    background-color: rgba(37, 211, 102, 0.1);
    color: #25d366;
} */

.cu-contact__icon svg {
    flex-shrink: 0;
}

.cu-contact__details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cu-contact__label {
    font-family: var(--cu-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--cu-color-gray);
}

.cu-contact__value {
    font-family: var(--cu-font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--cu-color-dark);
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.cu-contact__value p {
    margin: 0 0;
}

.cu-contact__value:hover {
    color: var(--cu-color-primary);
}

/* .cu-contact__item--whatsapp .cu-contact__value:hover {
    color: #25d366;
} */

/* ---------- Right Column: Contact Form ---------- */
.cu-content__form {
    flex: 1;
}

@media screen and (min-width: 64rem) {
    .cu-content__form {
        flex: 0 0 55%;
    }
}

.cu-form__wrapper {
    background-color: var(--cu-color-gray-light);
    border-radius: 16px;
    padding: 40px 31px;
}

@media screen and (min-width: 48.0625rem) {
    .cu-form__wrapper {
        padding: 48px;
    }
}

.cu-form__heading {
    font-family: var(--cu-font-heading);
    font-size: 1.5rem;
    font-weight: 350;
    line-height: 1.2;
    color: var(--cu-color-primary);
    margin: 0 0 1rem 0;
}

@media screen and (min-width: 48.0625rem) {
    .cu-form__heading {
        font-size: 1.75rem;
    }
}

.cu-form__intro {
    font-family: var(--cu-font-sans);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--cu-color-dark-mid);
    margin-bottom: 0.5rem;
}

.cu-form__intro p {
    margin: 0;
}

/* Note: Form styles are now in forms.css for global use */

/* ==========================================================================
   SECTION 3: MAP
   ========================================================================== */
.cu-map {
    background-color: var(--cu-color-gray-bg);
    padding: 0;
}

.cu-map__container {
    width: 100%;
    height: 400px;
}

.cu-map__container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media screen and (min-width: 64rem) {
    .cu-map__container {
        height: 500px;
    }
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media screen and (max-width: 63.99rem) {
    .cu-info__wrapper {
        position: static;
    }
}

/* Mobile Optimizations */
@media screen and (max-width: 47.99rem) {
    .cu-hero {
        min-height: 30vh;
    }

    .cu-hero__title {
        font-size: 2rem;
    }

    .cu-form__wrapper {
        padding: 32px 24px;
    }

    .cu-contact__icon {
        width: 40px;
        height: 40px;
    }
}