/*
    SERVICE PAGE CSS — BlackBoys.cl
    Shared stylesheet for all individual service pages.
    Inherits design tokens from the main site aesthetic.
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --text-primary:   #171A20;
    --text-secondary: #5c6470;
    --accent:         #3E6AE1;
    --bg:             #ffffff;
    --border:         rgba(0,0,0,0.08);
    --radius:         12px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
.svc-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 4rem;
    background: #FFFFFF; /* Pure white to match main page and blend logo */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.svc-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.svc-logo-img {
    height: 45px;
    width: auto;
    display: block;
}

/* Expanded Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links li a:hover {
    opacity: 1;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none; /* Hide on mobile for now, can add toggle later */
    }
}

.svc-nav-cta {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    background: var(--text-primary);
    padding: 0.55rem 1.4rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.25s;
}

.svc-nav-cta:hover { background: var(--accent); }

/* ── Hero ── */
.svc-hero {
    position: relative;
    height: 80vh;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
    overflow: hidden;
    margin-top: 0; /* nav is fixed */
}

.svc-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    transition: transform 8s ease-out;
}

.svc-hero:hover .svc-hero-bg { transform: scale(1); }

.svc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.55) 100%
    );
}

.svc-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 4rem;
    color: #fff;
}

.svc-breadcrumb {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.svc-breadcrumb a { color: inherit; text-decoration: none; }
.svc-breadcrumb a:hover { color: #fff; }

.svc-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.svc-hero-content p {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    font-weight: 300;
    max-width: 600px;
}

/* ── Layout utilities ── */
.svc-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
}

.svc-section {
    padding: 6rem 0;
}

.svc-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.svc-reverse { direction: rtl; }
.svc-reverse > * { direction: ltr; }

.svc-rule {
    height: 1px;
    background: var(--border);
    max-width: 1120px;
    margin: 0 auto;
}

/* ── Text blocks ── */
.svc-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.svc-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.svc-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.svc-caption {
    font-size: 0.9rem !important;
    font-style: italic;
    color: var(--text-primary) !important;
    font-weight: 500 !important;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin-top: 1.5rem !important;
}

/* ── Service list ── */
.svc-service-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1rem;
    margin: 1.25rem 0;
}

.svc-service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: var(--text-primary);
    font-weight: 500;
}

.svc-icon { font-size: 1rem; }

/* ── Images ── */
.svc-image-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    line-height: 0;
}

.svc-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4,0,0.2,1);
}

.svc-image-wrap:hover img { transform: scale(1.04); }

.svc-image-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(23,26,32,0.8);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    backdrop-filter: blur(6px);
}

/* ── Spec grid ── */
.svc-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 1.5rem 0;
}

.svc-spec {
    background: var(--bg);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.svc-spec strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.svc-spec span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* ── Norm cards ── */
.svc-norm-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.svc-norm-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.svc-norm-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(62,106,225,0.07);
}

.svc-norm-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.svc-norm-card strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.svc-norm-card p {
    font-size: 0.85rem !important;
    color: var(--text-secondary);
    margin: 0 !important;
    line-height: 1.6;
}

/* ── Standards strip ── */
.svc-standards {
    background: #f7f8fa;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.svc-standards-label {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.svc-standards-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.svc-std {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.4rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: 40px;
    letter-spacing: 0.02em;
    transition: border-color 0.2s, color 0.2s;
}

.svc-std:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── CTA section ── */
.svc-cta {
    background: var(--text-primary);
    padding: 5rem 0;
}

.svc-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.svc-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.svc-cta p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
}

.svc-cta-btn {
    flex-shrink: 0;
    background: #ffffff;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, transform 0.2s;
    white-space: nowrap;
}

.svc-cta-btn:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ── Footer ── */
/* ── Footer Styling (Redesigned) ── */
.main-footer {
    background: #0c0d0e;
    color: white;
    padding: 6rem 5vw 2rem 5vw;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.footer-col p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-logo {
    height: 45px;
    margin-bottom: 1.5rem;
    display: block;
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: 0.9;
}

.contact-col strong {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.2rem;
}

.contact-col a {
    color: var(--accent);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: #ffffff;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .footer-logo {
        margin: 0 auto 1.5rem auto;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .svc-two-col {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .svc-reverse { direction: ltr; }
    .svc-nav { padding: 1rem 1.5rem; }
    .svc-hero-content { padding: 0 1.5rem; }
    .svc-container { padding: 0 1.5rem; }
    .svc-cta-inner { flex-direction: column; text-align: center; }
    .svc-footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.5rem; }
    .svc-service-list { grid-template-columns: 1fr; }
    .svc-spec-grid { grid-template-columns: 1fr; }
}
