/*
Theme Name: ARTCON Inline Assets
Theme URI: https://artcon.sa
Author: ARTCON
Description: Custom WordPress theme for ARTCON Contracting.
Version: 1.0.3
Text Domain: artcon
*/

:root {
    --main-orange: #ff6600;
    --dark-bg: #121212;
    --soft-dark: #1f1f1f;
    --light-gray: #f7f7f5;
    --muted-text: #6f747b;
    --border-soft: #e7e2dc;
    --whatsapp-green: #25d366;
}

body {
    font-family: 'Cairo', sans-serif;
    background: #fff;
    color: #262626;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

section { scroll-margin-top: 90px; }

.artcon-navbar {
    background-color: rgba(18,18,18,0.96);
    border-bottom: 2px solid var(--main-orange);
    padding: 12px 0;
    backdrop-filter: blur(10px);
}

.artcon-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.artcon-navbar-brand img {
    height: 62px;
    width: auto;
    max-width: 260px;
    display: block;
}

.artcon-navbar-brand {
    display: block;
    min-width: 210px;
    min-height: 62px;
    background-image: var(--artcon-logo-url);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center right;
}

.artcon-navbar-brand img:not([src]),
.artcon-navbar-brand img[src=""] {
    display: none;
}

.artcon-nav-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.artcon-navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.artcon-nav-link {
    color: rgba(255,255,255,0.88) !important;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.artcon-nav-link:hover { color: var(--main-orange) !important; }

.btn-consultation,
.btn-artcon {
    background-color: var(--main-orange);
    color: white !important;
    padding: 10px 25px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    border: none;
    transition: 0.3s;
}

.btn-consultation:hover,
.btn-artcon:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    color: white !important;
}

.hero-section {
    position: relative;
    background: linear-gradient(90deg, rgba(10,10,10,0.90), rgba(10,10,10,0.68), rgba(10,10,10,0.36)), var(--artcon-hero-bg);
    background-size: cover;
    background-position: center;
    min-height: calc(100vh - 74px);
    display: flex;
    align-items: center;
    color: white;
    text-align: right;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 6px;
    background: var(--main-orange);
}

.hero-content {
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    background: rgba(255,102,0,0.18);
    border: 1px solid rgba(255,102,0,0.45);
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 800;
    margin-bottom: 22px;
}

.hero-title {
    font-weight: 900;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1.16;
    letter-spacing: 0;
    margin-bottom: 18px;
}

.hero-lead {
    color: rgba(255,255,255,0.82);
    font-size: 1.25rem;
    line-height: 2;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    transition: 0.3s;
}

.btn-hero-primary { background: var(--main-orange); color: #fff; }
.btn-hero-secondary { color: #fff; border: 1px solid rgba(255,255,255,0.45); background: rgba(255,255,255,0.08); }
.btn-hero-primary:hover,
.btn-hero-secondary:hover { transform: translateY(-2px); color: #fff; }

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 42px;
    max-width: 680px;
}

.hero-metric {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    padding: 16px;
    backdrop-filter: blur(8px);
}

.hero-metric strong {
    display: block;
    color: var(--main-orange);
    font-size: 1.7rem;
    font-weight: 900;
}

.hero-metric span {
    color: rgba(255,255,255,0.78);
    font-size: 0.92rem;
}

.floating-group {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: none;
    transition: 0.3s;
    text-decoration: none;
}

.btn-whatsapp { background-color: var(--whatsapp-green); }
.btn-newsletter { background-color: var(--main-orange); }
.float-btn:hover { transform: scale(1.1); color: white; }

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 18px;
    font-weight: 900;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 5px;
    background-color: var(--main-orange);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--muted-text);
    max-width: 700px;
    margin: 0 auto 34px;
    text-align: center;
    line-height: 1.9;
}

.service-card,
.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 34px;
    transition: 0.3s;
    border: 1px solid var(--border-soft);
    text-align: right;
    height: 100%;
    box-shadow: 0 12px 36px rgba(20,20,20,0.05);
}

.service-card:hover,
.feature-card:hover {
    border-color: rgba(255,102,0,0.55);
    box-shadow: 0 18px 45px rgba(20,20,20,0.09);
    transform: translateY(-5px);
}

.service-icon,
.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: var(--main-orange);
    margin-bottom: 22px;
    background: rgba(255,102,0,0.10);
}

.service-card p,
.feature-card p { line-height: 1.9; color: var(--muted-text) !important; }

.stats-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #27211d 100%);
    color: white;
    padding: 64px 0;
    border-top: 4px solid var(--main-orange);
    border-bottom: 4px solid var(--main-orange);
}

.stat-box { text-align: center; }
.stat-number { font-size: 3.5rem; font-weight: 900; color: var(--main-orange); margin-bottom: 10px; }
.stat-label { font-size: 1.1rem; font-weight: 600; color: #ddd; }

.filter-btn {
    background: transparent;
    border: 2px solid #ccc;
    color: #333;
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 700;
    transition: 0.3s;
    margin: 5px;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--main-orange);
    border-color: var(--main-orange);
    color: white;
}

.project-item { transition: 0.4s ease; }

.project-card {
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid var(--border-soft);
    background: #fff;
    height: 100%;
    box-shadow: 0 12px 34px rgba(0,0,0,0.06);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.11);
}

.project-card img {
    height: 260px;
    object-fit: cover;
    transition: 0.35s;
}

.project-card:hover img { transform: scale(1.04); }
.project-image-wrap { overflow: hidden; background: #eee; }
.project-link { color: var(--main-orange); font-weight: 900; text-decoration: none; }

.testimonial-section { background-color: var(--light-gray); padding: 80px 0; }
.testimonial-card { background: white; border-radius: 8px; padding: 35px; box-shadow: 0 15px 38px rgba(0,0,0,0.05); border-right: 5px solid var(--main-orange); }

.quote-form-box { background: rgba(255,255,255,0.03); border: 1px solid #333; border-radius: 8px; padding: 30px; }
.quote-form-box .form-control,
.quote-form-box .form-select { background: #222; border: 1px solid #444; color: #fff !important; padding: 12px; }
.quote-form-box .form-control:focus,
.quote-form-box .form-select:focus { border-color: var(--main-orange); box-shadow: none; background: #252525; color: #fff !important; }
.quote-form-box .form-control::placeholder { color: #b3b3b3 !important; opacity: 1 !important; }
.quote-form-box .form-label-file { color: #b3b3b3; font-size: 0.9rem; font-weight: bold; display: block; margin-bottom: 8px; }

footer { background-color: var(--dark-bg); color: white; padding: 80px 0 20px; }
.map-wrapper { border: 2px solid var(--main-orange); border-radius: 8px; overflow: hidden; min-height: 320px; width: 100%; background: #fff; }
.map-wrapper iframe { width: 100% !important; height: 100% !important; min-height: 320px; }

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-btn:hover { transform: translateY(-3px); color: white; opacity: 0.9; }
.social-btn svg { width: 16px; height: 16px; fill: currentColor; }

.project-detail-navbar {
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border-soft);
}

.project-detail-navbar .artcon-nav-link { color: #1f1f1f !important; }

.project-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.80));
}

.project-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 6px;
    background: var(--main-orange);
}

.project-detail-hero-content {
    position: relative;
    z-index: 1;
    padding: 90px 0 70px;
}

.project-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid rgba(255,102,0,0.55);
    border-radius: 999px;
    background: rgba(255,102,0,0.16);
    font-weight: 900;
    margin-bottom: 20px;
}

.project-title {
    max-width: 860px;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 18px;
    text-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

.project-summary {
    max-width: 760px;
    color: rgba(255,255,255,0.86);
    line-height: 2;
    font-size: 1.15rem;
}

.overview-card {
    position: relative;
    z-index: 2;
    margin-top: -58px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 22px 55px rgba(0,0,0,0.12);
    overflow: hidden;
}

.overview-main { padding: 34px; }
.overview-side { height: 100%; padding: 34px; background: var(--dark-bg); color: #fff; border-right: 5px solid var(--main-orange); }
.section-label { color: var(--main-orange); font-weight: 900; margin-bottom: 10px; }
.project-description { color: #323232; line-height: 2.1; font-size: 1.05rem; margin: 0; }

.meta-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.meta-item:last-child { border-bottom: 0; }
.meta-icon { width: 42px; height: 42px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(255,102,0,0.16); color: var(--main-orange); flex: 0 0 auto; }
.meta-item small { display: block; color: rgba(255,255,255,0.58); margin-bottom: 2px; }
.meta-item strong { color: #fff; font-size: 0.98rem; }

.gallery-card { display: block; position: relative; overflow: hidden; border-radius: 8px; background: #eee; box-shadow: 0 14px 36px rgba(0,0,0,0.08); }
.gallery-card img { width: 100%; height: 285px; object-fit: cover; transition: 0.35s; }
.gallery-card:hover img { transform: scale(1.05); }

.cta-panel {
    background: linear-gradient(135deg, var(--dark-bg), #2b211b);
    color: #fff;
    border-radius: 8px;
    padding: 34px;
    border-right: 5px solid var(--main-orange);
}

.cta-panel p { color: rgba(255,255,255,0.72); line-height: 1.9; }

@media (max-width: 991px) {
    .artcon-nav-group { gap: 12px; }
    .hero-section { min-height: 78vh; text-align: right; }
    .hero-metrics { grid-template-columns: 1fr; }
    .project-hero { min-height: 430px; }
    .project-detail-hero-content { padding: 70px 0 54px; }
    .overview-card { margin-top: -36px; }
}

@media (max-width: 576px) {
    .artcon-navbar-brand img { height: 46px; max-width: 190px; }
    .btn-consultation, .btn-artcon { padding: 8px 14px; font-size: 0.85rem; }
    .artcon-navbar-nav { display: none; }
    .hero-section { min-height: 82vh; }
    .hero-lead { font-size: 1rem; }
    .hero-actions a { width: 100%; justify-content: center; }
    .service-card, .feature-card { padding: 26px; }
    .floating-group { right: 16px; bottom: 18px; }
    .float-btn { width: 52px; height: 52px; font-size: 24px; }
    .project-hero { min-height: 390px; }
    .overview-main, .overview-side, .cta-panel { padding: 24px; }
    .gallery-card img { height: 230px; }
}
