:root {
    --primary: #0f1e3d;
    --primary-dark: #0a1530;
    --accent: #c9a227;
    --accent-hover: #b08c1e;
    --text-dark: #1a1a1a;
    --text-muted-light: #b8c0cc;
    --bg-light: #f7f8fa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
    width: 100%;
}

.text-accent { color: var(--accent) !important; }
.bg-primary-dark { background: var(--primary-dark); }
.text-muted-light { color: var(--text-muted-light); }

.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
    letter-spacing: .3px;
    transition: all .25s;
}
.btn-accent:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }

.btn-outline-light-accent {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    font-weight: 600;
}
.btn-outline-light-accent:hover { background: #fff; color: var(--primary); }

/* NAV */
.site-nav {
    background: transparent;
    transition: background .35s, padding .35s, box-shadow .35s;
    padding: 18px 0;
}
.site-nav.scrolled {
    background: rgba(15, 30, 61, .96);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.site-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin: 0 6px;
    position: relative;
}
.site-nav .nav-link::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px;
    height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s;
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    color: #fff;
    width: 100%;
}
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
}
.hero-slide.active { opacity: 1; transform: scale(1); transition: opacity 1.5s ease-in-out, transform 8s linear; }
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,30,61,.85) 0%, rgba(15,30,61,.55) 60%, rgba(0,0,0,.35) 100%);
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 2;
    height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    max-width: 800px;
}
.hero-tag { letter-spacing: 4px; font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; line-height: 1.05; margin-bottom: 20px; word-wrap: break-word; overflow-wrap: break-word; }
.hero p.lead { font-size: 1.15rem; color: #d8dde6; max-width: 600px; }
.hero-dots {
    position: absolute; bottom: 30px; right: 30px; z-index: 3;
    display: flex; gap: 10px;
}
.hero-dots span {
    width: 36px; height: 3px; background: rgba(255,255,255,.35);
    cursor: pointer; transition: background .3s;
}
.hero-dots span.active { background: var(--accent); }

/* SECTION */
section { padding: 90px 0; }
.section-tag { color: var(--accent); font-weight: 600; letter-spacing: 3px; font-size: 13px; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; margin: 8px 0 16px; }
.section-divider { width: 60px; height: 3px; background: var(--accent); margin-bottom: 30px; }

/* STAT */
.stat-card {
    text-align: center; padding: 30px 20px;
    border-left: 3px solid var(--accent);
}
.stat-num { font-size: 3rem; font-weight: 800; color: var(--primary); }
.stat-label { color: #666; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; }

/* SERVICE CARD */
.service-card {
    background: #fff; padding: 40px 30px;
    border-radius: 4px; height: 100%;
    border: 1px solid #ececec;
    transition: all .35s;
    position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 100%; height: 3px; background: var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.08); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    font-size: 2.4rem; color: var(--accent);
    margin-bottom: 18px;
}

/* PROPERTY CARD */
.property-card {
    background: #fff; border-radius: 6px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: all .35s; height: 100%;
}
.property-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.property-img {
    height: 240px; background: #ddd; background-size: cover; background-position: center;
    position: relative;
}
.property-badge {
    position: absolute; top: 15px; left: 15px;
    background: var(--accent); color: #fff;
    padding: 5px 14px; font-size: 12px; font-weight: 600; border-radius: 3px; letter-spacing: 1px;
}
.property-body { padding: 22px; }
.property-price { color: var(--primary); font-size: 1.4rem; font-weight: 700; }
.property-title { font-weight: 600; font-size: 1.1rem; margin: 8px 0; }
.property-meta { color: #777; font-size: 14px; }
.property-meta i { color: var(--accent); margin-right: 5px; }
.property-foot { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid #eee; margin-top: 14px; font-size: 13px; color: #555; }

/* PROJECT CARD */
.project-card {
    position: relative; overflow: hidden; border-radius: 4px;
    height: 320px; background: #ccc;
    background-size: cover; background-position: center;
}
.project-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,30,61,.95) 0%, transparent 60%);
}
.project-card .project-info {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
    padding: 25px; color: #fff;
    transform: translateY(20px); transition: transform .35s;
}
.project-card:hover .project-info { transform: translateY(0); }
.project-card .project-cat { color: var(--accent); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.project-card .project-title { font-size: 1.25rem; font-weight: 600; margin-top: 5px; }

/* WHY CHOOSE US */
.why-card { text-align: center; padding: 30px 20px; }
.why-icon {
    width: 80px; height: 80px; margin: 0 auto 20px;
    background: var(--bg-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 2rem;
    transition: all .35s;
}
.why-card:hover .why-icon { background: var(--accent); color: #fff; transform: rotate(360deg); }

/* TESTIMONIAL */
.testimonial-card {
    background: #fff; padding: 35px; border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06); height: 100%;
    border-top: 3px solid var(--accent);
}
.testimonial-card .quote-icon { font-size: 2rem; color: var(--accent); margin-bottom: 15px; }
.testimonial-card p { color: #555; font-style: italic; }
.testimonial-author { display: flex; align-items: center; margin-top: 20px; }
.testimonial-author img, .testimonial-author .avatar {
    width: 50px; height: 50px; border-radius: 50%; object-fit: cover; margin-right: 14px;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 600;
}

/* CONTACT */
.contact-section { background: var(--bg-light); }
.contact-info-card {
    background: var(--primary); color: #fff;
    padding: 40px; border-radius: 6px; height: 100%;
}
.contact-info-card h4 { margin-bottom: 25px; }
.contact-info-item { display: flex; gap: 15px; margin-bottom: 22px; }
.contact-info-item i { color: var(--accent); font-size: 1.3rem; margin-top: 4px; }
.contact-form-card {
    background: #fff; padding: 40px; border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.form-control, .form-select {
    border: 1px solid #e0e0e0; padding: 12px 16px; border-radius: 4px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent); box-shadow: 0 0 0 .15rem rgba(201,162,39,.15);
}

/* CTA STRIP */
.cta-strip {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; padding: 70px 0;
}

/* FOOTER */
.site-footer { background: var(--primary-dark); color: #b8c0cc; }
.footer-title { color: #fff; font-weight: 600; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b8c0cc; text-decoration: none; transition: color .25s; }
.footer-links a:hover { color: var(--accent); }
.social-icons a {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; margin-right: 8px; transition: background .25s;
}
.social-icons a:hover { background: var(--accent); }

/* ADMIN */
.admin-shell { display: flex; min-height: 100vh; background: #f5f6fa; }
.admin-sidebar {
    width: 240px; background: var(--primary-dark); color: #fff;
    padding: 22px 0;
}
.admin-sidebar h5 { padding: 0 22px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-sidebar a {
    display: block; padding: 12px 22px; color: #b8c0cc; text-decoration: none;
    transition: all .2s;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(201,162,39,.15); color: var(--accent); border-left: 3px solid var(--accent); }
.admin-main { flex: 1; padding: 30px; min-width: 0; }
.admin-card { background: #fff; border-radius: 6px; padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,.04); overflow-x: auto; }
.stat-tile {
    background: #fff; padding: 22px; border-radius: 6px; border-left: 4px solid var(--accent);
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.stat-tile .num { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-tile .lbl { color: #888; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* LOGIN */
.login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px;
}
.login-card {
    background: #fff; padding: 45px; border-radius: 8px; max-width: 420px; width: 100%;
    box-shadow: 0 25px 60px rgba(0,0,0,.3);
}

/* Carousel arrows */
.carousel-control-prev, .carousel-control-next {
    width: 60px;
    opacity: 1;
    align-items: center;
    justify-content: center;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--accent);
    border-radius: 50%;
    width: 50px; height: 50px;
    background-size: 22px;
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
    transition: all .25s;
}
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--accent-hover);
    transform: scale(1.1);
}

/* RESPONSIVE — Tablet & below */
@media (max-width: 991px) {
    .site-nav { background: var(--primary-dark); padding: 12px 0; }
    .hero { min-height: 520px; }
    section { padding: 60px 0; }
    .container, .container-fluid { padding-left: 16px; padding-right: 16px; max-width: 100%; }
    .hero-content { padding: 0; max-width: 100%; }
    .hero-content > * { max-width: 100%; word-wrap: break-word; overflow-wrap: break-word; }
    .hero h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); line-height: 1.15; }
    .hero p.lead { font-size: 1rem; }
    .admin-shell { flex-direction: column; }
    .admin-sidebar { width: 100%; padding: 12px 0; }
    .admin-sidebar a { padding: 10px 16px; }
    .admin-main { padding: 16px; }
    .stat-tile { padding: 16px; }
    .stat-tile .num { font-size: 1.5rem; }
    .contact-info-card, .contact-form-card { padding: 24px; }
    .hero-dots { right: 16px; bottom: 20px; }
}

/* Mobile */
@media (max-width: 575px) {
    section { padding: 50px 0; }
    .hero { min-height: 480px; }
    .hero h1 { font-size: 1.9rem; }
    .hero p.lead { font-size: .95rem; }
    .property-img { height: 200px; }
    .project-card { height: 240px; }
    .row { margin-left: -8px; margin-right: -8px; }
    .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; }
    .testimonial-card { padding: 24px; }
    .login-card { padding: 30px 24px; }
    .section-title { font-size: 1.6rem; }
}

/* Force hero container to stay inside viewport */
.hero .container.hero-content {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: 0;
    margin-right: 0;
}
@media (min-width: 992px) {
    .hero .container.hero-content {
        max-width: 1140px;
        margin: 0 auto;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Force everything to fit viewport */
html, body { max-width: 100vw; overflow-x: hidden; }
img, iframe, video { max-width: 100%; height: auto; }
.contact-section iframe { width: 100% !important; max-width: 100%; }

/* Footer fix */
.site-footer .container { max-width: 100%; }