/* ═══════════════════════════════════════════════════════════════════════
   The Grind Events Hire — Service Pages Stylesheet
   BEM naming: block__element--modifier
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────────────────────── */
:root {
    --svc-primary: #ff6b35;
    --svc-primary-dark: #e55a2b;
    --svc-dark: #0a0a0a;
    --svc-darker: #050505;
    --svc-card-bg: #111111;
    --svc-card-border: #1a1a1a;
    --svc-text: #e0e0e0;
    --svc-text-muted: #888888;
    --svc-accent-blue: #00b4d8;
    --svc-accent-green: #06d6a0;
    --svc-accent-purple: #7b2ff7;
    --svc-gold: #ffd700;
    --svc-radius: 16px;
    --svc-radius-sm: 8px;
    --svc-transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Hero Section ─────────────────────────────────────────────────────── */
.services-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--svc-darker);
}

.services-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transform: scale(1.05);
}

.services-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(255, 107, 53, 0.15) 100%
    );
}

.services-hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.services-hero__kicker {
    display: inline-block;
    color: var(--svc-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 50px;
}

.services-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.services-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--svc-text);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.services-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Breadcrumb ───────────────────────────────────────────────────────── */
.services-breadcrumb {
    background: var(--svc-darker);
    padding: 1rem 0;
    border-bottom: 1px solid var(--svc-card-border);
}

.services-breadcrumb__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.services-breadcrumb__list li::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--svc-text-muted);
}

.services-breadcrumb__list li:last-child::after {
    display: none;
}

.services-breadcrumb__list a {
    color: var(--svc-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.services-breadcrumb__list a:hover {
    color: var(--svc-accent-blue);
}

.services-breadcrumb__list li:last-child {
    color: var(--svc-text-muted);
}

/* ── Section Layouts ──────────────────────────────────────────────────── */
.services-section {
    padding: 5rem 0;
    background: var(--svc-dark);
}

.services-section--alt {
    background: var(--svc-darker);
}

.services-section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-section__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #fff;
    margin-bottom: 1rem;
}

.services-section__lead {
    font-size: 1.1rem;
    color: var(--svc-text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Service Cards (Hub Page) ─────────────────────────────────────────── */
.service-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-hub-card {
    background: var(--svc-card-bg);
    border: 1px solid var(--svc-card-border);
    border-radius: var(--svc-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--svc-transition);
    position: relative;
    overflow: hidden;
}

.service-hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--svc-primary), var(--svc-accent-blue));
    transform: scaleX(0);
    transition: transform var(--svc-transition);
}

.service-hub-card:hover {
    transform: translateY(-8px);
    border-color: var(--svc-primary);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.15);
}

.service-hub-card:hover::before {
    transform: scaleX(1);
}

.service-hub-card__icon {
    font-size: 2.5rem;
    color: var(--svc-primary);
    margin-bottom: 1.5rem;
    transition: transform var(--svc-transition);
}

.service-hub-card:hover .service-hub-card__icon {
    transform: scale(1.15) rotate(-5deg);
}

.service-hub-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.service-hub-card__desc {
    color: var(--svc-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-hub-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--svc-primary);
    font-weight: 600;
    text-decoration: none;
    transition: gap var(--svc-transition);
}

.service-hub-card__link:hover {
    gap: 0.8rem;
    color: var(--svc-accent-blue);
}

/* ── Content Blocks ───────────────────────────────────────────────────── */
.content-block {
    margin-bottom: 4rem;
}

.content-block__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-block__grid--reverse {
    direction: rtl;
}

.content-block__grid--reverse > * {
    direction: ltr;
}

.content-block__image {
    border-radius: var(--svc-radius);
    overflow: hidden;
    position: relative;
}

.content-block__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--svc-transition);
}

.content-block__image:hover img {
    transform: scale(1.03);
}

.content-block__text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1rem;
}

.content-block__text p {
    color: var(--svc-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ── Horizontal Scroll Section ────────────────────────────────────────── */
.horizontal-scroll-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.h-scroll-track {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    will-change: transform;
}

.h-scroll-card {
    flex: 0 0 350px;
    background: var(--svc-card-bg);
    border: 1px solid var(--svc-card-border);
    border-radius: var(--svc-radius);
    padding: 2rem;
    transition: var(--svc-transition);
}

.h-scroll-card:hover {
    border-color: var(--svc-primary);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.1);
}

.h-scroll-card__icon {
    font-size: 2rem;
    color: var(--svc-primary);
    margin-bottom: 1rem;
}

.h-scroll-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.h-scroll-card__desc {
    color: var(--svc-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Product Callout Cards ────────────────────────────────────────────── */
.product-callout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-callout {
    background: var(--svc-card-bg);
    border: 1px solid var(--svc-card-border);
    border-radius: var(--svc-radius-sm);
    padding: 1.5rem;
    text-align: center;
    transition: var(--svc-transition);
}

.product-callout:hover {
    transform: translateY(-4px);
    border-color: var(--svc-accent-blue);
}

.product-callout__name {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.product-callout__brand {
    color: var(--svc-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.product-callout__desc {
    color: var(--svc-text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ── FAQ Accordion ────────────────────────────────────────────────────── */
.faq-section {
    padding: 5rem 0;
    background: var(--svc-darker);
}

.faq-item {
    background: var(--svc-card-bg);
    border: 1px solid var(--svc-card-border);
    border-radius: var(--svc-radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item.active {
    border-color: var(--svc-primary);
}

.faq-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.faq-item__question:hover {
    color: var(--svc-primary);
}

.faq-item__question i {
    transition: transform 0.3s;
    color: var(--svc-primary);
}

.faq-item.active .faq-item__question i {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-item__answer {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

.faq-item__answer p {
    color: var(--svc-text);
    line-height: 1.7;
    margin: 0;
}

/* ── Image Mask Reveal ────────────────────────────────────────────────── */
.image-mask-reveal {
    overflow: hidden;
    border-radius: var(--svc-radius);
}

.image-mask-reveal img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Credentials Section ──────────────────────────────────────────────── */
.credentials-section {
    padding: 4rem 0;
    background: var(--svc-darker);
    border-top: 1px solid var(--svc-card-border);
}

.credentials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.credential-card {
    background: var(--svc-card-bg);
    border: 1px solid var(--svc-card-border);
    border-radius: var(--svc-radius-sm);
    padding: 1.5rem 2rem;
    text-align: center;
    min-width: 180px;
    transition: var(--svc-transition);
}

.credential-card:hover {
    transform: translateY(-4px);
    border-color: var(--svc-gold);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.1);
}

.credential-card i {
    font-size: 2rem;
    color: var(--svc-gold);
    margin-bottom: 0.75rem;
    display: block;
}

.credential-logo {
    width: 120px;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    border-radius: 6px;
}

.credential-card h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.credential-card p {
    color: var(--svc-text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* ── Contact Form (Services) ──────────────────────────────────────────── */
.services-contact-section {
    padding: 5rem 0;
    background: var(--svc-dark);
}

.service-contact-form .form-control,
.service-contact-form .form-select {
    background: var(--svc-card-bg);
    border: 1px solid var(--svc-card-border);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--svc-radius-sm);
    transition: border-color 0.3s;
}

.service-contact-form .form-control:focus,
.service-contact-form .form-select:focus {
    border-color: var(--svc-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
    background: var(--svc-card-bg);
    color: #fff;
}

.service-contact-form .form-label {
    color: var(--svc-text);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-message--success {
    background: rgba(6, 214, 160, 0.1);
    border: 1px solid var(--svc-accent-green);
    border-radius: var(--svc-radius-sm);
    padding: 2rem;
    text-align: center;
    color: var(--svc-accent-green);
}

.form-message--success i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.form-message--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: var(--svc-radius-sm);
    padding: 1rem;
    text-align: center;
    color: #ef4444;
}

/* ── CTA Button (Services) ────────────────────────────────────────────── */
.services-hero .cta-button,
.services-contact-section .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--svc-primary), var(--svc-primary-dark));
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--svc-transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3);
    color: #fff;
}

.cta-button--secondary {
    background: transparent;
    border: 2px solid var(--svc-primary);
    color: var(--svc-primary);
}

.cta-button--secondary:hover {
    background: var(--svc-primary);
    color: #fff;
}

/* ── Spec Sheet Download ──────────────────────────────────────────────── */
.spec-download {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--svc-card-bg);
    border: 1px solid var(--svc-card-border);
    border-radius: var(--svc-radius-sm);
    padding: 1rem 1.5rem;
    color: var(--svc-text);
    text-decoration: none;
    transition: var(--svc-transition);
    margin-top: 1rem;
}

.spec-download:hover {
    border-color: var(--svc-primary);
    color: var(--svc-primary);
}

.spec-download i {
    font-size: 1.2rem;
    color: var(--svc-primary);
}

/* ── Topology / Case Study Cards ──────────────────────────────────────── */
.case-study-card {
    background: var(--svc-card-bg);
    border: 1px solid var(--svc-card-border);
    border-radius: var(--svc-radius);
    overflow: hidden;
    transition: var(--svc-transition);
}

.case-study-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.case-study-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.case-study-card__body {
    padding: 1.5rem;
}

.case-study-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.case-study-card__text {
    color: var(--svc-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Checklist ────────────────────────────────────────────────────────── */
.install-checklist {
    list-style: none;
    padding: 0;
}

.install-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--svc-card-border);
    color: var(--svc-text);
}

.install-checklist li i {
    color: var(--svc-accent-green);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* ── Gallery Grid (Residential AV) ────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--svc-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--svc-transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--svc-transition);
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__caption {
    color: #fff;
    font-weight: 600;
}

/* ── Privacy / GDPR Notice (CCTV page) ────────────────────────────────── */
.privacy-notice {
    background: rgba(0, 180, 216, 0.08);
    border-left: 4px solid var(--svc-accent-blue);
    border-radius: var(--svc-radius-sm);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.privacy-notice h4 {
    color: var(--svc-accent-blue);
    margin-bottom: 0.75rem;
}

.privacy-notice p {
    color: var(--svc-text);
    line-height: 1.7;
    margin: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .content-block__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .content-block__grid--reverse {
        direction: ltr;
    }
    .services-hero {
        min-height: 60vh;
    }
    .h-scroll-card {
        flex: 0 0 280px;
    }
}

@media (max-width: 767px) {
    .services-hero__title {
        font-size: 1.8rem;
    }
    .service-hub-grid {
        grid-template-columns: 1fr;
    }
    .credentials-grid {
        flex-direction: column;
        align-items: center;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Reduced Motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .services-hero__bg {
        transform: none !important;
    }
}
