.blob-1 {
    width: 27%;
    height: 34%;
    top: 10%;
    left: -7%;
    background-color: var(--secondary);
    border-radius: 63% 37% 48% 52% / 42% 58% 42% 58%;
    transform: rotate(-20deg);
    opacity: 0.30;
}

.blob-2 {
    width: 34%;
    height: 23%;
    top: 25%;
    right: -8%;
    background-color: var(--accent);
    border-radius: 48% 52% 61% 39% / 58% 42% 58% 42%;
    transform: rotate(16deg);
    opacity: 0.34;
}

.blob-3 {
    width: 24%;
    height: 35%;
    top: 54%;
    left: 7%;
    background-color: #D8BEC3;
    border-radius: 38% 62% 47% 53% / 55% 42% 58% 45%;
    transform: rotate(25deg);
    opacity: 0.31;
}

.blob-4 {
    width: 31%;
    height: 25%;
    top: 69%;
    right: -4%;
    background-color: var(--secondary);
    border-radius: 55% 45% 36% 64% / 43% 61% 39% 57%;
    transform: rotate(-13deg);
    opacity: 0.27;
}

.blob-5 {
    width: 22%;
    height: 20%;
    bottom: 5%;
    left: 39%;
    background-color: var(--accent);
    border-radius: 61% 39% 52% 48% / 44% 56% 44% 56%;
    transform: rotate(18deg);
    opacity: 0.29;
}

main {
    padding-top: 50px;
    padding-bottom: 50px;
}

.page-heading h1 {
    margin-bottom: 25px;
    text-align: center;
}

.service-card {
    position: relative;
    height: 100%;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 25px 22px 22px;
    background-color: rgba(247, 243, 238, 0.90);
    border: 1px solid rgba(155, 112, 124, 0.22);
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(73, 62, 58, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(155, 112, 124, 0.42);
    box-shadow: 0 12px 28px rgba(73, 62, 58, 0.12);
}

.card-accent {
    width: 42px;
    height: 5px;
    margin-bottom: 17px;
    border-radius: 20px;
}

.accent-1 {
    background-color: var(--primary);
}

.accent-2 {
    background-color: var(--secondary);
}

.accent-3 {
    background-color: var(--accent);
}

.accent-4 {
    background-color: #8F7068;
}

.service-card h2 {
    margin-top: 0;
    margin-bottom: 9px;
    padding-bottom: 7px;
    color: var(--text);
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.25;
    border-bottom: 1px solid rgba(155, 112, 124, 0.35);
}

.service-card ul {
    margin-top: 4px;
    margin-bottom: 15px;
    padding-left: 19px;
}

.service-card li {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.55;
}

.more-link {
    display: inline-block;
    margin-top: auto;
    align-self: flex-end;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.more-link:hover {
    color: var(--secondary-text);
    border-bottom-color: var(--secondary-text);
}

.more-link:focus-visible,
.cta-link:focus-visible,
.modal-close:focus-visible,
.modal-contact:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.contact-cta {
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
    margin-top: 45px;
    padding: 18px 24px;
    background-color: rgba(155, 112, 124, 0.13);
    border: 1px solid rgba(155, 112, 124, 0.25);
    border-radius: 15px;
    box-shadow: 0 5px 18px rgba(73, 62, 58, 0.05);
}

.contact-cta h2 {
    margin: 0 0 3px;
    color: var(--text);
    font-family: Georgia, serif;
    font-size: 17px;
    line-height: 1.35;
}

.contact-cta p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.cta-link {
    flex-shrink: 0;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    display: block;
    margin-left: auto;
    border-bottom: 2px solid transparent;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.cta-link:hover {
    color: var(--secondary-text);
    border-bottom-color: var(--secondary-text);
}

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    padding: 30px 15px;
    background-color: rgba(73, 62, 58, 0.58);
    overflow-y: auto;
}

.service-modal:focus-visible .modal-box {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

.service-modal:target {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modal-background 0.2s ease;
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
    border: 1px solid rgba(181, 140, 130, 0.35);
    border-radius: 14px;
    box-shadow: 0 15px 45px rgba(73, 62, 58, 0.20);
    overflow: hidden;
    animation: modal-open 0.25s ease;
}

.modal-header {
    flex-shrink: 0;
    padding: 25px 60px 17px 30px;
    background-color: var(--bg);
    border-bottom: 1px solid rgba(155, 112, 124, 0.25);
}

.modal-header h2 {
    margin: 0;
    color: var(--text);
    font-family: Georgia, serif;
    font-size: 25px;
    line-height: 1.3;
}

.modal-close {
    position: absolute;
    top: 19px;
    right: 22px;
    z-index: 2;
    color: var(--primary);
    text-decoration: none;
    font-size: 28px;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--secondary-text);
}

.modal-content {
    overflow-y: auto;
    padding: 25px 30px 30px;
}

.modal-content p,
.modal-content li {
    font-size: 14px;
    line-height: 1.7;
}

.modal-intro {
    margin-top: 0;
    margin-bottom: 15px;
    color: #5A4C48;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

.modal-section {
    margin-top: 25px;
}

.modal-section h3 {
    position: relative;
    margin: 0 0 12px;
    padding-left: 13px;
    color: var(--primary);
    font-family: Georgia, serif;
    font-size: 19px;
    line-height: 1.35;
}

.modal-section h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 3px;
    height: calc(100% - 6px);
    background-color: var(--accent);
    border-radius: 5px;
}

.modal-section p {
    margin-top: 0;
    margin-bottom: 15px;
}

.modal-section ul {
    margin-top: 5px;
    margin-bottom: 15px;
    padding-left: 22px;
}

.modal-section li {
    position: relative;
    margin-bottom: 7px;
    padding-left: 3px;
}

.modal-section li::marker {
    color: var(--primary);
}

.highlight-text {
    margin-top: 20px !important;
    padding: 15px 18px;
    color: #6F5B58;
    font-style: italic;
    background-color: rgba(200, 174, 180, 0.14);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

.modal-important {
    margin-top: 28px;
    padding: 20px 22px;
    background-color: rgba(181, 140, 130, 0.09);
    border: 1px solid rgba(181, 140, 130, 0.25);
    border-radius: 10px;
}

.modal-important h3 {
    margin: 0 0 12px;
    color: var(--primary);
    font-family: Georgia, serif;
    font-size: 17px;
    line-height: 1.35;
}

.subsection {
    margin-top: 20px;
    padding-left: 15px;
    border-left: 2px solid rgba(200, 174, 180, 0.55);
}

.subsection h4 {
    margin: 0 0 8px;
    color: #6F5B58;
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: bold;
}

.price-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 28px;
    padding: 18px 20px;
    background-color: rgba(155, 112, 124, 0.12);
    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
}

.price-label {
    color: #6F5B58;
    font-size: 13px;
    line-height: 1.5;
}

.price-box strong {
    color: var(--primary);
    font-family: Georgia, serif;
    font-size: 18px;
}

.price-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-item + .price-item {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(155, 112, 124, 0.20);
}

.modal-contact {
    display: inline-block;
    align-self: flex-end;
    margin-top: 18px;
    color: var(--bg);
    background-color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    padding: 9px 16px;
    border-radius: 7px;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.modal-contact:hover {
    color: var(--bg);
    background-color: var(--secondary-text);
    transform: translateY(-2px);
}

@keyframes modal-background {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modal-open {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.parent-consent-note {
    margin-top: 24px;
    text-align: center;
    color: var(--secondary-text);
    font-size: 13px;
    line-height: 1.5;
}

.parent-consent-note span {
    margin-right: 5px;
}

.parent-consent-note a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.parent-consent-note a:hover,
.parent-consent-note a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .parent-consent-note span {
        display: block;
        margin-right: 0;
        margin-bottom: 3px;
    }
}