/* =====================================================================
   KEDIUM — Premium Plywood Brand Theme
   Palette: Orange rgb(255,170,40) / Black / White / Dark Grey
   Font: Poppins
   ===================================================================== */

:root {
    --color-primary: #FFAA28;
    --color-primary-dark: #E8940F;
    --color-secondary: #111111;
    --color-bg: #FFFFFF;
    --color-accent: #2E2E2E;
    --color-muted: #6b6b6b;
    --color-light-grey: #F7F7F8;
    --color-border: #ECECEC;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-soft: 0 10px 40px rgba(17, 17, 17, 0.08);
    --shadow-strong: 0 20px 60px rgba(17, 17, 17, 0.16);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-secondary);
    background: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--color-secondary); letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
p { color: var(--color-muted); line-height: 1.8; }

::selection { background: var(--color-primary); color: #fff; }

/* ---------------------------------------------------------------
   Premium Loader
   --------------------------------------------------------------- */
#kedium-loader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--color-secondary);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#kedium-loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { color: var(--color-primary); font-size: 2.2rem; font-weight: 800; letter-spacing: 0.3em; margin-bottom: 20px; }
.loader-bar { width: 180px; height: 3px; background: rgba(255,255,255,0.15); border-radius: 10px; overflow: hidden; }
.loader-bar span { display: block; width: 40%; height: 100%; background: var(--color-primary); animation: loaderMove 1.1s infinite ease-in-out; }
@keyframes loaderMove { 0% { transform: translateX(-100%);} 50% { transform: translateX(150%);} 100% { transform: translateX(-100%);} }

/* ---------------------------------------------------------------
   Custom Cursor (desktop only)
   --------------------------------------------------------------- */
.custom-cursor {
    position: fixed; width: 24px; height: 24px; border: 2px solid var(--color-primary);
    border-radius: 50%; pointer-events: none; z-index: 99998; transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s; mix-blend-mode: difference; display: none;
}
@media (hover: hover) and (pointer: fine) { .custom-cursor { display: block; } }
.custom-cursor.hovering { width: 44px; height: 44px; background: rgba(255,170,40,0.25); }

/* ---------------------------------------------------------------
   Top Utility Bar
   --------------------------------------------------------------- */
.top-bar { background: var(--color-secondary); color: #ddd; font-size: 0.85rem; padding: 8px 0; }
.top-bar a, .top-bar span { color: #ddd; margin-right: 22px; }
.top-bar a:hover { color: var(--color-primary); }
.top-bar-cta .btn { border-radius: 30px; font-size: 0.78rem; padding: 4px 16px; }

/* ---------------------------------------------------------------
   Sticky Header + Mega Menu
   --------------------------------------------------------------- */
.kedium-header {
    position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border); height: var(--header-height);
    display: flex; align-items: center; transition: var(--transition);
}
.kedium-header.scrolled { box-shadow: var(--shadow-soft); height: 70px; }
.brand-logo img { height: 44px; width: auto; }
.brand-fallback-text { font-weight: 800; font-size: 1.4rem; letter-spacing: 0.15em; color: var(--color-secondary); }
.brand-fallback-text::after { content: ''; }

.main-nav .nav-list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.main-nav .nav-list > li > a {
    display: inline-flex; align-items: center; gap: 4px; padding: 10px 16px; font-weight: 500; font-size: 0.95rem;
    color: var(--color-secondary); border-radius: 30px;
}
.main-nav .nav-list > li > a:hover, .main-nav .nav-list > li > a.active { background: var(--color-light-grey); color: var(--color-primary-dark); }

.has-mega { position: relative; }
.mega-menu {
    position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(10px);
    background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-strong); padding: 20px;
    min-width: 420px; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 50;
}
.has-mega:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-menu-inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.mega-item { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.mega-item i { color: var(--color-primary); }
.mega-item:hover { background: var(--color-light-grey); color: var(--color-primary-dark); }
.mega-item-all { grid-column: span 2; background: var(--color-secondary); color: #fff; justify-content: center; }
.mega-item-all i { color: var(--color-primary); }

.icon-btn { background: none; border: none; font-size: 1.2rem; padding: 8px 12px; border-radius: 50%; }
.icon-btn:hover { background: var(--color-light-grey); }
.btn-kedium-primary {
    background: var(--color-primary); color: #111 !important; border: none; font-weight: 600; border-radius: 30px;
    padding: 10px 26px; transition: var(--transition); box-shadow: 0 8px 20px rgba(255,170,40,0.35);
}
.btn-kedium-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,170,40,0.45); }
.btn-kedium-outline {
    border: 2px solid var(--color-secondary); color: var(--color-secondary); border-radius: 30px; font-weight: 600; padding: 9px 24px;
}
.btn-kedium-outline:hover { background: var(--color-secondary); color: #fff; }

.mobile-toggle { width: 34px; height: 24px; position: relative; background: none; border: none; }
.mobile-toggle span { display: block; height: 2px; background: var(--color-secondary); margin: 6px 0; transition: var(--transition); }

/* Search overlay */
.search-overlay {
    position: fixed; inset: 0; background: rgba(17,17,17,0.97); z-index: 2000; display: flex; align-items: flex-start;
    justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); padding-top: 10vh;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box { display: flex; align-items: center; border-bottom: 2px solid var(--color-primary); padding-bottom: 12px; }
.search-box input { background: none; border: none; color: #fff; font-size: 2rem; width: 80vw; max-width: 700px; outline: none; }
.search-box input::placeholder { color: #777; }
.search-box button { background: none; border: none; color: #fff; font-size: 1.6rem; }
.search-results { max-width: 700px; margin: 20px auto 0; color: #ccc; }
.search-results a { display: block; padding: 12px 0; border-bottom: 1px solid #333; color: #fff; }
.search-results a:hover { color: var(--color-primary); }

/* Mobile menu */
.mobile-menu {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100%; background: #fff; z-index: 2100;
    padding: 100px 24px 24px; transition: right 0.4s ease; box-shadow: var(--shadow-strong); overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu ul { list-style: none; padding: 0; }
.mobile-menu li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--color-border); font-weight: 500; }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2050; display: none; }
.mobile-overlay.open { display: block; }

/* ---------------------------------------------------------------
   Buttons / Cards / Utilities (site-wide)
   --------------------------------------------------------------- */
.section-tag { color: var(--color-primary-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.8rem; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 10px 0 16px; }
.section-subtitle { color: var(--color-muted); max-width: 640px; }
.py-section { padding: 90px 0; }
@media (max-width: 768px) { .py-section { padding: 56px 0; } }

.kedium-card {
    background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--color-border);
    overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-soft);
}
.kedium-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-strong); border-color: transparent; }
.kedium-card img { transition: transform 0.6s ease; }
.kedium-card:hover img { transform: scale(1.08); }

.glass-panel {
    background: rgba(255,255,255,0.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.4); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
}
.glass-dark {
    background: rgba(17,17,17,0.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08); color: #fff; border-radius: var(--radius-lg);
}

.badge-kedium { background: var(--color-primary); color: #111; font-weight: 600; border-radius: 30px; padding: 6px 14px; font-size: 0.75rem; }

/* ---------------------------------------------------------------
   Hero Banner
   --------------------------------------------------------------- */
.hero-banner {
    position: relative; min-height: 88vh; display: flex; align-items: center;
    background-color: #111; background-image: linear-gradient(120deg, rgba(17,17,17,0.78), rgba(17,17,17,0.45)), url('/assets/images/placeholders/hero-banner.jpg'); background-position: center, center; background-size: cover, contain; background-repeat: no-repeat, no-repeat;
    color: #fff; overflow: hidden;
}
.hero-banner::after {
    content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,170,40,0.25), transparent 60%);
}
.hero-content { position: relative; z-index: 2; }
.hero-content .section-tag { color: var(--color-primary); }
.hero-title { font-size: clamp(2.4rem, 5vw, 4.2rem); color: #fff; line-height: 1.1; margin: 14px 0 20px; }
.hero-sub { color: #e6e6e6; max-width: 560px; font-size: 1.1rem; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: #fff; z-index: 2; text-align: center; font-size: 0.8rem; }
.hero-scroll-cue .line { width: 1px; height: 40px; background: rgba(255,255,255,0.5); margin: 8px auto 0; position: relative; overflow: hidden; }
.hero-scroll-cue .line::after { content:''; position:absolute; top:-40px; left:0; width:100%; height: 40px; background: var(--color-primary); animation: scrollCue 1.8s infinite; }
@keyframes scrollCue { to { top: 100%; } }

/* ---------------------------------------------------------------
   Why Kedium (icon feature grid)
   --------------------------------------------------------------- */
.feature-icon-card { text-align: center; padding: 36px 20px; border-radius: var(--radius-lg); background: var(--color-light-grey); transition: var(--transition); height: 100%; }
.feature-icon-card:hover { background: var(--color-secondary); color: #fff; transform: translateY(-6px); }
.feature-icon-card:hover p { color: #ccc; }
.feature-icon-wrap {
    width: 76px; height: 76px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 2rem; color: var(--color-primary); box-shadow: var(--shadow-soft); transition: var(--transition);
}
.feature-icon-card:hover .feature-icon-wrap { background: var(--color-primary); color: #111; }

/* ---------------------------------------------------------------
   Product Category / Product Cards
   --------------------------------------------------------------- */
.category-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 360px; display: flex; align-items: flex-end; }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.category-card:hover img { transform: scale(1.1); }
.category-card::before { content:''; position:absolute; inset:0; background: linear-gradient(0deg, rgba(17,17,17,0.9), rgba(17,17,17,0.1)); }
.category-card-body { position: relative; z-index: 2; padding: 26px; color: #fff; width: 100%; }
.category-card-body .short-code { color: var(--color-primary); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; }
.category-card-body h4 { color: #fff; margin: 6px 0 12px; }
.read-more-link { display: inline-flex; align-items: center; gap: 6px; color: var(--color-primary); font-weight: 600; font-size: 0.9rem; }
.read-more-link i { transition: transform 0.3s; }
.category-card:hover .read-more-link i { transform: translateX(6px); }

.product-slide-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); transition: var(--transition); margin: 10px; }
.product-slide-card:hover { box-shadow: var(--shadow-strong); transform: translateY(-6px); }
.product-slide-card .img-wrap { height: 220px; overflow: hidden; }
.product-slide-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.product-slide-card:hover .img-wrap img { transform: scale(1.1); }
.product-slide-card .body { padding: 20px; }

/* ---------------------------------------------------------------
   Applications Grid
   --------------------------------------------------------------- */
.application-tile {
    position: relative; border-radius: var(--radius-md); overflow: hidden; height: 220px; display: flex; align-items: flex-end;
    justify-content: center; text-align: center;
}
.application-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.application-tile:hover img { transform: scale(1.12); }
.application-tile::before { content:''; position:absolute; inset:0; background: rgba(17,17,17,0.45); transition: var(--transition); }
.application-tile:hover::before { background: rgba(255,170,40,0.55); }
.application-tile span { position: relative; z-index: 2; color: #fff; font-weight: 600; padding-bottom: 20px; font-size: 1.05rem; }

/* ---------------------------------------------------------------
   Manufacturing Process Timeline
   --------------------------------------------------------------- */
.process-timeline { position: relative; padding-left: 40px; }
.process-timeline::before { content:''; position:absolute; left: 14px; top: 0; bottom: 0; width: 2px; background: var(--color-border); }
.process-step { position: relative; padding-bottom: 46px; }
.process-step:last-child { padding-bottom: 0; }
.process-step::before {
    content: attr(data-step); position: absolute; left: -40px; top: 0; width: 30px; height: 30px; border-radius: 50%;
    background: var(--color-primary); color: #111; font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
}
.process-step h5 { margin-bottom: 6px; }

/* ---------------------------------------------------------------
   Testimonials
   --------------------------------------------------------------- */
.testimonial-card { background: var(--color-light-grey); border-radius: var(--radius-lg); padding: 36px; height: 100%; }
.testimonial-stars { color: var(--color-primary); margin-bottom: 14px; }
.testimonial-client { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.testimonial-client img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }

/* ---------------------------------------------------------------
   Blog cards
   --------------------------------------------------------------- */
.blog-card .img-wrap { height: 220px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.blog-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.blog-card:hover .img-wrap img { transform: scale(1.08); }
.blog-card .body { padding: 22px; }
.blog-meta { font-size: 0.8rem; color: var(--color-muted); display: flex; gap: 14px; margin-bottom: 10px; }
.blog-meta i { color: var(--color-primary); }

/* ---------------------------------------------------------------
   Dealer CTA + Contact
   --------------------------------------------------------------- */
.dealer-cta-section {
    background: linear-gradient(120deg, #111 0%, #2b2b2b 100%); color: #fff; border-radius: var(--radius-lg); overflow: hidden; position: relative;
}
.dealer-cta-section::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 90% 10%, rgba(255,170,40,0.25), transparent 60%); }
.form-control, .form-select {
    border-radius: var(--radius-sm); border: 1px solid var(--color-border); padding: 12px 16px; font-size: 0.95rem;
}
.form-control:focus, .form-select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(255,170,40,0.15); }
.form-label { font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.kedium-footer { background: var(--color-secondary); color: #bbb; }
.footer-newsletter { background: var(--color-primary); color: #111; padding: 26px 0; }
.footer-newsletter h4 { color: #111; margin-bottom: 4px; }
.footer-newsletter input { border: none; border-radius: 30px; padding: 10px 18px; min-width: 260px; }
.footer-newsletter .btn { border-radius: 30px; background: #111; color: #fff; padding: 10px 24px; }
.footer-logo { height: 40px; }
.footer-logo-text { font-weight: 800; font-size: 1.3rem; letter-spacing: 0.15em; color: #fff; margin-bottom: 14px; }
.footer-about { font-size: 0.9rem; }
.footer-social a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); align-items: center; justify-content: center; margin-right: 8px; }
.footer-social a:hover { background: var(--color-primary); color: #111; }
.kedium-footer h5 { color: #fff; margin-bottom: 18px; font-size: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--color-primary); }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { margin-bottom: 12px; display: flex; gap: 10px; }
.footer-contact i { color: var(--color-primary); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.85rem; }
.footer-legal a { margin-left: 20px; }
.footer-legal a:hover { color: var(--color-primary); }

/* ---------------------------------------------------------------
   Floating Action Buttons
   --------------------------------------------------------------- */
.floating-actions { position: fixed; right: 22px; bottom: 26px; z-index: 1500; display: flex; flex-direction: column; gap: 12px; }
.fab {
    width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff; box-shadow: var(--shadow-strong); transition: var(--transition); border: none;
}
.fab:hover { transform: translateY(-4px) scale(1.05); }
.fab-whatsapp { background: #25D366; }
.fab-call { background: var(--color-secondary); }
.fab-email { background: var(--color-primary); color: #111; }
.fab-top { background: #fff; color: var(--color-secondary); border: 1px solid var(--color-border); opacity: 0; visibility: hidden; transform: translateY(10px); }
.fab-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------------------------------------------------------------
   Cookie Consent
   --------------------------------------------------------------- */
.cookie-consent {
    position: fixed; left: 0; right: 0; bottom: -200px; background: rgba(17,17,17,0.97); color: #ddd; padding: 18px 0;
    z-index: 1800; transition: bottom 0.5s ease; font-size: 0.9rem;
}
.cookie-consent.show { bottom: 0; }

/* ---------------------------------------------------------------
   Breadcrumb / inner page banner
   --------------------------------------------------------------- */
.page-banner {
    background: linear-gradient(120deg, rgba(17,17,17,0.85), rgba(17,17,17,0.6)), url('/assets/images/placeholders/page-banner.jpg') center/cover no-repeat;
    color: #fff; padding: 110px 0 60px; text-align: center;
}
.page-banner h1 { color: #fff; }
.kedium-breadcrumb .breadcrumb { justify-content: center; margin-top: 14px; }
.kedium-breadcrumb a { color: var(--color-primary); }
.kedium-breadcrumb .active { color: #ccc; }

/* ---------------------------------------------------------------
   Rich content blocks (CKEditor output: product descriptions, blog posts)
   --------------------------------------------------------------- */
.content-block, .blog-content { color: var(--color-secondary); line-height: 1.85; }
.content-block h2, .blog-content h2 { font-size: 1.6rem; margin-top: 2rem; margin-bottom: 1rem; }
.content-block h3, .blog-content h3 { font-size: 1.3rem; margin-top: 1.6rem; margin-bottom: 0.8rem; }
.content-block p, .blog-content p { color: var(--color-muted); margin-bottom: 1.1rem; }
.content-block ul, .content-block ol, .blog-content ul, .blog-content ol { color: var(--color-muted); margin-bottom: 1.1rem; padding-left: 1.4rem; }
.content-block li, .blog-content li { margin-bottom: 0.5rem; }
.content-block img, .blog-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 1.2rem 0; }
.content-block a, .blog-content a { color: var(--color-primary-dark); text-decoration: underline; }
.content-block blockquote, .blog-content blockquote {
    border-left: 4px solid var(--color-primary); padding: 12px 20px; background: var(--color-light-grey);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--color-secondary); font-style: italic; margin: 1.5rem 0;
}
.content-block table, .blog-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.content-block table td, .content-block table th, .blog-content table td, .blog-content table th { border: 1px solid var(--color-border); padding: 10px 14px; }

/* ---------------------------------------------------------------
   Placeholder image blocks (no real assets uploaded yet)
   --------------------------------------------------------------- */
.img-placeholder {
    background: repeating-linear-gradient(45deg, #f2f2f2, #f2f2f2 10px, #ececec 10px, #ececec 20px);
    display: flex; align-items: center; justify-content: center; color: #999; font-size: 0.85rem;
    border: 1px dashed #ccc; border-radius: var(--radius-md); min-height: 200px; text-align: center; padding: 10px;
}

/* ---------------------------------------------------------------
   Responsive tweaks
   --------------------------------------------------------------- */
@media (max-width: 991px) {
    .kedium-header { height: 70px; }
    .mega-menu { display: none; }
}
 /* Mobile responsiveness fixes */ img, svg, video, canvas { max-width: 100%; height: auto; } iframe, embed, object { max-width: 100%; } #newsletterForm, form.d-flex.gap-2 { flex-wrap: wrap; } #newsletterForm input, #newsletterForm button, form.d-flex.gap-2 input, form.d-flex.gap-2 button { flex: 1 1 auto; min-width: 0; } @media (max-width: 576px) { #newsletterForm input, #newsletterForm button, form.d-flex.gap-2 input, form.d-flex.gap-2 button { flex: 1 1 100%; width: 100%; } } @media (max-width: 767.98px) { .col-lg-8, .col-lg-7, .col-lg-6, .col-lg-5, .col-lg-4, .col-lg-3, .col-lg-2, .col-md-6, .col-md-4 { flex: 0 0 100%; max-width: 100%; width: 100%; } }
 @media (max-width: 767.98px) { .hero-banner { min-height: 22vh; } }