/* RIBVOLUTION — Light blue professional theme */

:root {
    --blue-50: #f0f9ff;
    --blue-100: #e0f2fe;
    --blue-200: #bae6fd;
    --blue-300: #7dd3fc;
    --blue-400: #38bdf8;
    --blue-500: #0ea5e9;
    --blue-600: #0284c7;
    --blue-700: #0369a1;
    --blue-800: #075985;
    --blue-900: #0c4a6e;

    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;

    --shadow-sm: 0 1px 3px rgba(7, 89, 133, 0.08);
    --shadow-md: 0 8px 30px rgba(7, 89, 133, 0.12);
    --shadow-lg: 0 20px 50px rgba(7, 89, 133, 0.15);

    --radius: 12px;
    --radius-lg: 20px;
    --header-h: 80px;
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --transition: 0.25s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--blue-800);
}

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--blue-100);
    height: var(--header-h);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

.logo img {
    height: 64px;
    width: auto;
    border-radius: 6px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--gray-700);
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--blue-700);
    background: var(--blue-50);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-switcher {
    display: flex;
    gap: 0.25rem;
    background: var(--blue-50);
    padding: 0.25rem;
    border-radius: 8px;
}

.lang-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue-700);
    border-radius: 6px;
}

.lang-btn.active {
    background: var(--blue-500);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blue-800);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--blue-100);
    background-image:
        linear-gradient(
            135deg,
            rgba(240, 249, 255, 0.94) 0%,
            rgba(224, 242, 254, 0.88) 45%,
            rgba(186, 230, 253, 0.82) 100%
        ),
        var(--hero-bg, none);
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(255, 255, 255, 0.4) 100%);
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23ffffff' d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,58.7C960,64,1056,64,1152,58.7C1248,53,1344,43,1392,37.3L1440,32L1440,120L0,120Z'/%3E%3C/svg%3E") bottom center / cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
    max-width: 680px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--white);
    color: var(--blue-700);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--blue-900);
    margin: 0 0 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--blue-800);
    margin: 0 0 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--blue-600);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
    background: var(--blue-700);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--blue-100);
    color: var(--blue-800);
}

.btn-secondary:hover {
    background: var(--blue-200);
    color: var(--blue-900);
}

.btn-outline {
    background: transparent;
    color: var(--blue-700);
    border-color: var(--blue-400);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--blue-800);
}

.btn-white {
    background: var(--white);
    color: var(--blue-700);
}

.btn-white:hover {
    background: var(--blue-50);
    color: var(--blue-800);
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* Stats */
.stats {
    padding: 3rem 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(145deg, var(--blue-50), var(--white));
    border: 1px solid var(--blue-100);
    border-radius: var(--radius-lg);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--blue-600);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--blue-900);
    margin: 0 0 0.75rem;
}

.section-header p {
    color: var(--gray-500);
    margin: 0;
    font-size: 1.05rem;
}

.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* Cards */
.cards-grid {
    display: grid;
    gap: 1.5rem;
}

.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.service-card,
.feature-card,
.value-card {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--blue-100);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover,
.feature-card:hover,
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-100);
    color: var(--blue-600);
    border-radius: 14px;
    margin-bottom: 1.25rem;
}

.service-card h3,
.feature-card h3,
.value-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-900);
    margin: 0 0 0.75rem;
}

.service-card p,
.feature-card p,
.value-card p {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.preview-grid {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
    position: relative;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--blue-100);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 60%, rgba(7, 89, 133, 0.3));
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
    padding: 4rem 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-inner h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.5rem;
}

.cta-inner p {
    color: var(--blue-100);
    margin: 0;
    max-width: 500px;
}

/* Page hero */
.page-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--blue-100);
    background-image:
        linear-gradient(135deg, rgba(240, 249, 255, 0.96) 0%, rgba(186, 230, 253, 0.9) 100%),
        var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 48px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48'%3E%3Cpath fill='%23ffffff' d='M0,24L60,21.3C120,19,240,13,360,16C480,19,600,37,720,40C840,43,960,21,1080,18.7C1200,16,1320,32,1380,40L1440,48L1440,48L0,48Z'/%3E%3C/svg%3E") bottom center / cover no-repeat;
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--blue-900);
    margin: 0 0 0.75rem;
}

.page-hero p {
    color: var(--blue-700);
    font-size: 1.1rem;
    margin: 0;
    max-width: 600px;
    margin-inline: auto;
}

/* About */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

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

.about-image img {
    max-width: 320px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-tagline {
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--blue-700);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.about-text p {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Services detail */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-detail {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--blue-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.service-detail.reverse {
    direction: rtl;
}

.service-detail.reverse > * {
    direction: ltr;
}

.service-detail-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-100);
    color: var(--blue-600);
    border-radius: 20px;
    flex-shrink: 0;
}

.service-detail-content h2 {
    font-size: 1.5rem;
    color: var(--blue-900);
    margin: 0 0 1rem;
}

.service-detail-content p {
    margin: 0 0 1.5rem;
    color: var(--gray-500);
    line-height: 1.75;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-wrap h2,
.contact-info h2 {
    font-size: 1.35rem;
    color: var(--blue-900);
    margin: 0 0 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--blue-800);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font);
    font-size: 1rem;
    border: 2px solid var(--blue-100);
    border-radius: 10px;
    background: var(--white);
    color: var(--gray-900);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-400);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

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

.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.contact-card {
    padding: 1.5rem;
    background: var(--blue-50);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid var(--blue-100);
}

.contact-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--blue-600);
    margin: 0 0 0.75rem;
}

.contact-card p {
    margin: 0 0 0.35rem;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--blue-100);
    color: var(--blue-700);
    border-radius: 10px;
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--blue-600);
    color: var(--white);
}

.social-links-lg {
    flex-direction: column;
}

.social-links-lg a {
    width: auto;
    height: auto;
    padding: 0.6rem 1rem;
    justify-content: flex-start;
    font-weight: 600;
}

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Map section */
.map-section {
    padding-top: 0;
}

.map-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: stretch;
}

.map-info .contact-card {
    height: 100%;
    margin-bottom: 0;
}

.map-note {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0.75rem 0 1rem;
}

.map-embed {
    min-height: 360px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--blue-100);
    box-shadow: var(--shadow-md);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.1rem;
    background: #25d366;
    color: var(--white);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

.whatsapp-float span {
    display: none;
}

@media (min-width: 768px) {
    .whatsapp-float span {
        display: inline;
    }
}

/* Footer */
.site-footer {
    background: var(--blue-900);
    color: var(--blue-200);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-brand img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-logo {
    background: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
}

.footer-brand p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: var(--blue-200);
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-social .social-links a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.footer-social .social-links a:hover {
    background: var(--blue-500);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--blue-300);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(7, 89, 133, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .three-col,
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-layout,
    .contact-layout,
    .map-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--blue-100);
        padding: 1rem;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        box-shadow: var(--shadow-md);
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav a {
        padding: 0.85rem 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .stats-grid,
    .three-col,
    .preview-grid {
        grid-template-columns: 1fr;
    }

    .service-detail {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-detail.reverse {
        direction: ltr;
    }

    .service-detail-icon {
        margin: 0 auto;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social .social-links {
        justify-content: center;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.75rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
        padding: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .logo img {
        height: 52px;
    }
}
