/* Services Page - Our Services (root) */

:root {
    --brand-deep-blue: #001a4d;
    --brand-primary: #1e40af;
    --brand-accent: #3b82f6;
    --brand-light: #dbeafe;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --bg-soft: #f8fafc;
    --border-light: #e2e8f0;
    --radius: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text-dark); background: white; line-height: 1.5; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; }
a { text-decoration: none; -webkit-tap-highlight-color: transparent; color: inherit; }

.header-spacer { height: calc(38px + 85px); width: 100%; }

/* Hero - Half screen */
.hero-services {
    background: linear-gradient(135deg, #001a4d 0%, #1e40af 100%);
    min-height: 50vh;
    min-height: 50dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-services::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59,130,246,0.2), transparent 60%);
    pointer-events: none;
}
.hero-services h1 {
    color: white;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    position: relative;
    z-index: 2;
}

/* Breadcrumb */
.breadcrumb-wrapper {
    background: var(--bg-soft);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}
.breadcrumb-item a { color: var(--brand-primary); font-weight: 600; }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; padding-right: 8px; color: var(--text-muted); }

/* Section headings */
.sitemap-section {
    padding: 48px 0;
}
.sitemap-section:nth-child(even) { background: var(--bg-soft); }
.section-heading {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--brand-deep-blue);
    margin-bottom: 32px;
    font-weight: 700;
}
.section-heading span { color: var(--brand-primary); }
.subsection-heading {
    font-size: 1.25rem;
    color: var(--brand-deep-blue);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--brand-primary);
    display: inline-block;
}

/* Sitemap cards grid */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.sitemap-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    padding: 18px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.sitemap-card span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}
.sitemap-section:nth-child(even) .sitemap-card {
    background: white;
}

/* Subsection spacing - first has no extra top margin */
.subsection-heading:not(:first-of-type) { margin-top: 40px; }

/* CTA Section - matches Delhi/Jaipur pages */
.cta-section { background: #f8fafc; padding: 48px 0 64px; }
.gradient-cta {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 32px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    align-items: flex-start;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.cta-content { max-width: 900px; }
.cta-content h2 {
    color: white;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 12px;
    font-weight: 800;
}
.cta-content p {
    font-size: clamp(1rem, 3vw, 1.35rem);
    line-height: 1.4;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
}
.cta-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}
.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: white;
    color: #000;
    padding: 20px 50px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    min-width: 200px;
    border: none;
    cursor: pointer;
}
.cta-btn.cta-whatsapp { background: #25D366; color: white; }
.cta-btn i { font-size: 1.3rem; display: inline-block; }

@media (max-width: 768px) {
    .sitemap-grid { grid-template-columns: 1fr; }
    .sitemap-section { padding: 36px 0; }
    .gradient-cta {
        padding: 30px 20px;
        align-items: center;
        text-align: center;
    }
    .cta-buttons { flex-direction: column; }
    .cta-btn { width: 100%; padding: 16px 24px; font-size: 1.1rem; min-width: auto; }
}

/* Services page: hide footer (header & icons remain) */
.services-page-hide-footer { display: none !important; }

/*
 * Gradient service cards on services.html only (inside .services-split-stack).
 * Do not target all main .sitemap-grid links — resources.html, website-resources.html,
 * india/usa/etc. use white cards with dark text and also load this stylesheet.
 */
main#main-content .services-split-stack .sitemap-grid > a.sitemap-card:not(.country-hub-card),
main#main-content .services-split-stack .sitemap-grid > a.sitemap-card:not(.country-hub-card):link,
main#main-content .services-split-stack .sitemap-grid > a.sitemap-card:not(.country-hub-card):visited {
    color: #fff;
    text-decoration: none;
    -webkit-text-fill-color: #fff;
}
main#main-content .services-split-stack .sitemap-grid > a.sitemap-card:not(.country-hub-card) span {
    color: #fff;
    -webkit-text-fill-color: #fff;
}
main#main-content .services-split-stack .sitemap-grid > a.sitemap-card:not(.country-hub-card) i {
    color: #fff;
}

/* Explore row under country hubs (homepage parity) */
.services-page-explore {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
    margin-top: 0;
    padding: 22px 16px 48px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-soft);
    font-size: 0.92rem;
    font-weight: 600;
}
.services-page-explore a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.services-page-explore a:hover {
    color: #1d4ed8;
}
.services-page-explore .services-explore-sep {
    color: #94a3b8;
    font-weight: 400;
    user-select: none;
}
