/* K Stone Building Services - Stylesheet */

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

:root {
    --slate-dark: #2C3E50;
    --slate-medium: #34495E;
    --slate-light: #5D6D7E;
    --green-primary: #27AE60;
    --green-dark: #1E8449;
    --green-light: #2ECC71;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --grey-light: #ECF0F1;
    --grey-medium: #BDC3C7;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--off-white);
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate-medium) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23ffffff" fill-opacity="0.03" width="50" height="50"/><rect fill="%23ffffff" fill-opacity="0.03" x="50" y="50" width="50" height="50"/></svg>');
    background-size: 30px 30px;
}

.header .container {
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.header .tagline {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Navigation */
.nav {
    background-color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.nav a {
    color: var(--slate-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 20px 25px;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav a:hover,
.nav a.active {
    color: var(--green-primary);
    border-bottom-color: var(--green-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 15px;
    color: var(--slate-dark);
}

/* Sections */
.section {
    padding: 80px 20px;
}

.section h2 {
    font-size: 2.2rem;
    color: var(--slate-dark);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* Hero Carousel */
.hero-carousel {
    background-color: var(--slate-dark);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--slate-medium) 0%, var(--slate-dark) 100%);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide .slide-content {
    text-align: center;
    color: var(--white);
    padding: 40px;
    max-width: 800px;
}

.carousel-slide h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.carousel-slide p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--green-primary);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
    background-color: var(--green-primary);
    transform: scale(1.2);
}

/* About */
.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background-color: var(--off-white);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green-primary);
    display: block;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Good Trader Scheme */
.good-trader {
    background-color: var(--off-white);
}

.trader-badge {
    background-color: var(--white);
    border-radius: 16px;
    padding: 50px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--grey-light);
}

.trader-logo {
    width: 180px;
    height: auto;
    margin-bottom: 25px;
}

.trader-badge h3 {
    color: var(--slate-dark);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.rating {
    margin-bottom: 15px;
}

.stars {
    color: #F1C40F;
    font-size: 2.2rem;
    letter-spacing: 8px;
}

.rating-text {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--slate-dark);
    margin-top: 10px;
}

.reviews {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 8px;
}

.member-since {
    color: var(--green-primary);
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.btn {
    display: inline-block;
    background-color: var(--green-primary);
    color: var(--white);
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--green-primary);
    color: var(--green-primary);
}

.btn-outline:hover {
    background-color: var(--green-primary);
    color: var(--white);
}

/* Services */
.services {
    background-color: var(--white);
}

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

.service-card {
    background-color: var(--off-white);
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--green-primary);
    transition: height 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--green-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--white);
}

.service-card h3 {
    color: var(--slate-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* Gallery */
.gallery {
    background-color: var(--off-white);
}

.gallery-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-slides {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--grey-light) 0%, var(--grey-medium) 100%);
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder-content {
    text-align: center;
    color: var(--slate-light);
}

.gallery-placeholder-content span {
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white);
    color: var(--slate-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
    background-color: var(--green-primary);
    color: var(--white);
}

.gallery-nav.prev {
    left: -25px;
}

.gallery-nav.next {
    right: -25px;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.gallery-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--grey-medium);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator.active,
.gallery-indicator:hover {
    background-color: var(--green-primary);
}

/* Contact */
.contact {
    background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate-medium) 100%);
    color: var(--white);
}

.contact h2 {
    color: var(--white);
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 40px 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--green-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.contact-item h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--green-light);
}

.contact-item p {
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: #1a252f;
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 20px;
    text-align: center;
}

.footer p {
    margin-bottom: 8px;
}

.footer-location {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .carousel-container {
        height: 400px;
    }

    .carousel-slide h2 {
        font-size: 2rem;
    }

    .gallery-slides {
        height: 350px;
    }

    .gallery-nav.prev {
        left: 10px;
    }

    .gallery-nav.next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 50px 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header .tagline {
        font-size: 1rem;
    }

    .nav .container {
        flex-direction: column;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 10px;
    }

    .nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav ul.show {
        display: flex;
    }

    .nav a {
        padding: 15px;
        border-bottom: 1px solid var(--grey-light);
    }

    .section {
        padding: 50px 15px;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .carousel-container {
        height: 350px;
    }

    .carousel-slide h2 {
        font-size: 1.6rem;
    }

    .carousel-slide p {
        font-size: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .trader-badge {
        padding: 30px 20px;
    }

    .trader-logo {
        width: 140px;
    }

    .stars {
        font-size: 1.8rem;
        letter-spacing: 5px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .stat-item {
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .gallery-slides {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.6rem;
    }

    .carousel-container {
        height: 300px;
    }

    .carousel-slide .slide-content {
        padding: 20px;
    }

    .carousel-slide h2 {
        font-size: 1.4rem;
    }

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

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

    .about-stats {
        grid-template-columns: 1fr;
    }

    .gallery-slides {
        height: 220px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }
}
