/* ===================================
   AFCAF HOMEPAGE
=================================== */

/* Hero section */
.home-hero {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 560px;
    padding: 80px clamp(30px, 7vw, 130px);

    background: linear-gradient(
        115deg,
        var(--color-charcoal) 0%,
        var(--color-dark-soft) 68%,
        #34403f 100%
    );

    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(720px, 65%);
}

.hero-kicker {
    margin: 0 0 18px;

    color: #94b4b0;

    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 700px;
    margin: 0;

    color: var(--color-cream-light);

    font-size: clamp(40px, 5vw, 68px);
    font-weight: 600;
    line-height: 1.12;
}

.hero-description {
    max-width: 650px;
    margin: 28px 0 0;

    color: var(--color-cream);

    font-size: 20px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 36px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 11px 22px;

    border: 1px solid transparent;
    border-radius: 4px;

    font-size: 16px;
    font-weight: 700;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
}

.hero-button-primary {
    background-color: var(--color-teal);
    color: var(--color-cream-light);
}

.hero-button-primary:hover {
    background-color: var(--color-teal-dark);
}

.hero-button-secondary {
    background-color: transparent;
    color: var(--color-cream-light);

    border-color: var(--color-cream);
}

.hero-button-secondary:hover {
    background-color: var(--color-cream);
    color: var(--color-black);
}

/* Decorative background shapes */
.hero-decoration {
    position: absolute;
    inset: 0;

    pointer-events: none;
}

.shape {
    position: absolute;

    display: block;

    border: 1px solid rgba(232, 223, 201, 0.22);
    border-radius: 50%;
}

.shape-large {
    top: 50%;
    right: -130px;

    width: 520px;
    height: 520px;

    transform: translateY(-50%);
}

.shape-small {
    top: 50%;
    right: 50px;

    width: 280px;
    height: 280px;

    background-color: rgba(65, 102, 99, 0.2);

    transform: translateY(-50%);
}

.shape-line {
    position: absolute;
    top: 50%;
    right: 0;

    width: 38%;
    height: 2px;

    background-color: rgba(232, 223, 201, 0.2);

    transform: rotate(-35deg);
}

/* Tablet */
@media (max-width: 900px) {
    .home-hero {
        min-height: 520px;
        padding: 65px 35px;
    }

    .hero-content {
        width: 78%;
    }

    .shape-large {
        right: -260px;
    }

    .shape-small {
        right: -80px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .home-hero {
        min-height: 520px;
        padding: 55px 22px;
    }

    .hero-content {
        width: 100%;
    }

    .hero-kicker {
        font-size: 12px;
        letter-spacing: 1.4px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-description {
        font-size: 17px;
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-button {
        width: 100%;
    }

    .shape-large {
        right: -380px;
    }

    .shape-small {
        right: -190px;
    }
}
/* ===================================
   FEATURED SERVICES
=================================== */

.featured-services {
    padding: 85px clamp(25px, 7vw, 130px);

    background-color: var(--color-teal-pale);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 50px;

    text-align: center;
}

.section-kicker {
    margin: 0 0 12px;

    color: var(--color-teal-dark);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;

    color: var(--color-black);

    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.2;
}

.section-introduction {
    margin: 20px auto 0;

    color: #3e4140;

    font-size: 18px;
    line-height: 1.8;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    max-width: 1250px;
    margin: 0 auto;

    border: 1px solid var(--color-border);
}

.featured-card {
    position: relative;

    min-height: 330px;
    padding: 42px;

    border: 1px solid var(--color-border);

    transition:
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.featured-card:hover {
    z-index: 2;

    transform: translateY(-4px);

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-light {
    background-color: var(--color-cream-light);
    color: var(--color-black);
}

.card-dark {
    background-color: var(--color-dark-soft);
    color: var(--color-cream-light);
}

.featured-card h3 {
    margin: 0;

    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.25;
}

.featured-card p {
    margin: 20px 0 30px;

    font-size: 17px;
    line-height: 1.75;
}

.featured-card a {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--color-teal-dark);

    font-weight: 700;
}

.card-dark a {
    color: #a8c6c2;
}

.featured-card a span {
    transition: transform 0.3s ease;
}

.featured-card a:hover span {
    transform: translateX(5px);
}

/* Featured services on mobile */
@media (max-width: 750px) {
    .featured-services {
        padding: 65px 20px;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-introduction {
        font-size: 16px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .featured-card {
        min-height: auto;
        padding: 32px 26px;
    }

    /*
       Maintain alternating colours after the cards
       become a single vertical column.
    */
    .featured-card:nth-child(odd) {
        background-color: var(--color-cream-light);
        color: var(--color-black);
    }

    .featured-card:nth-child(even) {
        background-color: var(--color-dark-soft);
        color: var(--color-cream-light);
    }

    .featured-card:nth-child(odd) a {
        color: var(--color-teal-dark);
    }

    .featured-card:nth-child(even) a {
        color: #a8c6c2;
    }
}
/* ===================================
   PERSIAN HOMEPAGE ADJUSTMENTS
=================================== */

html[dir="rtl"] .home-hero {
    text-align: right;
}

html[dir="rtl"] .hero-kicker,
html[dir="rtl"] .section-kicker {
    letter-spacing: 0;
    text-transform: none;
}

html[dir="rtl"] .hero-content h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.45;
}

html[dir="rtl"] .hero-description {
    line-height: 2;
}

/* Move decoration away from Persian text */
html[dir="rtl"] .shape-large {
    right: auto;
    left: -130px;
}

html[dir="rtl"] .shape-small {
    right: auto;
    left: 50px;
}

html[dir="rtl"] .shape-line {
    right: auto;
    left: 0;

    transform: rotate(35deg);
}

html[dir="rtl"] .featured-card h3 {
    line-height: 1.6;
}

html[dir="rtl"] .featured-card p {
    line-height: 2;
}

html[dir="rtl"] .featured-card a:hover span {
    transform: translateX(-5px);
}

/* Persian tablet decoration */
@media (max-width: 900px) {
    html[dir="rtl"] .shape-large {
        right: auto;
        left: -260px;
    }

    html[dir="rtl"] .shape-small {
        right: auto;
        left: -80px;
    }
}

/* Persian mobile adjustments */
@media (max-width: 600px) {
    html[dir="rtl"] .hero-content h1 {
        font-size: 34px;
        line-height: 1.55;
    }

    html[dir="rtl"] .hero-description {
        font-size: 17px;
        line-height: 1.9;
    }

    html[dir="rtl"] .shape-large {
        right: auto;
        left: -380px;
    }

    html[dir="rtl"] .shape-small {
        right: auto;
        left: -190px;
    }
}
