/* ==================================================
   GLOBAL
================================================== */

body {
    font-size: 16px;
    line-height: 1.7;
    color: #1f2933;
}

p {
    max-width: 65ch;
    margin-inline: auto;
}


/* ==================================================
   SECTIONS
================================================== */

section {
    padding: 5rem 0;
    position: relative;
}

section .container {
    max-width: 1140px;
}

/* Hero */
section:first-of-type {
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
}

/* Vision */
section.bg-dark {
    background: linear-gradient(to right, #0f172a, #020617);
}

/* Light Sections */
section.bg-light {
    background-color: #f8fafc;
}

/* Default */
section:not(.bg-dark):not(.bg-light):not(:first-of-type) {
    background-color: #ffffff;
}


/* ==================================================
   HERO
================================================== */

.about-hero {
    background:
        linear-gradient(rgba(15,23,42,0.85), rgba(15,23,42,0.85)),
        url("/static/images/about-bg.jpg");

    background-size: cover;
    background-position: center;

    color: var(--color-primary);
    text-align: center;

    padding: 9rem 1rem;
}

.about-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

.about-hero p {
    max-width: 700px;
    margin: 1.5rem auto;
    font-size: 1.1rem;
}


/* ==================================================
   SECTION TITLES
================================================== */

section h2 {
    font-weight: 700;
    letter-spacing: -0.3px;
}

section h2::after {
    content: "";

    display: block;

    width: 60px;
    height: 4px;

    background: var(--color-primary-light);

    margin: 1rem auto 0;

    border-radius: 2px;
}


/* ==================================================
   DIVIDERS
================================================== */

section::after {
    content: "";

    display: block;

    width: 100%;
    height: 40px;

    background: linear-gradient(
        to right,
        transparent,
        rgba(0,0,0,0.04),
        transparent
    );

    margin-top: 4rem;
}

section:last-of-type::after {
    display: none;
}


/* ==================================================
   GOAL CARDS
================================================== */

.goal-card {
    background-color: #ffffff;

    border-radius: 14px;
    border: 1px solid #e5e7eb;

    padding: 2rem;
    height: 100%;

    text-align: center;

    box-shadow: 0 4px 15px rgba(0,0,0,0.05);

    transition: all 0.3s ease;

    position: relative;
}

/* Hover */
.goal-card:hover {
    transform: translateY(-6px);

    border-color: var(--color-primary-light);

    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}


/* Icons */

.goal-card img,
.goal-card svg,
.goal-card i,
.goal-card .goal-icon__image {
    width: 64px;
    height: 64px;

    object-fit: contain;

    margin-bottom: 1rem;

    transition: transform 0.3s ease;
}

.goal-card .goal-icon__image {
    background-color: currentColor;
    color: inherit;
    display: inline-block;
    mask: var(--goal-icon-url) center / contain no-repeat;
    -webkit-mask: var(--goal-icon-url) center / contain no-repeat;
}

.goal-card:hover img,
.goal-card:hover .goal-icon__image {
    transform: scale(1.1);
}


/* Titles */

.goal-card h3,
.goal-card h4 {
    font-size: 1.15rem;
    font-weight: 600;

    color: #1f2933;

    margin-bottom: 0.8rem;
}


/* Text */

.goal-card p {
    font-size: 0.95rem;
    line-height: 1.6;

    color: #4b5563;
}


/* Accessibility */

.goal-card:focus-within {
    outline: none;

    box-shadow: 0 0 0 3px rgba(37,99,235,0.3);
}


/* RTL */

html[dir="rtl"] .goal-card {
    text-align: center;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (min-width: 768px) {

    .goal-card img {
        width: 72px;
        height: 72px;
    }

}

@media (max-width: 768px) {

    section {
        padding: 3rem 0;
    }

}
