/*
Theme Name: Aldobash
Theme URI: https://aldobash.com
Author: Basmah Media | Mustafa Alsamer
Description: A classic WordPress theme for Aldobash General Trading.
Version: 1.0.0
Text Domain: aldobash
*/

/* css reset */
*,
::after,
::before,
::backdrop,
::file-selector-button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0 solid;
}

html,
body {
    height: 100%;
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
    background-color: #d6e6e8;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-size: 26px;
    color: #333;
    line-height: 1.6;
    font-optical-sizing: auto;
}
    @keyframes aldobash-rise-in {
        from {
            opacity: 0.2;
            transform: translateY(24px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    @keyframes aldobash-fade-in {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    header,
    #hero,
    .section,
    footer {
        animation: aldobash-rise-in 0.7s ease-out both;
    }
    header {
        animation-delay: 0.05s;
    }
    #hero {
        animation-delay: 0.15s;
    }
    #services {
        animation-delay: 0.25s;
    }
    #crew {
        animation-delay: 0.35s;
    }
    #policy {
        animation-delay: 0.45s;
    }
    #contact {
        animation-delay: 0.55s;
    }
    footer {
        animation-delay: 0.65s;
    }
    .services-items .item {
        animation: aldobash-fade-in 0.6s ease-out both;
    }
    .services-items .item:nth-child(2) {
        animation-delay: 0.12s;
    }
    .services-items .item:nth-child(3) {
        animation-delay: 0.24s;
    }

a {
    text-decoration: none;
    color: inherit
}

img {
    max-width: 100%;
    display: block;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}


header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 20px 40px;
    align-items: center;
}

header img {
    height: 5em;
    width: auto;
    background-size: contain;
    background-repeat: no-repeat;
    padding: 10px 0;
}

.nav-links {
    display: flex;
    gap: 4rem;
    align-items: center;
    font-weight: 600;
}

header .btn {
    padding: 10px 40px;
    margin: 20px 0;
    background-color: #ce8246;
    color: white;
    font-weight: 700;
    border-radius: 10rem;
    transition: background-color 0.3s ease;
    /* line-height: 1.4; */
}

#hero {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#hero .hero-image {
    position: relative;
}

.hero-content {
    position: absolute;
    right: 0;
    bottom: -10.6em;
    color: #fff;
    width: 440px;
    height: 400px;
    font-size: 1.25rem;
    padding: 10px 40px;

    background-image: url(assets/svg/tooltip.svg);
    background-repeat: no-repeat;
}

.hero-nav {
    display: flex;
    gap: 6rem;
    align-items: center;
    width: 100%;
    padding: 20px;
    justify-content: left;
}

.hero-nav p {
    font-weight: 800;
    color: #ce8246;
    margin-left: 5rem;
    font-size: 1.4em;
}

.social-icons {
    display: flex;
    gap: 6rem;
}

.social-icons a {
    transition: transform 0.3s ease;
}

.social-icons img {
    height: 2em;
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
}

.section-title {
    width: 100%;
    display: flex;
    text-align: left;
    margin: 20px 0;

}

.section-title img {
    height: 2em;
    margin-right: 1rem;
}

.services-items {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
}

.item {
    position: relative;
}

.item img {
    height: 240px;
}

.item .item-overlay {
    position: absolute;
    top: 0;
    right: -10px;
    width: 4em;
    height: 3em;
    padding: 2px 30px;
    font-weight: 700;
    color: #fff;
    background-image: url(assets/svg/cross.svg);
    background-repeat: no-repeat;
    text-align: left;
}

.item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0;
}

.crew-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    font-weight: 700;
    color: #ce8246;
    transition: opacity 0.3s ease;
}

.crew-link:hover {
    opacity: 0.8;
}

.crew-link img {
    height: 1.5em;
}

.crew-link img:first-child {
    transform: scaleX(-1);
}

#policy .images {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    position: relative;
    width: 100%;
}

#policy .images img {
    height: 440px;
    object-fit: cover;
    border-radius: 70px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


#policy .images img:nth-child(2) {
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    height: 500px;
    box-shadow: none;
    z-index: 3;
}

#policy .images img:last-child {
    z-index: 1;
}

#contact {
    background-color: #ce8246;
    border-radius: 60px;
    color: #fff;
    margin-top: 1em;
    padding: 1em 3em;
}

#contact .section-title {
    padding: 0;
    margin: 0;
    margin-bottom: 1rem;
    justify-content: center;
    font-weight: 800;
}

#contact .section-content {
    display: flex;
    justify-content: space-between;
}

#contact .section-content a {
    display: inline-block;
    padding: .5rem;
    background-color: #ce8246;
    color: white;
    font-weight: 700;
    border-radius: 10rem;
    transition: background-color 0.3s ease;
}

#contact img {
    height: 1em;
    transform: scaleX(-1);
}

#contact .section-content a:hover {
    background-color: #b56f35;
}

.flex {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 2em;
}

.section {
    font-size: 1.2rem;
    margin: 1em 0;
}

.contact-item {
    display: flex;
    gap: 1em;
    font-size: 1rem;
    align-items: center;
}

.contact-item .icon {
    height: 60px;
    width: 60px;
    border-radius: 100%;
    border: 2px solid #fff;
    align-items: center;
    display: flex;
    justify-content: center;
}

.contact-item .info {
    display: flex;
    flex-direction: column;
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 500px;
    border: 2px solid #fff;
    padding: 1em;
    border-radius: 2em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
    border: 2px solid #fff;
    border-radius: 30px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    color: #333;
    font-weight: 500;
}

*::placeholder {
    color: #999;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    align-self: flex-start;
    padding: 12px 24px;
    /* color: white; */
    width: 100%;
    background-color: #fff;
    font-weight: 700;
    border-radius: 10rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.contact-form .btn:hover {
    background-color: #f5f5f5;
}

.contact-form label {
    font-weight: 600;
    font-size: .8em;
    margin-bottom: -0.3rem;
}

footer {
    font-size: 1rem;
    text-align: center;
    padding: 2.5em 0;
    color: var(--aldobash-muted);
}
footer a {
    font-size: .8rem;
}

.services-items .item > a {
    display: block;
}

.services-items .item > a:hover h3,
#policy .services-items .item > a:hover h3 {
    color: #ad6530;
}
.services-items .item > a:hover,
.services-items .item:not(:has(> a)):hover {
    transform: translateY(-6px);
}
.services-items .item > a,
.services-items .item:not(:has(> a)) {
    transition: transform 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.single-content {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 5rem) 0;
}

.single-header {
    margin-bottom: 2rem;
}

.single-type {
    margin-bottom: 0.5rem;
    color: #ad6530;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.single-header h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
}

.single-image img {
    width: 100%;
    max-height: 34rem;
    object-fit: cover;
    border-radius: 2rem;
}

.single-body {
    max-width: 48rem;
    margin-top: 2rem;
    color: #53656b;
    font-size: 1.1rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    body {
        contain: layout none;
    }
    #contact .section-content {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-form {
        max-width: 100%;
    }

    #contact {
        padding: 2em 1rem;
    }

    #contact .contact-info {
        margin: 1em auto 0 auto;
    }

    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links {
        gap: 2rem;
    }

    .services-items {
        flex-direction: column;
    }

    .hero-content {
        position: relative;
        right: auto;
        bottom: auto;
        margin: 0 auto;
        width: 95%;
        height: 250px;
        margin-top: -2rem;
        background-size: calc(100% + 8em);
        padding: 1.5rem;
    }

    .login {
        display: none;
    }

    .hero-nav p {
        margin: 0;
        font-size: 1.2em;
    }
    .hero-nav {
        gap: 1em;
    }

    .social-icons {
        gap: 1rem;
    }
    .social-icons a {
        width: 2rem;
    }

    #policy {
        width: 100%;
        padding: 0;
    }
    #policy .images {
        height: 300px;
        width: 100%;
        contain: layout;
    }
    
    #policy .images img {
        overscroll-behavior: contain;
        height: 260px;
        border-radius: 40px;
    }


    #policy .images img:nth-child(2) {
        left: 50%;
        transform: translateX(-50%);
        height: 340px;
    }
}

/* Policy section */
#policy .images {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    min-height: 31rem;
    margin: 2rem 0 3.5rem;
    isolation: isolate;
}

#policy .images img,
#policy .images img:nth-child(2) {
    max-width: 80%;
    height: clamp(19rem, 32vw, 27rem);
    object-fit: cover;
    box-shadow: 0 1rem 2rem rgba(38, 50, 56, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#policy .images img:nth-child(2) {
    height: clamp(23rem, 38vw, 32rem);
    z-index: 2;
    box-shadow: 0 1.25rem 2.5rem rgba(38, 50, 56, 0.22);
}

#policy .images img:hover {
    transform: translateY(-0.4rem);
    box-shadow: 0 1.25rem 2.5rem rgba(38, 50, 56, 0.22);
}


#policy .services-items {
    align-items: stretch;
}

#policy .services-items .item {
    min-height: 0;
    padding: 0 clamp(0.25rem, 1.5vw, 1rem);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#policy .services-items .item h3 {
    margin-top: 0;
    color: var(--aldobash-orange-dark, #ad6530);
    text-align: center;
}

#policy .services-items .item p {
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    #policy .images {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
        min-height: 17rem;
        height: 17rem;
        margin-bottom: 2.5rem;
    }

    #policy .images img,
    #policy .images img:nth-child(2) {
        height: 14rem;
        border-radius: 1.25rem;
    }

    #policy .images img:nth-child(2) {
        height: 17rem;
    }

    #policy .services-items .item {
        min-height: 0;
    }
}

/* Layout refinements */
:root {
    --aldobash-ink: #263238;
    --aldobash-muted: #53656b;
    --aldobash-orange: #ce8246;
    --aldobash-orange-dark: #ad6530;
    --aldobash-radius: 1.5rem;
}

html {
    overflow-x: hidden;
}

body {
    color: var(--aldobash-ink);
    overflow-x: hidden;
}

.wrapper {
    width: min(100%, 80rem);
    padding-inline: clamp(1rem, 3vw, 2.5rem);
}

header {
    gap: 1.5rem;
    padding: 1.25rem 0;
}

header > a:first-child,
header .custom-logo-link {
    flex: 0 0 auto;
}


.nav-links,
.nav-links ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 4vw, 4rem);
}

.nav-links ul {
    list-style: none;
    padding: 0;
}

.nav-links a:hover {
    color: var(--aldobash-orange-dark);
}

header .btn:hover {
    background-color: var(--aldobash-orange-dark);
}

#hero .hero-image > img {
    width: 100%;
    height: auto;
}

.language-switcher {
    flex: 0 0 auto;
    padding: 0.5em 0.8em;
    border: 1px solid rgba(38, 50, 56, 0.16);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.48);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    /* box-shadow: 0 0.25rem 0.75rem rgba(38, 50, 56, 0.08); */
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.language-switcher li {
    margin: 0;
    list-style: none;
}

.language-switcher .wpml-ls-legacy-list-horizontal {
    padding: 0;
}

.language-switcher .wpml-ls-item a {
    margin: 0;
}

.language-switcher a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    color: var(--aldobash-muted);
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.language-switcher a:hover {
    color: var(--aldobash-orange-dark);
    background-color: rgba(206, 130, 70, 0.1);
}

.language-switcher a:focus-visible {
    outline: 2px solid var(--aldobash-orange);
    outline-offset: 2px;
}

.language-switcher .current-lang a,
.language-switcher .wpml-ls-current-language > a,
.language-switcher a[aria-current="page"] {
    color: #fff;
    background-color: var(--aldobash-orange);
    box-shadow: 0 0.2rem 0.45rem rgba(173, 101, 48, 0.25);
}

.language-switcher .current-lang a:hover,
.language-switcher .wpml-ls-current-language > a:hover,
.language-switcher a[aria-current="page"]:hover {
    color: #fff;
    background-color: var(--aldobash-orange-dark);
}

@media (max-width: 768px) {
    .language-switcher {
        order: 3;
        font-size: 0.72rem;
    }

    .language-switcher a {
        padding: 0.5rem 0.65rem;
    }
}

/* .hero-content {
    right: clamp(1rem, 3vw, 1.5rem);
    bottom: clamp(-9.45rem, -10vw, -5rem);
    width: min(28rem, 42%);
    height: clamp(18rem, 28vw, 25rem);
    padding: clamp(1.25rem, 3vw, 2.5rem);
    background-size: 100% 100%;
} */

.hero-content h1 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin: 10px 0;
    line-height: 1.15;
}

.hero-content p {
    /* font-size: clamp(0.95rem, 1.5vw, 1.25rem); */
    line-height: 1.45;
}

.hero-nav {
    gap: clamp(1.5rem, 7vw, 6rem);
    padding: 1.25rem 0;
}

.social-icons {
    gap: clamp(1.25rem, 5vw, 4rem);
}

.section {
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    margin: 0;
}

.section-title {
    margin: 0 0 clamp(1.25rem, 3vw, 2rem);
}

.section-title h2 {
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    line-height: 1.15;
}

.services-items {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(1rem, 3vw, 2rem);
}

.services-items .item {
    min-width: 0;
}

.item img {
    width: 100%;
    height: clamp(12rem, 22vw, 15rem);
    object-fit: cover;
    border-radius: 1rem;
}

.item h3 {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.25;
    margin: 0.75rem 0 0.35rem;
}

.item p {
    color: var(--aldobash-muted);
    font-size: 1rem;
    line-height: 1.5;
}

#crew .section-content {
    width: 100%;
}

#crew .section-content > img {
    width: 100%;
    height: auto;
}

#policy .images {
    min-height: clamp(18rem, 35vw, 32rem);
    margin: clamp(1rem, 3vw, 2rem) 0;
}

/* #policy .images img {
    width: 30%;
    height: clamp(16rem, 30vw, 27.5rem);
    object-fit: cover;
    border-radius: clamp(1.5rem, 5vw, 4.375rem);
} */

/* #policy .images img:nth-child(2) {
    width: 36%;
    height: clamp(20rem, 39vw, 37.5rem);
} */

#contact {
    border-radius: var(--aldobash-radius);
    padding: clamp(2rem, 5vw, 4rem);
}

#contact .section-content {
    gap: clamp(2rem, 5vw, 5rem);
}

.contact-info,
.contact-form {
    min-width: 0;
}

.contact-form {
    margin-top: 1.5rem;
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: var(--aldobash-radius);
}

.contact-form input,
.contact-form textarea {
    border-radius: 0.75rem;
}


@media (max-width: 900px) and (min-width: 769px) {
    body {
        font-size: 22px;
    }

    /* .hero-content {
        bottom: -6rem;
    } */

    .contact-item {
        gap: 0.6rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }

    .language-switcher {
        flex-direction: row;
    }

    .nav-links,
    .nav-links ul {
        width: 100%;
        gap: 1.25rem;
        flex-wrap: wrap;
    }

    .hero-content {
        width: 100%;
        min-height: 0;
        height: 15rem;
        /* margin-top: -1rem; */
        padding: 1.5rem;
    }

    .hero-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .services-items {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-items .item {
        width: 100%;
    }

    .item img {
        height: auto;
        max-height: 18rem;
    }

    #policy .images {
        min-height: 18rem;
        height: 18rem;
    }

    #policy .images img {
        height: 15rem;
    }

    #policy .images img:nth-child(2) {
        height: 18rem;
    }

    #contact .section-content {
        width: 100%;
    }
}

/* Final policy collage layout: side images stay in flow, center image layers above. */
#policy .images {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    position: relative;
    width: 100%;
    height: clamp(22rem, 42vw, 36rem);
    min-height: 0;
    margin: clamp(1.5rem, 4vw, 3rem) 0;
    overflow: visible;
}

#policy .images img,
#policy .images img:nth-child(2) {
    position: relative;
    inset: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    height: clamp(18rem, 34vw, 29rem);
    object-fit: cover;
    border: 0;
    border-radius: clamp(1.75rem, 5vw, 4rem);
    box-shadow: 0 0.75rem 1.5rem rgba(38, 50, 56, 0.14);
}

#policy .images img:first-child {
    grid-column: 1;
    z-index: 1;
}

#policy .images img:nth-child(2) {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 55%;
    height: clamp(22rem, 42vw, 36rem);
    transform: translate(-50%, -50%);
    box-shadow: 0 1rem 2rem rgba(38, 50, 56, 0.2);
}

#policy .images img:last-child {
    grid-column: 3;
    z-index: 1;
}

#policy .images img:hover {
    transform: translateY(-0.3rem);
}

#policy .images img:nth-child(2):hover {
    transform: translate(-50%, calc(-50% - 0.3rem));
}

@media (max-width: 768px) {
    #policy .images {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
        height: 18rem;
        margin: 1.5rem 0 2.5rem;
    }

    #policy .images img,
    #policy .images img:nth-child(2) {
        height: 14rem;
        border-radius: 1.25rem;
    }

    #policy .images img:nth-child(2) {
        height: 18rem;
    }
}

/* Compact screens: keep desktop content usable before the mobile layout. */
@media (max-width: 1024px) {
    body {
        font-size: 20px;
    }

    .wrapper {
        padding-inline: clamp(0.75rem, 3vw, 1.5rem);
    }

    header {
        align-items: center;
        flex-wrap: wrap;
        padding-block: 0.75rem;
    }

    /* header img {
        height: 4rem;
    } */

    .nav-links,
    .nav-links ul {
        /* flex: 1 1 100%; */
        /* order: 3; */
        gap: clamp(0.75rem, 3vw, 2rem);
        justify-content: center;
    }

    header .btn {
        padding: 0.5rem 1.25rem;
        margin: 0;
    }

    .hero-nav {
        gap: 2rem;
        padding-block: 1rem;
    }

    .hero-nav p {
        margin-left: 0;
        font-size: 1.1em;
    }

    .social-icons {
        gap: 1.5rem;
    }

    .services-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #contact .section-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-info,
    .contact-form {
        width: 100%;
        max-width: none;
    }

    .contact-info {
        margin-top: 0;
    }

    .contact-item .info {
        min-width: 0;
    }

    .contact-item a,
    .contact-item p {
        overflow-wrap: anywhere;
    }

    #policy .images {
        height: clamp(17rem, 34vw, 24rem);
        margin-block: 1.5rem;
    }

    #policy .images img,
    #policy .images img:nth-child(2) {
        height: clamp(14rem, 28vw, 20rem);
    }

    #policy .images img:nth-child(2) {
        height: clamp(17rem, 34vw, 24rem);
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    header {
        justify-content: center;
    }

    /* header .custom-logo-link,
    header > a:first-child {
        width: 100%;
        display: flex;
        justify-content: center;
    } */

    /* header img {
        height: 3.5rem;
    } */

    /* .language-switcher {
        order: 3;
    }

    header .btn {
        order: 2;
    } */

    .nav-links,
    .nav-links ul {
        /* order: 5; */
        gap: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    /* .hero-content {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: 12rem;
        margin-top: -1rem;
        padding: 1.5rem;
        background-size: 100% 100%;
    } */

    .hero-content h1 {
        font-size: clamp(1.35rem, 7vw, 2rem);
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-nav {
        justify-content: space-between;
        padding-inline: 0;
    }

    .services-items {
        grid-template-columns: 1fr;
    }

    #policy .images {
        height: 13rem;
        gap: 0.35rem;
    }

    #policy .images img,
    #policy .images img:nth-child(2) {
        height: 10rem;
        border-radius: 1rem;
    }

    #policy .images img:nth-child(2) {
        height: 13rem;
    }

    #contact {
        padding: 1.5rem 1rem;
        border-radius: 1rem;
    }

    .contact-item {
        gap: 0.75rem;
    }

    .contact-item .icon {
        flex: 0 0 3rem;
        width: 3rem;
        height: 3rem;
    }

    .contact-item .icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (max-height: 700px) and (min-width: 561px) {
    .section {
        padding-block: 2rem;
    }

    #hero .hero-image > img {
        max-height: 24rem;
        object-fit: cover;
    }

    .hero-content {
        bottom: -4rem;
        height: 15rem;
    }

    #policy .images {
        height: 19rem;
    }

    #policy .images img,
    #policy .images img:nth-child(2) {
        height: 16rem;
    }

    #policy .images img:nth-child(2) {
        height: 19rem;
    }
}

#policy .images > .policy-image-link {
    display: block;
    min-width: 0;
    position: relative;
    z-index: 1;
}

#policy .images > .policy-image-link:nth-child(2) {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(46%);
    transform: translate(-50%, -50%);
    z-index: 3;
}

#policy .images > .policy-image-link img {
    width: 100%;
}

#policy .images > .policy-image-link:first-child {
    grid-column: 1;
}

#policy .images > .policy-image-link:last-child {
    grid-column: 3;
}

#policy .images > .policy-image-link:nth-child(2) img {
    height: clamp(22rem, 42vw, 36rem);
}

#policy .images > .policy-image-link:hover {
    transform: translateY(-0.3rem);
}

#policy .images > .policy-image-link:nth-child(2):hover {
    transform: translate(-50%, calc(-50% - 0.3rem));
}

@media (max-width: 768px) {
    #policy .images > .policy-image-link:nth-child(2) {
        width: 42%;
    }

    #policy .images > .policy-image-link:nth-child(2) img {
        height: 18rem;
    }
}