/* ===== SERVICES LIST STYLES ===== */

.services-list-section {
    padding: 60px 20px;
    background-color: var(--bg-light);
}

.services-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .services-grid-list {
        grid-template-columns: 1fr;
    }
}

.service-list-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-list-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
    background-color: var(--bg-light);
}

.service-list-item > i:first-child {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.service-list-content {
    flex-grow: 1;
}

.service-list-content h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--secondary-color);
}

.service-list-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.service-list-item > i:last-child {
    color: var(--text-light);
    font-size: 1rem;
}

/* ===== EXTRA SERVICES TILES ===== */

.services-carousel-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 1.5rem auto 2rem;
    max-width: 1200px;
    width: 100%;
    overflow: hidden; /* keep carousel movement inside the block */
}

.extra-services-grid {
    display: contents;
}

.extra-services-grid .carousel-clone {
    display: none;
}

.extra-service-card {
    background: var(--white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

.extra-service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.5;
    border-radius: 14px;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.extra-service-card:hover::before {
    opacity: 0.7;
}

.extra-service-card > * {
    position: relative;
    z-index: 1;
}

.extra-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

@media (max-width: 900px) {
    .services-carousel-wrapper {
        display: block;
        position: relative;
        overflow: hidden;
        touch-action: pan-x;
    }
    
    .extra-services-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 12px;
        margin-bottom: 1.5rem;
        width: 100%;
        will-change: scroll-position;
        touch-action: pan-x;
        scroll-behavior: auto;
        scrollbar-width: none; /* Firefox */
        /* REMOVED: -webkit-overflow-scrolling: touch; */
        /* This causes momentum scrolling on iOS which conflicts with JS */
    }
    
    .extra-services-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    /* REMOVED: .extra-services-grid .carousel-clone { display: none; } */
    /* Clones are created by JS and should not be hidden by CSS */
    
    .extra-service-card {
        flex: 0 0 calc(100vw - 60px);
        max-width: calc(100vw - 60px);
    }
}

/* Carousel animations removed - using JavaScript for infinite scroll */

@media (max-width: 600px) {
    .extra-services-grid {
        gap: 12px;
    }
}



.extra-icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.extra-service-card h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.08rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.extra-service-card p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: center;
}



/* ===== INFO LAYOUT ===== */

.info-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 1rem 0 1.5rem;
}

.info-columns.tight {
    margin-top: 0.5rem;
}

@media (max-width: 1024px) {
    .info-columns {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-card h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.05rem;
}

.info-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.pill-list,
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-list li {
    background: rgba(232, 78, 51, 0.08);
    color: var(--primary-color);
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.check-list {
    flex-direction: column;
}

.check-list li {
    position: relative;
    padding-left: 20px;
    color: var(--text-light);
    line-height: 1.5;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.info-split {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 16px;
    margin: 1rem 0 2rem;
}

.info-split h3 {
    margin: 0 0 6px;
    color: var(--secondary-color);
}

.info-split p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.cta-mini {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .info-split {
        grid-template-columns: 1fr;
    }
    .cta-mini {
        justify-content: flex-start;
    }
}

/* ===== SERVICE DETAIL PAGE STYLES ===== */

.service-detail-section {
    padding: 60px 20px;
}

.service-detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

@media (max-width: 992px) {
    .service-detail-wrapper {
        grid-template-columns: 1fr;
    }
}

.service-main-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .service-main-content {
        padding: 25px 20px;
    }
}

.service-main-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.service-main-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.service-main-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1.0625rem;
}

.service-main-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.service-main-content ul li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: var(--text-light);
}

.service-main-content ul li::marker {
    color: var(--primary-color);
}

.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.sidebar-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-color), #ff6659);
    color: var(--white);
}

.sidebar-cta h3 {
    color: var(--white);
}

.sidebar-cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.95rem;
}

.sidebar-cta .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}

.sidebar-contact-info {
    text-align: center;
}

.sidebar-contact-info p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.sidebar-contact-info a {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.sidebar-hours {
    list-style: none;
    padding: 0;
}

.sidebar-hours li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.sidebar-hours li:last-child {
    border-bottom: none;
}

.sidebar-related {
    background-color: var(--bg-light);
}

.related-services-list {
    list-style: none;
    padding: 0;
}

.related-services-list li {
    margin-bottom: 10px;
}

.related-services-list a {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.related-services-list a:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateX(3px);
}

.related-services-list i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* ===== INFO BOXES ===== */
.info-box {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 2rem 0;
    border-radius: var(--border-radius);
}

.info-box.warning {
    border-left-color: #FFB300;
    background-color: #FFF8E1;
}

.info-box.success {
    border-left-color: #4CAF50;
    background-color: #E8F5E9;
}

.info-box h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.info-box p {
    margin-bottom: 0;
}

/* ===== SERVICE GALLERY ===== */
.service-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin: 12px 0 28px;
}

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

.service-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: var(--shadow-hover);
    aspect-ratio: 16 / 9;
    isolation: isolate;
}

.service-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.service-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.05));
    z-index: 1;
    transition: opacity 0.4s ease;
}

.service-gallery-item figcaption {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.service-gallery-item:hover img {
    transform: scale(1.06);
    filter: saturate(1.05);
}

.service-gallery-item:hover::after {
    opacity: 0.55;
}

/* ===== ENHANCED SERVICE PAGE STYLING ===== */

/* H2 Headers with Frames */
.service-main-content h2 {
    position: relative;
    padding: 15px 20px;
    margin-top: 2.5rem !important;
    margin-bottom: 1.5rem !important;
    background: linear-gradient(135deg, rgba(232, 78, 51, 0.08), rgba(232, 78, 51, 0.04));
    border-left: 5px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    animation: slideInLeft 0.6s ease-out;
    box-shadow: 0 2px 8px rgba(232, 78, 51, 0.1);
}

.service-main-content h2::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.service-main-content h2::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

/* Animated Lists - Card Style */
.service-main-content ul,
.service-main-content ol {
    background: var(--bg-light);
    padding: 20px 20px 20px 40px !important;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin: 1.5rem 0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.service-main-content ul li,
.service-main-content ol li {
    background: var(--white);
    padding: 12px 15px;
    margin-bottom: 10px !important;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    font-size: 1.0625rem;
}

.service-main-content ul li::before,
.service-main-content ol li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), rgba(232, 78, 51, 0.5));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.service-main-content ul li:hover::before,
.service-main-content ol li:hover::before {
    transform: scaleY(1);
}

.service-main-content ul li:hover,
.service-main-content ol li:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(232, 78, 51, 0.15);
    background: linear-gradient(135deg, var(--white), rgba(232, 78, 51, 0.02));
}

.service-main-content ul li::marker,
.service-main-content ol li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

/* Paragraph with Strong Text - Highlighted */
.service-main-content p strong {
    background: linear-gradient(120deg, rgba(232, 78, 51, 0.15), rgba(232, 78, 51, 0.05));
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: help;
    position: relative;
}

.service-main-content p strong:hover {
    background: linear-gradient(120deg, rgba(232, 78, 51, 0.3), rgba(232, 78, 51, 0.15));
    box-shadow: 0 2px 6px rgba(232, 78, 51, 0.2);
}

/* Tooltips on Strong Text */
.service-main-content p strong[title],
.service-main-content p strong[data-tooltip] {
    border-bottom: 2px dotted var(--primary-color);
}

/* Content Cards - Info Boxes Enhanced */
.content-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), #ff6659);
    transition: width 0.5s ease;
}

.content-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(232, 78, 51, 0.15);
    transform: translateY(-2px);
}

.content-card:hover::before {
    width: 100%;
}

.content-card h3 {
    margin: 0 0 10px 0;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

.content-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* Service Content Image with Frame */
.service-content .service-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.service-content .service-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 12px;
}

.service-content .service-image:hover img {
    transform: scale(1.05);
}

.service-content .service-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(232, 78, 51, 0.2);
    border-radius: 12px;
    pointer-events: none;
    animation: borderPulse 2s ease-in-out infinite;
}

/* Image Caption with Animation */
.image-caption {
    font-size: 0.9rem;
    color: #777;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

/* CTA Box Enhanced with Animation */
.cta-box {
    background: linear-gradient(135deg, var(--primary-color), #ff6659);
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 4.5rem 0 3rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(232, 78, 51, 0.25);
    animation: slideInUp 0.7s ease-out;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: moveBackground 20s linear infinite;
    z-index: 0;
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-box p {
    color: rgba(255,255,255,0.95);
    margin-bottom: 20px;
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-box .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
}

.cta-box .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-box .btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.cta-box .btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.cta-box .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.05) translateY(-2px);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes borderPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(232, 78, 51, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(232, 78, 51, 0);
    }
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

/* Tooltip Style */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: tooltipSlideDown 0.3s ease;
}

[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--secondary-color);
    z-index: 1001;
    animation: tooltipSlideDown 0.3s ease;
}

@keyframes tooltipSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile Responsive Animations */
@media (max-width: 768px) {
    .service-main-content h2 {
        font-size: 1.3rem;
        padding: 12px 15px;
    }
    
    .service-main-content ul,
    .service-main-content ol {
        padding: 15px 15px 15px 30px !important;
    }
    
    .cta-box {
        padding: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-box .btn {
        width: 100%;
    }
    
    [data-tooltip]:hover::after {
        white-space: normal;
        max-width: 200px;
        width: 200px;
    }
}

/* ===== LIST ITEM ANIMATIONS ===== */
.list-item-animated {
    animation: listItemAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.list-item-animated:nth-child(1) { animation-delay: 0.05s; }
.list-item-animated:nth-child(2) { animation-delay: 0.1s; }
.list-item-animated:nth-child(3) { animation-delay: 0.15s; }
.list-item-animated:nth-child(4) { animation-delay: 0.2s; }
.list-item-animated:nth-child(5) { animation-delay: 0.25s; }
.list-item-animated:nth-child(n+6) { animation-delay: 0.3s; }

@keyframes listItemAppear {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== ANIMATED CONTENT ===== */
.animated-content {
    animation: contentFadeIn 0.7s ease-out;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TOOLTIP STYLING ===== */
.has-tooltip {
    position: relative;
    border-bottom: 2px dotted var(--primary-color);
    cursor: help;
    transition: all 0.2s ease;
    padding: 0 2px;
}

.has-tooltip:hover {
    color: var(--primary-color);
    background: rgba(232, 78, 51, 0.06);
    border-radius: 3px;
}

/* ===== SERVICE TEXT SPACING ===== */
.service-content .service-text > h2 {
    margin-top: 3.2rem;
    margin-bottom: 1.8rem;
}

.service-content .service-text > h2:first-of-type {
    margin-top: 1.8rem;
}

.service-content .service-text > p,
.service-content .service-text > ul,
.service-content .service-text > ol {
    margin-bottom: 2.2rem;
}

.service-content .service-text > ul,
.service-content .service-text > ol {
    padding-left: 1.6rem;
}

.service-content .service-text > p:last-child,
.service-content .service-text > ul:last-child,
.service-content .service-text > ol:last-child {
    margin-bottom: 0;
}
