/* =========================================
   KONX LUXURY CONSTRUCTION - CSS
   ========================================= */

/* --- CSS Variables --- */
:root {
    --color-bg: #070707;
    /* Inky black */
    --color-surface: #111111;
    /* Off black */
    --color-surface-light: #1A1A1A;
    --color-accent: #CBA258;
    /* Premium Gold/Bronze */
    --color-accent-hover: #E3BA6F;
    --color-text: #F5F5F5;
    --color-text-dim: #A0A0A0;

    --font-main: 'Outfit', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --container-max: 1280px;
    --section-pad: 100px;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

strong {
    font-weight: 600;
    color: #fff;
}

p {
    color: var(--color-text-dim);
    margin-bottom: 1rem;
}

/* Common Components */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: var(--section-pad) 0;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.bg-darker {
    background-color: #040404;
}

.subtitle {
    display: inline-block;
    color: var(--color-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo .dot {
    color: var(--color-accent);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background-color: var(--color-accent);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border-bottom: 1px solid var(--color-accent);
    padding: 8px 0;
    border-radius: 0;
}

.btn-outline:hover {
    color: var(--color-accent);
}

.btn.full-width {
    width: 100%;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
    background-color: rgba(7, 7, 7, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ddd;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0a0a0a;
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a.btn {
    margin-top: 1rem;
    display: inline-flex;
    width: max-content;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* offset header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05);
    /* For potential subtle pan animation */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    /* responsive improvement */
}

.trust-elements {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-num {
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-accent);
    line-height: 1;
}

.trust-num i {
    font-size: 2.2rem;
}

.trust-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
    color: #999;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
}

.image-wrapper {
    position: relative;
    width: 100%;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.experience-badge .year {
    font-size: 0.9rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.experience-badge .date {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background-color: var(--color-surface);
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    background-color: var(--color-surface-light);
    transform: translateY(-5px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- Projects Section --- */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    background-color: var(--color-surface);
}

.project-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.view-project {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .view-project {
    transform: scale(1);
}

.project-info {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info .location {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Why Us & Process Section --- */
.row-reverse-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-top: 2px;
}

.feature-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.process-box {
    background-color: var(--color-surface);
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.process-box h3 {
    margin-bottom: 3rem;
    font-size: 2rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.step {
    display: flex;
    gap: 2rem;
    position: relative;
}

.step-num {
    width: 40px;
    height: 40px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1;
    flex-shrink: 0;
}

.step-info h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* --- Local SEO & Testimonials --- */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
}

.cities-list {
    list-style: none;
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cities-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    color: #fff;
}

.cities-list i {
    color: var(--color-accent);
}

.testimonial-slider {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--color-surface);
    padding: 2.5rem;
    border-left: 3px solid var(--color-accent);
}

.stars {
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: flex;
    gap: 2px;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #fff;
    margin-bottom: 1.5rem;
}

.author {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-dim);
}

/* --- Contact Section --- */
.big-phone-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    color: var(--color-accent);
    padding: 2rem 4rem;
    background-color: var(--color-surface);
    border: 1px solid rgba(203, 162, 88, 0.2);
    border-radius: 4px;
    transition: var(--transition);
}

.big-phone-number i {
    font-size: clamp(3rem, 6vw, 6rem);
}

.big-phone-number:hover {
    background-color: rgba(203, 162, 88, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: var(--color-accent-hover);
    border-color: var(--color-accent);
}

/* --- Footer --- */
.site-footer {
    background-color: #030303;
    padding-top: 6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.brand-col p {
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--color-accent);
    color: #000;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    color: var(--color-text-dim);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #666;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a:hover {
    color: #fff;
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translate(0) !important;
}

.scroll-reveal.left {
    transform: translateX(-50px);
}

.scroll-reveal.right {
    transform: translateX(50px);
}

.scroll-reveal.up {
    transform: translateY(50px);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .row-reverse-grid,
    .about-grid {
        gap: 3rem;
    }

    /* Let the clamp handle h1 font size naturally */
}

@media (max-width: 850px) {
    :root {
        --section-pad: 70px;
    }

    .header-inner .nav-links,
    .header-inner .nav-cta .btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .trust-elements {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        border: none;
        padding-top: 1rem;
    }

    .trust-divider {
        display: none;
    }

    .about-grid,
    .row-reverse-grid,
    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .experience-badge {
        bottom: 10px;
        left: 10px;
        padding: 1.5rem;
        z-index: 5;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    :root {
        --section-pad: 50px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }



    .cities-list {
        grid-template-columns: 1fr;
    }

    .scroll-reveal.left {
        transform: translateX(-20px);
    }

    .scroll-reveal.right {
        transform: translateX(20px);
    }
}