/* =================================
   EBERELIFE COMPANIONS
   Professional Blue & White Design
================================= */

:root {
    --primary-blue: #174a7e;
    --dark-blue: #10345a;
    --light-blue: #eaf3fb;
    --white: #ffffff;
    --text-dark: #263746;
    --text-light: #687887;
    --accent-blue: #3d86c6;
    --border: #e1e8ef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behaviour: smooth;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.container {
    width: min(1150px, 90%);
    margin: auto;
}

.section-padding {
    padding: 90px 0;
}

/* HEADER */

.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(16, 52, 90, 0.08);
}

.nav-container {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-blue);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--primary-blue);
    color: var(--white);
    font-size: 26px;
}

.logo-text {
    line-height: 1.2;
}

.logo-text small {
    display: block;
    font-size: 10px;
    letter-spacing: 4px;
    margin-top: 5px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navigation a {
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.navigation a:hover {
    color: var(--accent-blue);
}

.navigation .nav-button {
    padding: 12px 22px;
    border-radius: 6px;
    background: var(--primary-blue);
    color: var(--white);
}

.navigation .nav-button:hover {
    background: var(--dark-blue);
}

.menu-toggle {
    display: none;
    border: none;
    background: none;
    color: var(--primary-blue);
    font-size: 28px;
    cursor: pointer;
}

/* HERO SECTION */

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(9, 39, 70, 0.88),
            rgba(9, 39, 70, 0.55)
        ),
        url("https://images.unsplash.com/photo-1576765608866-5b51046452d3?auto=format&fit=crop&w=1800&q=85")
        center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(16, 52, 90, 0.12),
        transparent
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding-top: 80px;
    padding-bottom: 80px;
}

.eyebrow,
.section-label {
    display: inline-block;
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero .eyebrow {
    color: #c5e5ff;
}

.hero h1 {
    max-width: 700px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.12;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero h1 span,
.welcome-text h2 span,
.section-heading h2 span,
.why-text h2 span,
.careers-content h2 span,
.contact-info h2 span {
    color: var(--accent-blue);
}

.hero h1 span {
    color: #a9d9ff;
}

.hero-content > p {
    max-width: 610px;
    color: #edf5fc;
    font-size: 17px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 15px 25px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

.hero .btn-primary {
    background: var(--white);
    color: var(--primary-blue);
}

.hero .btn-primary:hover {
    background: var(--light-blue);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.8);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.hero-note {
    margin-top: 30px;
    font-size: 13px;
    color: #edf5fc;
}

.hero-note span {
    color: #a9d9ff;
    font-weight: bold;
    margin-right: 8px;
}

/* WELCOME SECTION */

.welcome-grid,
.why-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.welcome-image,
.why-image {
    position: relative;
}

.welcome-image img {
    height: 470px;
    border-radius: 12px;
}

.image-badge {
    position: absolute;
    bottom: 25px;
    right: -20px;
    padding: 20px 25px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(16, 52, 90, 0.12);
}

.image-badge strong,
.image-badge span {
    display: block;
}

.image-badge strong {
    color: var(--primary-blue);
    font-size: 21px;
}

.image-badge span {
    color: var(--text-light);
    font-size: 13px;
}

.welcome-text h2,
.why-text h2,
.contact-info h2 {
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.25;
    margin-bottom: 23px;
}

.welcome-text p,
.why-text > p,
.contact-info > p {
    color: var(--text-light);
    margin-bottom: 18px;
    font-size: 15px;
}

.text-link {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: 700;
    margin-top: 12px;
}

.text-link:hover {
    color: var(--accent-blue);
}

/* SERVICES */

.services {
    background: #f5f9fd;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.25;
    margin-bottom: 18px;
}

.section-heading > p {
    color: var(--text-light);
    font-size: 15px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    padding: 35px 28px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(16, 52, 90, 0.1);
    border-color: #c6dff5;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 25px;
    background: var(--light-blue);
    color: var(--primary-blue);
    font-size: 32px;
}

.service-card h3 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 22px;
}

.service-card a {
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 700;
}

.service-card a:hover {
    color: var(--accent-blue);
}

/* WHY CHOOSE US */

.why-image img {
    height: 520px;
    border-radius: 12px;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 25px;
}

.benefit-check {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 50%;
    font-weight: bold;
}

.benefit h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.benefit p {
    font-size: 14px;
    color: var(--text-light);
}

/* HOW IT WORKS */

.process {
    background: var(--light-blue);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.process-step {
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
}

.step-number {
    display: inline-block;
    color: var(--accent-blue);
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 15px;
}

.process-step h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-light);
    font-size: 14px;
}

/* CAREERS */

.careers {
    background: var(--dark-blue);
    color: var(--white);
    text-align: center;
}

.careers-content {
    max-width: 750px;
}

.careers-content .section-label {
    color: #a9d9ff;
}

.careers-content h2 {
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.25;
    margin-bottom: 20px;
}

.careers-content h2 span {
    color: #a9d9ff;
}

.careers-content p {
    color: #e2edf7;
    margin-bottom: 30px;
}

.careers-content .btn-primary {
    background: var(--white);
    color: var(--primary-blue);
}

.careers-content .btn-primary:hover {
    background: var(--light-blue);
}

/* CONTACT */

.contact-grid {
    align-items: start;
}

.contact-detail {
    margin-top: 25px;
}

.contact-detail strong {
    color: var(--primary-blue);
}

.contact-detail p {
    color: var(--text-light);
    font-size: 14px;
}

.contact-form {
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(16, 52, 90, 0.06);
}

.contact-form h3 {
    font-size: 25px;
    margin-bottom: 5px;
}

.form-intro {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 18px 0 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d5e0eb;
    border-radius: 6px;
    outline: none;
    background: var(--white);
    color: var(--text-dark);
    font: inherit;
    font-size: 14px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(61, 134, 198, 0.12);
}

.contact-form textarea {
    resize: vertical;
}

.form-button {
    width: 100%;
    margin-top: 22px;
}

.form-notice {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 12px;
}

/* FOOTER */

.footer {
    background: #0c2743;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-top: 60px;
    padding-bottom: 50px;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    background: var(--white);
    color: var(--primary-blue);
}

.footer-brand > p {
    max-width: 320px;
    color: #c1d0df;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.footer-links a {
    color: #c1d0df;
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0;
}

.footer-bottom p {
    color: #c1d0df;
    text-align: center;
    font-size: 12px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 950px) {

    .navigation {
        gap: 16px;
    }

    .navigation a {
        font-size: 12px;
    }

    .welcome-grid,
    .why-grid,
    .contact-grid {
        gap: 35px;
    }

    .service-card {
        padding: 28px 20px;
    }
}

@media (max-width: 768px) {

    .section-padding {
        padding: 65px 0;
    }

    .nav-container {
        min-height: 75px;
    }

    .menu-toggle {
        display: block;
    }

    .navigation {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        padding: 25px 5%;
        background: var(--white);
        box-shadow: 0 10px 15px rgba(16, 52, 90, 0.08);
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .navigation.active {
        display: flex;
    }

    .navigation a {
        font-size: 15px;
    }

    .navigation .nav-button {
        text-align: center;
    }

    .hero {
        min-height: 570px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-content > p {
        font-size: 15px;
    }

    .welcome-grid,
    .why-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .welcome-image img,
    .why-image img {
        height: 350px;
    }

    .image-badge {
        right: 10px;
    }

    .service-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .contact-form {
        padding: 25px;
    }
}

@media (max-width: 420px) {

    .logo {
        font-size: 18px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-text small {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}

/* Service card photographs */
.service-image {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Adjust photographs on smaller screens */
@media (max-width: 768px) {
    .service-image {
        height: 220px;
    }
}

img.logo-image {
    display: block;
    width: 65px;
    height: 65px;
    max-width: 65px;
    max-height: 65px;
    object-fit: contain;
    flex-shrink: 0;
}
