/**
 * Fanavar Steel — industrial surface geometry (single override layer).
 *
 * (1) CTAs / buttons, (2) cards & content shells, (3) form controls,
 * (4) overlays & tags, (5) structural separators where geometry applies.
 *
 * Loads LAST in master.blade.php. Tokens: skin-fanavar-steel.css.
 * Circles (icons, carousels, swatches) restored after the CTA pass.
 */

/* -------------------------------------------------------------------------- */
/* 1. Primary actions — buttons & CTAs                                        */
/* -------------------------------------------------------------------------- */

.btn,
a.btn,
button.btn,
input[type="submit"].btn,
input[type="button"].btn,
.fanavar-btn,
.fanavar-btn--primary,
.fanavar-btn--secondary,
.wsd-btn,
.fp-btn-more,
.cs-btn,
.cutting-sticky-btn,
.fire-door-sticky-btn,
.signage-sticky-btn,
.elv-emergency-btn,
.elv-sticky-btn,
.atd-btn,
.cta-button,
.cta-link-btn,
.hp-floating-cta__btn,
.cta-contact-btn,
.color-card-btn,
.cp-btn,
.btn-primary-yellow,
.btn-outline-white,
.btn-dark,
.btn-outline-dark,
.filter-btn,
.fanavar-filter-tab,
.mobile-lang-btn,
.replay-btn,
.hp-factory-cta,
.hp-factory-cta-secondary,
.hp-video-duration-badge,
.fs-form-submit,
.hp-contact-submit,
.form-submit-btn,
.faq-cta-btn,
.faq-item-header,
.faq-search-clear-btn,
.mobile-menu-form-submit,
.mobile-menu-close,
.nav-pills .nav-link,
a[class*="cta"]:not(.rounded-circle),
button[class*="cta"]:not(.rounded-circle),
a[style*="inline-flex"][style*="padding"]:not(.rounded-circle) {
    border-radius: var(--border-radius) !important;
}

/* -------------------------------------------------------------------------- */
/* 1b. Restore intentional circles / Porto icon rounds                        */
/* -------------------------------------------------------------------------- */

.btn-circle,
.rounded-circle,
.floating-cta-btn,
.floating-contact-bar__social,
.footer-social-icon,
.color-icon-btn,
.atd-gallery__btn,
.video-play-btn,
.back-to-top,
.owl-dot,
.owl-prev,
.owl-next,
.mobile-menu-contact-item i,
.faq-cta-divider-dot {
    border-radius: 50% !important;
}

.btn-rounded-icon {
    border-radius: 50% !important;
}

/* -------------------------------------------------------------------------- */
/* 2. Content containers — cards & boxed content                              */
/* -------------------------------------------------------------------------- */

.card,
.card-header,
.card-footer,
.card-img,
.card-img-top,
.card-img-bottom,
.thumb-info,
.thumb-info-wrapper,
.featured-box,
.feature-box,
.feature-box-icon,
.shop-item,
.pricing-block,
.pricing-table,
.accordion.accordion-modern-2 > .card,
.accordion.accordion-modern-2 > .card .card-header a,
.box-shadow-1,
.testimonial blockquote,
.contact-card,
.hp-factory-cta-panel,
.cinematic-services-wrapper .cs-service-card,
.products-page-wrapper .product-card,
.project-card,
.projects-page .project-card {
    border-radius: var(--border-radius) !important;
}

/* Materials chips — industrial corners for both tile and swatch */
.fanavar-materials-pills .material-tile,
.materials-grid.fanavar-materials-pills .material-tile,
.pc-materials-pills-grid.fanavar-materials-pills .material-tile {
    border-radius: var(--border-radius) !important;
}

.fanavar-materials-pills .material-tile-image,
.materials-grid.fanavar-materials-pills .material-tile-image,
.pc-materials-pills-grid.fanavar-materials-pills .material-tile-image,
.material-tile .material-tile-image {
    border-radius: var(--border-radius) !important;
}

/* -------------------------------------------------------------------------- */
/* 3. Form inputs & selectors                                                 */
/* -------------------------------------------------------------------------- */

.form-control,
.form-select,
.input-group-text,
textarea,
select:not(.mobile-menu-language-select),
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
.mobile-menu-form input,
.mobile-menu-form textarea,
.mobile-search-input,
.form-check-input {
    border-radius: var(--border-radius) !important;
}

/* -------------------------------------------------------------------------- */
/* 4. Visual overlays, menus, alerts, tags                                    */
/* -------------------------------------------------------------------------- */

.dropdown-menu,
#header .dropdown-menu,
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu,
#header .header-nav-main nav > ul > li.dropdown-mega > .dropdown-menu,
.dropdown-menu-services,
.language-switcher-nav .dropdown-menu,
.modal-content,
.modal-header,
.modal-footer,
.offcanvas,
.offcanvas-header,
.offcanvas-body,
.toast,
.toast-header,
.alert,
.badge,
.tag,
.label,
.popover,
.popover-header,
.popover-body,
.tooltip .tooltip-inner,
.nav-link-custom-1,
.header-nav-main nav > ul > li > a.nav-link-custom-1,
.mobile-menu-language-select,
.mobile-menu-lang-link,
.mfp-content .mfp-figure,
.mfp-img,
.mfp-iframe-scaler iframe {
    border-radius: var(--border-radius) !important;
}

/* Full-screen shell: square viewport corners; inner chrome uses tokens above */
#mobileMenuOverlay.mobile-menu-overlay,
.mobile-menu-overlay {
    border-radius: 0 !important;
}

/* -------------------------------------------------------------------------- */
/* 5. Structural separators (bars / rules where radius is visible)          */
/* -------------------------------------------------------------------------- */

.terms-divider,
.trust-divider,
#signage-page .trust-divider,
.hero-benefits-separator,
hr.terms-divider {
    border-radius: var(--border-radius) !important;
}

.floating-contact-bar__divider {
    border-radius: 0 !important;
}

/* -------------------------------------------------------------------------- */
/* 6. #main-content — high-traffic fragments & inline-style CTAs (late layer)   */
/*    Skin token: skin-fanavar-steel.css --border-radius                       */
/* -------------------------------------------------------------------------- */

#main-content .mobile-slider-item,
#main-content .faq-cross-link-card,
#main-content .faq-cross-link-btn,
#main-content .shared-gallery-section .bending-project-item,
#main-content #faqSearchResults,
#main-content .faq-search-results,
#main-content .faq-item,
#main-content .faq-search-input,
#main-content .faq-search-clear-btn,
#main-content .faq-search-suggestion-tag,
#main-content .faq-nav-tab,
#main-content .faq-contact-method,
#main-content .faq-process-step,
#main-content .faq-step-number,
#main-content .faq-item-toggle,
#main-content .faq-category-icon-wrap,
#main-content .faq-cta-wrapper,
#main-content .faq-cta-icon-wrap,
#main-content .track-record-card.faq-track-card,
#main-content .projects-page .project-card {
    border-radius: var(--border-radius) !important;
}

/* Inline-styled anchors in main (overrides style=…; skip circular avatars) */
#main-content a[style*="border-radius"]:not(.rounded-circle):not([style*="border-radius:50%"]):not([style*="border-radius: 50%"]):not([style*="border-radius:100%"]):not([style*="border-radius: 100%"]) {
    border-radius: var(--border-radius) !important;
}
