/* ============================================
   SERVICES PAGE — Modern UI (matches home)
   Al Majd Refrigeration
   ============================================ */

.services-page {
    --svc-blue: #1565c0;
    --svc-blue-dark: #0d47a1;
    --svc-blue-light: #42a5f5;
    --svc-ice: #e3f2fd;
    --svc-slate: #1e293b;
    --svc-muted: #64748b;
    --svc-success: #059669;
    --svc-danger: #dc2626;
    --svc-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Hero — full-bleed background image ---------- */
.svc-hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    padding: clamp(5.5rem, 10vw, 7rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    color: #fff;
    background-color: #0d47a1;
    overflow: hidden;
}

.svc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url(/images/Installation.webp) center center / cover no-repeat;
    z-index: 0;
}

.svc-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(13, 71, 161, 0.94) 0%, rgba(21, 101, 192, 0.62) 38%, rgba(13, 71, 161, 0.28) 72%, rgba(15, 23, 42, 0.15) 100%);
    z-index: 1;
}

.svc-hero>.svc-hero__mesh,
.svc-hero>.svc-hero__float,
.svc-hero>.container {
    position: relative;
    z-index: 2;
}

.svc-hero__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(66, 165, 245, 0.3) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.svc-hero__float {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 0;
    animation: svcFloat 7s ease-in-out infinite;
}

.svc-hero__float--1 {
    top: 15%;
    right: 10%;
    font-size: 3.5rem;
}

.svc-hero__float--2 {
    bottom: 20%;
    right: 25%;
    font-size: 2.5rem;
    animation-delay: 1s;
}

.svc-hero__float--3 {
    top: 35%;
    left: 8%;
    font-size: 2rem;
    animation-delay: 0.5s;
}

@keyframes svcFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(5deg);
    }
}

.svc-hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
}

.svc-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.svc-hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #ffffff;
}

.svc-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.65;
    opacity: 1;
    margin-bottom: 2rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.svc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.svc-hero__actions .btn-primary {
    background: linear-gradient(135deg, #fff 0%, #e3f2fd 100%);
    color: var(--svc-blue-dark);
    border: none;
    padding: 0.9rem 1.75rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.svc-hero__actions .btn-primary:hover {
    transform: translateY(-3px);
    background: #fff;
    color: var(--svc-blue-dark);
}

.svc-hero__actions .btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    padding: 0.9rem 1.75rem;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0;
}

.svc-hero__actions .btn-outline:hover {
    background: #fff;
    color: var(--svc-blue);
    transform: translateY(-3px);
}

.svc-hero__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.svc-hero__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.9;
}

.svc-hero__trust-item i {
    color: #93c5fd;
}

/* ---------- Intro ---------- */
.svc-intro {
    background: #fff;
    padding: clamp(1.5rem, 3vw, 2rem) 0;
}

.svc-intro__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.svc-intro__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 0.85rem;
    background: linear-gradient(160deg, #f8fafc 0%, #fff 100%);
    border: 1px solid rgba(21, 101, 192, 0.1);
    border-radius: 16px;
    transition: transform 0.35s var(--svc-ease), box-shadow 0.35s var(--svc-ease);
}

.svc-intro__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(21, 101, 192, 0.1);
}

.svc-intro__item-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff !important;
    background: var(--svc-blue);
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 14px rgba(21, 101, 192, 0.25);
}

.svc-intro__item strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--svc-slate);
    margin-bottom: 0.25rem;
}

.svc-intro__item span {
    font-size: 0.78rem;
    color: var(--svc-muted);
    line-height: 1.45;
}

.svc-trust-bar {
    background: linear-gradient(135deg, var(--svc-blue-dark) 0%, var(--svc-blue) 100%);
    padding: clamp(1.25rem, 3vw, 1.75rem) 0;
}

.svc-trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.svc-trust-bar__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    padding: 0.5rem;
}

.svc-trust-bar__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-align: center;
}

.svc-trust-bar__icon i {
    color: #ffffff !important;
    font-size: 1.4rem;
    line-height: 1;
    margin: 0;
    padding: 0;
    display: inline-block;
    transform: translateY(11px);
}

.svc-trust-bar__item strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.15rem;
}

.svc-trust-bar__item span {
    display: block;
    font-size: 0.72rem;
    color: #93c5fd;
    opacity: 0.95;
}

.svc-intro__card {
    display: none;
}

/* ---------- Quick Nav Tiles ---------- */
.svc-quicknav {
    background: #fff;
    padding: clamp(1.25rem, 3vw, 2rem) 0;
    border-bottom: 1px solid rgba(21, 101, 192, 0.08);
}

.svc-quicknav__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border: 1px solid rgba(21, 101, 192, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.svc-quicknav__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: var(--svc-slate);
    background: #fff;
    border-right: 1px solid rgba(21, 101, 192, 0.08);
    transition: background 0.35s var(--svc-ease), transform 0.35s var(--svc-ease);
}

.svc-quicknav__tile:last-child {
    border-right: none;
}

.svc-quicknav__tile:hover {
    background: linear-gradient(160deg, #eff6ff 0%, #fff 100%);
    transform: translateY(-4px);
    color: var(--svc-blue-dark);
}

.svc-quicknav__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--svc-blue);
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    margin-bottom: 0.75rem;
    transition: transform 0.4s var(--svc-ease);
}

.svc-quicknav__tile:hover .svc-quicknav__icon {
    transform: scale(1.12) rotate(-6deg);
}

.svc-quicknav__label {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
}

/* ---------- Service Blocks (stacked card layout) ---------- */
.svc-section {
    padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
}

.svc-section:nth-child(even) {
    background: #f8fafc;
}

.svc-section:nth-child(odd) {
    background: #fff;
}

.svc-block__grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 880px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(21, 101, 192, 0.1);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 16px 40px rgba(15, 23, 42, 0.07);
    transition: box-shadow 0.4s var(--svc-ease);
}

.svc-block__grid:hover {
    box-shadow:
        0 8px 12px rgba(15, 23, 42, 0.06),
        0 24px 48px rgba(21, 101, 192, 0.1);
}

.svc-section:nth-child(even) .svc-block__grid {
    background: #fff;
}

.svc-block__grid--reverse .svc-block__media,
.svc-block__grid--reverse .svc-block__content {
    order: unset;
}

.svc-block__media {
    position: relative;
    padding: 0;
    background: #f1f5f9;
}

.svc-block__media img {
    width: 100%;
    height: auto;
    min-height: 220px;
    max-height: min(52vw, 420px);
    object-fit: contain;
    object-position: center bottom;
    border-radius: 0;
    box-shadow: none;
    display: block;
    transition: transform 0.5s var(--svc-ease);
}

.svc-block__grid:hover .svc-block__media img {
    transform: scale(1.01);
}

.svc-block__perks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 clamp(1.25rem, 3vw, 2rem) 0.85rem;
    list-style: none;
    margin: 0;
}

.svc-block__perks li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--svc-blue-dark);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(21, 101, 192, 0.12);
    border-radius: 999px;
}

.svc-block__perks li i {
    font-size: 0.72rem;
    color: var(--svc-blue);
}

.svc-block__content {
    padding: 0.75rem clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 1.75rem);
}

.svc-block__header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: clamp(1.1rem, 2.5vw, 1.35rem) clamp(1.25rem, 3vw, 2rem) 0;
    margin-bottom: 0;
}

.svc-block__header .svc-block__icon-badge {
    margin-bottom: 0;
    flex-shrink: 0;
}

.svc-block__header .svc-block__heading {
    margin-bottom: 0;
}

.svc-block__summary {
    margin: 0;
    padding: 0.85rem clamp(1.25rem, 3vw, 2rem) 0;
    color: #475569;
    line-height: 1.7;
    font-size: 0.98rem;
}

.svc-block__highlights {
    display: none;
}

.svc-block__lead {
    display: none;
}

.svc-block__icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    color: var(--svc-blue);
    font-size: 1.15rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.svc-block__heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--svc-slate);
    margin-bottom: 0;
    scroll-margin-top: 120px;
    line-height: 1.2;
}

/* Hidden until moved into collapsed panel by JS */
.svc-aeo {
    display: none;
}

/* Collapsible detail panel — content stays in DOM for SEO/AEO */
.svc-details-panel {
    margin: 0.85rem clamp(1.25rem, 3vw, 2rem) 0;
    border: 1px solid rgba(21, 101, 192, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.svc-details-panel[open] {
    background: #fff;
}

.svc-details__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--svc-muted);
    list-style: none;
    user-select: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.svc-details__toggle::-webkit-details-marker {
    display: none;
}

.svc-details__toggle::marker {
    content: '';
}

.svc-details__toggle:hover {
    background: rgba(21, 101, 192, 0.06);
}

.svc-details__toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s var(--svc-ease);
    color: var(--svc-blue);
}

.svc-details-panel[open] .svc-details__toggle i {
    transform: rotate(180deg);
}

.svc-details-panel[open] .svc-details__toggle {
    border-bottom: 1px solid rgba(21, 101, 192, 0.08);
}

/* Detail sections */
.svc-details {
    margin-top: 0;
    padding: 0.5rem 1.15rem 1.15rem;
}

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

.svc-details__grid .svc-details__full {
    grid-column: 1 / -1;
}

/* Plain blocks inside expanded panel (former AEO — still in DOM for crawlers) */
.svc-details__extra {
    margin-bottom: 1rem;
}

.svc-details__extra p {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.65;
}

.svc-details__extra .svc-details__title--plain {
    margin-top: 0;
}

.svc-details__title {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--svc-slate);
    margin: 1.15rem 0 0.45rem;
}

.svc-details__title i {
    display: none;
}

.svc-details__title:first-child {
    margin-top: 0;
}

.svc-details p {
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.svc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
}

.svc-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.svc-list li:last-child {
    border-bottom: none;
}

.svc-list li i {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.svc-steps {
    padding-left: 0;
    list-style: none;
    counter-reset: svc-step;
    margin: 0;
}

.svc-steps li {
    position: relative;
    padding: 0.6rem 0 0.6rem 2.75rem;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    counter-increment: svc-step;
}

.svc-steps li:last-child {
    border-bottom: none;
}

.svc-steps li::before {
    content: counter(svc-step);
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--svc-blue) 0%, var(--svc-blue-light) 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Bottom CTA ---------- */
.svc-bottom {
    background: linear-gradient(135deg, var(--svc-blue-dark) 0%, var(--svc-blue) 50%, #1976d2 100%);
    color: #fff;
    text-align: center;
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.svc-bottom__card {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    padding: 1.75rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    text-align: left;
}

.svc-bottom__card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.svc-bottom__card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.svc-bottom__heading {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.svc-bottom__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.25rem;
    background: #fff;
    color: var(--svc-blue-dark);
    font-weight: 800;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.svc-bottom__btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
    color: var(--svc-blue-dark);
}



/* ---------- Responsive ---------- */
@media (max-width: 992px) {

    .svc-intro__grid,
    .svc-trust-bar__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .svc-quicknav__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .svc-quicknav__tile:nth-child(3) {
        border-right: none;
    }

    .svc-quicknav__tile:nth-child(4),
    .svc-quicknav__tile:nth-child(5) {
        border-top: 1px solid rgba(21, 101, 192, 0.08);
    }
}

@media (max-width: 768px) {
    .svc-hero {
        min-height: min(88vh, 760px);
    }

    .svc-hero__float {
        display: none;
    }

    .svc-quicknav__grid {
        grid-template-columns: 1fr 1fr;
    }

    .svc-quicknav__tile {
        border-right: none;
        border-bottom: 1px solid rgba(21, 101, 192, 0.08);
    }

    .svc-quicknav__tile:nth-child(odd) {
        border-right: 1px solid rgba(21, 101, 192, 0.08);
    }

    .svc-block__heading {
        scroll-margin-top: 100px;
    }
}

@media (max-width: 480px) {

    .svc-intro__grid,
    .svc-trust-bar__grid {
        grid-template-columns: 1fr;
    }

    .svc-quicknav__grid {
        grid-template-columns: 1fr;
    }

    .svc-quicknav__tile,
    .svc-quicknav__tile:nth-child(odd) {
        border-right: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .svc-hero__float,
    .home-reveal {
        animation: none !important;
        transition: none !important;
    }

    .home-reveal {
        opacity: 1;
        transform: none;
    }
}