/* ============================================
   KCL Interiors Ltd - Main Stylesheet
   Style Seed: SEED_01_Minimal_Premium
   Typography: TYPE_20_Bold_Swiss_System (Archivo)
   Geometry: GEOM_02_Sharp_System
   ============================================ */

/* === CSS RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #2a2a2a;
    background-color: #ffffff;
}

/* === TYPOGRAPHY SCALE (SCALE_02_Bold_Commercial) === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1B4D7F;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #1B4D7F;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #143c65;
}

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

/* === LAYOUT CONTAINERS === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === HEADER === */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 70px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #2a2a2a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #1B4D7F;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #2a2a2a;
    transition: all 0.3s ease;
}

/* === BUTTONS (BTN_01_Solid_Outline - Sharp Style) === */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #1B4D7F;
    color: #ffffff;
    border-color: #1B4D7F;
}

.btn-primary:hover {
    background-color: #143c65;
    border-color: #143c65;
    color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    color: #1B4D7F;
    border-color: #1B4D7F;
}

.btn-outline:hover {
    background-color: #1B4D7F;
    color: #ffffff;
}

.header-cta {
    padding: 0.75rem 1.5rem;
    background-color: #1B4D7F;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid #1B4D7F;
    transition: all 0.25s ease;
}

.header-cta:hover {
    background-color: #143c65;
    border-color: #143c65;
    color: #ffffff;
}

/* === HERO (HERO_01_Visual_Led with Slideshow) === */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: #2a2a2a;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slideshow-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    color: #1B4D7F;
    cursor: pointer;
    transition: all 0.25s ease;
}

.slideshow-control:hover {
    background: #ffffff;
}

.slideshow-control.prev {
    left: 2rem;
}

.slideshow-control.next {
    right: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    color: #ffffff;
}

.hero-trust {
    margin-bottom: 1.5rem;
}

.trust-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(27, 77, 127, 0.9);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
    color: #ffffff;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subhead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 400;
}

/* === SECTIONS (RHYTHM_01_Stacked with Generous Whitespace) === */
section {
    padding: 5rem 0;
}

section h2 {
    margin-bottom: 3rem;
}

.section-intro {
    font-size: 1.125rem;
    color: #5a5a5a;
    margin-bottom: 3rem;
    max-width: 700px;
}

.section-cta {
    margin-top: 3rem;
    text-align: center;
}

/* === SERVICES OVERVIEW === */
.services-overview {
    background-color: #fafafa;
}

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

/* Service Cards (CARD_STYLE: bordered) */
.service-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 2rem;
    transition: border-color 0.25s ease;
}

.service-card:hover {
    border-color: #1B4D7F;
}

.service-card h3 {
    color: #1B4D7F;
    margin-bottom: 1rem;
}

/* === GALLERY PREVIEW === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    transition: border-color 0.25s ease;
}

.gallery-item:hover {
    border-color: #1B4D7F;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* === CONTACT SECTION === */
.contact-section {
    background-color: #fafafa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.contact-item a,
.contact-item span {
    color: #5a5a5a;
}

/* === FORMS (FORM_STYLE: minimal) === */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.875rem;
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    border: 1px solid #d0d0d0;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1B4D7F;
}

textarea {
    resize: vertical;
}

/* === PAGE HEADER === */
.page-header {
    padding: 4rem 0;
    background-color: #fafafa;
    border-bottom: 1px solid #e5e5e5;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-intro {
    font-size: 1.25rem;
    color: #5a5a5a;
    max-width: 700px;
}

/* === SERVICES DETAIL PAGE === */
.services-detail {
    padding: 5rem 0;
}

.service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
    align-items: center;
}

.service-detail-item.reverse {
    direction: rtl;
}

.service-detail-item.reverse > * {
    direction: ltr;
}

.service-detail-content h2 {
    color: #1B4D7F;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
}

.service-features li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.service-features li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #1B4D7F;
    font-weight: 600;
}

.service-detail-image {
    border: 1px solid #e5e5e5;
}

.service-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-cta {
    background-color: #fafafa;
    padding: 4rem 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* === GALLERY PAGE === */
.gallery-full {
    padding: 5rem 0;
}

.project-group {
    margin-bottom: 5rem;
}

.project-group h2 {
    margin-bottom: 2rem;
    color: #1B4D7F;
}

.gallery-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-cta {
    background-color: #fafafa;
    padding: 4rem 0;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #1B4D7F;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: #ffffff;
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

/* === ABOUT PAGE === */
.about-content {
    padding: 5rem 0;
}

.about-intro {
    max-width: 900px;
    margin: 0 auto 5rem;
}

.about-intro h2 {
    margin-bottom: 2rem;
}

.about-values {
    margin-bottom: 5rem;
}

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

.value-card {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    padding: 2rem;
}

.value-card h3 {
    color: #1B4D7F;
    margin-bottom: 1rem;
}

.about-services-summary,
.about-area {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.about-cta {
    background-color: #fafafa;
    padding: 4rem 0;
}

/* === CONTACT PAGE === */
.contact-page {
    padding: 5rem 0;
}

.contact-info-main h2 {
    margin-bottom: 1.5rem;
}

.contact-details-list {
    margin-top: 2.5rem;
}

.contact-detail-item {
    margin-bottom: 2.5rem;
}

.contact-detail-item h3 {
    color: #1B4D7F;
    margin-bottom: 0.5rem;
}

.contact-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1B4D7F;
    display: block;
    margin-bottom: 0.25rem;
}

.detail-note {
    font-size: 0.95rem;
    color: #5a5a5a;
}

.contact-info-extra {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.contact-form-main h2 {
    margin-bottom: 2rem;
}

.contact-areas {
    background-color: #fafafa;
    padding: 4rem 0;
    text-align: center;
}

.contact-areas h2 {
    margin-bottom: 1.5rem;
}

.contact-areas p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* === FOOTER === */
.site-footer {
    background-color: #1B4D7F;
    color: #ffffff;
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    height: 70px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav h4,
.footer-contact h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: #ffffff;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .main-nav {
        display: none;
    }

    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e5e5e5;
        padding: 1rem 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav a {
        display: block;
        padding: 1rem 2rem;
    }

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

    .hero {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-grid,
    .service-detail-item,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail-item.reverse {
        direction: ltr;
    }

    .slideshow-control {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .slideshow-control.prev {
        left: 1rem;
    }

    .slideshow-control.next {
        right: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    h1 {
        font-size: 2rem;
    }

    .hero {
        height: 450px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subhead {
        font-size: 1rem;
    }

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

    .gallery-grid-large {
        grid-template-columns: 1fr;
    }
}

/* === CONTENT SLIDESHOWS (BOXED DESIGN) === */

/* Services Overview Section - Homepage */
.services-overview {
    background-color: #ffffff;
}

.services-overview .container > h2 {
    text-align: center;
    margin-bottom: 0;
}

.services-slideshow-wrapper {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    padding: 3rem 2rem 2rem;
    margin-top: 2rem;
    position: relative;
}

.services-slideshow {
    position: relative;
    width: 100%;
    min-height: 200px;
}

.service-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-slide.active {
    display: block;
    opacity: 1;
}

.service-slide .service-card {
    min-height: 180px;
    background: #ffffff;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Gallery Preview Section - Homepage */
.gallery-preview {
    background-color: #ffffff;
}

.gallery-preview .container > h2,
.gallery-preview .section-intro {
    text-align: center;
}

.gallery-preview .section-intro {
    margin-bottom: 2rem;
}

.gallery-slideshow-wrapper {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    padding: 2rem;
    position: relative;
}

.gallery-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #ffffff;
    border: 1px solid #e5e5e5;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

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

/* Services Detail Page - Full Width Boxed */
.services-detail {
    background-color: #ffffff;
}

.services-detail-slideshow-wrapper {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    padding: 3rem 2rem 2rem;
    position: relative;
}

.services-detail-slideshow {
    position: relative;
    width: 100%;
    min-height: 500px;
}

.service-detail-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-detail-slide.active {
    display: block;
    opacity: 1;
}

.service-detail-slide .service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: #ffffff;
    padding: 2rem;
    border: 1px solid #e5e5e5;
}

.service-detail-slide .service-detail-image {
    border: none;
}

/* Gallery Page - Project Groups Boxed */
.project-group {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    padding: 2.5rem 2rem 2rem;
    margin-bottom: 3rem;
}

.project-group h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.project-slideshow-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.project-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #ffffff;
    border: 1px solid #e5e5e5;
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-slide.active {
    display: block;
    opacity: 1;
}

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

/* About Page - Values Boxed */
.about-values {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    padding: 2.5rem 2rem 2rem;
    margin-bottom: 3rem;
}

.about-values h2 {
    text-align: center;
    margin-bottom: 0;
}

.values-slideshow-wrapper {
    position: relative;
    max-width: 700px;
    margin: 2rem auto 0;
}

.values-slideshow {
    position: relative;
    width: 100%;
    min-height: 220px;
}

.value-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.value-slide.active {
    display: block;
    opacity: 1;
}

.value-slide .value-card {
    min-height: 200px;
    background: #ffffff;
    text-align: center;
}

/* Slideshow Controls - Inside Boxes */
.content-slideshow-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #ffffff;
    border: 2px solid #1B4D7F;
    width: 48px;
    height: 48px;
    font-size: 1.75rem;
    color: #1B4D7F;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.content-slideshow-control:hover {
    background: #1B4D7F;
    color: #ffffff;
}

.content-slideshow-control.prev {
    left: 1rem;
}

.content-slideshow-control.next {
    right: 1rem;
}

/* Slideshow Dots - Clean Design */
.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    background: #d0d0d0;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.slideshow-dot.active {
    background: #1B4D7F;
    border-color: #1B4D7F;
    transform: scale(1.2);
}

.slideshow-dot:hover {
    border-color: #1B4D7F;
}

/* Responsive Adjustments */
@media (max-width: 968px) {
    .service-detail-slide .service-detail-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-slideshow-wrapper,
    .gallery-slideshow-wrapper,
    .services-detail-slideshow-wrapper,
    .project-group,
    .about-values {
        padding: 2rem 1.5rem 1.5rem;
    }

    .content-slideshow-control {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .content-slideshow-control.prev {
        left: 0.5rem;
    }

    .content-slideshow-control.next {
        right: 0.5rem;
    }
}

@media (max-width: 640px) {
    .services-slideshow-wrapper,
    .gallery-slideshow-wrapper,
    .services-detail-slideshow-wrapper,
    .project-group,
    .about-values {
        padding: 1.5rem 1rem 1rem;
    }

    .content-slideshow-control {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .content-slideshow-control.prev {
        left: 0.25rem;
    }

    .content-slideshow-control.next {
        right: 0.25rem;
    }

    .slideshow-dots {
        margin-top: 1rem;
        gap: 8px;
    }

    .slideshow-dot {
        width: 10px;
        height: 10px;
    }

    .service-slide .service-card,
    .value-slide .value-card {
        min-height: auto;
        padding: 1.5rem;
    }

    .service-detail-slide .service-detail-item {
        padding: 1.5rem;
    }
}

