@import url('https://fonts.googleapis.com/css2?family=Montaga&family=Montserrat:wght@600;700;900&display=swap');
@import url("utility_resource.css");

@property --service-circle-progress {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

body {
    margin: 0;
    background: #292929;
    color: white;
    font-family: Montaga, Georgia, serif;
    overflow-x: hidden;
}

.footer-links a {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    text-shadow: 4px 5px 3px rgba(0, 0, 0, 0.45);
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    transition: opacity 160ms ease;
}

.footer-links a:hover::after,
.footer-links a:focus-visible::after {
    opacity: 1;
}

.hero-section {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding-left: 8%;
    box-sizing: border-box;
}

.hero-section h1 {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: clamp(58px, 8.4vw, 120px);
    line-height: 1.18;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0;
}

.hero-section span {
    font-style: italic;
}

.hero-section .hero-cycle-word {
    display: inline-block;
    min-width: 5.8em;
    font-style: normal;
}

.services-section {
    background: #242429;
    padding: 110px 0 90px;
}

.services-section-title {
    width: min(1120px, 86%);
    margin: 0 auto 34px;
    color: #ffffff;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: clamp(46px, 5.8vw, 86px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}

.services-panel {
    width: min(1120px, 86%);
    margin: 0 auto;
    background: #2f2f34;
    color: #f4f4f4;
    padding: 36px 72px;
    box-sizing: border-box;
}

.service-row {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 20px;
    padding: 34px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    text-decoration: none;
    color: inherit;
    transition: padding 240ms cubic-bezier(.2, .8, .2, 1);
}

.service-row:last-child {
    border-bottom: none;
}

.service-number {
    position: relative;
    display: inline-flex;
    width: 56px;
    height: 56px;
    justify-content: center;
    align-items: center;
    font-family: Montaga, Georgia, serif;
    color: #b7b7bd;
    font-size: 24px;
    margin-left: 70px;
}

.service-number::before,
.service-number::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: conic-gradient(
        from -90deg,
        rgba(255, 255, 255, 0.98) 0deg var(--service-circle-progress),
        transparent var(--service-circle-progress) 360deg
    );
    opacity: 0;
    transition:
        --service-circle-progress 360ms ease,
        opacity 220ms ease;
}

.service-number::before {
    inset: 0;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    filter:
        drop-shadow(0 0 4px rgba(255, 255, 255, 0.78))
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.52));
}

.service-number::after {
    inset: -10px;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 14px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 14px));
    filter: blur(12px);
}

.service-content h2 {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    margin: 0;
    font-size: 34px;
    line-height: 1;
    color: white;
}

.service-row:hover .service-number::before,
.service-row:focus-visible .service-number::before,
.service-row:hover .service-number::after,
.service-row:focus-visible .service-number::after {
    --service-circle-progress: 360deg;
}

.service-row:hover .service-number::before,
.service-row:focus-visible .service-number::before {
    opacity: 1;
}

.service-row:hover .service-number::after,
.service-row:focus-visible .service-number::after {
    opacity: 0.9;
}

.service-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 0;
    list-style: none;
    font-family: Montaga, Georgia, serif;
    margin: 4px 0 0;
    font-size: 24px;
    color: #c9c9cf;
}

.service-meta-list li {
    display: inline-flex;
    align-items: center;
}

.service-meta-list li + li::before {
    content: "•";
    margin-right: 12px;
    color: #8f8f96;
}

.service-description {
    font-family: Montaga, Georgia, serif;
    max-width: 560px;
    max-height: 0;
    overflow: hidden;
    font-size: 24px;
    line-height: 1.2;
    color: #d8d8dd;
    margin: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        max-height 260ms cubic-bezier(.2, .8, .2, 1) 70ms,
        margin-top 220ms cubic-bezier(.2, .8, .2, 1) 70ms,
        opacity 180ms ease 110ms,
        transform 220ms cubic-bezier(.2, .8, .2, 1) 70ms;
}

.service-row:hover,
.service-row:focus-visible {
    padding-top: 40px;
    padding-bottom: 40px;
}

.service-row:hover .service-description,
.service-row:focus-visible .service-description {
    max-height: 260px;
    margin-top: 24px;
    opacity: 1;
    transform: translateY(0);
}

.services-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 228px));
    justify-content: center;
    gap: 38px;
    width: min(1120px, 86%);
    margin: 0 auto;
}

.about-service-card {
    display: flex;
    flex-direction: column;
    min-height: 290px;
    padding: 24px 22px 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: linear-gradient(rgba(10, 10, 10, 0.74), rgba(10, 10, 10, 0.78));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
    color: white;
    text-decoration: none;
    transition:
        border-color 180ms ease 80ms,
        box-shadow 180ms ease 80ms,
        filter 180ms ease 80ms,
        transform 180ms ease 80ms;
}

.about-service-card h3 {
    margin: 0 0 2px;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 21px;
    font-weight: 400;
}

.about-service-meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-family: Montaga, Georgia, serif;
    font-size: 14px;
}

.about-service-meta span {
    margin: 0 4px;
}

.about-service-description {
    margin: 34px 0 24px;
    font-family: Montaga, Georgia, serif;
    font-size: 15px;
    line-height: 1.16;
}

.about-service-action {
    display: grid;
    place-items: center;
    min-height: 28px;
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 6px;
    background: transparent;
    color: white;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition:
        border-color 180ms ease 80ms,
        box-shadow 180ms ease 80ms,
        filter 180ms ease 80ms,
        transform 180ms ease 80ms;
}

.about-service-card:hover,
.about-service-card:focus-visible {
    border-color: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 8px 14px rgba(80, 65, 70, 0.14),
        0 0 14px 3px rgba(255, 255, 255, 0.24),
        0 0 18px 2px rgba(255, 255, 255, 0.28);
    filter: brightness(1.05);
    outline: none;
}

.about-service-card:hover .about-service-action,
.about-service-card:focus-visible .about-service-action {
    border-color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.24);
    filter: brightness(1.04);
}

.credentials-section,
.people-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 90px 10%;
    box-sizing: border-box;
}

.people-section {
    background: #242429;
}

.credentials-image img,
.people-image img {
    width: 100%;
    display: block;
    filter: grayscale(100%);
}

.credentials-text h2,
.people-text h2 {
    font-size: clamp(46px, 5.8vw, 86px);
    line-height: 1;
    margin: 0 0 34px;
    font-weight: 600;
    letter-spacing: 0;
}

.credentials-text p,
.people-text p {
    font-family: Montaga, Georgia, serif;
    font-size: 27px;
    line-height: 1.12;
    margin: 0 0 34px;
}

.footer-section {
    min-height: 46vh;
    background:
        linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.48)),
        url("../footer_background.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 34px;
    padding: 72px 24px;
    box-sizing: border-box;
    text-align: center;
}

.footer-logo {
    width: min(520px, 82vw);
    display: block;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.58));
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 54px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .hero-section {
        min-height: 74vh;
        padding: 132px 7% 56px;
    }

    .hero-section h1 {
        font-size: 64px;
    }

    .services-panel {
        width: 88%;
        padding: 28px;
    }

    .services-card-grid {
        grid-template-columns: 1fr;
        width: min(420px, 88%);
        gap: 16px;
    }

    .about-service-card {
        min-height: 220px;
    }

    .services-section-title {
        width: 88%;
    }

    .service-row,
    .credentials-section,
    .people-section {
        grid-template-columns: 1fr;
    }

    .service-number {
        margin-left: 0;
    }

    .credentials-text h2,
    .people-text h2 {
        font-size: 56px;
    }

    .footer-section {
        min-height: 38vh;
        gap: 26px;
        padding: 56px 18px;
    }

    .footer-links {
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .hero-section {
        min-height: 68vh;
        padding: 156px 22px 44px;
    }

    .hero-section h1 {
        font-size: 48px;
    }

    .services-section {
        padding: 64px 0;
    }

    .services-panel {
        width: calc(100% - 32px);
        padding: 20px;
    }

    .services-card-grid {
        width: calc(100% - 32px);
    }

    .services-section-title {
        width: calc(100% - 32px);
        margin-bottom: 22px;
    }

    .service-row {
        gap: 12px;
        padding: 24px 0;
    }

    .service-content h2 {
        font-size: 28px;
        line-height: 1.1;
    }

    .service-meta-list,
    .service-description,
    .credentials-text p,
    .people-text p {
        font-size: 19px;
    }

    .about-service-card h3 {
        font-size: 21px;
    }

    .about-service-meta,
    .about-service-description {
        font-size: 15px;
    }

    .credentials-section,
    .people-section {
        min-height: 0;
        gap: 28px;
        padding: 58px 22px;
    }

    .people-text {
        order: 2;
    }

    .people-image {
        order: 1;
    }
}
