/* ============================================================
   serve-blog2.css — مقاول هدم الدمام (شركة هدم مباني)
   Brand Colors:
     Primary:    #58492F (بني دافئ ترابي)
     Secondary:  #393E46 (رمادي داكن/فحمي)
     Accent:     #C29963 (بيج ذهبي/خردلي دافئ)
     Muted:      #737373 (رمادي وسيط)
     Light BG:   #faf7f2 / #f5eee4 / #ffffff
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
    /* Brand Palette */
    --color-primary: #58492F;
    --color-primary-rgb: 88, 73, 47;
    --color-primary-dark: #3e3320;
    --color-secondary: #393E46;
    --color-secondary-rgb: 57, 62, 70;
    --color-accent: #C29963;
    --color-accent-rgb: 194, 153, 99;
    --color-accent-light: #dfcaa8;
    --color-helper: #737373;
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #1ea952;

    /* Text Colors */
    --text-darkest: #1e1913;
    --text-dark: #2d261e;
    --text-main: #4a4237;
    --text-muted: #737373;
    --text-light: #9e9589;
    --text-white: #ffffff;

    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #faf7f2;
    --bg-warm-tint: #f6f1e8;
    --bg-cream: #fbf9f5;
    --bg-card: #ffffff;
    --bg-border: #e8e2d8;
    --bg-border-light: #f0ebe2;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(88, 73, 47, 0.05);
    --shadow-md: 0 6px 20px rgba(88, 73, 47, 0.08);
    --shadow-lg: 0 12px 32px rgba(88, 73, 47, 0.12);

    /* Dimensions & Spacing */
    --container-max-width: 1240px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 50px;
}

/* Global Reset for Blog Template */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.65;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Full Width Sections */
.hero-section,
.features-section,
.faq-section,
.why-us-section,
.contact-section {
    width: 100%;
    position: relative;
}

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

/* Section Header Shared */
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 800;
    color: var(--text-darkest);
    line-height: 1.35;
    margin: 0 0 10px;
}

/* ============================================================
   1) Hero Section
============================================================ */
.hero-section {
    background: linear-gradient(135deg, #faf7f2 0%, #f4ede2 60%, #eee4d4 100%);
    padding: 80px 0 70px;
    overflow: hidden;
    border-bottom: 1px solid var(--bg-border);
}

.hero-creative-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
}

.orb-blue {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
}

.orb-cyan {
    width: 350px;
    height: 350px;
    background: var(--color-accent);
    bottom: -80px;
    left: -80px;
}

.orb-orange {
    width: 300px;
    height: 300px;
    background: var(--color-accent-light);
    top: 40%;
    right: 25%;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    text-align: right;
}

.hero-text .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--color-accent);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}

.hero-text .badge-icon {
    color: var(--color-accent);
    font-size: 1rem;
}

.hero-text h1 {
    font-size: clamp(1.8rem, 3.8vw, 2.6rem);
    font-weight: 900;
    color: var(--text-darkest);
    line-height: 1.35;
    margin: 0 0 16px;
}

.hero-text .subheading {
    font-size: clamp(1rem, 2vw, 1.12rem);
    color: var(--text-main);
    line-height: 1.75;
    margin: 0 0 24px;
    max-width: 95%;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(88, 73, 47, 0.25);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn i {
    font-size: 1.15rem;
}

.whatsapp-btn {
    background-color: var(--color-whatsapp);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.whatsapp-btn:hover {
    background-color: var(--color-whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.call-btn {
    background-color: var(--color-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(88, 73, 47, 0.3);
}

.call-btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(88, 73, 47, 0.4);
}

.hero-image {
    position: relative;
}

.hero-image .image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid #ffffff;
    background: #ffffff;
}

.hero-image .image-wrapper img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* ============================================================
   2) Why Choose Us Section (.features-section)
============================================================ */
.features-section {
    padding: 70px 0 80px;
    background-color: var(--bg-white);
}

.features-header {
    text-align: right;
    margin-bottom: 40px;
}

.features-title-box p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 8px 0 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px 20px;
}

.feature-card {
    background-color: #ffffff;
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-lg);
    padding: 38px 20px 22px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: right;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.icon-sticker {
    position: absolute;
    top: -20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary), #6f5d3d);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(88, 73, 47, 0.25);
    border: 2px solid #ffffff;
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-sticker {
    transform: scale(1.08) rotate(-4deg);
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-darkest);
    margin: 0 0 10px;
    line-height: 1.45;
}

.feature-card p {
    font-size: 0.94rem;
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   3) FAQ Section (.faq-section)
============================================================ */
.faq-section {
    padding: 75px 0 85px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--bg-border);
    border-bottom: 1px solid var(--bg-border);
}

.faq-top-header {
    text-align: right;
    margin-bottom: 35px;
}

.faq-top-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--text-darkest);
    margin: 0 0 8px;
}

.faq-top-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.faq-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: flex-start;
}

.faq-sidebar {
    background: #ffffff;
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
    text-align: right;
}

.faq-sidebar-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-darkest);
    margin: 0 0 10px;
}

.faq-sidebar-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 20px;
}

.faq-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.faq-link:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-list h3 {
    margin: 0;
    padding: 0;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    text-align: right;
    padding: 18px 22px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-darkest);
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-item.active .faq-question {
    color: var(--color-primary);
}

.faq-question::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--color-accent);
    transition: transform 0.3s ease;
    margin-right: 12px;
    flex-shrink: 0;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-answer {
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 250px;
    padding-bottom: 18px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.75;
    margin: 0;
}

/* ============================================================
   4) What Makes Us Different / Execution Standards (.why-us-section)
============================================================ */
.why-us-section {
    padding: 75px 0 85px;
    background-color: var(--bg-white);
}

.why-us-header {
    text-align: center;
    margin-bottom: 45px;
}

.why-us-subtitle {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.why-us-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 750px;
    margin: 8px auto 0;
}

.process-wrapper {
    max-width: 100%;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-item {
    background: #ffffff;
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-lg);
    padding: 32px 20px 22px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: right;
    display: flex;
    flex-direction: column;
}

.process-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.bg-number {
    position: absolute;
    top: 14px;
    left: 18px;
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-accent);
    opacity: 0.35;
    line-height: 1;
    pointer-events: none;
}

.hexagon-wrapper {
    margin-bottom: 16px;
}

.hexagon-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary), #6f5d3d);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(88, 73, 47, 0.25);
    border: 2px solid #ffffff;
    transition: transform 0.3s ease;
}

.process-item:hover .hexagon-icon {
    transform: scale(1.08) rotate(-4deg);
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
}

.process-content h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-darkest);
    margin: 0 0 10px;
    line-height: 1.45;
}

.process-content p {
    font-size: 0.94rem;
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   Stats Section (.stats-section) — ضيفيه في آخر serve-blog2.css
============================================================ */
.stats-section {
    width: 100%;
    position: relative;
    padding: 70px 0 80px;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    overflow: hidden;
}

.stats-section > .container {
    display: block !important;
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
}

.stats-header {
    text-align: center;
    margin-bottom: 42px;
}

.stats-section .section-title {
    color: #ffffff;
}

.stats-header p {
    color: var(--color-accent-light);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 8px auto 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(194, 153, 99, 0.45);
    border-radius: var(--radius-lg);
    padding: 30px 18px 26px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-accent);
}

.stat-number {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.stat-label {
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.7;
    color: #ffffff;
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-section {
        padding: 50px 0 55px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================================
   5) Contact Section (.contact-section)
============================================================ */
.contact-section {
    padding: 75px 0 85px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--bg-border);
}

.contact-section .features-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 0 0 45px;
    flex-wrap: wrap;
}

.contact-section .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-section .feature-card {
    background: #ffffff;
    padding: 34px 22px 22px;
}

.contact-section .feature-card h3 {
    margin-bottom: 10px;
}

.contact-section .feature-card a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.contact-section .feature-card a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ============================================================
   Floating Contact Icons (fallback / refinement)
============================================================ */
.floating-icons {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.floating-icons a {
    width: 58px;
    height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-icons a:hover {
    transform: scale(1.08);
}

.floating-icons .phone-icon {
    background-color: var(--color-primary);
}

.floating-icons .whatsapp-icon {
    background-color: var(--color-whatsapp);
}

.floating-icons i {
    font-size: 1.5rem;
}

.floating-icons span {
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 2px;
}

/* ============================================================
   Animations & Transitions
============================================================ */
.fade-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ============================================================
   Responsive Media Queries
============================================================ */
@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-content {
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero-text .subheading {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-points {
        align-items: center;
    }
    .hero-points li {
        justify-content: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
    .faq-layout {
        grid-template-columns: 1fr;
    }
    .faq-sidebar {
        position: static;
        top: auto;
    }
    .contact-section .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-section {
        padding: 50px 0;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .action-btn {
        width: 100%;
    }
    .floating-icons {
        bottom: 15px;
        left: 15px;
    }
    .floating-icons a {
        width: 50px;
        height: 50px;
    }
    .floating-icons i {
        font-size: 1.3rem;
    }
}

/* 1) خلي الحاوية عمودية: العنوان فوق والكروت تحته */
.features-section > .container,
.faq-section > .container,
.why-us-section > .container,
.contact-section > .container {
    display: block !important;
    float: none;
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
}

/* الهيرو يفضل جريد (صورة جنب النص) */
.hero-section > .container.hero-content {
    display: grid !important;
}

/* 2) كل جزء يخدم عرض الحاوية بالكامل */
.features-header,
.faq-top-header,
.why-us-header,
.features-grid,
.faq-layout,
.process-wrapper,
.process-grid,
.contact-actions {
    width: 100%;
}

.features-title-box,
.features-title-box p,
.faq-top-title,
.faq-top-desc {
    max-width: 100%;
}

/* 3) متغيرات كانت مستخدمة inline في الـ HTML ومش معرّفة */
:root {
    --spacing-sm: 10px;
    --font-size-base: 1.05rem;
}

/* 4) إجابات الأسئلة الطويلة ماتتقطعش */
.faq-item.active .faq-answer {
    max-height: 500px;
}

/* 5) على الموبايل: مسافات مريحة للعناوين */
@media (max-width: 600px) {
    .features-section,
    .faq-section,
    .why-us-section,
    .contact-section {
        padding: 50px 0 60px;
    }
    .features-header,
    .faq-top-header {
        text-align: center;
    }
}