@font-face {
    font-family: 'Vazirmatn';
    src: url('/clouda_web_assets/static/src/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/clouda_web_assets/static/src/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================ */
/*  BURNA DEVOPS — Neor.pro Inspired            */
/* ============================================ */

:root {
    --burna-primary: #2563eb;
    --burna-primary-dark: #1d4ed8;
    --burna-dark: #0f172a;
    --burna-gray: #64748b;
    --burna-light: #f8fafc;
    --burna-border: #e2e8f0;
    --burna-success: #16a34a;
}

body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
    background: #ffffff !important;
    color: #0f172a !important;
}

.btn, h1, h2, h3, h4, h5, h6, p, a, span, div {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
}

/* Protect Font Awesome icons from font override */
i.fa, i.fa::before, i.fa::after,
.fa, .fa::before, .fa::after {
    font-family: FontAwesome !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    display: inline-block !important;
}

[dir="rtl"] { text-align: right; }

/* Animations */
@keyframes burna-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes burna-ping {
    0% { transform: scale(1); opacity: 0.9; }
    75%, 100% { transform: scale(2.2); opacity: 0; }
}

@keyframes burna-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Navbar */
header#top {
    background: rgba(255,255,255,0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0 !important;
}

header#top .navbar-brand { display: none !important; }
header#top .nav-link { color: #0f172a !important; }
header#top .nav-link:hover { color: #2563eb !important; }

/* Footer — base styling */
footer#bottom {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

/* Permanently hide default Odoo footer content (website builder re-injects it) */
footer#bottom .oe_structure,
footer#bottom .s_text_block,
footer#bottom .s_social_media,
footer#bottom .o_footer_copyright,
footer#bottom [data-name="Footer"],
footer#bottom [data-name="Copyright"],
footer#bottom [data-name="Container"],
footer#bottom [data-snippet="s_text_block"],
footer#bottom [data-snippet="s_social_media"],
footer#bottom .o_brand_promotion {
    display: none !important;
}

/* Custom footer */
#burna-footer-custom {
    text-align: center !important;
    padding: 3vw 0 !important;
    display: block !important;
    visibility: visible !important;
}
#burna-footer-custom h5 {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 1.5vw !important;
}
#burna-footer-custom .burna-footer-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.92rem !important;
    color: #475569 !important;
}
#burna-footer-custom .burna-footer-info a {
    color: #2563eb !important;
    text-decoration: none !important;
}
#burna-footer-custom .burna-footer-info .burna-phone {
    direction: ltr !important;
    display: inline-block !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 600 !important;
    color: #0f172a !important;
}

/* Global */
.oe_structure, main { background: #ffffff !important; }

a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: #2563eb; text-decoration: none;
}
a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: #1d4ed8;
}

/* Buttons */
.btn-primary {
    background: #2563eb !important;
    border-color: #2563eb !important;
    border-radius: 100px !important;
    font-weight: 700 !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Blog page: hide sidebar/filter, author — broad selectors */
aside,
.o_wblog_sidebar,
#o_wblog_sidebar,
.blog-sidebar,
.blog_sidebar,
div[class*="blog"] div[class*="sidebar"],
div[id*="blog"] div[id*="sidebar"],
div:has(> .o_wblog_sidebar) {
    /* hidden by JS, CSS is fallback */
}
/* Scoped fallback for customized/cached post-card views. */
.website_blog .o_wblog_post_list_author {
    display: none !important;
}
/* Blog page: make content full-width */
.o_wblog_index_content,
.blog_content,
.o_wblog_main_content,
#o_wblog_index_content,
div[class*="blog_index"],
div[class*="blog"][class*="content"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 0 100% !important;
}

/* Selection */
::selection { background: #dbeafe; color: #0f172a; }

/* Card hover */
.burna-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06) !important;
}

/* Card description — centered */
.burna-card-desc {
    text-align: center !important;
}

/* Responsive */
@media (max-width: 768px) {
    .burna-hero-title { font-size: 2.4rem !important; }
}

/* Center the contact form on the page */
#contactus_form {
    max-width: 640px !important;
    margin: 0 auto !important;
}
/* Beautify the contact form inputs */
#contactus_form input[type="text"],
#contactus_form input[type="email"],
#contactus_form textarea,
#contactus_form .form-control {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
    background: #f8fafc !important;
    transition: all 0.2s !important;
}
#contactus_form input:focus,
#contactus_form textarea:focus,
#contactus_form .form-control:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15) !important;
    background: #fff !important;
    outline: none !important;
}
#contactus_form .btn-primary,
#contactus_form button[type="submit"] {
    background: #2563eb !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 14px 36px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}
/* Custom contact info at bottom of form */
.burna-contact-custom {
    max-width: 640px !important;
    margin: 24px auto 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 24px !important;
    background: #f0f4ff !important;
    border-radius: 16px !important;
    border: 1px solid #dbeafe !important;
    text-align: center !important;
}
.burna-contact-custom h5 {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 8px !important;
}
.burna-contact-custom a {
    color: #2563eb !important;
    text-decoration: none !important;
}
.burna-contact-custom .burna-phone {
    direction: ltr !important;
    display: inline-block !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 600 !important;
    color: #0f172a !important;
}

/* Responsive hardening for every custom public page. */
html, body, #wrapwrap, .oe_structure {
    max-width: 100%;
    min-width: 0;
}
html, body { overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe, svg { max-width: 100%; }
.clouda-homepage,
.clouda-products-page,
.clouda-solutions-page,
.clouda-contact-page {
    min-width: 0;
    overflow-wrap: anywhere;
}
.clouda-homepage > section:not(.clouda-home-hero),
.clouda-home-cta {
    padding-block: clamp(3rem, 6vw, 7.5rem) !important;
}
.clouda-home-hero {
    height: auto !important;
    min-height: 100vh;
    min-height: 100svh;
}
.clouda-home-hero-copy {
    padding-top: clamp(5.5rem, 9vh, 8rem) !important;
}
.clouda-home-hero-actions {
    padding-bottom: clamp(2rem, 7vh, 5rem) !important;
}
.clouda-home-action-row > a {
    min-height: 44px;
    max-width: 100%;
    padding: clamp(.72rem, .9vw, .9rem) clamp(1.25rem, 3vw, 3rem) !important;
    text-align: center;
}
.clouda-process-flow > div,
.clouda-product-card,
.clouda-product-title-row > div:last-child,
.clouda-product-specs > div {
    min-width: 0;
}
.clouda-terminal-preview { width: min(100%, 580px); }
.clouda-terminal-preview > div:last-child { overflow-wrap: anywhere; }
.clouda-products-hero,
.clouda-products-cta {
    padding-block: clamp(3rem, 5vw, 6rem) !important;
}
.clouda-products-catalog {
    padding-block: clamp(2.5rem, 4vw, 5rem) !important;
}
.clouda-products-filter-row {
    min-width: 0;
    scrollbar-width: thin;
}
.clouda-product-title-row,
.clouda-product-price-row { min-width: 0; }
.clouda-contact-container {
    padding-block: clamp(2rem, 4vw, 5rem) !important;
    padding-left: max(.75rem, env(safe-area-inset-left));
    padding-right: max(.75rem, env(safe-area-inset-right));
}
.clouda-contact-card,
#contactus_form,
#contactus_form input,
#contactus_form textarea { min-width: 0; }

@media (max-width: 767.98px) {
    #burna-lang-switcher {
        top: max(8px, env(safe-area-inset-top)) !important;
        right: max(8px, env(safe-area-inset-right)) !important;
    }
    #burna-lang-switcher > a {
        min-height: 40px;
        padding-inline: 12px !important;
    }
    .clouda-homepage > section,
    .clouda-home-cta {
        padding-block: clamp(2.75rem, 12vw, 4.5rem) !important;
    }
    .clouda-home-hero {
        min-height: 100dvh;
        padding-block: 0 !important;
    }
    .clouda-home-hero-copy,
    .clouda-home-hero-actions {
        padding-inline: 1rem;
    }
    .clouda-home-action-row { gap: .75rem !important; }
    .clouda-process-flow {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
    }
    .clouda-process-flow > div:nth-child(odd) {
        width: 100%;
        min-width: 0 !important;
        padding-block: 12px !important;
    }
    .clouda-process-flow > div:nth-child(even) {
        padding: 0 !important;
        transform: rotate(90deg);
    }
    .clouda-terminal-preview > div:last-child { padding: 18px !important; }
    .clouda-products-filters { padding-block: .75rem !important; }
    .clouda-products-filters > .container { max-width: 100%; padding-inline: 0; }
    .clouda-products-filter-row {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding: 0 1rem .35rem;
        scroll-padding-inline: 1rem;
    }
    .clouda-product-card { padding: 18px !important; }
    .clouda-products-page .row { --bs-gutter-x: 1.25rem; }
    .clouda-contact-card h1 { margin-bottom: 1.5rem !important; }
}

@media (max-width: 440px) {
    .clouda-home-action-row { flex-direction: column; align-items: stretch; }
    .clouda-home-action-row > a { width: 100%; justify-content: center; }
    .clouda-product-title-row { gap: 10px !important; }
    .clouda-product-specs { grid-template-columns: minmax(0, 1fr) !important; }
    .clouda-product-price-row { align-items: flex-start !important; flex-direction: column; }
    .clouda-product-price-row > span { white-space: normal !important; }
    .clouda-solution-features { gap: 6px !important; }
    .clouda-solution-chip { max-width: 100%; white-space: normal; }
    .clouda-invalid-token-actions a,
    .clouda-products-cta a { width: 100%; justify-content: center; }
}

@media (max-height: 520px) and (orientation: landscape) {
    .clouda-home-hero-copy { padding-top: 4.5rem !important; }
    .clouda-home-hero-actions { padding-bottom: 1rem !important; }
    .clouda-home-hero { min-height: 32rem; }
}
