/**
 * Sabater Services Frontend Styles
 */
/* Manrope loaded via theme */

/* Hero Section */
.service-hero {
    background-color: #3d4a3a;
}

/* Grid 12 columnas */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.col-1 {
    grid-column: span 1;
}

.col-5 {
    grid-column: span 5;
}

.col-6 {
    grid-column: span 6;
}

.col-5-center {
    grid-column: span 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.col-7 {
    grid-column: span 7;
}

.col-start-7 {
    grid-column: 7 / 13;
}

@media (max-width: 1023px) {
    .grid-12 {
        gap: 20px;
    }
    .col-1 {
        display: none;
    }
    .col-5,
    .col-6,
    .col-5-center,
    .col-7 {
        grid-column: span 12;
    }
    .col-start-7 {
        grid-column: span 12;
    }
}

@media (max-width: 767px) {
    .grid-12 {
        gap: 16px;
    }
}

/* Content Section */
.service-content {
    padding: 80px 0;
    background: #fff;
}

.service-content__grid {
    gap: 60px;
}

@media (max-width: 1023px) {
    .service-content__grid {
        gap: 40px;
    }
}

@media (max-width: 767px) {
    .service-content {
        padding: 40px 0;
    }

    .service-content__grid {
        gap: 32px;
    }
}

.service-hero__title {
    max-width: 400px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 56px;
    line-height: 64.55px;
    letter-spacing: -1.09px;
    color: #fff;
    margin: 0;
}

.service-hero__legend {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    margin: 0;
}

@media (max-width: 1279px) {
    .service-hero__title {
        font-size: 42px;
        line-height: 1.15;
    }
}

@media (max-width: 1023px) {
    .col-5-center {
        justify-content: flex-start;
        align-items: flex-end;
        padding-bottom: 100px;
    }
}

@media (max-width: 767px) {
    .single-service .service-hero__title {
        font-size: 28px;
        line-height: 1.2;
        letter-spacing: -0.5px;
        max-width: 50%;
    }

    .col-5-center {
        padding-bottom: 80px;
    }
}

/* Content Section */
.service-content__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 24px 0;
}

.service-content__description {
    color: #1a1a1a;
    word-break: break-word;
    overflow-wrap: break-word;
}

.service-content__description p {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-content__description p:last-child {
    margin-bottom: 0;
}

/* Benefits */
.service-benefits__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #1a1a1a;
    margin: 40px 0 24px 0;
}

.service-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 30px;
}

@media (max-width: 767px) {
    .service-benefits {
        grid-template-columns: 1fr;
    }
}

.service-benefit {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.service-benefit__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-benefit__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-benefit__text {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    margin: 0;
    padding-top: 8px;
}

/* Service Items Accordion (in content section) */
.service-items-accordion {
    margin-top: 40px;
}

.service-items-accordion__item {
    border-top: 1px solid #ccc;
}

.service-items-accordion__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.service-items-accordion__header:hover {
    color: #4a7c59;
}

.service-items-accordion__name {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    word-break: break-word;
    padding-right: 16px;
}

.service-items-accordion__icon {
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    color: #1a1a1a;
    transition: transform 0.2s ease;
}

.service-items-accordion__item.open .service-items-accordion__icon {
    transform: rotate(45deg);
}

.service-items-accordion__content {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
}

.service-items-accordion .service-items-accordion__item.open .service-items-accordion__content {
    max-height: 2000px;
    opacity: 1;
    overflow: visible;
}

.service-items-accordion__body {
    padding-bottom: 16px;
}

.service-items-accordion__text {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #4a4a4a;
    word-break: break-word;
    overflow-wrap: break-word;
}

.service-items-accordion__text p {
    margin-bottom: 0.5rem;
}

.service-items-accordion__text p:last-child {
    margin-bottom: 0;
}

.service-items-accordion__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
}

.service-items-accordion__cta::after {
    content: '\2192';
    font-size: 16px;
    line-height: 1;
}

.service-items-accordion__cta:hover {
    opacity: 0.7;
}

/* Contact Form in Service */
.service-contact-form {
    background-color: #D8F5AE;
    border-radius: 16px;
    padding: 32px;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 767px) {
    .service-contact-form {
        display: none;
    }
}

.service-contact-form__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 24px 0;
}

.service-contact-form__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-contact-form__field label {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.3px;
    color: #1a1a1a;
}

.service-contact-form__field input,
.service-contact-form__field textarea {
    background-color: #BDD798;
    width: 100%;
    padding: 12px 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    min-width: 0;
}

.service-contact-form__field input::placeholder,
.service-contact-form__field textarea::placeholder {
    color: rgba(26, 26, 26, 0.5);
}

.service-contact-form__field input:focus,
.service-contact-form__field textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.2);
}

.service-contact-form__field textarea {
    resize: none;
    min-height: 100px;
}

.service-contact-form__footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.service-contact-form__checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.service-contact-form__checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-color: #BDD798;
    border: 0;
    cursor: pointer;
    margin-top: 2px;
}

.service-contact-form__checkbox span {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #1a1a1a;
}

.service-contact-form__submit {
    background-color: transparent;
    border: 1px solid #1a1a1a;
    padding: 12px 24px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.service-contact-form__submit:hover {
    background-color: #1a1a1a;
    color: #D8F5AE;
}

@media (min-width: 768px) {
    .service-contact-form__footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Service Details Section */
.service-details {
    padding: 80px 0;
    background: #f5f5f5;
}

@media (max-width: 767px) {
    .service-details {
        padding: 40px 0;
    }
}

.service-details__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 24px 0;
}

.service-details__description {
    color: #4a4a4a;
    word-break: break-word;
    overflow-wrap: break-word;
}

.service-details__description p {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-details__grid {
    gap: 0;
    align-items: start;
}

.service-accordion {
    position: relative;
}

/* Service Details Accordion */
.service-accordion__item {
    border-top: 1px solid #ccc;
    position: relative;
}

.service-accordion__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.service-accordion__header:hover {
    color: #4a7c59;
}

.service-accordion__name {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    word-break: break-word;
    padding-right: 16px;
}

.service-accordion__icon {
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    color: #1a1a1a;
    transition: transform 0.2s ease;
}

.service-accordion__body {
    padding-bottom: 24px;
}

.service-accordion__item.open .service-accordion__icon {
    transform: rotate(45deg);
}

.service-accordion__content {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
}

.service-accordion .service-accordion__item.open .service-accordion__content {
    max-height: 2000px;
    opacity: 1;
    overflow: visible;
}

.service-accordion__text {
    color: #4a4a4a;
    word-break: break-word;
    overflow-wrap: break-word;
}

.service-accordion__text p {
    margin-bottom: 0.5rem;
}

.service-accordion__text strong {
    color: #1a1a1a;
}

.service-accordion__images {
    margin-top: 1rem;
}

.service-accordion__images img {
    max-width: 100%;
    height: auto;
}

/* Other Services Section */
.other-services {
    padding: 80px 0;
    background: #fff;
}

@media (max-width: 767px) {
    .other-services {
        padding: 40px 0;
    }
}

.other-services__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
    gap: 12px;
}

.other-services__header-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.other-services__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0;
}

.other-services__subtitle {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #4a4a4a;
    margin: 0;
}

.other-services__view-all {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.other-services__view-all:hover {
    color: #4a7c59;
}



.other-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1023px) {
    .other-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .other-services__grid {
        grid-template-columns: 1fr;
    }
}

.other-services__card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.other-services__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.other-services__card:hover .other-services__image {
    transform: scale(1.05);
}

.other-services__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.other-services__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
}

.other-services__name {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #fff;
    margin: 0;
}

.other-services__link {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.other-services__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.other-services__card:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.other-services__card > div:last-child {
    z-index: 2;
}

/* Responsive */
@media (max-width: 1023px) {
    .service-contact-form {
        position: static;
    }

    .service-details__grid {
        gap: 40px;
    }
}

@media (max-width: 767px) {
    .service-content__title,
    .service-details__title,
    .other-services__title {
        font-size: 1.5rem;
    }

    .service-contact-form__title {
        font-size: 1.25rem;
    }

    .service-accordion__name,
    .service-items-accordion__name {
        font-size: 14px;
    }

    .service-accordion__icon {
        font-size: 20px;
    }

    .service-details__grid {
        gap: 32px;
    }

    .other-services__header {
        margin-bottom: 24px;
    }
}

/* Ensure no horizontal overflow */
.single-service {
    overflow-x: hidden;
}

.single-service * {
    box-sizing: border-box;
}

.single-service img,
.single-service input,
.single-service textarea,
.single-service table {
    max-width: 100%;
}

.single-service img {
    height: auto;
}
