/**
 * Premium theme finishing layer.
 *
 * This file is intentionally loaded after legacy theme styles so Envato buyers
 * can customize the original files while keeping the polished storefront skin
 * easy to review, disable, or replace.
 */

:root {
    --premium-ink: #111827;
    --premium-ink-soft: #374151;
    --premium-muted: #6b7280;
    --premium-line: #e5e7eb;
    --premium-surface: #ffffff;
    --premium-soft: #f7f9fc;
    --premium-accent: #2563eb;
    --premium-accent-dark: #1e3a8a;
    --premium-warm: #d97706;
    --premium-focus: #60a5fa;
    --premium-radius: 8px;
    --premium-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
    --premium-shadow-hover: 0 24px 60px rgba(17, 24, 39, 0.12);
}

html {
    text-rendering: optimizeLegibility;
}

body {
    background: var(--premium-soft);
    color: var(--premium-ink);
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-main h1,
.hero-slider-title,
.section-header h2,
.child-page-title,
.catalog-title,
.gallery-title,
.news-title,
.footer-logo-text {
    letter-spacing: 0;
}

a,
button,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.55);
    outline-offset: 3px;
}

img,
video,
iframe {
    max-width: 100%;
}

.container,
.page-content,
.advantages .container,
.child-pages .container,
.catalog_items .container,
.gallery_items .container,
.testimonials .container,
.news .container,
.faq .container,
.process .container {
    width: min(1320px, calc(100% - 48px));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.page-content {
    padding-top: 42px;
    padding-bottom: 42px;
}

.page-text,
.page-content,
.catalog-desc,
.gallery-desc,
.testimonial-text,
.news-excerpt,
.footer-desc {
    overflow-wrap: anywhere;
}

.navbar.rounded-nav {
    border-radius: var(--premium-radius);
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

.navbar.rounded-nav.scrolled {
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

.navbar-container {
    gap: 16px;
}

.logo-img,
.footer-logo-img {
    max-width: 220px;
    object-fit: contain;
}

.nav-links,
.main-menu {
    gap: 6px;
}

.nav-links a,
.main-menu a {
    border-radius: var(--premium-radius);
    padding: 10px 12px;
}

.nav-links a:hover,
.main-menu a:hover,
.nav-links a.active,
.main-menu a.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--premium-accent) !important;
}

.main-menu .sub-menu {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: var(--premium-radius);
    box-shadow: var(--premium-shadow);
}

.btn-primary,
.btn-outline,
.btn-outline-small,
.btn-primary-small,
.btn-outline-small-max,
.cta-phone,
.cta-section .btn-cta-white,
.child-page-btn,
.hb-btn-link {
    border-radius: var(--premium-radius);
}

.btn-primary,
.btn-primary-small,
.cta-phone,
.cta-section .btn-cta-white {
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
}

.hero-section,
.hero-slider-section {
    min-height: 720px;
    background: var(--premium-ink);
}

.hero-content,
.hero-slider-content {
    gap: 48px;
}

.hero-main h1,
.hero-slider-title {
    font-size: 56px;
    line-height: 1.05;
}

.hero-description {
    max-width: 640px;
}

.hero-badge,
.hero-slider-badge,
.stat-item,
.hero-right {
    border-radius: var(--premium-radius);
    border-color: rgba(255, 255, 255, 0.22);
}

.stat-item,
.hero-right {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.stat-item:hover,
.hero-right:hover {
    transform: translateY(-3px);
}

.advantages,
.child-pages,
.catalog_items,
.gallery_items,
.testimonials,
.news,
.faq,
.process {
    padding: 72px 0;
}

.section-header {
    margin-bottom: 36px;
}

.section-header h2 {
    color: var(--premium-ink);
    font-size: 38px;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.section-subhead {
    color: var(--premium-muted);
}

.advantages-grid,
.child-pages-grid,
.catalog-grid,
.gallery-grid,
.testimonials-grid,
.news-grid,
.faq-grid,
.process-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.advantage-card,
.catalog-card-link,
.gallery-item,
.testimonial-card,
.news-card,
.property-card,
.page-card,
.contact-card,
.related-card,
.child-page-card {
    border-radius: var(--premium-radius);
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 12px 35px rgba(17, 24, 39, 0.05);
}

.advantage-card:hover,
.catalog-card-link:hover,
.gallery-item:hover,
.testimonial-card:hover,
.news-card:hover,
.property-card:hover,
.related-card:hover,
.child-page-card:hover {
    box-shadow: var(--premium-shadow-hover);
    transform: translateY(-3px);
}

.catalog-image,
.gallery-img,
.news-image,
.related-image,
.page-featured-image,
.additional-gallery-item {
    border-radius: var(--premium-radius);
    overflow: hidden;
}

.catalog-image,
.gallery-img {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.catalog-title,
.gallery-title,
.news-title,
.child-page-title {
    line-height: 1.3;
}

.price-current,
.property-value.price,
.catalog-price,
.product-price,
.price {
    color: var(--premium-ink);
    font-weight: 800;
}

.badge {
    border-radius: 6px;
}

.page-text table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-radius: var(--premium-radius);
}

.page-text thead th:first-child,
.page-text thead th:last-child {
    border-radius: 0;
}

.cta-section {
    border-radius: var(--premium-radius);
    background: linear-gradient(135deg, var(--premium-accent-dark), var(--premium-ink) 58%, #0f766e);
    box-shadow: var(--premium-shadow);
}

.cta-section::before,
.cta-section::after {
    display: none;
}

.cta-right {
    max-width: 320px;
}

.cta-image {
    opacity: 0.82;
}

footer {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(24px, calc((100vw - 1320px) / 2));
    padding-right: max(24px, calc((100vw - 1320px) / 2));
    background: var(--premium-surface);
}

.footer-grid {
    gap: 36px;
}

.social-link {
    border-radius: var(--premium-radius);
}

.breadcrumbs {
    gap: 4px;
}

.breadcrumbs .current {
    max-width: min(360px, 60vw);
}

body.menu-open::before {
    backdrop-filter: blur(4px);
}

@media (max-width: 1000px) {
    body {
        padding-top: var(--header-height-mobile);
    }

    .navbar.rounded-nav {
        margin: 10px;
        width: calc(100% - 20px);
        border-radius: var(--premium-radius);
    }

    .navbar.rounded-nav .nav-links {
        width: min(88vw, 380px) !important;
        max-width: min(88vw, 380px) !important;
        padding: 82px 22px 24px !important;
    }

    .navbar.rounded-nav .mobile-contacts {
        width: min(88vw, 380px) !important;
        max-width: min(88vw, 380px) !important;
    }

    .navbar.rounded-nav .nav-links a {
        border-radius: var(--premium-radius);
    }

    .hero-section,
    .hero-slider-section {
        min-height: 640px;
    }

    .hero-content,
    .hero-slider-content {
        padding: 56px 24px;
    }

    .hero-main h1,
    .hero-slider-title {
        font-size: 42px;
    }
}

@media (max-width: 720px) {
    .container,
    .page-content,
    .advantages .container,
    .child-pages .container,
    .catalog_items .container,
    .gallery_items .container,
    .testimonials .container,
    .news .container,
    .faq .container,
    .process .container {
        width: min(100% - 28px, 1320px);
    }

    .page-content {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .hero-section,
    .hero-slider-section {
        min-height: 560px;
    }

    .hero-main h1,
    .hero-slider-title {
        font-size: 34px;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        min-height: 52px;
        width: 100%;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .advantages,
    .child-pages,
    .catalog_items,
    .gallery_items,
    .testimonials,
    .news,
    .faq,
    .process {
        padding: 52px 0;
    }

    .catalog-content,
    .gallery-content,
    .testimonial-card,
    .news-card,
    .advantage-card {
        padding: 22px;
    }

    .cta-section {
        padding: 44px 24px;
        text-align: left;
    }

    .cta-right {
        max-width: none;
        margin: 0;
    }

    .cta-image {
        display: none;
    }

    .footer-grid,
    .footer-bottom {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        max-width: 170px;
    }

    .hero-main h1,
    .hero-slider-title {
        font-size: 30px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .breadcrumbs .current {
        max-width: 58vw;
    }
}

/* Professional CTA, footer, and page content polish. */
.page-content {
    width: min(1320px, calc(100% - 48px));
    max-width: none;
    margin: 0 auto;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    letter-spacing: 0;
}

.page-content h1 {
    font-size: 44px;
    line-height: 1.1;
}

.page-content p,
.page-content li {
    color: #475569;
}

.breadcrumbs-wrapper {
    margin-bottom: 18px;
}

.breadcrumbs {
    gap: 4px;
    margin-bottom: 18px;
    padding: 0;
}

.breadcrumbs a,
.breadcrumbs .current {
    border-radius: 6px;
}

.cta-section {
    width: auto;
    margin: 72px 0 0;
    padding: 56px 32px;
    border-radius: 0;
    background: #0f172a;
    box-shadow: none;
}

.cta-section::before,
.cta-section::after {
    display: none !important;
}

.cta-left h2 {
    max-width: 680px;
    margin-bottom: 12px;
    font-size: 34px;
    line-height: 1.14;
    letter-spacing: 0;
}

.cta-left p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 16px;
}

.cta-right {
    max-width: 360px;
}

.cta-phone,
.cta-section .btn-outline-small-max,
.cta-section .btn-cta-white {
    min-height: 50px;
    height: auto;
    padding: 13px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 750;
    white-space: normal;
}

.cta-phone {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
}

.cta-phone:hover,
.cta-section .btn-outline-small-max:hover,
.cta-section .btn-cta-white:hover {
    transform: translateY(-2px);
}

.cta-image {
    right: max(18px, calc((100vw - 1320px) / 2));
    max-width: 260px;
    opacity: 0.72;
}

footer {
    margin-left: 0;
    margin-right: 0;
    padding: 56px 32px 34px;
    border-top: 0;
    background: #111827;
    color: #e5e7eb;
}

.footer-grid {
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(170px, 1fr));
    gap: 34px;
    margin-bottom: 38px;
}

.footer-logo-text,
footer h5 {
    color: #ffffff;
    letter-spacing: 0;
}

.footer-desc,
footer ul li,
footer ul li a,
.footer-bottom {
    color: rgba(229, 231, 235, 0.72);
}

footer h5 {
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 800;
}

footer ul {
    gap: 10px;
}

footer ul li {
    align-items: flex-start;
}

footer ul li a:hover {
    color: #93c5fd;
    transform: none;
}

footer ul li i {
    color: #93c5fd;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    font-size: 17px;
}

.social-link:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: none;
    transform: translateY(-2px);
}

.footer-bottom {
    align-items: center;
    padding-top: 26px;
    border-top-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 920px) {
    .page-content {
        width: min(100% - 28px, 1320px);
    }

    .page-content h1 {
        font-size: 34px;
    }

    .cta-section {
        padding: 44px 24px;
    }

    .cta-right {
        max-width: none;
    }

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

@media (max-width: 620px) {
    .cta-section {
        gap: 24px;
    }

    .cta-left h2 {
        font-size: 28px;
    }

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

/* Professional property, search, and utility card polish. */
.page-properties {
    margin: 32px 0;
}

.properties-grid {
    gap: 18px;
}

.property-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.property-card::before {
    display: none;
}

.property-card:hover {
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.property-icon {
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: none;
}

.property-card:hover .property-icon {
    background: #2563eb;
    color: #ffffff;
    transform: none;
}

.property-name {
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0;
    text-transform: none;
}

.property-value,
.page-properties-header h3,
.properties-group-title {
    letter-spacing: 0;
}

.properties-toggle,
.properties-empty,
.search-container,
.result-item,
.no-results,
.error-message {
    border-radius: 8px;
}

.search-container,
.result-item,
.no-results {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}
