/* 
   Calsysmedia - Design System and Stylesheet
   Theme: Corporate Tech Light (Refined, Executive, Trustworthy)
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #f8fafc; /* Slate 50 */
    --bg-deep: #f1f5f9; /* Slate 100 */
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --primary: #1e3a8a; /* Deep Indigo / Navy */
    --primary-rgb: 30, 58, 138;
    --primary-glow: rgba(30, 58, 138, 0.08);
    --accent: #0f766e; /* Teal */
    --accent-rgb: 15, 118, 110;
    --accent-glow: rgba(15, 118, 110, 0.08);
    --alert: #be123c; /* Toned down rose/red */
    --alert-glow: rgba(190, 18, 60, 0.08);
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #475569; /* Slate 600 */
    --text-dark: #1f2937;
    --border-color: #e2e8f0; /* Slate 200 */
    --border-glow: rgba(30, 58, 138, 0.15);
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-deep);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: rgba(30, 58, 138, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection */
::selection {
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin-top: 6px;
    border-radius: 1px;
}

h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Utility Layouts */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.text-center {
    text-align: center;
}

.text-gradient {
    color: var(--primary);
}

/* Glow/Contrast Text */
.glow-text-primary {
    color: var(--primary);
}
.glow-text-alert {
    color: var(--alert);
}

/* Grid & Flex */
.grid {
    display: grid;
    gap: 24px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Header & Navigation */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.logo span {
    color: var(--accent);
}

.logo-icon {
    display: inline-block;
    width: 26px;
    height: 26px;
    stroke: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 24px;
}

.nav-item a {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-item.active a,
.nav-item a:hover {
    color: var(--primary);
}

.nav-item.active a::after,
.nav-item a:hover::after {
    width: 100%;
}

.nav-btn-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-hotline {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.btn-hotline:hover {
    background: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

/* Mobile Toggle */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-main);
    margin: 4px 0;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-deep);
    border-color: var(--primary);
    color: var(--primary);
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    width: 100%;
    height: 52vh;
    min-height: 440px;
    overflow: hidden;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.2) 100%);
    z-index: 3;
}

.slider-container-inner {
    position: relative;
    z-index: 4;
    width: 100%;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.slider-arrow:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.slider-arrow-left {
    left: 20px;
}

.slider-arrow-right {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(30, 58, 138, 0.15);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

.hero-content {
    max-width: 680px;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-deep);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hero-badge .ping-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

.hero-title {
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Corporate White Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 6px;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(30, 58, 138, 0.3);
    box-shadow: var(--shadow-lg);
}

.card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: var(--bg-deep);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    transition: var(--transition);
}

.card:hover .card-icon-box {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
}

.card-icon-box svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Service lists */
.card-list {
    list-style: none;
    margin-top: 12px;
}
.card-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 16px;
    position: relative;
    margin-bottom: 6px;
}
.card-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Toned-down Support Banner */
.emergency-banner {
    background: #0f172a; /* Solid dark slate for premium contrast block */
    border: 1px solid #1e293b;
    box-shadow: var(--shadow-md);
    border-radius: 6px;
    padding: 40px;
    margin-top: -30px;
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.emergency-content {
    flex: 1;
    min-width: 300px;
}

.emergency-tag {
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.emergency-tag .pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.emergency-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.emergency-title::after { display: none; }

.emergency-desc {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #94a3b8;
}

.emergency-action {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.phone-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.phone-number:hover {
    color: var(--accent);
}

.phone-number svg {
    width: 24px;
    height: 24px;
    fill: var(--accent);
}

/* Process Timeline (Corporate Clean) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: -23px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent);
    transition: var(--transition);
    z-index: 5;
}

.timeline-item:hover .timeline-badge {
    background: var(--accent);
    transform: scale(1.15);
}

.timeline-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 6px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(30, 58, 138, 0.2);
    box-shadow: var(--shadow-md);
}

.timeline-step {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.timeline-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.timeline-title::after { display: none; }

/* Contact page structures */
.contact-section-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 991px) {
    .contact-section-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-info-list {
    list-style: none;
    margin-top: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: var(--bg-deep);
    border: 1px solid var(--border-color);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control option {
    background-color: #ffffff;
    color: var(--text-main);
}

/* AJAX form alert boxes */
.form-response {
    display: none;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-response.success {
    display: block;
    background: #ecfdf5;
    border: 1px solid #059669;
    color: #047857;
}

.form-response.error {
    display: block;
    background: #fff5f5;
    border: 1px solid #dc2626;
    color: #b91c1c;
}

/* Blog layouts */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 4px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.blog-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-family: var(--font-body);
}

.blog-tag {
    background: var(--bg-deep);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card .card-title {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 8px;
}

.blog-card .card-title::after { display: none; }

.blog-card .card-excerpt {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: auto;
}

.blog-author {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Blog Post Detail Styling (Corporate Clean) */
.post-header {
    padding: 60px 0 30px;
    border-bottom: 1px solid var(--border-color);
    background-color: #ffffff;
}

.post-meta-details {
    display: flex;
    gap: 16px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.post-body {
    padding: 40px 0;
    max-width: 740px;
    margin: 0 auto;
}

.post-body p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.post-body h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.post-body h3::after { display: none; }

.post-body ul, .post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.post-body li {
    margin-bottom: 0.4rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.post-body blockquote {
    background: var(--bg-deep);
    border-left: 3px solid var(--accent);
    padding: 16px;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}

.post-body blockquote p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--text-main);
}

.post-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

/* Accordion FAQs */
.faq-list {
    margin-top: 20px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    user-select: none;
}

.faq-toggle-icon {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    stroke-width: 2;
    transition: transform 0.25s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out, padding 0.25s ease-out;
    padding: 0 16px;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

/* Dark Footer Anchor */
.footer {
    background: #0f172a; /* Rich deep navy/slate footer to ground the layout */
    border-top: 1px solid #1e293b;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-logo-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo-desc {
    max-width: 300px;
    color: #94a3b8;
}

.footer-logo-block .logo {
    color: #ffffff;
}

.footer-logo-block .logo-icon {
    stroke: #ffffff;
}

.footer-heading {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-heading::after { display: none; }

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #94a3b8;
}

.footer-legal-links {
    display: flex;
    gap: 16px;
    list-style: none;
}

.footer-legal-links a {
    font-size: 0.8rem;
    color: #94a3b8;
}

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

/* Scroll Animation States */
.scroll-animate {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    h1 { font-size: 1.8rem; }
    .navbar { height: 60px; }
    .nav-links { display: none; }
    .nav-btn-wrapper { display: none; }
    .hamburger { display: block; }
    .emergency-banner { padding: 30px; }
    .emergency-title { font-size: 1.3rem; }
    .phone-number { font-size: 1.5rem; }
}

@media (max-width: 576px) {
    .section { padding: 50px 0; }
    .hero-slider { height: 40vh; min-height: 380px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .emergency-banner { text-align: center; justify-content: center; }
    .emergency-action { align-items: center; width: 100%; }
    .phone-number { justify-content: center; }
    .timeline { padding-left: 16px; }
    .timeline-badge { left: -31px; }
}

/* Redesigned Services layout styles */
.services-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 6px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.service-row {
    display: grid;
    grid-template-columns: 1.20fr 0.80fr;
    gap: 50px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.service-row:last-of-type {
    border-bottom: none;
}

.service-row-reverse {
    grid-template-columns: 0.80fr 1.20fr;
}

.service-row-reverse .service-info-col {
    order: 2;
}

.service-row-reverse .service-card-col {
    order: 1;
}

.service-info-col h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-info-col h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--accent);
    margin-top: 6px;
}

.service-info-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-tool-badge {
    display: inline-block;
    background: var(--bg-deep);
    border: 1px solid var(--border-color);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 6px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.tool-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tool-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tool-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.tool-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.methodology-checklist {
    list-style: none;
    margin-top: 20px;
}

.methodology-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
}

.methodology-step:last-child {
    border-bottom: none;
}

.methodology-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.methodology-text strong {
    display: block;
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.methodology-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .service-row, .service-row-reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
    }
    .service-row-reverse .service-info-col {
        order: 1;
    }
    .service-row-reverse .service-card-col {
        order: 2;
    }
}
