/*
Theme Name: First Choice Theme
Theme URI: https://firstchoicenursinghomecare.com
Author: MAMPE Magloire
Description: Custom WordPress Theme for First Choice Nursing Home Care
Version: 1.0
Text Domain: first-choice-theme
*/


:root {
    --accent: #1f7a6b;
    --accent-dark: #15594a;
    --muted: #6b7280;
    --bg: #f7faf9;
    --text: #0f172a;
}


/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f7faf9 100%
    );
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    line-height: 1.5;
}


/* =========================
   CONTAINER
========================= */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}


/* =========================
   HEADER
========================= */

.site-header {
    background: rgba(255, 255, 255, 0.96);
    position: sticky;
    top: 32px;
    z-index: 40;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


/* Brand */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
}

.brand-small {
    font-size: 13px;
    color: var(--muted);
}

.brand-name {
    font-size: 15px;
}


/* Navigation */

.main-navigation ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 500;
}

.main-navigation a:hover {
    background: rgba(31, 122, 107, 0.08);
    color: var(--accent-dark);
}


/* CTA */

.cta {
    background: var(--accent);
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.cta:hover {
    background: var(--accent-dark);
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;
    isolation: isolate;

    background:
        linear-gradient(
            rgba(255, 255, 255, 0.88),
            rgba(247, 250, 249, 0.92)
        );

    padding: 70px 0 60px;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.eyebrow {
    color: var(--accent);
    font-weight: 700;
    font-size: 16px;
}

.hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    color: #1a1261;
}

.hero .lead {
    max-width: 800px;
    margin: 0;
    color: #48042c;
    font-size: 19px;
    line-height: 1.7;
}


/* =========================
   BUTTONS
========================= */

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 5px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--accent);
    font-weight: 700;
}

.btn:hover {
    background: var(--accent-dark);
}

.btn-outline {
    background: white;
    color: var(--accent-dark);
}

.btn-outline:hover {
    color: white;
}


/* =========================
   HERO CARDS
========================= */

.cards {
    width: 100%;
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.card {
    background: rgb(4, 75, 46);
    padding: 22px;
    border-radius: 12px;
    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.08);
    color: white;
    text-align: left;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}


/* =========================
   FOOTER
========================= */

footer {
    background: #071024;
    color: #e6eef0;
    padding: 28px 24px;
    margin-top: 28px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .site-header {
        top: 32px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    .main-navigation {
        order: 3;
        width: 100%;
    }

    .main-navigation ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 50px 0;
    }
}


@media (max-width: 600px) {

    .container {
        padding: 16px;
    }

    .brand-name {
        font-size: 13px;
    }

    .main-navigation a {
        padding: 6px 7px;
        font-size: 14px;
    }

    .cta {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero .lead {
        font-size: 16px;
    }
}




/* =========================
   SECTIONS
========================= */

.about {
    padding-top: 80px;
    padding-bottom: 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    align-items: start;
}

.section-label {
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.about h2,
.services h2,
.contact h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 38px;
    line-height: 1.2;
    color: #1a1261;
}

.about p {
    max-width: 700px;
    color: #4b5563;
    font-size: 17px;
}

.about-list {
    padding-left: 20px;
    color: #374151;
}

.about-list li {
    margin-bottom: 12px;
}


/* =========================
   OFFICE CARD
========================= */

.office-card {
    background: #f0f8f5;
    border: 1px solid rgba(31, 122, 107, 0.15);
    border-radius: 16px;
    padding: 28px;
}

.office-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    font-weight: 800;
    margin-bottom: 18px;
}

.office-card h3 {
    margin-top: 0;
}

.office-card p {
    font-size: 15px;
    margin: 14px 0;
}

.office-card a,
.visit-card a {
    color: var(--accent-dark);
    font-weight: 600;
}


/* =========================
   SERVICES
========================= */

.services {
    background: #f7faf9;
    padding-top: 80px;
    padding-bottom: 80px;
}

.services h2 {
    margin-bottom: 35px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    background: white;
    padding: 28px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.service-number {
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 21px;
}

.service-card p {
    margin: 0;
    color: #6b7280;
}


/* =========================
   CONTACT
========================= */

.contact {
    padding-top: 80px;
    padding-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 35px;
    align-items: start;
}

.contact-intro {
    color: #4b5563;
    font-size: 17px;
    max-width: 700px;
}


/* Forms */

form {
    background: white;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

form label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    margin-top: 16px;
    font-weight: 700;
}

form label:first-child {
    margin-top: 0;
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #dfe4ea;
    font-size: 15px;
    font-family: inherit;
}

form textarea {
    min-height: 140px;
    resize: vertical;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-button {
    margin-top: 18px;
}


/* =========================
   VISIT CARD
========================= */

.visit-card {
    background: #064b2e;
    color: white;
    padding: 30px;
    border-radius: 16px;
}

.visit-card h3 {
    margin-top: 0;
    font-size: 24px;
}

.visit-card p {
    margin: 20px 0;
    line-height: 1.6;
}

.visit-card a {
    color: white;
}


/* =========================
   RESPONSIVE SECTIONS
========================= */

@media (max-width: 900px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .about h2,
    .services h2,
    .contact h2 {
        font-size: 32px;
    }
}


@media (max-width: 600px) {

    .about,
    .services,
    .contact {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .service-card,
    .office-card,
    .visit-card {
        padding: 22px;
    }
}




/* =========================
   SINGLE JOB
========================= */

.job-single {
    padding: 70px 0;
    background: #f7faf9;
    min-height: 600px;
}

.job-detail {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    padding: 45px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.job-detail h1 {
    color: #1a1261;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.15;
    margin: 10px 0 25px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.job-meta span {
    background: #eef7f4;
    color: #15594a;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.job-date {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 35px;
}

.job-description {
    color: #374151;
    font-size: 17px;
    line-height: 1.8;
}

.job-description h2,
.job-description h3 {
    color: #1a1261;
}

.job-apply {
    margin-top: 45px;
    padding: 30px;
    background: #f0f8f5;
    border-radius: 14px;
    border-left: 5px solid var(--accent);
}

.job-apply h2 {
    margin-top: 0;
    color: #15594a;
}

.job-apply p {
    color: #4b5563;
}

@media (max-width: 600px) {

    .job-detail {
        padding: 25px;
    }

    .job-detail h1 {
        font-size: 34px;
    }

    .job-single {
        padding: 40px 0;
    }
}






/* CAREERS / JOBS */

.careers {
    background: #ffffff;
    padding-top: 80px;
    padding-bottom: 80px;
}

.careers h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 38px;
    line-height: 1.2;
    color: #1a1261;
}

.careers-intro {
    max-width: 700px;
    color: #4b5563;
    font-size: 17px;
    margin-bottom: 35px;
}

.jobs-list {
    display: grid;
    gap: 20px;
}

.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background: #f7faf9;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    padding: 28px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, .08);
}

.job-card-label {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 8px;
}

.job-card h3 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #1a1261;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.job-card-meta span {
    background: #eef7f4;
    color: #15594a;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
}

.job-card-excerpt {
    color: #6b7280;
    line-height: 1.6;
}

.job-card-excerpt p {
    margin: 0;
}

.job-card-action {
    flex-shrink: 0;
}

.no-jobs {
    background: #f7faf9;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    padding: 35px;
    text-align: center;
}

.no-jobs h3 {
    margin-top: 0;
    color: #1a1261;
}

.no-jobs p {
    color: #6b7280;
}

@media (max-width: 700px) {

    .careers {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .careers h2 {
        font-size: 32px;
    }

    .job-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-card-action {
        width: 100%;
    }

    .job-card-action .btn {
        width: 100%;
        text-align: center;
    }
}


/* Homepage image carousel */

/* Correctif prioritaire : superposer les images du carrousel */
.home-carousel-section .home-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 7;
    overflow: hidden;
}

.home-carousel-section .carousel-track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-carousel-section .carousel-slide {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.home-carousel-section .carousel-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-carousel-section .carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 600px) {
    .home-carousel-section .home-carousel {
        aspect-ratio: 4 / 3;
    }
}


/* Centrer le carrousel et son contenu */
.home-carousel-section {
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
    display: flex;
    justify-content: center;
}

.home-carousel-section .home-carousel {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.home-carousel-section .carousel-track,
.home-carousel-section .carousel-slide {
    width: 100%;
    height: 100%;
}

.home-carousel-section .carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 600px) {
    .home-carousel-section {
        padding-left: 12px;
        padding-right: 12px;
    }
}


/* =========================
   SERVICES - IMAGE CARDS
========================= */

.services .services-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
    margin-top: 32px;
}

.services .service-card {
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
}

.services .service-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.services .service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.services .service-content {
    padding: 22px;
}

.services .service-content h3 {
    margin: 10px 0 12px;
    font-size: 20px;
    line-height: 1.4;
}

.services .service-content p {
    margin: 0;
    line-height: 1.7;
}

.services .service-number {
    font-size: 14px;
    font-weight: 700;
    color: #16835b;
}

.services .service-card-text {
    padding: 0;
}

/* Tablettes */
@media (max-width: 900px) {
    .services .services-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .services .service-image {
        height: 190px;
    }
}

/* Téléphones */
@media (max-width: 600px) {
    .services .services-list {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .services .service-image {
        height: 210px;
    }

    .services .service-content {
        padding: 18px;
    }
}
