/* ==========================================================================
   Rovista — Marketing Agency Software Development Page
   Design concept: "Campaign Board"
   Deep indigo + hot coral, a bold grotesk for headlines, halftone print
   dots in hero/CTA backgrounds (advertising's own visual language).
   Signature motif: a peeled corner "tag" on each card, like a sticky
   note pulled off a campaign mood board — playful but controlled,
   distinct from the systems-brackets used on the other industry pages.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Manrope:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    --bg:            #F7F5FA;
    --surface:        #FFFFFF;
    --surface-alt:    #EFEBF7;
    --ink:            #1B1730;
    --ink-soft:       #58516F;
    --ink-faint:      #8A84A1;

    --primary:        #241E3D;
    --primary-light:  #362C5C;
    --primary-tint:   #E7E4F2;

    --accent:         #FF5A4E;
    --accent-dark:    #E1443A;
    --accent-tint:    #FFE1DD;

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

    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body:    'Manrope', -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: 700;
    letter-spacing: -0.01em;
    line-height: 1.14;
}

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

/* ---------- eyebrow badges (mono, "campaign tag" 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.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--surface);
    border: 1.5px solid var(--primary);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    position: relative;
}

.intro-badge::after,
.service-badge::after,
.why-badge::after,
.industry-badge::after,
.process-badge::after {
    content: "#";
    color: var(--accent);
    margin-left: 4px;
}

/* ---------- HERO — halftone print dots ---------- */

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

.aiagent-hero-section::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -80px;
    width: 520px;
    height: 520px;
    background-image: radial-gradient(var(--primary) 2.4px, transparent 2.4px);
    background-size: 18px 18px;
    opacity: 0.14;
    border-radius: 50%;
    pointer-events: none;
}

.aiagent-hero-section::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 320px;
    height: 320px;
    background: var(--accent);
    opacity: 0.08;
    border-radius: 50%;
    filter: blur(10px);
    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: 700;
    font-size: 15px;
    padding: 15px 28px;
    border-radius: 999px;
    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(--accent);
    color: #FFFFFF;
    border: 1.5px solid var(--accent);
}

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

.hero-secondary-btn {
    background: transparent;
    color: var(--primary);
    border: 1.5px 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(--primary);
    outline-offset: 3px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1.5px solid var(--primary);
    background: var(--surface);
    transform: rotate(-1.2deg);
}

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

/* ---------- 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: 1.5px 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 — peeled corner "tag" cards ---------- */

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

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

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px) rotate(-0.4deg);
    box-shadow: 0 14px 28px rgba(36, 30, 61, 0.1);
}

/* peeled corner tag */
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 26px 26px 0;
    border-color: transparent var(--accent-tint) transparent transparent;
    border-top-right-radius: 10px;
    transition: border-color 0.2s ease;
    z-index: 1;
}

.service-card:hover::before {
    border-color: transparent var(--accent) transparent transparent;
}

.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: 700;
    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 tag, no lift */
.ai-mention-card {
    padding: 22px 24px;
    border-style: dashed;
}

.ai-mention-card:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: none;
}

.ai-mention-card::before {
    display: none;
}

.ai-mention-card .service-content { padding: 0; }

.ai-mention-card h3 { font-size: 17px; }

.ai-mention-card p { font-size: 14.5px; }

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

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

.why-card {
    background: var(--surface);
    border: 1.5px 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 14px 30px rgba(36, 30, 61, 0.1);
}

.why-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--primary);
    color: #FFFFFF;
    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: 700;
    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: 1.5px 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: 700;
    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: 1.5px 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: 10px;
    background: var(--primary);
    color: #FFFFFF;
    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: 700;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.35;
}

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

@media (min-width: 992px) {
    .process-wrapper .col-lg-3:not(:last-child) .process-card::after {
        content: "";
        position: absolute;
        top: 48px;
        right: -20px;
        width: 20px;
        height: 2px;
        background: var(--accent);
        border-radius: 2px;
    }
}

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

.tp-contact-area {
    padding: 90px 0;
    background: var(--primary);
    background-image: radial-gradient(rgba(255,255,255,0.09) 2px, transparent 2px);
    background-size: 20px 20px;
    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: #FFFFFF;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    padding: 17px 34px;
    border-radius: 999px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

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

.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: 1.5px 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: 700;
    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; }
    .hero-image-wrapper { transform: none; }
    .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; }
    .service-card:hover { transform: translateY(-4px); }
}