/**
 * KavachX Solutions — corporate marketing website
 */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700;800&display=swap');

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

:root {
    --primary: #e87a33;
    --primary-dark: #9e562b;
    --dark: #1c1c1c;
    --text: #363636;
    --text-muted: #696969;
    --surface: #ffffff;
    --surface-muted: #fef8f3;
    --border: #ece4dc;
    --gradient-brand: linear-gradient(135deg, #e87a33 0%, #9e562b 100%);
    --shutter: #c47230;
    --wardrobe: #b8652a;
    --partition: #9e562b;
    --container: 1180px;
    --nav-height: 72px;
    --topbar-height: 40px;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 8px 32px rgba(28, 28, 28, 0.1);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body.website-page {
    font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.website-container {
    width: min(var(--container), 100% - 2.5rem);
    margin-inline: auto;
}

.website-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: var(--dark);
    color: #fff;
}
.website-skip:focus { left: 1rem; top: 1rem; }

/* Top bar */
.website-topbar {
    background: var(--dark);
    color: rgba(255,255,255,0.9);
    font-size: 0.8125rem;
}
.website-topbar-inner {
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-block: 0.35rem;
}
.website-topbar-contact,
.website-topbar-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.website-topbar a:hover { color: var(--primary); }

/* Header */
.website-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.website-header.is-scrolled { box-shadow: var(--shadow); }
.website-header-inner {
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}
.website-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    max-width: min(220px, 38vw);
}
.website-brand-logo {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: left center;
}

.website-nav-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.5rem;
}

.website-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}
.website-nav-link {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text);
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.website-nav-link:hover,
.website-nav-link.is-active { color: var(--primary-dark); background: var(--surface-muted); }

.website-nav-dropdown { position: relative; }
.website-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.35rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: var(--transition);
}
.website-nav-dropdown.is-open .website-nav-dropdown-menu,
.website-nav-dropdown:hover .website-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.website-nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
}
.website-nav-dropdown-menu a:hover { background: var(--surface-muted); color: var(--primary-dark); }

.website-nav-cta {
    margin-left: 0.35rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: var(--gradient-brand);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.website-nav-cta:hover { filter: brightness(1.05); }

/* Hero carousel */
.website-hero {
    position: relative;
    min-height: clamp(420px, 72vh, 640px);
    overflow: hidden;
    background: var(--dark);
}
.website-hero-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.website-hero-slide {
    flex: 0 0 100%;
    position: relative;
    min-height: clamp(420px, 72vh, 640px);
    display: flex;
    align-items: center;
}
.website-hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}
.website-hero-slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(28,28,28,0.82) 0%, rgba(28,28,28,0.45) 55%, rgba(28,28,28,0.25) 100%);
}
.website-hero-slide--shutter .website-hero-slide-bg { background-color: #3d2818; }
.website-hero-slide--wardrobe .website-hero-slide-bg { background-color: #2a2418; }
.website-hero-slide--partition .website-hero-slide-bg { background-color: #1f2428; }

.website-hero-content {
    position: relative;
    z-index: 1;
    padding-block: 4rem;
    max-width: 640px;
    color: #fff;
}
.website-hero-eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.website-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    font-weight: 800;
}
.website-hero-content p {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 1.75rem;
}
.website-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.website-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}
.website-btn--primary {
    background: var(--gradient-brand);
    color: #fff;
}
.website-btn--outline {
    border-color: rgba(255,255,255,0.65);
    color: #fff;
    background: transparent;
}
.website-btn--outline:hover { background: rgba(255,255,255,0.1); }
.website-btn--dark {
    background: var(--dark);
    color: #fff;
}
.website-btn--light {
    background: #fff;
    color: var(--primary-dark);
}

.website-hero-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 0.5rem;
}
.website-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.website-hero-dot.is-active { background: #fff; }

.website-hero-arrows button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.website-hero-arrows button:hover { background: rgba(255,255,255,0.28); }
.website-hero-prev { left: 1rem; }
.website-hero-next { right: 1rem; }

/* Sections */
.website-section { padding-block: clamp(3rem, 6vw, 5rem); }
.website-section--muted { background: var(--surface-muted); }
.website-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}
.website-eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.website-section-head h2 {
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.website-section-head p { color: var(--text-muted); }

/* Product category grid */
.website-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.website-category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}
.website-category-card:hover { transform: translateY(-4px); }
.website-category-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.website-category-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.75) 100%);
}
.website-category-card--shutter .website-category-card-bg { background-color: var(--shutter); }
.website-category-card--wardrobe .website-category-card-bg { background-color: var(--wardrobe); }
.website-category-card--partition .website-category-card-bg { background-color: var(--partition); }
.website-category-card-body {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}
.website-category-card-body h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.website-category-card-body p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 0.75rem; }
.website-category-card-link {
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Quality band */
.website-quality {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.website-quality-points {
    display: grid;
    gap: 1rem;
}
.website-quality-point {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.15rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.website-quality-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--surface-muted);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.website-quality-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 360px;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 2rem;
}
.website-quality-visual h3 { font-size: 1.75rem; margin-bottom: 0.5rem; }

/* Process steps */
.website-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.website-step {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.website-step-num {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.website-step h3 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--dark); }
.website-step p { font-size: 0.85rem; color: var(--text-muted); }

/* Featured products */
.website-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.website-featured-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.website-featured-card:hover { box-shadow: var(--shadow); }
.website-featured-card-img {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
}
.website-featured-card--shutter .website-featured-card-img { background-color: var(--shutter); }
.website-featured-card--wardrobe .website-featured-card-img { background-color: var(--wardrobe); }
.website-featured-card--partition .website-featured-card-img { background-color: var(--partition); }
.website-featured-card-body { padding: 1.25rem; }
.website-featured-card-body h3 { margin-bottom: 0.35rem; color: var(--dark); }
.website-featured-card-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.website-featured-card-link {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.875rem;
}

/* Heritage */
.website-heritage {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.website-heritage p { color: var(--text-muted); margin-bottom: 1rem; }

/* CTA band */
.website-cta-band {
    background: var(--dark);
    color: #fff;
    text-align: center;
    padding-block: clamp(3rem, 5vw, 4rem);
}
.website-cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
.website-cta-band p { opacity: 0.88; margin-bottom: 1.5rem; max-width: 560px; margin-inline: auto; }
.website-cta-band-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Product detail page */
.website-product-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
}
.website-product-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.website-product-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
}
.website-product-hero--shutter .website-product-hero-bg { background-color: var(--shutter); }
.website-product-hero--wardrobe .website-product-hero-bg { background-color: var(--wardrobe); }
.website-product-hero--partition .website-product-hero-bg { background-color: var(--partition); }
.website-product-hero-content {
    position: relative;
    z-index: 1;
    padding-block: 3rem;
    width: 100%;
}
.website-product-hero-content h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.5rem; }

.website-product-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
}
.website-product-benefits {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin: 1.25rem 0;
}
.website-product-benefits li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}
.website-product-benefits i { color: var(--primary); margin-top: 0.2rem; }

.website-product-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + var(--topbar-height) + 1rem);
    padding: 1.5rem;
    background: var(--surface-muted);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.website-product-sidebar h3 { margin-bottom: 0.75rem; color: var(--dark); }
.website-product-specs {
    list-style: none;
    margin-bottom: 1.25rem;
}
.website-product-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}
.website-product-specs li:last-child { border-bottom: none; }

.website-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.website-gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.website-gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.website-gallery-item figcaption {
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #fff;
}

/* Contact page in website shell */
.website-contact-page .contact-shell { max-width: var(--container); margin-inline: auto; padding: 2rem 0 3rem; }
.website-contact-page .contact-topbar { display: none; }
.website-contact-page .contact-hero { margin-top: 0; }

/* Footer */
.website-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.85);
    padding-block: 3rem 1.5rem;
    margin-top: auto;
}
.website-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.website-footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; opacity: 0.8; }
.website-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    font-weight: 700;
}
.website-footer-logo img { height: 38px; width: auto; }
.website-footer-col h4 {
    color: #fff;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}
.website-footer-col ul { list-style: none; }
.website-footer-col li { margin-bottom: 0.45rem; }
.website-footer-col a:hover { color: var(--primary); }
.website-footer-col address { font-style: normal; font-size: 0.9rem; opacity: 0.85; line-height: 1.6; }
.website-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
    opacity: 0.75;
}
.website-footer-bottom a:hover { color: var(--primary); }
.website-footer-bottom .fa-heart { color: #e87a33; }

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .website-nav-link,
    .website-nav-cta {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    .website-brand {
        max-width: min(180px, 34vw);
    }
    .website-brand-logo {
        height: 42px;
        max-width: 160px;
    }
}

@media (max-width: 960px) {
    .website-categories,
    .website-featured-grid,
    .website-gallery { grid-template-columns: 1fr; }
    .website-quality,
    .website-product-layout { grid-template-columns: 1fr; }
    .website-steps { grid-template-columns: repeat(2, 1fr); }
    .website-footer-grid { grid-template-columns: 1fr 1fr; }
    .website-product-sidebar { position: static; }
}

@media (max-width: 768px) {
    .website-topbar-contact { display: none; }
    .website-brand {
        max-width: min(160px, 52vw);
    }
    .website-brand-logo {
        height: 40px;
        max-width: 150px;
    }
    .website-nav-toggle { display: block; }
    .website-nav {
        position: fixed;
        top: calc(var(--topbar-height) + var(--nav-height));
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    .website-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .website-nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 0.5rem;
        display: none;
    }
    .website-nav-dropdown.is-open .website-nav-dropdown-menu { display: block; }
    .website-nav-cta { margin-left: 0; text-align: center; justify-content: center; }
    .website-footer-grid { grid-template-columns: 1fr; }
    .website-steps { grid-template-columns: 1fr; }
    .website-hero-arrows { display: none; }
}
