/* =========================================
   FIGWT DIGNITY CARE
   MODERN INTRODUCTORY CARE WEBSITE
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #fafcfb;
    color: #263238;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    padding: 90px 7%;
}


/* =========================================
   NAVIGATION
========================================= */

header {
    background: #ffffff;
    border-bottom: 1px solid #e8eeee;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar {
    max-width: 1250px;
    margin: auto;

    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #203a43;
}

.logo span {
    color: #d28b5d;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: #4e5d61;
    font-size: 15px;
    font-weight: 600;

    transition: 0.3s;
}

.nav-links a:hover {
    color: #d28b5d;
}

.nav-button {
    background: #d28b5d;
    color: white;

    padding: 12px 22px;

    border-radius: 8px;

    font-weight: 700;

    transition: 0.3s;
}

.nav-button:hover {
    background: #b97148;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 680px;

    background:
        radial-gradient(
            circle at top right,
            #f3dfd0,
            transparent 35%
        ),
        #f5f8f6;

    display: flex;
    align-items: center;

    gap: 70px;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.welcome {
    color: #d28b5d;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 20px;
}

.hero h1 {
    color: #203a43;

    font-size: 62px;
    line-height: 1.08;

    letter-spacing: -2px;

    margin-bottom: 25px;
}

.hero h1 span {
    display: block;
    color: #d28b5d;
}

.hero-content > p:not(.welcome) {
    color: #667477;

    font-size: 18px;

    max-width: 600px;

    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.primary-button,
.secondary-button {
    display: inline-block;

    padding: 14px 25px;

    border-radius: 8px;

    font-weight: 700;

    transition: 0.3s;
}

.primary-button {
    background: #203a43;
    color: white;
}

.primary-button:hover {
    background: #152b32;
    transform: translateY(-2px);
}

.secondary-button {
    border: 1px solid #d28b5d;
    color: #b97148;
    background: white;
}

.secondary-button:hover {
    background: #d28b5d;
    color: white;
}


/* =========================================
   HERO IMAGE
========================================= */

.hero-image {
    flex: 1;
    position: relative;
}

.image-placeholder {
    min-height: 440px;

    border-radius: 80px 20px 80px 20px;

    background:
        linear-gradient(
            145deg,
            #d8e8e1,
            #b4cfc5
        );

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: #203a43;

    font-size: 28px;
    font-weight: 800;

    box-shadow:
        25px 25px 0 #f0d8c6;
}


/* =========================================
   SECTION HEADINGS
========================================= */

.section-heading {
    max-width: 700px;

    margin: 0 auto 55px;

    text-align: center;
}

.section-title {
    color: #d28b5d;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 12px;
}

.section-heading h2 {
    color: #203a43;

    font-size: 44px;
    line-height: 1.2;

    margin-bottom: 15px;
}

.section-heading p:last-child {
    color: #718083;
}


/* =========================================
   ABOUT
========================================= */

.about {
    max-width: 1250px;
    margin: auto;

    display: flex;
    align-items: center;

    gap: 80px;
}

.about-image,
.about-content {
    flex: 1;
}

.about-image .image-placeholder {
    min-height: 400px;

    border-radius: 20px 80px 20px 80px;

    box-shadow: -20px 20px 0 #dce9e3;
}

.about-content h2 {
    color: #203a43;

    font-size: 43px;
    line-height: 1.2;

    margin-bottom: 25px;
}

.about-content h2 span {
    color: #d28b5d;
}

.about-content p:not(.section-title) {
    color: #667477;

    margin-bottom: 20px;
}


/* =========================================
   SERVICES
========================================= */

.services {
    background: #203a43;
}

.services .section-heading h2 {
    color: white;
}

.services .section-heading p:last-child {
    color: #cbd6d8;
}

.service-container {
    max-width: 1200px;
    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.service-card {
    background: #ffffff;

    padding: 35px 30px;

    border-radius: 14px;

    border-bottom: 4px solid transparent;

    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);

    border-bottom-color: #d28b5d;
}

.service-icon {
    width: 55px;
    height: 55px;

    border-radius: 12px;

    background: #f3e0d2;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 27px;

    margin-bottom: 20px;
}

.service-card h3 {
    color: #203a43;

    font-size: 21px;

    margin-bottom: 10px;
}

.service-card p {
    color: #718083;

    font-size: 15px;
}


/* =========================================
   HOW IT WORKS
========================================= */

.how-it-works {
    background: #ffffff;
}

.steps {
    max-width: 1100px;
    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 30px;
}

.step {
    text-align: center;

    position: relative;

    padding: 25px;
}

.step-number {
    width: 65px;
    height: 65px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #f3e0d2;

    color: #b97148;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 23px;
    font-weight: 800;
}

.step h3 {
    color: #203a43;

    font-size: 18px;

    margin-bottom: 10px;
}

.step p {
    color: #718083;

    font-size: 14px;
}


/* =========================================
   CARER SECTION
========================================= */

.carers {
    background:
        linear-gradient(
            120deg,
            #dce9e3,
            #f5eee9
        );

    text-align: center;
}

.carer-content {
    max-width: 800px;

    margin: auto;
}

.carer-content h2 {
    color: #203a43;

    font-size: 45px;

    line-height: 1.2;

    margin-bottom: 20px;
}

.carer-content h2 span {
    color: #b97148;
}

.carer-content p:not(.section-title) {
    color: #5e6c6f;

    margin-bottom: 30px;
}


/* =========================================
   IMPORTANT INFORMATION
========================================= */

.information {
    background: #f8f5f2;
}

.information-box {
    max-width: 950px;

    margin: auto;

    background: white;

    padding: 45px;

    border-radius: 15px;

    box-shadow:
        0 10px 35px rgba(32, 58, 67, 0.08);
}

.information-box h2 {
    color: #203a43;

    margin-bottom: 18px;
}

.information-box p {
    color: #667477;

    margin-bottom: 15px;
}


/* =========================================
   CONTACT
========================================= */

.contact {
    background: #ffffff;
}

.contact-container {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 60px;
}

.contact-details {
    padding: 25px 0;
}

.contact-details h3 {
    color: #203a43;

    font-size: 30px;

    margin-bottom: 15px;
}

.contact-details p {
    color: #667477;

    margin-bottom: 18px;
}

.contact-form {
    background: #f5f8f6;

    padding: 35px;

    border-radius: 15px;

    display: flex;

    flex-direction: column;

    gap: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;

    padding: 15px 16px;

    border: 1px solid #dce3e1;

    border-radius: 7px;

    background: white;

    color: #333;

    font-family: inherit;

    font-size: 15px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;

    border-color: #d28b5d;

    box-shadow:
        0 0 0 3px rgba(210, 139, 93, 0.12);
}

.contact-form button {
    border: none;

    background: #d28b5d;

    color: white;

    padding: 15px;

    border-radius: 7px;

    font-size: 16px;

    font-weight: 800;

    cursor: pointer;

    transition: 0.3s;
}

.contact-form button:hover {
    background: #b97148;
}


/* =========================================
   FOOTER
========================================= */

footer {
    background: #182f37;

    color: white;

    padding: 60px 7% 25px;
}

.footer-content {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 60px;

    margin-bottom: 45px;
}

.footer-content h3 {
    font-size: 25px;

    margin-bottom: 12px;
}

.footer-content h4 {
    color: #f0c5a7;

    margin-bottom: 15px;
}

.footer-content p {
    color: #bdc9cb;

    margin-bottom: 8px;
}

.footer-content a {
    display: block;

    color: #bdc9cb;

    margin-bottom: 8px;

    transition: 0.3s;
}

.footer-content a:hover {
    color: #f0c5a7;
}

.copyright {
    max-width: 1200px;

    margin: auto;

    padding-top: 20px;

    border-top:
        1px solid rgba(255,255,255,0.15);

    text-align: center;

    color: #91a0a3;

    font-size: 14px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column;

        text-align: center;

        padding-top: 70px;
    }

    .hero-content {
        max-width: 750px;
    }

    .hero-content > p:not(.welcome) {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about {
        flex-direction: column;
    }

    .service-container {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .steps {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    section {
        padding: 65px 5%;
    }

    .navbar {
        padding: 0 5%;
    }

    .nav-button {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .secondary-button {
        margin-left: 0;
    }

    .image-placeholder {
        min-height: 300px;

        box-shadow:
            12px 12px 0 #f0d8c6;
    }

    .section-heading h2,
    .about-content h2,
    .carer-content h2 {
        font-size: 34px;
    }

    .service-container,
    .steps {
        grid-template-columns: 1fr;
    }

    .information-box {
        padding: 30px 25px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}