/* --- Global Styles & Variables --- */
:root {
    --gold: #D4AF37; 
    --gold-dark: #b5952f;
    --black: #080808; 
    --dark-grey: #121212;
    --light-grey: #e0e0e0;
}

/* Scroll Smoothing Settings */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background-color: var(--black); color: var(--light-grey); overflow-x: hidden; }
.container { width: 85%; margin: auto; max-width: 1400px; }
.section-padding { 
    padding: 100px 0; 
    border-top: 3px solid var(--gold);
}
.gold { color: var(--gold); }
.center { text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

/* --- Header --- */
header { padding: 20px 0; background: rgba(8, 8, 8, 0.85); backdrop-filter: blur(10px); position: fixed; width: 100%; z-index: 1000; border-bottom: 1px solid rgba(212, 175, 55, 0.15); transition: all 0.4s ease-in-out; }
header.scrolled { background: rgba(5, 5, 5, 0.98); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8); padding: 10px 0; }

nav { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 25px; }
.nav-links a { color: white; text-decoration: none; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; padding-bottom: 5px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); border-bottom: 2px solid var(--gold); }

.btn-gold-small { background: var(--gold); color: var(--black) !important; padding: 10px 24px; font-weight: 700; border-radius: 2px; border: none !important; }
.btn-gold-small:hover { background: var(--gold-dark); }
.lang-switch { border-left: 1px solid #444; padding-left: 15px; color: var(--gold) !important; border-bottom: none !important; }

/* --- Hero Section with Image Background --- */
.hero { height: 100vh; position: relative; overflow: hidden; }
.hero-slider,
.hero-slide {
    position: absolute;
    inset: 0;
}
.hero-slide {
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.12); }
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 100%); z-index: -1; }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.sub-title { letter-spacing: 5px; color: var(--gold); text-transform: uppercase; margin-bottom: 15px; font-weight: 600; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; color: white; }
.hero p { font-size: 1.2rem; color: #cfcfcf; margin-bottom: 40px; line-height: 1.8; }
.hero-dots {
    position: absolute;
    right: 7.5%;
    bottom: 38px;
    z-index: 5;
    display: flex;
    gap: 10px;
}
.hero-dots button {
    width: 34px;
    height: 4px;
    border: 0;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: 0.3s;
}
.hero-dots button.active,
.hero-dots button:hover {
    background: var(--gold);
}
.btn-gold { background: var(--gold); color: var(--black); padding: 16px 40px; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-right: 15px; display: inline-block; transition: 0.3s; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { border: 1px solid var(--gold); color: var(--gold); padding: 16px 40px; text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; display: inline-block; transition: 0.3s; }
.btn-outline:hover { background: var(--gold); color: var(--black); }

/* --- Stats Bar --- */
.stats { background: var(--dark-grey); border-top: 1px solid #222; border-bottom: 1px solid #222; padding: 60px 0; text-align: center; }
.stat-item h2 { font-size: 3.5rem; font-family: 'Playfair Display', serif; color: var(--gold); margin-bottom: 5px; }
.stat-item p { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: #888; }

/* --- About Section --- */
.about { display: flex; align-items: center; gap: 60px; }
.about-text { flex: 1; }
.about-img { flex: 1; position: relative; }
.about-img img { width: 100%; max-height: 480px; object-fit: cover; object-position: center; border: 1px solid #333; filter: grayscale(20%); transition: 0.5s; }
.about-img img:hover { filter: grayscale(0%); }
.section-title { font-family: 'Playfair Display', serif; font-size: 3rem; margin-bottom: 25px; color: white; }
.check-list { list-style: none; margin-top: 30px; }
.check-list li { margin-bottom: 15px; font-size: 1.1rem; }
.about-text p { line-height: 1.8; color: #aaa; }

/* --- Expertise Section --- */
.services { background: #0c0c0c; }
.service-card { background: var(--black); border: 1px solid #222; overflow: hidden; transition: 0.4s; }
.service-card img { width: 100%; height: 250px; object-fit: cover; border-bottom: 3px solid var(--gold); transition: 0.5s; }
.service-card:hover img { transform: scale(1.05); }
.service-content { padding: 30px; }
.service-content h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 15px; color: white; }
.service-content p { color: #888; line-height: 1.6; }

/* ===== INSTALLMENT SECTION ===== */
.installment {
    background: linear-gradient(160deg, #0a0a0a 0%, #111008 60%, #0d0c04 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}
.installment::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.installment-header { margin-bottom: 60px; }
.install-lead {
    text-align: center;
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 20px auto 0;
}

/* Plan Cards */
.install-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 70px;
    align-items: start;
}

.plan-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid #252525;
    padding: 40px 35px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    border-radius: 2px;
}
.plan-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.04);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.plan-card.featured {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.06);
    transform: scale(1.04);
}
.plan-card.featured:hover {
    transform: scale(1.04) translateY(-8px);
}
.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--black);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}
.plan-icon { font-size: 2.5rem; margin-bottom: 15px; }
.plan-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: white;
    margin-bottom: 15px;
}
.plan-price {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 30px;
}
.plan-price .gold { font-size: 1.5rem; font-weight: 700; }
.plan-features {
    list-style: none;
    margin-bottom: 35px;
    text-align: left;
}
.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid #1e1e1e;
    color: #ccc;
    font-size: 0.95rem;
}
.plan-features li:last-child { border-bottom: none; }

/* Install Bottom Features */
.install-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 20px;
    padding-top: 50px;
    border-top: 1px solid #1a1a1a;
}
.install-feat-item {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #1e1e1e;
    background: rgba(255,255,255,0.02);
    transition: 0.3s;
}
.install-feat-item:hover { border-color: rgba(212,175,55,0.3); }
.feat-icon { font-size: 2rem; display: block; margin-bottom: 15px; }
.install-feat-item h4 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.install-feat-item p { color: #777; font-size: 0.9rem; line-height: 1.6; }

.lead-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}
.lead-modal.open { display: block; }
.lead-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
}
.lead-modal-panel {
    position: relative;
    width: min(620px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: 24px auto;
    background: #0e0e0e;
    border: 1px solid rgba(212,175,55,0.35);
    padding: 34px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.65);
}
.lead-modal-panel h3 { color: white; font-size: 1.7rem; margin-bottom: 12px; }
.lead-modal-panel p { color: #aaa; line-height: 1.8; margin-bottom: 22px; }
.lead-modal-close {
    position: absolute;
    top: 12px;
    left: 14px;
    border: 0;
    background: transparent;
    color: var(--gold);
    font-size: 32px;
    cursor: pointer;
}
.lead-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.lead-form label {
    display: grid;
    gap: 7px;
    color: #ddd;
    font-weight: 700;
}
.lead-form input,
.lead-form textarea {
    width: 100%;
    border: 1px solid #272727;
    background: #070707;
    color: white;
    padding: 12px 14px;
    outline: none;
}
.lead-form input:focus,
.lead-form textarea:focus { border-color: var(--gold); }
.lead-form-full { grid-column: 1 / -1; }
.lead-success {
    background: rgba(60,179,113,0.12);
    border: 1px solid rgba(60,179,113,0.3);
    color: #b6f3cf;
    line-height: 1.8;
    padding: 18px;
}
.lead-error {
    background: rgba(255,107,107,0.12);
    border: 1px solid rgba(255,107,107,0.26);
    color: #ffb4b4;
    padding: 12px;
    margin-bottom: 16px;
}

/* --- Projects Section --- */
.projects { background: var(--black); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.project-item { position: relative; overflow: hidden; height: 450px; cursor: pointer; }
.project-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.7s ease; filter: brightness(70%); }
.p-info { position: absolute; bottom: 30px; left: 30px; z-index: 2; transition: 0.4s; }
.p-info h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: white; margin-bottom: 5px; }
.p-info p { color: var(--gold); text-transform: uppercase; font-size: 12px; letter-spacing: 2px; }
.project-item:hover img { transform: scale(1.1); filter: brightness(100%); }
.section-more { display: flex; justify-content: center; margin-top: 35px; }

/* ===== TEAM SECTION ===== */
.team-section {
    background: #0c0c0c;
    border-top: 1px solid #1a1a1a;
}
.team-lead {
    text-align: center;
    color: #888;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 600px;
    margin: -10px auto 50px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.team-card {
    background: var(--black);
    border: 1px solid #222;
    overflow: hidden;
    transition: all 0.4s ease;
}
.team-card:hover {
    border-color: rgba(212,175,55,0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.team-img-wrap {
    position: relative;
    overflow: hidden;
    height: 300px;
}
.team-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: grayscale(30%);
    transition: all 0.5s ease;
}
.team-card:hover .team-img-wrap img {
    filter: grayscale(0%);
    transform: scale(1.05);
}
.team-social {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(212,175,55,0.85));
    padding: 30px 20px 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}
.team-card:hover .team-social { opacity: 1; transform: translateY(0); }
.team-social a {
    color: var(--black);
    background: white;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}
.team-social a:hover { background: var(--gold); }
.team-info { padding: 25px 25px 30px; }
.team-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 6px;
}
.team-role {
    display: block;
    color: var(--gold);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 600;
}
.team-info p { color: #777; font-size: 0.9rem; line-height: 1.7; }

/* --- News Section --- */
.news { background: var(--dark-grey); }
.news-card { background: var(--black); border: 1px solid #222; transition: 0.3s; }
.news-card img { width: 100%; height: 220px; object-fit: cover; }
.news-content { padding: 30px; }
.news-content .date { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 10px; }
.news-content h3 { font-size: 1.2rem; margin-bottom: 20px; color: white; line-height: 1.5; }
.news-content p { color: #9a9a9a; line-height: 1.7; margin-bottom: 18px; font-size: 0.92rem; }
.read-more { color: white; text-decoration: none; font-size: 14px; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; transition: 0.3s; }
.read-more:hover { color: var(--gold); }
.news-card:hover { border-color: var(--gold); transform: translateY(-10px); }
.empty-front-state {
    grid-column: 1 / -1;
    padding: 40px;
    text-align: center;
    border: 1px solid #222;
    background: var(--black);
    color: white;
}
.empty-front-state p {
    color: #aaa;
    margin: 8px 0 0;
}
.news-detail {
    background: var(--dark-grey);
}
.news-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
    align-items: start;
}
.news-article {
    min-width: 0;
}
.news-article-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
    border: 1px solid #222;
    margin-bottom: 28px;
}
.news-article-body {
    color: #d8d8d8;
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 28px;
}
.related-news {
    background: var(--black);
    border: 1px solid #222;
    padding: 24px;
    position: sticky;
    top: 100px;
}
.related-news h3 {
    color: white;
    margin: 0 0 20px;
    font-family: 'Playfair Display', serif;
}
.related-news-item {
    display: grid;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #222;
}
.related-news-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}
.related-news-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.related-news-item span {
    color: var(--gold);
    font-size: 12px;
}
.related-news-item strong {
    line-height: 1.5;
    transition: 0.3s;
}
.related-news-item:hover strong {
    color: var(--gold);
}
.legal-page {
    background: var(--dark-grey);
}
.legal-content {
    background: var(--black);
    border: 1px solid #222;
    padding: 40px;
    color: #d6d6d6;
    line-height: 2;
    max-width: 900px;
    margin: 0 auto;
}
.legal-content p {
    margin: 0 0 18px;
}

/* --- Footer --- */
.premium-footer {
    position: relative;
    background:
        linear-gradient(to bottom, rgba(15, 15, 15, 0.92), rgba(0, 0, 0, 0.98)),
        url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    border-top: 3px solid var(--gold);
    padding-top: 70px;
    color: #aaa;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-brand .footer-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}
.brand-desc {
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
    max-width: 350px;
}
.footer-socials {
    display: flex;
    gap: 15px;
}
.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #111;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
    border: 1px solid #222;
}
.footer-socials a:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
}
.footer-links-group {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}
.footer-widget h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Playfair Display', serif;
}
.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-widget ul li {
    margin-bottom: 12px;
}
.footer-widget ul li a,
.fb-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}
.footer-widget ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}
.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.newsletter-form {
    display: flex;
    margin-bottom: 25px;
}
.newsletter-form input {
    flex: 1;
    min-width: 0;
    background: #111;
    border: 1px solid #222;
    border-right: none;
    padding: 12px 15px;
    color: white;
}
.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold);
}
.newsletter-form button {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.newsletter-form button:hover {
    background: white;
}
.footer-contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #ddd;
}
.footer-bottom {
    background: #020202;
    padding: 20px 0;
    border-top: 1px solid #1a1a1a;
}
.fb-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.fb-inner p {
    margin: 0;
    font-size: 0.9rem;
}
.fb-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.fb-links a:hover {
    color: var(--gold);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1100px) {
    .plan-card.featured { transform: scale(1.02); }
    .plan-card.featured:hover { transform: scale(1.02) translateY(-8px); }
}
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .about { flex-direction: column; }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .news-detail-layout { grid-template-columns: 1fr; }
    .related-news { position: static; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.8rem; }
    .grid-footer, .project-grid { grid-template-columns: 1fr; }
    .plan-card.featured { transform: scale(1); }
    .plan-card.featured:hover { transform: translateY(-8px); }
    .section-title { font-size: 2.2rem; }
    .lead-form { grid-template-columns: 1fr; }
    .lead-modal-panel { padding: 26px 20px; }
}

/* --- Pagination --- */
.pagination-wrap {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #222;
}

.custom-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pagination-info {
    color: #888;
    font-size: 14px;
}

.pagination-info span {
    color: var(--gold);
    font-weight: 700;
}

.pagination-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #111;
    border: 1px solid #222;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.page-item.active .page-link {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.page-item:not(.active):not(.disabled) .page-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: #000;
}

.page-item.disabled .page-link {
    opacity: 0.3;
    cursor: not-allowed;
    background: #0a0a0a;
}

@media (max-width: 768px) {
    .custom-pagination {
        flex-direction: column;
        text-align: center;
    }
}
