/* ==========================================================================
   Rovista — Healthcare Software Development Page
   Design concept: "Clinical Blueprint"
   Deep teal + warm amber, editorial serif headlines, mono labels/data,
   corner-bracket "schematic" framing on cards as the signature motif —
   because the page's job is to say "we engineer systems," not "we chat."
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600;6..72,700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    --bg:            #F6F7F3;
    --surface:        #FFFFFF;
    --surface-alt:    #EDF2ED;
    --ink:            #142621;
    --ink-soft:       #4E5D57;
    --ink-faint:      #7C8981;

    --primary:        #0E3B34;
    --primary-light:  #1F5C50;
    --primary-tint:   #E4ECE9;

    --accent:         #C98A3E;
    --accent-dark:    #A96F2C;
    --accent-tint:    #F3E4CC;

    --line:           #D7DED8;
    --radius:         14px;

    --font-display: 'Newsreader', Georgia, serif;
    --font-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:    'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- base ---------- */

.aiagent-hero-section,
.mobile-intro-section,
.zigzag-section,
.why-rovista-section,
.industries-section,
.process-section,
.tp-contact-area,
.tp-faq-area-2 {
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
}

.aiagent-hero-title,
.section-title,
.why-rovista-section h2,
.industries-section h2,
.process-section h2,
.tp-contact-area .title,
.sec-title-2 {
    font-family: var(--font-display);
    color: var(--primary);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.container, .tp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- eyebrow badges (mono, systems-label feel) ---------- */

.intro-badge,
.service-badge,
.why-badge,
.industry-badge,
.process-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--accent-tint);
    border: 1px solid var(--accent);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

/* ---------- HERO ---------- */

.aiagent-hero-section {
    padding: 110px 0 90px;
    position: relative;
    overflow: hidden;
      margin-top:80px;
}

.aiagent-hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.35;
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    pointer-events: none;
}

.aiagent-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.aiagent-hero-title {
    font-size: clamp(34px, 4.2vw, 54px);
    margin-bottom: 22px;
}

.aiagent-hero-desc {
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink-soft);
    max-width: 54ch;
    margin-bottom: 34px;
}

.aiagent-hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-primary-btn,
.hero-secondary-btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 15px 28px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.hero-primary-btn {
    background: var(--primary);
    color: #FFFFFF;
    border: 1px solid var(--primary);
}

.hero-primary-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    color: #FFFFFF;
}

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

.hero-secondary-btn:hover {
    background: var(--primary-tint);
    transform: translateY(-2px);
}

.hero-primary-btn:focus-visible,
.hero-secondary-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    outline: 6px solid var(--bg);
    outline-offset: 10px;
    pointer-events: none;
}

/* ---------- INTRO ---------- */

.mobile-intro-section { padding: 40px 0 100px; }

.intro-content { max-width: 780px; margin: 0 auto 56px; }

.section-title {
    font-size: clamp(28px, 3.2vw, 40px);
    margin-bottom: 18px;
}

.section-subtitle {
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--ink-soft);
}

.intro-image-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

.intro-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- SECTION HEADERS (shared) ---------- */

.section-header {
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-header h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 16px; }

.section-header p {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.75;
}

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

/* ---------- SERVICES — corner-bracket cards (signature motif) ---------- */

.services-section { padding: 20px 0 100px; }

.service-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 6px;
    height: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.service-card::before,
.service-card::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.service-card::before {
    top: -1px; left: -1px;
    border-right: none; border-bottom: none;
}

.service-card::after {
    bottom: -1px; right: -1px;
    border-left: none; border-top: none;
}

.service-card:hover::before,
.service-card:hover::after {
    opacity: 1;
}

.service-image {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--surface-alt);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-content { padding: 22px 18px 24px; }

.service-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.service-content p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.65;
}

/* small AI mention block — deliberately quiet, no card lift, no bracket */
.services-section .row.mt-4 .service-card {
    padding: 22px 24px;
    border-style: dashed;
}

.services-section .row.mt-4 .service-card:hover {
    transform: none;
    border-color: var(--line);
}

.services-section .row.mt-4 .service-content { padding: 0; }

.services-section .row.mt-4 h3 { font-size: 17px; }

.services-section .row.mt-4 p { font-size: 14.5px; }

/* ---------- WHY ROVISTA ---------- */

.why-rovista-section { padding: 20px 0 100px; background: var(--surface-alt); }

.why-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 30px 26px;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.why-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(14, 59, 52, 0.08);
}

.why-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: var(--primary-tint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 18px;
}

.why-card h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.35;
}

.why-card p {
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.65;
}

/* ---------- INDUSTRIES / USE-CASE GRID ---------- */

.industries-section { padding: 20px 0 100px; }

.industry-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 26px 22px;
    height: 100%;
    background: var(--surface);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.industry-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.industry-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-tint);
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-bottom: 16px;
}

.industry-card h4 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.industry-card p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- PROCESS ---------- */

.process-section { padding: 20px 0 100px; background: var(--surface-alt); }

.process-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 30px 22px;
    height: 100%;
    text-align: left;
}

.process-number {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent-dark);
    margin-bottom: 14px;
}

.process-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--primary-tint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 16px;
}

.process-card h4 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.35;
}

.process-card p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
}

/* connecting line between process steps on desktop */
@media (min-width: 992px) {
    .process-wrapper .row {
        position: relative;
    }
    .process-wrapper .col-lg-3:not(:last-child) .process-card::after {
        content: "";
        position: absolute;
        top: 48px;
        right: -20px;
        width: 20px;
        height: 1px;
        background: var(--line);
    }
}

/* ---------- CTA ---------- */

.tp-contact-area {
    padding: 90px 0;
    background: var(--primary);
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
}

.tp-contact-inner {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tp-contact-area .title {
    color: #FFFFFF;
    font-size: clamp(28px, 3.4vw, 40px);
    margin-bottom: 16px;
}

.tp-contact-area p {
    color: rgba(255,255,255,0.78);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 34px;
}

.tp-btn-one {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    padding: 17px 34px;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.tp-btn-one:hover {
    background: #E0A662;
    transform: translateY(-2px);
    color: var(--primary);
}

.tp-btn-one:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 3px;
}

.tp-btn-one .btn-wrap { display: inline-block; }
.tp-btn-one .text-two { display: none; }

/* ---------- FAQ ---------- */

.tp-faq-area-2 { padding: 20px 0 130px; }

.title-wrap { text-align: center; margin-bottom: 48px; }

.sec-title-2 { font-size: clamp(28px, 3.2vw, 38px); }

.tp-faq-inner-2 { max-width: 820px; margin: 0 auto; }

.tp-faq-item.style-2 {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px 26px;
    margin-bottom: 14px;
    background: var(--surface);
}

.tp-faq-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 10px;
    line-height: 1.4;
}

.tp-faq-body p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 991px) {
    .aiagent-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .aiagent-hero-content { text-align: left; }
    .aiagent-hero-section { padding: 80px 0 60px; }
    .mobile-intro-section,
    .services-section,
    .why-rovista-section,
    .industries-section,
    .process-section { padding-top: 10px; padding-bottom: 70px; }
    .tp-contact-area { padding: 70px 0; }
    .tp-faq-area-2 { padding-bottom: 90px; }
}

@media (max-width: 575px) {
    .aiagent-hero-btns { flex-direction: column; }
    .hero-primary-btn, .hero-secondary-btn { text-align: center; }
    .tp-faq-item.style-2 { padding: 18px 20px; }
}