/* Rosinav — Custom overrides on top of Logimax template */

/* Brand Fonts */
@font-face {
    font-family: 'Gotham Book';
    src: url('/rosinav/public/fonts/GothamBook.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Stockport Serif removed — no diacritic support.
   Headings use Playfair Display loaded via Google Fonts. */

body {
    font-family: 'Gotham Book', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Header sizing — compact */
.header-main {
    padding: 8px 0 !important;
    gap: 40px;
}
.header-main .logo {
    flex-shrink: 0;
}
.header-main .main-menu ul li a {
    padding: 14px 0 !important;
}
.sticky .header-main .main-menu ul li a {
    padding: 14px 0 !important;
}

/* Header logo sizing */
.header-logo img,
.header-logo-2 img {
    max-width: 120px;
    height: auto;
}

/* When no hero image, header sits on white — show dark logo by default */
.header-1:not(.sticky) .header-logo {
    display: none;
}
.header-1:not(.sticky) .header-logo-2 {
    display: block !important;
}
/* On pages with a dark hero, add class .has-hero to <header> to restore white logo */
header.has-hero .header-1:not(.sticky) .header-logo {
    display: block !important;
}
header.has-hero .header-1:not(.sticky) .header-logo-2 {
    display: none !important;
}
/* Nav links: dark by default, white on hero pages */
.header-1:not(.sticky) .main-menu li a {
    color: var(--header, #1a1a2e) !important;
}
header.has-hero .header-1:not(.sticky) .main-menu li a {
    color: var(--white, #fff) !important;
}


.lang-switcher a {
    color: inherit;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.lang-switcher a.active,
.lang-switcher a:hover {
    opacity: 1;
}
.lang-switcher span {
    opacity: 0.4;
    font-size: 11px;
}

/* Sidebar widgets */
.service-sidebar .sidebar-widget {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 24px;
}
.service-sidebar .sidebar-widget h4 {
    margin-bottom: 16px;
    font-size: 18px;
}
.service-sidebar .list-area li {
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
}
.service-sidebar .list-area li:last-child {
    border-bottom: none;
}
.service-sidebar .list-area li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.service-sidebar .list-area li.active a,
.service-sidebar .list-area li a:hover {
    color: var(--theme-color, #e8a020);
}
.service-sidebar .sidebar-cta {
    background: var(--theme-color, #e8a020);
    color: #fff;
}
.service-sidebar .sidebar-cta h4,
.service-sidebar .sidebar-cta p {
    color: #fff;
}
.service-sidebar .sidebar-cta .theme-btn {
    background: #fff;
    color: var(--theme-color, #e8a020);
    margin-top: 16px;
    display: inline-block;
}

/* Project filter buttons */
.project-filter .btn-outline {
    background: transparent;
    border: 2px solid var(--theme-color, #e8a020);
    color: var(--theme-color, #e8a020);
}
.project-filter .btn-outline:hover {
    background: var(--theme-color, #e8a020);
    color: #fff;
}

/* Contact info cards */
.rosinav-contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 24px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--theme-color, #e8a020);
    height: 100%;
    transition: box-shadow 0.2s;
}
.rosinav-contact-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.rosinav-contact-card__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--theme-color, #e8a020);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}
.rosinav-contact-card__body h5 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 4px;
    font-family: 'Gotham Book', sans-serif;
}
.rosinav-contact-card__body a,
.rosinav-contact-card__body span {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.4;
    word-break: break-word;
}
.rosinav-contact-card__body a:hover {
    color: var(--theme-color, #e8a020);
}
.contact-map,
#contact-map {
    width: 100%;
    height: 100%;
    min-height: 480px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

/* Form validation states */
.contact-form-items .form-clt input.input-error,
.contact-form-items .form-clt textarea.input-error {
    border: 2px solid #dc3545 !important;
    outline: none !important;
}
.form-clt input.input-error,
.form-clt textarea.input-error {
    border: 2px solid #dc3545 !important;
}
.field-error {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}
.contact-success-msg {
    margin-top: 12px;
    padding: 12px 16px;
    background: #d1fae5;
    border-left: 3px solid #10b981;
    border-radius: 4px;
    color: #065f46;
    font-size: 14px;
}

/* Form consent text */
.form-consent-text {
    font-size: 13px;
    color: #888;
    margin-bottom: 0;
}
.form-consent-text a {
    color: var(--theme-color, #e8a020);
    text-decoration: underline;
}

/* Form inputs */
.form-clt input,
.form-clt textarea,
.form-clt select {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.form-clt input:focus,
.form-clt textarea:focus {
    border-color: var(--theme-color, #e8a020);
}
.form-clt input[type="file"] {
    padding: 10px;
}

/* Legal pages */
.legal-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}
.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}
.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}
.legal-content p, .legal-content ul, .legal-content ol {
    margin-bottom: 1rem;
}
.legal-content ul, .legal-content ol {
    padding-left: 1.5rem;
}

/* Footer bottom legal links */
.footer-bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom-wrapper ul li a {
    color: inherit;
    opacity: 0.7;
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer-bottom-wrapper ul li a:hover {
    opacity: 1;
}

/* Header consortium badge */
.header-consortium-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: var(--theme-color, #e8a020);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.header-consortium-btn:hover {
    opacity: 0.85;
    color: #fff;
}

/* Header consortium text (legacy, keep for logo variant) */
.header-consortium-text {
    font-size: 12px;
    line-height: 1.3;
    text-decoration: none;
    color: inherit;
}
.header-consortium-text strong {
    display: block;
}

/* Footer consortium block */
.footer-consortium-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
}
.footer-consortium-name {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

/* Footer dev credit */
.footer-dev-link {
    color: inherit;
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer-dev-link:hover {
    opacity: 1;
    color: var(--theme-color, #e8a020);
}

/* Footer nav col 2 — hide the blank heading space on mobile */
@media (max-width: 767px) {
    .footer-nav-spacer { display: none; }
}

/* Fix: .text-area a overrides theme-btn text color */
.text-area a.theme-btn {
    color: #fff;
}
.text-area a.theme-btn:hover {
    color: #fff;
}

/* ── Why Rosinav numbered cards ─────────────────────────────────────── */
.rosinav-why-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rosinav-why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}
.rosinav-why-number {
    width: 52px;
    height: 52px;
    background: var(--theme, #CA1F27);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 20px;
    font-family: 'Playfair Display', serif;
    transition: transform 0.3s ease;
}
.rosinav-why-card:hover .rosinav-why-number {
    transform: scale(1.12);
}

/* ── Service process step cards ─────────────────────────────────────── */
.rosinav-step-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    border-left: 3px solid var(--theme, #CA1F27);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.rosinav-step-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.rosinav-step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--theme, #CA1F27);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}
.rosinav-step-body h6 {
    font-size: 15px;
    margin-bottom: 6px;
    font-family: 'Playfair Display', serif;
}
.rosinav-step-body p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ── Deliverable / feature pill items ───────────────────────────────── */
.rosinav-deliverable-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    transition: background 0.2s ease;
}
.rosinav-deliverable-item:hover {
    background: #f0f0f0;
}
.rosinav-deliverable-item i {
    color: var(--theme, #CA1F27);
    font-size: 16px;
    flex-shrink: 0;
}

/* ── Gallery thumb with hover overlay ───────────────────────────────── */
.rosinav-gallery-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
}
.rosinav-gallery-thumb img {
    transition: transform 0.4s ease;
    display: block;
    width: 100%;
}
.rosinav-gallery-thumb:hover img {
    transform: scale(1.06);
}
.rosinav-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(202, 31, 39, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
}
.rosinav-gallery-thumb:hover .rosinav-gallery-overlay {
    opacity: 1;
}
.rosinav-gallery-overlay i {
    color: #fff;
    font-size: 28px;
}

/* ── Team bio hover overlay ─────────────────────────────────────────── */
.single-team-items .team-image {
    position: relative;
    overflow: hidden;
}

/* ── Job cards (careers index) ──────────────────────────────────────── */
.rosinav-job-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.rosinav-job-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.rosinav-job-card__image {
    height: 220px;
    overflow: hidden;
}
.rosinav-job-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.rosinav-job-card:hover .rosinav-job-card__image img {
    transform: scale(1.05);
}
.rosinav-job-card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rosinav-job-badge {
    display: inline-block;
    background: rgba(202, 31, 39, 0.08);
    color: var(--theme, #CA1F27);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(202, 31, 39, 0.2);
}
.rosinav-job-card__body h5 {
    font-size: 18px;
    margin: 0;
    line-height: 1.4;
}
.rosinav-job-card__body h5 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.rosinav-job-card__body h5 a:hover {
    color: var(--theme, #CA1F27);
}
.rosinav-job-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--theme, #CA1F27);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.2s ease;
}
.rosinav-job-card__link:hover {
    gap: 14px;
    color: var(--theme, #CA1F27);
}

/* ── General card hover lift (service-provide-items) ────────────────── */
.service-provide-items {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-provide-items:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.09);
}

/* ── Stats bar ───────────────────────────────────────────────────────── */
.rosinav-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--theme, #CA1F27);
    border-radius: 12px;
    padding: 40px 32px;
    flex-wrap: wrap;
    gap: 24px;
}
.rosinav-stat-item {
    text-align: center;
    color: #fff;
    flex: 1;
    min-width: 120px;
}
.rosinav-stat-item .rosinav-stat-number {
    font-size: 52px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    color: #fff;
}
.rosinav-stat-item .rosinav-stat-suffix {
    font-size: 36px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: rgba(255,255,255,0.8);
    vertical-align: super;
}
.rosinav-stat-item p {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.75);
    margin: 8px 0 0;
}
.rosinav-stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.25);
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .rosinav-stat-divider { display: none; }
    .rosinav-stat-item { min-width: 45%; }
}

/* ── Service cards (index) — image bg on hover ───────────────────────── */
.rosinav-service-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    min-height: 320px;
    background: #f8f9fa;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    margin-bottom: 30px;
}
.rosinav-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.16);
    color: inherit;
    text-decoration: none;
}
.rosinav-service-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.45s ease, transform 0.45s ease;
    transform: scale(1.05);
}
.rosinav-service-card:hover .rosinav-service-card__bg {
    opacity: 1;
    transform: scale(1);
}
.rosinav-service-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.72);
    opacity: 0;
    transition: opacity 0.45s ease;
    border-radius: 8px;
}
.rosinav-service-card:hover .rosinav-service-card__overlay {
    opacity: 1;
}
.rosinav-service-card__body {
    position: relative;
    z-index: 2;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}
.rosinav-service-card__icon {
    width: 60px;
    height: 60px;
    background: var(--theme, #CA1F27);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}
.rosinav-service-card:hover .rosinav-service-card__icon {
    background: rgba(255,255,255,0.15);
}
.rosinav-service-card__body h5 {
    font-size: 18px;
    margin: 0;
    transition: color 0.3s ease;
    line-height: 1.4;
}
.rosinav-service-card:hover .rosinav-service-card__body h5 {
    color: #fff;
}
.rosinav-service-card__body p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.7;
    transition: color 0.3s ease;
    flex: 1;
}
.rosinav-service-card:hover .rosinav-service-card__body p {
    color: rgba(255,255,255,0.8);
}
.rosinav-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--theme, #CA1F27);
    transition: color 0.3s ease, gap 0.2s ease;
    margin-top: auto;
}
.rosinav-service-card:hover .rosinav-service-card__link {
    color: #fff;
    gap: 14px;
}

/* ── Project filter bar ──────────────────────────────────────────────── */
.rosinav-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.rosinav-filter-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    border: 2px solid transparent;
    background: transparent;
    color: #555;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.rosinav-filter-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--theme, #CA1F27);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}
.rosinav-filter-btn:hover,
.rosinav-filter-btn.active {
    color: #fff;
    border-color: var(--theme, #CA1F27);
    text-decoration: none;
}
.rosinav-filter-btn:hover::after,
.rosinav-filter-btn.active::after {
    transform: scaleX(1);
}

/* ── Contact card arrow micro-interaction ────────────────────────────── */
.rosinav-contact-card {
    position: relative;
    overflow: hidden;
}
.rosinav-contact-card__arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 36px;
    height: 36px;
    background: var(--theme, #CA1F27);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.rosinav-contact-card:hover .rosinav-contact-card__arrow {
    opacity: 1;
    transform: translateX(0);
}
.rosinav-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
    border-left-color: var(--theme, #CA1F27);
}

/* ── Page fade-in transition ─────────────────────────────────────────── */
/* Applied to main content wrapper, NOT body — avoids breaking sticky header */
#header-sticky,
.header-1 {
    /* no animation here — sticky JS needs clean stacking context */
}
.page-fade-wrapper {
    animation: rosinav-fadein 0.4s ease forwards;
}
@keyframes rosinav-fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Breadcrumb enhancements ─────────────────────────────────────────── */
.breadcrumb-wrapper {
    position: relative;
}
.breadcrumb-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.72) 0%, rgba(202,31,39,0.35) 100%);
    pointer-events: none;
}
.breadcrumb-wrapper .container {
    position: relative;
    z-index: 2;
}
.breadcrumb-wrapper .page-heading h1 {
    font-size: clamp(28px, 4vw, 52px);
    letter-spacing: -0.01em;
}
.breadcrumb-items li a {
    transition: color 0.2s;
}
.breadcrumb-items li a:hover {
    color: var(--theme, #CA1F27);
}

/* ── Section title accent line ───────────────────────────────────────── */
.section-title > span {
    position: relative;
    display: inline-block;
    padding-left: 20px;
}
.section-title > span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--theme, #CA1F27);
    border-radius: 50%;
}

/* ── About list items ────────────────────────────────────────────────── */
.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}
.about-list li:last-child {
    border-bottom: none;
}
.about-list li i {
    color: var(--theme, #CA1F27);
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ── Service show — hero image with gradient ─────────────────────────── */
.service-details-hero {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 36px;
}
.service-details-hero img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}
.service-details-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,46,0.65) 0%, transparent 60%);
}
.service-details-hero__label {
    position: absolute;
    bottom: 24px;
    left: 28px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--theme, #CA1F27);
    padding: 5px 14px;
    border-radius: 20px;
}

/* ── Project show — full-bleed hero ─────────────────────────────────── */
.project-details-hero {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 48px;
}
.project-details-hero img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}
.project-details-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,46,0.80) 0%, rgba(26,26,46,0.15) 60%, transparent 100%);
}
.project-details-hero__meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 36px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.project-details-hero__category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.75);
    margin-bottom: 6px;
}
.project-details-hero__title {
    font-size: clamp(22px, 3vw, 38px);
    color: #fff;
    margin: 0;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}
.project-details-hero__cta {
    flex-shrink: 0;
}

/* ── Sidebar polish ──────────────────────────────────────────────────── */
.service-sidebar .sidebar-widget {
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.service-sidebar .sidebar-cta {
    background: linear-gradient(135deg, var(--theme, #CA1F27) 0%, #8b0000 100%);
    border: none;
    box-shadow: 0 8px 24px rgba(202,31,39,0.25);
}
.service-sidebar .sidebar-cta h4,
.service-sidebar .sidebar-cta p {
    color: #fff;
}
.service-sidebar .sidebar-cta .theme-btn {
    background: #fff;
    color: var(--theme, #CA1F27);
    font-weight: 700;
}
.service-sidebar .sidebar-cta .theme-btn:hover {
    background: rgba(255,255,255,0.9);
}

/* ── Job meta bar (careers show) ─────────────────────────────────────── */
.rosinav-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 28px;
}
.rosinav-job-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
}
.rosinav-job-meta-item i {
    color: var(--theme, #CA1F27);
    font-size: 13px;
}

/* ── Team member social links ────────────────────────────────────────── */
.rosinav-team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.rosinav-team-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.rosinav-team-social a:hover {
    background: var(--theme, #CA1F27);
    border-color: var(--theme, #CA1F27);
    color: #fff;
}

/* ── Home services — image thumbnail on hover ────────────────────────── */
.rosinav-home-service-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.rosinav-home-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.rosinav-home-service-card__thumb {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
}
.rosinav-home-service-card:hover .rosinav-home-service-card__thumb {
    height: 140px;
}
.rosinav-home-service-card__thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

/* ── Smooth scroll ───────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

/* ── Hero scroll hint ────────────────────────────────────────────────── */
.rosinav-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.rosinav-scroll-hint span {
    display: block;
    width: 2px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
    animation: rosinav-scroll-line 1.8s ease-in-out infinite;
}
@keyframes rosinav-scroll-line {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ── Home service card — ensure inner card has no double shadow ──────── */
.rosinav-home-service-card .service-provide-items {
    box-shadow: none !important;
    border-radius: 0 0 8px 8px !important;
    margin: 0 !important;
}

/* ── Scroll-up circle — smooth fill (handled in main.js) ────────────── */
/* transition patched directly in main.js to 80ms linear */

/* ── Clients marquee ─────────────────────────────────────────────────── */
.rosinav-clients-track-wrapper {
    overflow: hidden;
    position: relative;
    /* fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.rosinav-clients-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: rosinav-marquee 18s linear infinite;
}
.rosinav-clients-track:hover {
    animation-play-state: paused;
}
@keyframes rosinav-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.rosinav-client-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    min-width: 180px;
}
.rosinav-client-item:hover {
    border-color: var(--theme, #CA1F27);
    box-shadow: 0 4px 20px rgba(202,31,39,0.10);
}
.rosinav-client-item img {
    max-height: 60px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.rosinav-client-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ── Working with Us cards ──────────────────────────────────────────── */
.rosinav-working-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rosinav-working-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}

/* ── Team card image height ─────────────────────────────────────────── */
.single-team-items .team-image {
    height: 360px;
}
.single-team-items .team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Team card — ensure name/role fully visible on hover ────────────── */
.single-team-items {
    overflow: visible;
}
.single-team-items .team-image {
    overflow: hidden;
}
.single-team-items .team-image .team-content {
    left: 0;
    right: 0;
    padding: 16px 20px 20px;
    width: 100%;
}
.single-team-items:hover .team-content,
.single-team-items.active .team-content {
    bottom: 0;
}
.single-team-items .team-image .team-content h4 {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.single-team-items .team-image .team-content p {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* ── Service / About sections — icon overflow and spacing ───────────── */
/*
 * The floating icon uses margin-top:-100px (template default).
 * .fix sets overflow:hidden — override per section type.
 * Cards with floating icons (service-section) need 110px top clearance.
 * Cards without floating icons (about-section why-cards) need only 40px.
 * Home service cards have the icon inside (not floating) — reset to 20px.
 */
.service-section.fix,
.about-section.fix {
    overflow: visible;
}

/* Service index + Working with Us — floating icon needs full clearance */
.service-section .service-provide-items {
    margin-top: 110px;
    height: 100%;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-section .service-provide-items::before {
    height: 100%;
    bottom: 0;
}

/* Why Rosinav cards — no floating icon, reduce gap */
.about-section .service-provide-items {
    margin-top: 40px;
}

/* Home service cards — icon sits inside card, not floating */
.rosinav-home-service-card {
    overflow: visible;
}
.rosinav-home-service-card__thumb {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}
.rosinav-home-service-card .service-provide-items {
    margin-top: 0 !important;
}
.rosinav-home-service-card .service-provide-items .icon {
    margin-top: 20px;
}

/* Equal height card rows */
.service-section .row.g-4,
.service-section .row.mt-3 {
    align-items: stretch;
}
.service-section .col-xl-3,
.service-section .col-lg-4,
.service-section .col-lg-6,
.service-section .col-md-6 {
    display: flex;
    flex-direction: column;
}
.service-section .service-provide-items .content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-section .service-provide-items .content .arrow-icon {
    margin-top: auto;
}

/* Section title spacing */
.service-section .section-title {
    margin-top: 20px;
    margin-bottom: 0;
}

/* ── Team section CTA button container — full width ─────────────────── */
.team-section .text-area {
    width: 100%;
}

/* ── Team section — reduce gap between title and cards ──────────────── */
.team-section .row.mt-4 {
    margin-top: 16px !important;
}

/* ── Clients section — reduce gap between title and track ───────────── */
.rosinav-clients-section .section-title {
    margin-bottom: 20px;
}

/* ── Stats section — tighten top ────────────────────────────────────── */
.rosinav-stats-section.section-padding.pt-0 {
    padding-top: 20px !important;
}

/* ── Home — gap between hero and first services section ─────────────── */
.hero-section + .service-section {
    padding-top: 80px !important;
}

/* ── About page — mission/values list items ─────────────────────────── */
.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.about-list li {
    padding: 6px 0;
    border: none;
    border-bottom: none;
    text-decoration: none;
    font-size: 15px;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
}
.about-list li i {
    color: var(--theme);
    margin-top: 3px;
    flex-shrink: 0;
    transition: color 0.3s ease;
}
/* On hover (red background), make all text and icons white */
.service-provide-items:hover .about-list li,
.service-provide-items:hover .about-list li i {
    color: #fff;
}

/* ── About page — equal height cards ───────────────────────────────── */
.service-provide .row.g-4 {
    align-items: stretch;
}
.service-provide .col-lg-4 {
    display: flex;
    flex-direction: column;
}
.service-provide .service-provide-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}
.service-provide .service-provide-items .content {
    flex: 1;
}
.service-provide .service-provide-items::before {
    height: 100%;
    bottom: 0;
}

/* ── Hero — full viewport height ────────────────────────────────────── */
.hero-section.hero-1 {
    min-height: 100vh;
}
.hero-section.hero-1 .swiper,
.hero-section.hero-1 .swiper-wrapper,
.hero-section.hero-1 .swiper-slide {
    min-height: 100vh;
}
.hero-section.hero-1 .hero-image {
    min-height: 100vh;
}
.hero-section.hero-1 .hero-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 80px;
}

/* ── Language switcher — white on hero header ───────────────────────── */
header.has-hero .header-1:not(.sticky) .lang-switcher a {
    color: #fff;
}
header.has-hero .header-1:not(.sticky) .lang-switcher span {
    color: rgba(255,255,255,0.4);
}

/* ── Language switcher — dark on sticky header ──────────────────────── */
.sticky.header-1 .lang-switcher a {
    color: var(--header, #1a1a2e);
}
.sticky.header-1 .lang-switcher span {
    color: rgba(0,0,0,0.3);
}
/* Also ensure correct color on non-hero pages (no has-hero class) */
header:not(.has-hero) .header-1:not(.sticky) .lang-switcher a {
    color: var(--header, #1a1a2e);
}

/* ── Project cards — consistent image height ────────────────────────── */
.project-items .project-image {
    height: 340px;
    overflow: hidden;
    position: relative;
}
.project-items .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ════════════════════════════════════════════════════════════════════════
   ROSINAV — ANIMATIONS & INTERACTIONS
   ════════════════════════════════════════════════════════════════════════ */

/* ── 1. Scroll-reveal base (used by JS below) ───────────────────────── */
.rs-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
                transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.rs-reveal.rs-visible {
    opacity: 1;
    transform: translateY(0);
}
.rs-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
                transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.rs-reveal-left.rs-visible {
    opacity: 1;
    transform: translateX(0);
}
.rs-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
                transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.rs-reveal-right.rs-visible {
    opacity: 1;
    transform: translateX(0);
}
/* Stagger delay helpers */
.rs-delay-1 { transition-delay: 0.1s; }
.rs-delay-2 { transition-delay: 0.2s; }
.rs-delay-3 { transition-delay: 0.3s; }
.rs-delay-4 { transition-delay: 0.4s; }
.rs-delay-5 { transition-delay: 0.5s; }

/* ── 2. Page transition fade-in ─────────────────────────────────────── */
.page-fade-wrapper {
    animation: pageFadeIn 0.5s ease both;
}
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 3. Nav link underline slide ────────────────────────────────────── */
.main-menu li a {
    position: relative;
}
.main-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--theme);
    transition: width 0.3s ease;
}
.main-menu li a:hover::after,
.main-menu li.active > a::after {
    width: 100%;
}

/* ── 4. Theme button — ripple + slide fill ──────────────────────────── */
.theme-btn {
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, background-color 0.3s ease,
                transform 0.2s ease, box-shadow 0.3s ease;
}
.theme-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    z-index: 0;
}
.theme-btn:hover::after {
    transform: scaleX(1);
}
.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(202,31,39,0.35);
}
.theme-btn:active {
    transform: translateY(0);
}

/* ── 5. Project card — image zoom + overlay slide ───────────────────── */
.project-items .project-image {
    transition: box-shadow 0.4s ease;
}
.project-items .project-image img {
    transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.project-items:hover .project-image img {
    transform: scale(1.06);
}
.project-items:hover .project-image {
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.project-content-area {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* ── 6. Team card — subtle lift ─────────────────────────────────────── */
.single-team-items {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.single-team-items:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* ── 7. Section title — red dot pulse ───────────────────────────────── */
.section-title span::before {
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.4); }
}

/* ── 8. Stats counter — scale in on reveal ──────────────────────────── */
.rosinav-stat-item {
    transition: transform 0.4s ease;
}
.rosinav-stat-item:hover {
    transform: translateY(-4px);
}
.rosinav-stat-number {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* ── 9. Client logos — smooth grayscale transition ──────────────────── */
.rosinav-client-item img {
    transition: filter 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
}

/* ── 10. Contact cards — arrow slide ────────────────────────────────── */
.rosinav-contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rosinav-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* ── 11. Footer links — underline grow ──────────────────────────────── */
.footer-widget .footer-menu li a {
    position: relative;
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-widget .footer-menu li a:hover {
    padding-left: 6px;
}

/* ── 12. Breadcrumb — fade in from top ──────────────────────────────── */
.breadcrumb-wrapper {
    animation: breadcrumbIn 0.6s ease both;
}
@keyframes breadcrumbIn {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 13. Service card icon — spin on hover ──────────────────────────── */
.service-provide-items .icon i,
.rosinav-working-card .icon i {
    transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
    display: inline-block;
}
.service-provide-items:hover .icon i,
.rosinav-working-card:hover .icon i {
    transform: rotate(15deg) scale(1.1);
}

/* ── 14. Scroll-up button — smooth appear ───────────────────────────── */
.scroll-up {
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

/* ── 15. Input focus glow ───────────────────────────────────────────── */
.form-clt input,
.form-clt textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-clt input:focus,
.form-clt textarea:focus {
    border-color: var(--theme);
    box-shadow: 0 0 0 3px rgba(202,31,39,0.12);
    outline: none;
}

/* ── 16. Career / job cards ─────────────────────────────────────────── */
.rosinav-job-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.rosinav-job-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.13);
}

/* ── Mobile offcanvas — logo size fix ───────────────────────────────── */
.offcanvas__logo img {
    max-width: 140px;
    width: 100%;
    height: auto;
    display: block;
}

/* ════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS — center all content on small screens
   Excludes: offcanvas nav, admin panel
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* Global text centering */
    .container p,
    .container h1,
    .container h2,
    .container h3,
    .container h4,
    .container h5,
    .container h6,
    .container span,
    .container li {
        text-align: center;
    }

    /* Section titles */
    .section-title,
    .section-title.style-2 {
        text-align: center !important;
    }

    /* About page intro — stack image above text */
    .about-wrapper .row {
        flex-direction: column;
    }
    .about-content {
        text-align: center;
    }
    .about-content .section-title {
        text-align: center !important;
    }
    .about-button {
        justify-content: center;
        display: flex;
    }

    /* Service cards */
    .service-provide-items {
        text-align: center;
    }
    .about-list {
        display: inline-block;
        text-align: left;
    }

    /* Project cards */
    .project-content-area .content {
        text-align: center;
    }

    /* Team cards */
    .single-team-items {
        text-align: center;
    }

    /* Contact cards */
    .rosinav-contact-card {
        justify-content: center;
        text-align: center;
    }
    .rosinav-contact-card__body {
        text-align: center;
    }

    /* Contact form */
    .contact-form-items .title {
        text-align: center;
    }
    .form-consent-text {
        text-align: center;
    }

    /* Stats bar — stack vertically */
    .rosinav-stats-bar {
        flex-direction: column;
        gap: 24px;
    }
    .rosinav-stat-divider {
        width: 60px;
        height: 1px;
        margin: 0 auto;
    }
    .rosinav-stat-item {
        text-align: center;
    }

    /* Hero content */
    .hero-content {
        text-align: center;
    }
    .hero-button {
        justify-content: center;
    }

    /* Breadcrumb */
    .breadcrumb-wrapper .page-heading {
        text-align: center;
    }
    .breadcrumb-wrapper nav {
        justify-content: center;
        display: flex;
    }

    /* Footer — center all columns */
    .single-footer-widget {
        text-align: center;
    }
    .single-footer-widget .list-area {
        padding: 0;
    }
    .footer-bottom .row {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .footer-bottom .col-lg-6 {
        text-align: center !important;
    }

    /* CTA sections */
    .cta-content {
        text-align: center;
    }
    .cta-button {
        justify-content: center;
        display: flex;
    }

    /* Service show — sidebar stacks below */
    .service-sidebar {
        margin-top: 40px;
    }

    /* Project show */
    .project-details-hero__meta {
        text-align: center;
    }

    /* Careers */
    .rosinav-job-card__body {
        text-align: center;
    }
    .rosinav-job-meta {
        justify-content: center;
    }

    /* Filter bar */
    .rosinav-filter-bar {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Working with Us / Why Rosinav cards */
    .rosinav-working-card,
    .rosinav-why-card {
        text-align: center;
    }

    /* Clients track — reduce speed on mobile */
    .rosinav-clients-track {
        animation-duration: 20s;
    }

    /* Map — full width on mobile */
    #contact-map {
        min-height: 300px;
        margin-bottom: 32px;
    }

    /* Intro text paragraphs */
    .projects-intro-text,
    .services-page-intro {
        text-align: center;
    }

    /* Button containers */
    .text-area,
    .text-center.mt-5 {
        text-align: center !important;
    }

    /* Hide custom cursor on touch devices */
    #rs-cursor,
    #rs-cursor-ring {
        display: none !important;
    }
}

/* Tablet — 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .section-title {
        text-align: center;
    }
    .rosinav-stats-bar {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    .rosinav-stat-divider {
        display: none;
    }
    /* Hide custom cursor on touch */
    #rs-cursor,
    #rs-cursor-ring {
        display: none !important;
    }
}

/* ── Services index card — mobile centering ─────────────────────────── */
@media (max-width: 767px) {
    .rosinav-service-card__body {
        align-items: center;
        text-align: center;
    }
    .rosinav-service-card__link {
        justify-content: center;
    }

    /* Services index — header row stack */
    .service-provide .row.align-items-center.justify-content-between {
        flex-direction: column;
        text-align: center;
    }
    .service-provide .section-title.style-2 {
        text-align: center !important;
    }

    /* Service show — process steps center */
    .rosinav-step-card {
        text-align: center;
    }
    .rosinav-step-number {
        margin: 0 auto 12px;
    }

    /* Project show — meta list center */
    .project-details-hero__features li {
        justify-content: center;
    }

    /* About list on mobile — center the list container */
    .service-provide-items .about-list {
        text-align: left;
        display: inline-block;
        margin: 0 auto;
    }

    /* Careers show — meta bar */
    .rosinav-job-meta {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    /* Contact map full width */
    .contact-section-2 .row.g-5 {
        flex-direction: column;
    }
    #contact-map {
        min-height: 280px;
        margin-bottom: 24px;
    }

    /* Footer col 1 — center logo and tagline */
    .footer-logo img {
        margin: 0 auto;
        display: block;
    }
    .footer-logo p {
        text-align: center;
    }

    /* Section title style-2 left-aligned by default — center on mobile */
    .section-title.style-2 h2,
    .section-title.style-2 span {
        text-align: center;
    }

    /* Intro paragraph on services page */
    .service-provide .col-lg-5 p {
        text-align: center;
    }
}

/* ── Stats bar — 2x2 grid on mobile ─────────────────────────────────── */
@media (max-width: 767px) {
    .rosinav-stats-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        border-radius: 12px;
        overflow: hidden;
        padding: 0;
    }
    .rosinav-stat-item {
        padding: 28px 16px;
        background: var(--theme, #CA1F27);
        border: 1px solid rgba(255,255,255,0.12);
    }
    .rosinav-stat-divider {
        display: none;
    }
    .rosinav-stat-number {
        font-size: 42px;
    }
    .rosinav-stat-suffix {
        font-size: 24px;
    }
    .rosinav-stat-item p {
        font-size: 11px;
        letter-spacing: 0.08em;
        margin-top: 4px;
    }
}

/* ── Service sidebar CTA — center button on mobile ──────────────────── */
@media (max-width: 991px) {
    .service-sidebar .rosinav-sidebar-cta {
        text-align: center;
    }
    .service-sidebar .rosinav-sidebar-cta .theme-btn {
        display: inline-block;
    }
    /* Also center the sidebar services list */
    .service-sidebar .widget-title {
        text-align: center;
    }
    .service-sidebar .service-list li a {
        justify-content: space-between;
    }
}

@media (max-width: 991px) {
    .sidebar-cta {
        text-align: center;
    }
    .sidebar-cta .theme-btn {
        display: inline-block;
    }
}

/* ── Service show — main content centering on mobile ────────────────── */
@media (max-width: 767px) {
    /* Description text */
    .service-details-content {
        text-align: center;
    }
    /* Includes list — center the container, keep list items left-aligned for readability */
    .service-details-content .about-list {
        display: inline-block;
        text-align: left;
        margin: 0 auto;
    }
    .service-details-content h4,
    .service-details-content h3,
    .service-details-content h2 {
        text-align: center;
    }
    /* Process steps */
    .rosinav-step-card {
        text-align: center;
    }
    .rosinav-step-number {
        margin: 0 auto 12px;
    }
    /* Deliverables pills */
    .rosinav-deliverables-grid {
        justify-content: center;
    }
    /* Related projects heading */
    .service-details-content .section-title {
        text-align: center !important;
    }
}

@media (max-width: 767px) {
    .service-details .col-lg-8 {
        text-align: center;
    }
    .service-details .col-lg-8 .about-list {
        display: inline-block;
        text-align: left;
    }
    .service-details .col-lg-8 h4,
    .service-details .col-lg-8 h3,
    .service-details .col-lg-8 p {
        text-align: center;
    }
}

/* ── Service includes list — professional mobile layout ─────────────── */
@media (max-width: 767px) {
    .service-details .col-lg-8 .about-list {
        background: #f8f8f8;
        border-radius: 10px;
        padding: 16px 20px;
        width: 100%;
        display: block;
        text-align: left;
    }
    .service-details .col-lg-8 .about-list li {
        padding: 10px 0;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .service-details .col-lg-8 .about-list li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .service-details .col-lg-8 .about-list li:first-child {
        padding-top: 0;
    }
    .service-details .col-lg-8 .about-list li i {
        font-size: 16px;
        flex-shrink: 0;
    }
    /* Section heading above list */
    .service-details .col-lg-8 h4 {
        font-size: 20px;
        margin-bottom: 12px;
    }
}

/* ── Service includes list — modern mobile card ──────────────────────── */
@media (max-width: 767px) {
    .service-details .col-lg-8 .about-list {
        background: #fff;
        border-radius: 14px;
        padding: 0;
        box-shadow: 0 4px 24px rgba(0,0,0,0.08);
        border: none;
        overflow: hidden;
    }
    .service-details .col-lg-8 .about-list li {
        padding: 14px 18px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
        font-weight: 500;
        color: #2a2a2a;
        display: flex;
        align-items: center;
        gap: 12px;
        border-left: 3px solid var(--theme, #CA1F27);
        background: #fff;
        transition: background 0.2s ease;
    }
    .service-details .col-lg-8 .about-list li:last-child {
        border-bottom: none;
    }
    .service-details .col-lg-8 .about-list li:active {
        background: #fdf5f5;
    }
    .service-details .col-lg-8 .about-list li i {
        color: var(--theme, #CA1F27);
        font-size: 15px;
        flex-shrink: 0;
    }
    .service-details .col-lg-8 h4 {
        font-size: 18px;
        font-weight: 700;
        letter-spacing: -0.01em;
        margin-bottom: 14px;
    }
}

/* ── Service includes — center heading, full-width card ─────────────── */
@media (max-width: 767px) {
    .service-details .col-lg-8 h4 {
        text-align: center;
    }
    .service-details .col-lg-8 .about-list {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ── Contact form — center submit button on mobile ──────────────────── */
@media (max-width: 767px) {
    #contact-submit {
        display: block;
        width: 100%;
    }
    #contact-form .col-12:last-child {
        text-align: center;
    }
}

/* ── Preloader — logo splash ─────────────────────────────────────────── */
.rosinav-preloader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.rosinav-preloader-logo img {
    width: 180px;
    height: auto;
    animation: preloaderPulse 1.6s ease-in-out infinite;
}
@keyframes preloaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.97); }
}
.rosinav-preloader-bar {
    width: 160px;
    height: 2px;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.rosinav-preloader-fill {
    height: 100%;
    width: 0%;
    background: var(--theme, #CA1F27);
    border-radius: 2px;
    animation: preloaderBar 1.8s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes preloaderBar {
    0%   { width: 0%; }
    60%  { width: 75%; }
    100% { width: 100%; }
}
