/* =========================================================
   KCP Interia website styles
   Part 1: the original site styles (colours, sections, cards)
   Part 2 (at the end): new pages, galleries, lamp, doors, opening animation
   ========================================================= */

/* Fonts are loaded in the <head> of each page. */

:root {
    /* KCP Interia brand colours: Blue, Green, White, Cream */
    --peacock: #025070;       /* Oceanside blue (logo background) */
    --peacock-light: #297c92; /* mid peacock teal */
    --gold: #588f77;          /* brand green (deep) */
    --gold-light: #87c49b;    /* brand green (logo window, lamp) */
    --lotus: #297c92;         /* was pink; now mid teal */
    --lotus-light: #79c8dc;   /* logo outline blue */
    --ivory: #fbf6ec;         /* brand cream */
    --ivory-dark: #f2eadb;
    --foreground: #1f3a44;
    --muted: #4a5f66;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #ffffff;
    color: var(--foreground);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--peacock);
    text-decoration: none;
    letter-spacing: 2px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1;
}

.logo img {
    height: 4rem;
    width: 4rem;
    border-radius: 0.9rem;
    display: block;
}

.tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--peacock-light);
    margin-top: -0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    font-size: 1rem;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--peacock);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(88, 143, 119, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(2, 80, 112, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(2, 80, 112, 0.1);
    color: var(--peacock);
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--foreground);
    font-weight: 600;
}

.hero h1 .highlight {
    color: var(--peacock);
}

.hero p {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn {
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--peacock);
    color: white;
}

.btn-primary:hover {
    background: var(--peacock-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(2, 80, 112, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--foreground);
    border: 2px solid var(--ivory-dark);
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.trust-indicators {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--muted);
}

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

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-gold { background: var(--gold); }
.dot-peacock { background: var(--peacock); }
.dot-lotus { background: var(--lotus); }

/* Section Styles */
section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header .highlight {
    color: var(--peacock);
}

.section-header p {
    color: var(--muted);
    font-size: 1.1rem;
}

/* Trust Cards */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.flip-card {
    perspective: 1000px;
    height: 250px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.flip-card-back {
    background: linear-gradient(135deg, var(--peacock) 0%, var(--peacock-light) 100%);
    color: white;
    transform: rotateY(180deg);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(2, 80, 112, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.flip-card-front h3 {
    font-size: 2rem;
    color: var(--foreground);
}

.flip-card-back p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

/* Projects Grid */
.projects-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--ivory-dark);
    background: white;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--peacock);
    color: white;
    border-color: var(--peacock);
}

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

/* Lightbox Styles */
.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 {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    background: var(--gold);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-nav:hover {
    background: var(--gold);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
}

.project-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.project-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--muted);
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: 'Click to View Gallery';
    position: absolute;
    font-size: 1rem;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    color: white;
}

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

.project-info {
    padding: 1.5rem;
}

.project-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(2, 80, 112, 0.1);
    color: var(--peacock);
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

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

.project-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--peacock) 0%, var(--peacock-light) 100%);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

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

.service-card p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
}

.service-card li::before {
    content: '✓';
    color: var(--gold);
    font-weight: bold;
}

/* Process Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--peacock), var(--gold));
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
}

.timeline-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--peacock) 0%, var(--peacock-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    z-index: 10;
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--peacock);
}

/* Testimonials */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--peacock) 0%, var(--peacock-light) 100%);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--peacock);
    margin-bottom: 0.25rem;
}

.testimonial-project {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(2, 80, 112, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--peacock);
    font-size: 1.5rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--foreground);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--ivory-dark);
    border-radius: 0.75rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--peacock);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--peacock);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--gold-light);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--peacock-light);
    transform: translateY(-3px);
}

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

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 999;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        flex-direction: column !important;
    }
    
    .timeline-content {
        width: 100%;
        margin-left: 4rem;
    }
    
    .timeline-number {
        left: 0;
        transform: none;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Part 2: new multi-page layout, galleries and animations
   ========================================================= */
:root { --navh: 180px; }
html { scroll-padding-top: calc(var(--navh) + 1rem); }
body:not(.page-home) main { padding-top: var(--navh); }

/* current page in the menu */
.nav-links a[aria-current="page"] { color: var(--peacock); }
.nav-links a[aria-current="page"]::after { width: 100%; }
.mobile-menu-btn { min-width: 44px; min-height: 44px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--peacock-light); outline-offset: 3px;
}

/* ---------- Work page: even galleries ---------- */
.kcp-block { max-width: 1100px; margin: 0 auto 5rem; }
.kcp-block-title { text-align: center; margin-bottom: 2rem; color: var(--peacock); font-size: 2rem; }
.kcp-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.kcp-tile {
    display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; cursor: zoom-in;
    border-radius: 0.75rem; overflow: hidden; background: var(--ivory-dark);
}
.kcp-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.kcp-tile:hover img { transform: scale(1.04); }
.kcp-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); justify-content: center; gap: 1.5rem; }
.kcp-video { aspect-ratio: 9 / 16; border-radius: 1rem; overflow: hidden; background: var(--peacock); }
.kcp-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.kcp-more { text-align: center; margin-top: 1.5rem; }
.kcp-more a, .kcp-explore a { color: var(--peacock); font-weight: 600; text-decoration: none; }
.kcp-explore { max-width: 520px; margin: 0 auto; padding: 2rem; text-align: center; border-radius: 1.25rem; background: var(--ivory); }
.kcp-explore p { margin-bottom: 1rem; color: var(--muted); }

/* photo viewer */
.kcp-lightbox {
    position: fixed; inset: 0; z-index: 3000; background: rgba(2, 24, 34, 0.94);
    display: flex; align-items: center; justify-content: center; padding: 4.5rem 1rem;
}
.kcp-lightbox[hidden] { display: none; }
.kcp-lightbox img { max-width: min(92vw, 1400px); max-height: 80vh; border-radius: 0.5rem; object-fit: contain; }
.kcp-lb-close, .kcp-lb-nav {
    position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.8rem; line-height: 1;
}
.kcp-lb-close { top: 1rem; right: 1rem; }
.kcp-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.kcp-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.kcp-lb-count { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); color: #fff; letter-spacing: 0.1em; font-size: 0.95rem; }

/* home: talk to us */
.kcp-cta > div { max-width: 760px; margin: 0 auto; text-align: center; background: var(--ivory); padding: 3rem 2rem; border-radius: 1.5rem; }
.kcp-cta h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--peacock); }
.kcp-cta p { color: var(--muted); margin-bottom: 2rem; line-height: 1.8; }

/* contact form message */
.kcp-form-status { margin-top: 1rem; color: var(--peacock); font-weight: 500; min-height: 1.5em; }

/* ---------- Opening animation: sketch to reality ---------- */
.kcp-loader {
    position: fixed; inset: 0; z-index: 5000; background: #025070; display: none;
    flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; padding: 1rem;
}
html.kcp-intro .kcp-loader { display: flex; }
html.kcp-intro body { overflow: hidden; }
.kcp-loader svg { width: min(56vw, 380px); height: auto; overflow: visible; }
.kcp-loader .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.kcp-loader .glow { transform-box: fill-box; transform-origin: center; }
.kcp-loader-name { display: flex; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; color: #fff; font-size: clamp(2.6rem, 8vw, 4.6rem); line-height: 1; }
.kcp-loader-name .m { display: inline-block; overflow: hidden; padding-bottom: 0.06em; }
.kcp-loader-name .c { display: inline-block; transform: translateY(105%); }
.kcp-loader-tag {
    font-family: 'DM Sans', sans-serif; font-size: clamp(0.62rem, 1.6vw, 0.85rem); letter-spacing: 0.42em;
    padding-left: 0.42em; text-transform: uppercase; color: #fbf6ec; opacity: 0; text-align: center;
}
.kcp-skip {
    position: absolute; right: 1rem; bottom: 1rem; min-height: 40px; padding: 0.55rem 1.1rem; cursor: pointer;
    background: none; border: 1px solid rgba(255, 255, 255, 0.45); color: #fff; border-radius: 999px; font: inherit; font-size: 0.85rem;
}

/* ---------- Page change: the lamp ---------- */
.kcp-dim {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--navh); z-index: 900; display: none; pointer-events: none; --r: 0%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 236, 190, 0.16) 0, rgba(255, 236, 190, 0) calc(var(--r) * 0.6), rgba(3, 22, 31, 0.94) var(--r));
}
.kcp-lamp {
    position: fixed; left: 50%; top: var(--navh); z-index: 950; width: clamp(44px, 5vw, 70px);
    transform: translateX(-50%); transform-origin: 50% 0; display: none; pointer-events: none;
}
html.kcp-arrive-lamp .kcp-dim, html.kcp-arrive-lamp .kcp-lamp { display: block; }
.kcp-lamp svg { display: block; width: 100%; height: auto; overflow: visible; }
.kcp-lamp .bulb { fill: #4a5f66; transition: fill 0.2s; }
.kcp-lamp .halo { opacity: 0; transition: opacity 0.3s; }
.kcp-lamp.is-on .bulb { fill: #ffe9b0; }
.kcp-lamp.is-on .halo { opacity: 0.45; }

/* ---------- Going to Contact: the sliding doors ---------- */
.kcp-door {
    --cw: clamp(110px, 16vw, 230px); --nw: clamp(260px, 34vw, 520px);
    position: fixed; top: var(--navh); bottom: 0; width: 50%; z-index: 950; display: none; overflow: hidden; background: #025070;
}
.kcp-door-l { left: 0; box-shadow: inset -1px 0 0 rgba(121, 200, 220, 0.55); }
.kcp-door-r { right: 0; box-shadow: inset 1px 0 0 rgba(121, 200, 220, 0.55); }
html.kcp-arrive-doors .kcp-door { display: block; }
html.kcp-arrive-doors .kcp-half { opacity: 1; }
.kcp-pan { position: absolute; border: 1px solid rgba(121, 200, 220, 0.6); }
.kcp-pan::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(121, 200, 220, 0.25); }
.kcp-door-l .kcp-pan { left: 10%; right: 38%; }
.kcp-door-r .kcp-pan { right: 10%; left: 38%; }
.kcp-pan-t { top: 7%; height: 52%; }
.kcp-pan-b { top: 65%; bottom: 7%; }
.kcp-handle { position: absolute; top: 63%; height: 20%; width: 6px; border-radius: 99px; background: #87c49b; }
.kcp-handle::before, .kcp-handle::after { content: ""; position: absolute; left: 50%; width: 18px; height: 6px; border-radius: 99px; background: #87c49b; transform: translateX(-50%); }
.kcp-handle::before { top: 0; }
.kcp-handle::after { bottom: 0; }
.kcp-door-l .kcp-handle { right: 4.5%; }
.kcp-door-r .kcp-handle { left: 4.5%; }
.kcp-half { position: absolute; overflow: hidden; opacity: 0; }
.kcp-door-l .kcp-half { right: 0; }
.kcp-door-r .kcp-half { left: 0; }
.kcp-crest { top: 11%; width: calc(var(--cw) / 2); }
.kcp-crest svg { display: block; width: var(--cw); height: auto; }
.kcp-door-r .kcp-crest svg { margin-left: calc(var(--cw) / -2); }
.kcp-doorname { top: 42%; width: calc(var(--nw) / 2); }
.kcp-doorname > div { width: var(--nw); text-align: center; }
.kcp-door-r .kcp-doorname > div { margin-left: calc(var(--nw) / -2); }
.kcp-doorname .w1 { font-family: 'Cinzel', serif; font-weight: 700; color: #fbf6ec; font-size: clamp(1.05rem, 2.4vw, 2rem); letter-spacing: 0.32em; padding-left: 0.32em; line-height: 1; }
.kcp-doorname .w2 { margin-top: 0.9rem; font-size: clamp(0.5rem, 0.95vw, 0.75rem); letter-spacing: 0.42em; padding-left: 0.42em; text-transform: uppercase; color: #79c8dc; }
.kcp-seam {
    position: fixed; left: 50%; top: var(--navh); bottom: 0; width: 2px; transform: translateX(-50%); z-index: 960; display: none; opacity: 0;
    background: linear-gradient(90deg, rgba(251, 246, 236, 0), rgba(251, 246, 236, 0.95), rgba(251, 246, 236, 0));
    box-shadow: 0 0 14px 4px rgba(255, 233, 176, 0.45);
}

/* ---------- Tablets ---------- */
@media (max-width: 900px) {
    .kcp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Phones ---------- */
@media (max-width: 768px) {
    nav { padding: 0.9rem 1.1rem; }
    .nav-container { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.35rem 0.75rem; }
    .logo { font-size: 1.35rem; gap: 0.6rem; letter-spacing: 1px; }
    .logo img { width: 2.7rem; height: 2.7rem; border-radius: 0.6rem; }
    .mobile-menu-btn { order: 2; }
    .tagline { order: 3; width: 100%; font-size: 0.6rem; letter-spacing: 0.24em; margin-top: 0; }
    .nav-links { order: 4; gap: 1.25rem; }
    .nav-links a { font-size: 1.1rem; }
    section { padding: 3.5rem 1.1rem; }
    .hero { padding: calc(var(--navh) + 1.5rem) 1rem 3rem; min-height: auto; }
    .kcp-block { margin-bottom: 3.5rem; }
    .kcp-block-title { font-size: 1.6rem; }
    .kcp-cta h3 { font-size: 1.6rem; }
    .kcp-lb-prev, .kcp-lb-next { top: auto; bottom: 0.9rem; transform: none; }
    .kcp-lb-count { bottom: 1.9rem; }
}
@media (max-width: 480px) {
    .kcp-gallery { gap: 0.6rem; }
    .kcp-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
}

/* =========================================================
   Our card (Contact page)
   The animated house shaped card, Save contact, Download card
   and the list of spaces we design.
   ========================================================= */
#our-card { background: #ffffff; }
.kcp-card-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
}
.kcp-cardbox { width: min(400px, 100%); aspect-ratio: 4 / 5; position: relative; margin: 0 auto; }
.kcp-cardstage { position: absolute; left: 0; top: 0; width: 400px; height: 500px; transform-origin: 0 0; transform: scale(var(--kcs, 1)); }
.kcp-cardstage:not(.kr-play) * { animation: none !important; }
.kcp-card-side h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; color: var(--peacock); margin-bottom: 0.6rem; }
.kcp-card-side > p { color: var(--muted); line-height: 1.8; margin-bottom: 1.4rem; }
.kcp-card-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.kcp-card-actions .btn { display: inline-flex; align-items: center; gap: 0.5rem; }
.kcp-card-links { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.95rem; }
.kcp-card-links a, .kcp-card-links button {
    color: var(--peacock-light); background: none; border: none; padding: 0.4rem 0; font: inherit; cursor: pointer;
    text-decoration: underline; text-underline-offset: 4px; min-height: 44px;
}
.kcp-card-note { margin-top: 0.4rem; font-size: 0.9rem; color: var(--muted); }
.kcp-spaces { margin-top: 2.2rem; }
.kcp-spaces h4 {
    font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.24em;
    text-transform: uppercase; color: var(--peacock-light); margin: 1.6rem 0 0.4rem;
}
.kcp-spaces h5 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--peacock); margin: 0.9rem 0 0.5rem; }
.kcp-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.kcp-chips li {
    font-size: 0.86rem; color: var(--peacock); background: var(--ivory);
    border: 1px solid var(--gold-light); border-radius: 999px; padding: 0.38rem 0.85rem;
}

/* House card */
.hc-foil { -webkit-mask: url(../../images/card/kcp-card-mask.png) center/contain no-repeat; mask: url(../../images/card/kcp-card-mask.png) center/contain no-repeat;
    background: linear-gradient(118deg,#7a5a22 0%,#c9a24e 16%,#f7e7b0 28%,#d4ae5a 38%,#8f6c2b 52%,#e8cd84 66%,#fff3c9 76%,#b48a3c 88%,#7a5a22 100%); background-size: 220% 100%; animation: hcSheen 6s ease-in-out infinite alternate; }
.hc-goldtext { background: linear-gradient(118deg,#7a5a22 0%,#c9a24e 16%,#f7e7b0 28%,#d4ae5a 38%,#8f6c2b 52%,#e8cd84 66%,#fff3c9 76%,#b48a3c 88%,#7a5a22 100%); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: hcSheen 6s ease-in-out infinite alternate; }
.hc-raise { filter: drop-shadow(0 1.5px 1px rgba(0,0,0,.5)) drop-shadow(0 -0.5px 0 rgba(255,255,255,.3)); }
@keyframes hcSheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* One room, many lives */
.kr-panel{clip-path:polygon(50% 0,100% 0,100% 100%,0 100%,0 0);animation:krMorph .7s 9.3s cubic-bezier(.4,0,.2,1) forwards}
.kr-line{stroke-dasharray:1;stroke-dashoffset:1;animation:krDraw .9s .15s ease-out forwards}
.kr-set{opacity:0;animation:krSet 1.15s ease-in-out forwards}
.kr-inset{opacity:0;animation:krFade .4s 1.1s forwards}
.kr-room{animation:krOut .45s 9.25s ease-in forwards}
.kr-cap{position:absolute;left:0;right:0;top:0;text-align:center;font-family:Jost,'DM Sans',sans-serif;font-size:14px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:#FBF6EC;opacity:0;animation:krSet 1.15s ease-in-out forwards}
.kr-card{opacity:0;transform:translateY(18px) scale(.97);animation:krIn .8s 9.65s cubic-bezier(.2,.7,.2,1) forwards}
@keyframes krDraw{to{stroke-dashoffset:0}}
@keyframes krSet{0%{opacity:0;transform:translateY(6px)}16%,84%{opacity:1;transform:none}100%{opacity:0}}
@keyframes krFade{to{opacity:1}}
@keyframes krOut{to{opacity:0}}
@keyframes krIn{to{opacity:1;transform:none}}
@keyframes krMorph{to{clip-path:polygon(50% 0,100% 27%,100% 100%,0 100%,0 27%)}}

@media (prefers-reduced-motion: reduce) {
    .kcp-cardstage * { animation: none !important; }
    .kr-room { opacity: 0; }
    .kr-panel { clip-path: polygon(50% 0,100% 27%,100% 100%,0 100%,0 27%); }
    .kr-card { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
    .kcp-card-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
    .kcp-card-side { text-align: center; }
    .kcp-card-actions, .kcp-card-links, .kcp-chips { justify-content: center; }
}
