/*
Theme Name: ConstructPro
Theme URI: https://example.com/constructpro
Author: Custom Build
Author URI: https://example.com
Description: A professional, corporate WordPress theme built for construction companies and real estate developers. Fully compatible with Elementor page builder for easy drag-and-drop editing.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: constructpro
*/

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* { box-sizing: border-box; }

:root {
    --cp-navy: #0b3d5c;
    --cp-navy-dark: #082a40;
    --cp-orange: #f39c12;
    --cp-orange-dark: #d68910;
    --cp-gray-900: #1c1f24;
    --cp-gray-700: #4a5560;
    --cp-gray-400: #8b95a1;
    --cp-gray-100: #f4f6f8;
    --cp-white: #ffffff;
    --cp-font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
    --cp-font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
    --cp-radius: 6px;
    --cp-shadow: 0 4px 20px rgba(11, 61, 92, 0.08);
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--cp-font-body);
    color: var(--cp-gray-900);
    background: var(--cp-white);
    line-height: 1.65;
    font-size: 16px;
}

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

a { color: var(--cp-navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cp-orange); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cp-font-heading);
    color: var(--cp-navy);
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 .6em;
}

.cp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cp-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--cp-orange);
    color: var(--cp-white) !important;
    border-radius: var(--cp-radius);
    font-weight: 600;
    letter-spacing: .3px;
    border: none;
    cursor: pointer;
}
.cp-btn:hover { background: var(--cp-orange-dark); }
.cp-btn--outline {
    background: transparent;
    border: 2px solid var(--cp-white);
    color: var(--cp-white) !important;
}
.cp-btn--outline:hover { background: var(--cp-white); color: var(--cp-navy) !important; }

/* ==========================================================================
   Header
   ========================================================================== */
.cp-header {
    background: var(--cp-white);
    box-shadow: var(--cp-shadow);
    position: sticky;
    top: 0;
    z-index: 999;
}
.cp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}
.cp-logo { font-family: var(--cp-font-heading); font-size: 24px; font-weight: 700; color: var(--cp-navy); }
.cp-logo img { max-height: 50px; }

.cp-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.cp-nav a {
    color: var(--cp-gray-900);
    font-weight: 500;
    font-size: 15px;
}
.cp-nav a:hover { color: var(--cp-orange); }

.cp-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--cp-navy);
    cursor: pointer;
}

@media (max-width: 860px) {
    .cp-nav-toggle { display: block; }
    .cp-nav { display: none; width: 100%; }
    .cp-nav.is-open { display: block; }
    .cp-nav ul { flex-direction: column; gap: 0; }
    .cp-nav ul li { border-top: 1px solid var(--cp-gray-100); }
    .cp-nav ul li a { display: block; padding: 12px 0; }
    .cp-header__inner { flex-wrap: wrap; }
}

/* ==========================================================================
   Page / Content defaults (fallback when not built with Elementor)
   ========================================================================== */
.cp-content-wrap { padding: 60px 0; }
.cp-entry-title { font-size: 32px; margin-bottom: 20px; }
.cp-card {
    background: var(--cp-white);
    border-radius: var(--cp-radius);
    box-shadow: var(--cp-shadow);
    overflow: hidden;
}
.cp-card__body { padding: 22px; }

.cp-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.cp-meta { color: var(--cp-gray-400); font-size: 13px; margin-bottom: 10px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.cp-footer {
    background: var(--cp-gray-900);
    color: var(--cp-gray-100);
    padding: 60px 0 0;
    margin-top: 60px;
}
.cp-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}
.cp-footer h4 { color: var(--cp-white); font-size: 17px; margin-bottom: 16px; }
.cp-footer a { color: var(--cp-gray-400); }
.cp-footer a:hover { color: var(--cp-orange); }
.cp-footer ul { list-style: none; padding: 0; margin: 0; }
.cp-footer ul li { margin-bottom: 10px; }
.cp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 22px 0;
    text-align: center;
    font-size: 13px;
    color: var(--cp-gray-400);
}

/* Elementor full-width helper */
.cp-elementor-canvas .cp-content-wrap { padding: 0; }

/* WordPress core alignments (keep compatible with block/Elementor content) */
.alignwide { max-width: 1140px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }
