/* ============================================
   SERVICES — Premium Landing Pages & List
   Matches main page design language
   ============================================ */

/* --- Hero Section (matches main hero) --- */
.services-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--color-background);
    padding: calc(var(--spacing-unit) * 18) 0 calc(var(--spacing-unit) * 12);
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(184, 159, 93, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(184, 159, 93, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.services-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(184, 159, 93, 0.3) 50%, transparent 100%);
}

.services-hero .container {
    position: relative;
    z-index: 1;
}

.services-hero .breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: calc(var(--spacing-unit) * 4);
    font-size: 0.85rem;
}

.services-hero .breadcrumbs a {
    color: rgba(248, 247, 244, 0.5);
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.services-hero .breadcrumbs a:hover {
    color: var(--color-accent);
}

.services-hero .breadcrumbs span {
    color: rgba(248, 247, 244, 0.3);
}

.services-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: calc(var(--spacing-unit) * 3);
    max-width: 800px;
}

.services-hero h1 strong {
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent), #d1b874);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-hero .hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(248, 247, 244, 0.6);
    max-width: 560px;
    line-height: 1.7;
}

.services-hero .hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    border: 1px solid rgba(184, 159, 93, 0.25);
    padding: 8px 20px;
    border-radius: 4px;
    margin-bottom: calc(var(--spacing-unit) * 4);
    backdrop-filter: blur(4px);
    background: rgba(184, 159, 93, 0.05);
}

/* --- Stats Bar --- */
.services-stats {
    padding: calc(var(--spacing-unit) * 8) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--spacing-unit) * 4);
    text-align: center;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent), #d1b874);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-secondary, #4A5568);
    line-height: 1.4;
}

/* --- Section Header --- */
.services-section-header {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 8);
}

.services-section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--color-text);
    letter-spacing: -0.02em;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.services-section-header p {
    font-size: 1.05rem;
    color: var(--color-secondary, #4A5568);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Services List (index page) --- */
.services-list {
    padding: calc(var(--spacing-unit) * 10) 0 calc(var(--spacing-unit) * 15);
    background: linear-gradient(180deg, var(--color-background) 0%, rgba(184, 159, 93, 0.02) 100%);
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2.5);
    max-width: 960px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(184, 159, 93, 0.1);
    border-radius: var(--radius-xl, 16px);
    padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 5);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-accent), #d1b874);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(184, 159, 93, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(184, 159, 93, 0.08);
    transform: translateY(-4px);
}

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

.service-card-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.service-card-num {
    font-size: 0.7rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent), #d1b874);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.service-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    letter-spacing: -0.01em;
}

.service-card-tagline {
    font-size: 0.9rem;
    color: var(--color-secondary, #4A5568);
    margin-bottom: calc(var(--spacing-unit) * 3);
    line-height: 1.5;
}

.service-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card-features li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--color-secondary, #4A5568);
    line-height: 1.6;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-features li {
    transform: translateX(4px);
}

.service-card-features li::before {
    content: '✓';
    flex-shrink: 0;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: 2px;
}

.service-card-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: calc(var(--spacing-unit) * 3);
    padding-top: calc(var(--spacing-unit) * 2);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: gap 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover .service-card-arrow {
    gap: 16px;
}

/* --- Single Service: Micro-landing --- */

/* Content section */
.service-content {
    padding: calc(var(--spacing-unit) * 10) 0 calc(var(--spacing-unit) * 8);
}

.service-content .container {
    max-width: 800px;
}

.service-content-body h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: calc(var(--spacing-unit) * 6) 0 calc(var(--spacing-unit) * 2);
    color: var(--color-text);
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 20px;
}

.service-content-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: linear-gradient(180deg, var(--color-accent), #d1b874);
    border-radius: 2px;
}

.service-content-body h2:first-child {
    margin-top: 0;
}

.service-content-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: calc(var(--spacing-unit) * 4) 0 calc(var(--spacing-unit) * 1.5);
    color: var(--color-text);
}

.service-content-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-secondary, #4A5568);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.service-content-body ul,
.service-content-body ol {
    padding-left: 24px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.service-content-body li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-secondary, #4A5568);
    margin-bottom: 8px;
}

.service-content-body blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 24px 32px;
    margin: calc(var(--spacing-unit) * 4) 0;
    background: linear-gradient(135deg, rgba(184, 159, 93, 0.06), rgba(184, 159, 93, 0.02));
    border-radius: 0 var(--radius-xl, 16px) var(--radius-xl, 16px) 0;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text);
    position: relative;
}

.service-content-body blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 16px;
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

/* Features section */
.service-features-section {
    padding: calc(var(--spacing-unit) * 10) 0 calc(var(--spacing-unit) * 12);
    background: linear-gradient(180deg, rgba(184, 159, 93, 0.03) 0%, var(--color-background) 100%);
}

.service-features-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 8);
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.service-features-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 1.5);
}

.service-feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 3);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(184, 159, 93, 0.1);
    border-radius: var(--radius-md, 8px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-feature-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(184, 159, 93, 0.25);
    box-shadow: 0 8px 32px rgba(184, 159, 93, 0.08);
    transform: translateX(8px);
}

.service-feature-dot {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(184, 159, 93, 0.15), rgba(184, 159, 93, 0.05));
    border: 1px solid rgba(184, 159, 93, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    position: relative;
}

.service-feature-dot::after {
    content: '✓';
    color: var(--color-accent);
    font-size: 0.65rem;
    font-weight: 700;
}

.service-feature-item span {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text);
}

/* CTA / Contact — uses .contact from sections.css (same as main page) */

/* FAQ section */
.service-faq {
    padding: calc(var(--spacing-unit) * 12) 0;
}

.service-faq h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 8);
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.service-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-faq-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.5);
}

.service-faq-item:hover {
    border-color: rgba(184, 159, 93, 0.2);
}

.service-faq-item.active {
    border-color: rgba(184, 159, 93, 0.3);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(184, 159, 93, 0.06);
}

.service-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    transition: all 0.3s ease;
    gap: 16px;
}

.service-faq-question:hover {
    background: rgba(184, 159, 93, 0.03);
}

.service-faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(184, 159, 93, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-accent);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-faq-item.active .service-faq-icon {
    transform: rotate(45deg);
    background: var(--color-accent);
    color: #fff;
}

.service-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-faq-item.active .service-faq-answer {
    max-height: 500px;
}

.service-faq-answer p {
    padding: 0 28px 24px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-secondary, #4A5568);
    margin: 0;
}

/* Related services section */
.service-related {
    padding: calc(var(--spacing-unit) * 10) 0 calc(var(--spacing-unit) * 12);
    background: linear-gradient(180deg, rgba(184, 159, 93, 0.03) 0%, var(--color-background) 100%);
}

.service-related h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 6);
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.service-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2.5);
    max-width: 960px;
    margin: 0 auto;
}

.service-related-card {
    display: block;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(184, 159, 93, 0.08);
    border-radius: var(--radius-xl, 16px);
    padding: calc(var(--spacing-unit) * 3.5) calc(var(--spacing-unit) * 4);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.service-related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #d1b874);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-related-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(184, 159, 93, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(184, 159, 93, 0.06);
    transform: translateY(-6px);
}

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

.service-related-card .card-num {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.service-related-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.service-related-card p {
    font-size: 0.9rem;
    color: var(--color-secondary, #4A5568);
    line-height: 1.6;
    margin: 0;
}

/* Related glossary articles */
.service-related-glossary {
    padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 10);
}

.service-related-glossary h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 5);
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.glossary-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    max-width: 800px;
    margin: 0 auto;
}

.glossary-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
    background: rgba(184, 159, 93, 0.04);
    border: 1px solid rgba(184, 159, 93, 0.12);
    border-radius: var(--radius-md, 8px);
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glossary-link-card:hover {
    background: rgba(184, 159, 93, 0.1);
    border-color: rgba(184, 159, 93, 0.3);
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(184, 159, 93, 0.08);
}

.glossary-link-card::before {
    content: '\2192';
    flex-shrink: 0;
    color: var(--color-accent);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.glossary-link-card:hover::before {
    transform: translateX(4px);
}

/* --- Animations --- */
.svc-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.svc-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for list items */
.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4) { transition-delay: 0.24s; }
.service-card:nth-child(5) { transition-delay: 0.32s; }
.service-card:nth-child(6) { transition-delay: 0.4s; }
.service-card:nth-child(7) { transition-delay: 0.48s; }
.service-card:nth-child(8) { transition-delay: 0.56s; }

.svc-fade-in.service-card.is-visible {
    transition-delay: inherit;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: calc(var(--spacing-unit) * 3);
    }

    .services-hero {
        padding: calc(var(--spacing-unit) * 14) 0 calc(var(--spacing-unit) * 10);
    }

    .service-card {
        padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 3);
    }

    .service-card-title {
        font-size: 1.15rem;
    }

    .service-content {
        padding: calc(var(--spacing-unit) * 7) 0 calc(var(--spacing-unit) * 5);
    }

    .service-content-body h2 {
        padding-left: 16px;
    }

    .service-content-body blockquote {
        padding: 20px 24px;
        margin: calc(var(--spacing-unit) * 3) 0;
    }

    .service-features-section {
        padding: calc(var(--spacing-unit) * 8) 0;
    }

    .service-feature-item {
        padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2.5);
    }

    .service-feature-item:hover {
        transform: none;
    }

    .service-cta {
        padding: calc(var(--spacing-unit) * 10) 0;
    }

    .service-cta .service-contact-form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .service-faq {
        padding: calc(var(--spacing-unit) * 8) 0;
    }

    .service-faq-question {
        padding: 18px 22px;
        font-size: 0.95rem;
    }

    .service-faq-answer p {
        padding: 0 22px 18px;
    }

    .service-related {
        padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 10);
    }

    .service-related-grid {
        grid-template-columns: 1fr;
    }

    .service-related-card:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .services-hero {
        padding: calc(var(--spacing-unit) * 12) 0 calc(var(--spacing-unit) * 8);
    }

    .services-hero h1 {
        font-size: 1.75rem;
    }

    .services-hero .hero-subtitle {
        font-size: 0.95rem;
    }

    .service-card-features li {
        font-size: 0.85rem;
    }
}
