/* =============================================
   SRI BUILDING MATERIALS — Main Stylesheet
   Theme: Orange & Dark
   ============================================= */

:root {
    --orange:    #E87722;
    --orange-dk: #C96312;
    --orange-lt: #FF9A45;
    --og-grad:   linear-gradient(135deg, #E87722, #FF9A45);
    --dark:      #1A1A2E;
    --dark2:     #16213E;
    --green-wa:  #25D366;
    --gray:      #666;
    --gray-lt:   #f0f0f0;
    --shadow:    0 4px 20px rgba(0,0,0,.09);
    --shadow-h:  0 8px 30px rgba(232,119,34,.22);
    --radius:    12px;
    --tr:        all .28s ease;
}

*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; color: #333; background: #fff; padding-bottom: 0; }
@media (max-width:991px) { body { padding-bottom: 58px; } }

h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; font-weight: 700; }
a { text-decoration: none; }

/* ── Utilities ─────────────────────────────── */
.text-orange { color: var(--orange) !important; }
.section-pad { padding: 72px 0; }
.section-title { font-size: clamp(1.6rem,4vw,2.1rem); font-weight: 800; color: var(--dark); }
.section-title span { color: var(--orange); }
.section-sub { color: var(--gray); margin-top: .4rem; margin-bottom: 2.8rem; }
.badge-featured { background: var(--og-grad); color: #fff; border-radius: 6px; padding: 3px 10px; font-size: .72rem; font-weight: 700; }

/* ── Buttons ────────────────────────────────── */
.btn-orange {
    background: var(--og-grad); color: #fff !important; border: none;
    padding: 12px 28px; border-radius: 8px; font-weight: 600; font-family: 'Poppins',sans-serif;
    display: inline-flex; align-items: center; gap: 7px; transition: var(--tr);
}
.btn-orange:hover { background: var(--orange-dk); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(232,119,34,.35); }

.btn-wa {
    background: var(--green-wa); color: #fff !important; border: none;
    padding: 12px 28px; border-radius: 8px; font-weight: 600; font-family: 'Poppins',sans-serif;
    display: inline-flex; align-items: center; gap: 7px; transition: var(--tr);
}
.btn-wa:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(37,211,102,.35); }

/* ── Navbar ─────────────────────────────────── */
.navbar { background: var(--dark) !important; padding: 10px 0; box-shadow: 0 2px 15px rgba(0,0,0,.35); }
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-icon {
    width: 38px; height: 38px; background: var(--og-grad); border-radius: 9px;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.05rem; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: 'Poppins',sans-serif; font-weight: 700; font-size: 1rem; color: #fff; }
.brand-text small { font-size: .62rem; color: var(--orange-lt); text-transform: uppercase; letter-spacing: .8px; }
.navbar .nav-link { color: rgba(255,255,255,.82) !important; font-weight: 500; padding: 7px 14px !important; transition: var(--tr); }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--orange) !important; }
.navbar .dropdown-menu { background: var(--dark2); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; margin-top: 8px; padding: 6px; min-width: 220px; }
.navbar .dropdown-item { color: rgba(255,255,255,.8); padding: 9px 16px; border-radius: 7px; font-size: .9rem; transition: var(--tr); }
.navbar .dropdown-item:hover { background: rgba(232,119,34,.18); color: var(--orange); }
.navbar .dropdown-item i { width: 20px; color: var(--orange); }
.navbar .btn-wa-nav { background: var(--green-wa) !important; color: #fff !important; border-radius: 8px; padding: 7px 16px !important; font-weight: 600; font-size: .88rem; }

/* ── Hero ────────────────────────────────────── */
.hero {
    background: var(--dark); position: relative; overflow: hidden;
    padding: 90px 0 70px; min-height: 540px; display: flex; align-items: center;
}
.hero::before {
    content:''; position: absolute; inset: 0; opacity: .05;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23E87722' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
    content: ''; position: absolute; right: -5%; top: -10%; width: 50%; height: 120%;
    background: var(--og-grad); clip-path: polygon(25% 0%,100% 0%,100% 100%,0% 100%); opacity: .08;
}
.hero-inner { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block; background: rgba(232,119,34,.18); color: var(--orange-lt);
    border: 1px solid rgba(232,119,34,.35); border-radius: 50px; padding: 5px 16px;
    font-size: .75rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2rem,5vw,3.2rem); font-weight: 800; color: #fff; line-height: 1.18; margin-bottom: 18px; }
.hero h1 span { color: var(--orange); }
.hero-sub { color: rgba(255,255,255,.68); font-size: 1.05rem; margin-bottom: 34px; max-width: 520px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 44px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stat-num { font-family: 'Poppins',sans-serif; font-size: 1.85rem; font-weight: 800; color: var(--orange); line-height: 1; }
.hero-stat-lbl { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: 3px; }
.hero-visual { position: relative; z-index: 2; text-align: center; }
.hero-visual-box {
    background: linear-gradient(135deg,rgba(232,119,34,.15),rgba(232,119,34,.05));
    border: 1px solid rgba(232,119,34,.2); border-radius: 20px; padding: 40px;
    display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero-visual-box i { font-size: 5rem; color: var(--orange); opacity: .7; }
.hero-visual-box span { color: rgba(255,255,255,.5); font-size: .85rem; }

/* ── Category Cards ──────────────────────────── */
.cat-card {
    background: #fff; border-radius: var(--radius); padding: 28px 18px; text-align: center;
    border: 2px solid transparent; box-shadow: var(--shadow); transition: var(--tr);
    display: block; color: inherit; height: 100%;
}
.cat-card:hover { border-color: var(--orange); box-shadow: var(--shadow-h); transform: translateY(-5px); color: inherit; }
.cat-icon-ring {
    width: 68px; height: 68px; background: rgba(232,119,34,.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
    font-size: 1.7rem; color: var(--orange); transition: var(--tr);
}
.cat-card:hover .cat-icon-ring { background: var(--og-grad); color: #fff; }
.cat-img-wrap { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px; border: 2px solid rgba(232,119,34,.2); transition: var(--tr); }
.cat-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cat-card:hover .cat-img-wrap { border-color: var(--orange); }
.cat-name { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.cat-count { font-size: .78rem; color: var(--gray); }
.cat-arrow { margin-top: 10px; color: var(--orange); font-size: .8rem; font-weight: 600; opacity: 0; transition: var(--tr); }
.cat-card:hover .cat-arrow { opacity: 1; }

/* ── Product Cards ───────────────────────────── */
.prod-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    transition: var(--tr); overflow: hidden; display: flex; flex-direction: column; height: 100%;
}
.prod-card:hover { box-shadow: var(--shadow-h); transform: translateY(-4px); }
.prod-img {
    /* background: linear-gradient(145deg, var(--dark), var(--dark2)); */
    aspect-ratio: 1 / 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 2px;
}
.prod-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prod-img .prod-icon { font-size: 2.8rem; color: rgba(232,119,34,.55); }
.prod-feat-badge {
    position: absolute; top: 10px; right: 10px; background: var(--og-grad);
    color: #fff; border-radius: 6px; padding: 3px 9px; font-size: .68rem; font-weight: 700;
}
.prod-body { padding: 16px; flex-grow: 1; display: flex; flex-direction: column; }
.prod-cat-tag { font-size: .72rem; color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.prod-name { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.3; }
.prod-price { font-family: 'Poppins',sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--orange); line-height: 1; }
.prod-unit { font-size: .78rem; color: var(--gray); font-weight: 400; }
.prod-min { font-size: .78rem; color: var(--gray); margin: 6px 0 12px; }
.prod-footer { margin-top: auto; }
.btn-enquire {
    width: 100%; background: var(--green-wa); color: #fff; border: none; border-radius: 8px;
    padding: 10px; font-weight: 600; font-size: .88rem; transition: var(--tr);
    text-align: center; display: block; text-decoration: none;
}
.btn-enquire:hover { background: #1da851; color: #fff; transform: translateY(-1px); }

/* ── Stats Bar ───────────────────────────────── */
.stats-bar { background: var(--og-grad); padding: 44px 0; }
.stat-num { font-family: 'Poppins',sans-serif; font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-lbl { color: rgba(255,255,255,.82); font-size: .83rem; font-weight: 500; margin-top: 5px; }

/* ── Why Us ──────────────────────────────────── */
.why-section { background: #f8f8fc; }
.feat-card {
    background: #fff; border-radius: var(--radius); padding: 28px; text-align: center;
    box-shadow: var(--shadow); transition: var(--tr); height: 100%;
}
.feat-card:hover { box-shadow: var(--shadow-h); transform: translateY(-4px); }
.feat-icon {
    width: 62px; height: 62px; background: var(--og-grad); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px; font-size: 1.45rem; color: #fff;
}
.feat-title { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.feat-text { font-size: .85rem; color: var(--gray); }

/* ── About Section ───────────────────────────── */
.about-graphic {
    background: var(--og-grad); border-radius: var(--radius); padding: 44px 30px;
    text-align: center; color: #fff; height: 100%; display: flex;
    flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.about-graphic i { font-size: 4.5rem; opacity: .8; }
.about-graphic h3 { font-size: 1.3rem; font-weight: 800; }
.about-graphic p { opacity: .85; font-size: .9rem; }

/* ── Footer ──────────────────────────────────── */
.footer { background: var(--dark); padding: 60px 0 0; color: rgba(255,255,255,.68); }
.footer-brand { font-family: 'Poppins',sans-serif; font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: .88rem; line-height: 1.75; margin-bottom: 20px; }
.footer h6 { color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .75rem; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,.62); font-size: .88rem; transition: var(--tr); display: flex; align-items: center; gap: 7px; }
.footer-links a:hover { color: var(--orange); padding-left: 4px; }
.footer-links a i { width: 14px; color: var(--orange); font-size: .78rem; }
.footer-contact-row { display: flex; gap: 12px; margin-bottom: 12px; font-size: .88rem; align-items: flex-start; }
.footer-contact-icon {
    width: 32px; height: 32px; background: rgba(232,119,34,.15); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: var(--orange); flex-shrink: 0; font-size: .82rem;
}
.footer-bottom { background: rgba(0,0,0,.28); margin-top: 40px; padding: 14px 0; font-size: .78rem; color: rgba(255,255,255,.35); text-align: center; }

/* ── Mobile Fixed Bar ────────────────────────── */
.mobile-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; height: 58px;
}
.mobile-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
    text-decoration: none; color: #fff; font-weight: 700; font-size: .92rem; font-family: 'Poppins',sans-serif;
}
.mobile-bar .mb-call { background: var(--orange); }
.mobile-bar .mb-wa { background: var(--green-wa); }
@media (max-width:991px) { .mobile-bar { display: flex; } }

/* ── Back to Top ─────────────────────────────── */
#back-top {
    position: fixed; bottom: 74px; right: 18px; width: 40px; height: 40px;
    background: var(--og-grad); color: #fff; border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--tr); opacity: 0; pointer-events: none; z-index: 100;
    box-shadow: 0 4px 14px rgba(232,119,34,.4);
}
#back-top.show { opacity: 1; pointer-events: all; }
#back-top:hover { transform: translateY(-3px); }

/* ── Page Header (category / detail pages) ───── */
.page-hdr {
    background: var(--dark); padding: 44px 0; position: relative; overflow: hidden;
}
.page-hdr::after { content:''; position:absolute; inset:0; background:var(--og-grad); opacity:.07; }
.page-hdr h1 { color: #fff; font-size: 1.75rem; font-weight: 800; margin-bottom: 8px; position: relative; z-index: 2; }
.page-hdr .breadcrumb { background: none; padding: 0; margin: 0; position: relative; z-index: 2; }
.page-hdr .breadcrumb-item a { color: var(--orange); }
.page-hdr .breadcrumb-item.active { color: rgba(255,255,255,.55); }
.page-hdr .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.28); }

/* ── Category Page ───────────────────────────── */
.cat-desc-card { background:#fff; border-radius:var(--radius); padding:22px 24px; box-shadow:var(--shadow); border-left:4px solid var(--orange); margin-bottom:28px; }
.admin-card { background:#fff; border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }

/* ── Product Detail ──────────────────────────── */
.detail-img-box {
    background: linear-gradient(145deg,var(--dark),var(--dark2)); border-radius:var(--radius);
    height: 320px; display:flex; align-items:center; justify-content:center;
    font-size: 6rem; color: rgba(232,119,34,.45); overflow: hidden;
}
.detail-img-box img { width:100%; height:100%; object-fit:cover; border-radius:var(--radius); }
.detail-card { background:#fff; border-radius:var(--radius); padding:30px; box-shadow:var(--shadow); }
.detail-cat-tag {
    display:inline-block; background:rgba(232,119,34,.1); color:var(--orange);
    border-radius:6px; padding:4px 12px; font-size:.78rem; font-weight:600;
    text-transform:uppercase; letter-spacing:.5px; margin-bottom:12px;
}
.detail-price { font-family:'Poppins',sans-serif; font-size:2.4rem; font-weight:800; color:var(--orange); }
.detail-unit { font-size:1rem; color:var(--gray); }
.detail-hr { height:1px; background:var(--gray-lt); margin:20px 0; }
.detail-spec { display:flex; gap:10px; margin-bottom:9px; font-size:.9rem; }
.detail-spec-lbl { color:var(--gray); min-width:110px; }
.detail-spec-val { font-weight:600; color:var(--dark); }
.btn-enquire-lg {
    display:flex; align-items:center; justify-content:center; gap:10px;
    background:var(--green-wa); color:#fff; border:none; border-radius:12px;
    padding:16px; font-weight:700; font-size:1.05rem; width:100%; text-decoration:none;
    transition:var(--tr); margin-top:22px;
}
.btn-enquire-lg:hover { background:#1da851; color:#fff; transform:translateY(-2px); box-shadow:0 8px 20px rgba(37,211,102,.3); }
.related-title { font-size:1.2rem; font-weight:700; color:var(--dark); margin-bottom:22px; }

/* ── Page Hero (About / Contact) ──────────────────────────────────────── */
.page-hero {
    background: var(--dark);
    padding: 72px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(232,119,34,.18) 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.8rem,5vw,2.8rem); font-weight: 800; color: #fff; margin-bottom: .8rem; }
.page-hero h1 span { color: var(--orange); }
.page-hero p { color: rgba(255,255,255,.72); font-size: .97rem; max-width: 560px; margin: 0 auto 1.2rem; }
.page-hero .breadcrumb { margin: 0; }
.page-hero .breadcrumb-item a { color: var(--orange); text-decoration: none; font-size: .85rem; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.55); font-size: .85rem; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.35); }

/* ── CTA Section ──────────────────────────────────────────────────────── */
.cta-section {
    background: var(--og-grad);
    padding: 64px 0;
    text-align: center;
}
.cta-section h2 { font-size: clamp(1.5rem,4vw,2rem); font-weight: 800; color: #fff; margin-bottom: .8rem; }
.cta-section h2 span { color: var(--dark); }
.cta-section p { color: rgba(255,255,255,.85); font-size: .95rem; margin-bottom: 1.8rem; }

/* ── Mobile navbar: keep brand + toggler on one row ──────────────────── */
@media (max-width: 575px) {
    .navbar { padding: 7px 0; }
    .navbar-brand { gap: 7px; }
    .brand-icon { width: 30px; height: 30px; font-size: .88rem; border-radius: 7px; }
    .brand-text strong { font-size: .88rem; }
    .brand-text small { display: none; }
}
