/* ============================================================
   Cobex India — additional styles for the multi-page PHP app
   (loads after styles.css / mobile.css)
   ============================================================ */

/* ---- Hero layout ---- */
.hero-content {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.hero { overflow: hidden; }
.hero-img { max-width: 100%; }

@media (max-width: 992px) {
    .hero-content { width: 100%; }
}
@media (max-width: 768px) {
    .hero-content { width: 100%; }
}

/* ---- WhatsApp floating button ---- */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 999;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem; text-decoration: none;
    box-shadow: 0 6px 18px rgba(37,211,102,.45);
    transition: transform .25s ease, box-shadow .25s ease;
    animation: wa-pulse 2.2s infinite;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(37,211,102,.6); color:#fff; }
@keyframes wa-pulse {
    0%   { box-shadow: 0 6px 18px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
    70%  { box-shadow: 0 6px 18px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 6px 18px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 768px) { .wa-float { width: 52px; height: 52px; font-size: 1.7rem; right: 16px; bottom: 16px; } }

/* ---- Flash messages ---- */
.flash { padding: 12px 0; font-weight: 500; }
.flash .container { padding-left: 20px; padding-right: 20px; }
.flash-success { background: #E7F7EE; color: #0F7A43; border-bottom: 1px solid #BFE9D2; }
.flash-error   { background: #FDECEC; color: #B42318; border-bottom: 1px solid #F6C1BD; }
.flash-info    { background: var(--primary-light); color: var(--primary-dark); }

/* ---- Page hero (inner pages) ---- */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
}
.page-hero h1 { color: #fff; font-size: 3rem; margin-bottom: .5rem; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 720px; margin: 0 auto; font-size: 1.1rem; }
.breadcrumb { margin-top: 18px; font-size: .9rem; color: rgba(255,255,255,.75); }
.breadcrumb a { color: #fff; text-decoration: none; }

/* ---- Gallery ---- */
.gallery-section { padding: 70px 0; background: var(--bg-light); }
.gallery-filter-bar {
    display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px;
}
.filter-button {
    background: #fff; border: 1px solid var(--border-color); color: var(--text-dark);
    padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 600;
    transition: var(--transition);
}
.filter-button:hover, .filter-button.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff; border-color: transparent; box-shadow: var(--shadow-sm);
}
.gallery-theme-panel { margin-bottom: 42px; }
.theme-header { margin-bottom: 18px; }
.theme-header h2 {
    margin: 0 0 8px; font-size: 2rem; color: var(--text-dark);
}
.theme-header p { margin: 0; color: var(--text-light); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.gallery-item {
    margin: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gallery-item img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}
.gallery-actions {
    text-align: center; margin-top: 24px;
}
.load-more {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff; border: none; border-radius: 999px; padding: 12px 22px;
    font-weight: 700; cursor: pointer; box-shadow: var(--shadow-sm);
}
.gallery-lightbox {
    position: fixed; inset: 0; background: rgba(7, 17, 32, 0.82);
    display: flex; align-items: center; justify-content: center; padding: 24px;
    opacity: 0; visibility: hidden; transition: all .25s ease; z-index: 3000;
}
.gallery-lightbox.open {
    opacity: 1; visibility: visible;
}
.lightbox-content {
    position: relative; max-width: 1100px; width: 100%; text-align: center;
}
.lightbox-content img {
    max-height: 80vh; width: auto; max-width: 100%; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.lightbox-caption {
    color: #fff; font-size: 1rem; margin-top: 12px;
}
.lightbox-close {
    position: absolute; top: 24px; right: 24px; width: 46px; height: 46px; border-radius: 50%;
    border: none; background: rgba(255,255,255,.18); color: #fff; font-size: 2rem; cursor: pointer;
}
@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery-filter-bar { justify-content: center; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-item img { height: 220px; } }

/* ---- Blog listing ---- */
.blog-section { padding: 70px 0; background: var(--bg-light); }
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.post-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card .thumb {
    height: 190px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: cover;
    background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2.4rem;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .post-cat {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--primary-color); font-weight: 700; margin-bottom: 8px;
}
.post-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.post-card h3 a { color: var(--text-dark); text-decoration: none; }
.post-card h3 a:hover { color: var(--primary-color); }
.post-card .meta { font-size: .82rem; color: var(--text-light); margin-top: auto; padding-top: 12px; }
.post-card .meta i { color: var(--primary-color); margin-right: 4px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state i { font-size: 3rem; color: var(--border-color); margin-bottom: 16px; }

/* ---- Single post ---- */
.article { padding: 60px 0; }
.article-wrap { max-width: 800px; margin: 0 auto; }
.article-cover { width: 100%; border-radius: 16px; margin-bottom: 30px; max-height: 420px; object-fit: cover; }
.article h1 { font-size: 2.6rem; margin-bottom: 14px; }
.article .article-meta { color: var(--text-light); font-size: .92rem; margin-bottom: 30px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }
.article .article-meta i { color: var(--primary-color); }
.article-content { font-size: 1.06rem; line-height: 1.85; color: #374151; }
.article-content p { color: #374151; margin-bottom: 1.2rem; }
.article-content h2 { font-size: 1.8rem; margin: 2rem 0 1rem; }
.article-content h3 { font-size: 1.35rem; margin: 1.6rem 0 .8rem; }
.article-content ul, .article-content ol { margin: 0 0 1.2rem 1.4rem; color: #374151; }
.article-content img { max-width: 100%; border-radius: 12px; }
.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 6px 20px; margin: 1.5rem 0; background: var(--bg-light);
    color: var(--text-light); font-style: italic;
}
.back-link { display: inline-block; margin-bottom: 24px; color: var(--primary-color); text-decoration: none; font-weight: 600; }

/* ---- Generic content blocks ---- */
.prose-section { padding: 70px 0; }
.prose-section .lead { font-size: 1.15rem; color: var(--text-light); max-width: 800px; }

/* ---- Home stats strip (premium icon cards) ---- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}
.stat-box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 38px 26px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-box::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.stat-box:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.stat-box:hover::after { transform: scaleX(1); }
.stat-box .stat-ic {
    width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center; font-size: 1.9rem; color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 12px 24px rgba(0, 82, 204, .28);
    transition: var(--transition);
}
.stat-box:hover .stat-ic { transform: scale(1.1) rotate(-6deg); }
.stat-box .stat-n {
    font-family: 'Playfair Display', serif; font-weight: 800; font-size: 3rem; line-height: 1; margin-bottom: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--primary-color);
}
.stat-box .stat-l { color: var(--text-light); font-weight: 600; margin: 0; }
/* Mobile: fit as many stat cards per row as the width allows, wrapping to a
   second row only when they no longer fit. auto-fit does the deciding. */
@media (max-width: 768px) {
    .stats-strip {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
        max-width: none;
    }
    .stat-box { padding: 20px 8px; border-radius: 14px; }
    .stat-box .stat-ic {
        width: 44px; height: 44px; margin-bottom: 10px;
        border-radius: 13px; font-size: 1.05rem;
        box-shadow: 0 6px 14px rgba(0, 82, 204, .26);
    }
    .stat-box .stat-n { font-size: 1.7rem; }
    .stat-box .stat-l { font-size: .75rem; line-height: 1.35; }
}
@media (max-width: 360px) {
    .stats-strip { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
    .stat-box { padding: 16px 6px; }
    .stat-box .stat-ic { width: 38px; height: 38px; font-size: .95rem; border-radius: 11px; margin-bottom: 8px; }
    .stat-box .stat-n { font-size: 1.45rem; }
    .stat-box .stat-l { font-size: .7rem; }
}

/* ---- Premium "Why Choose" / process cards (centered, icon) ---- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1120px;
    margin: 0 auto;
}
.why-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 44px 30px 36px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}
.why-card::before {
    content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.why-card:hover::before { transform: scaleX(1); }
.why-icon {
    width: 82px; height: 82px; margin: 0 auto 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 12px 24px rgba(0, 82, 204, .28);
    transition: var(--transition);
}
.why-card:hover .why-icon { transform: scale(1.1) rotate(-6deg); }
.why-num {
    position: absolute; top: 16px; right: 22px;
    font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.5rem;
    color: var(--primary-light);
}
.why-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.why-card p { color: var(--text-light); margin: 0; }
.why-grid-4 { max-width: none; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .why-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid, .why-grid-4 { grid-template-columns: 1fr; } }

/* ---- FAQ accordion ---- */
.faq-section { padding: 70px 0; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 14px; overflow: hidden; background: #fff; }
.faq-q {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 20px 24px; font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 600;
    color: var(--text-dark); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q i { color: var(--primary-color); transition: transform .3s ease; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-item.open .faq-q { color: var(--primary-color); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--text-light); line-height: 1.7; }

/* ---- Products ---- */
.products-section { padding: 70px 0; background: var(--bg-light); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card {
    background: #fff; border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .pthumb {
    height: 210px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 3rem;
    background-size: cover; background-position: center;
}
.product-card .pthumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pbody { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-card .pbody h3 { font-size: 1.3rem; margin-bottom: 8px; }
.product-card .pbody h3 a { color: var(--text-dark); text-decoration: none; }
.product-card .pbody h3 a:hover { color: var(--primary-color); }
.product-card .ptag { color: var(--text-light); font-size: .92rem; flex: 1; margin-bottom: 16px; }
.product-card .pfoot { display: flex; justify-content: space-between; align-items: center; }
.product-card .pprice { font-weight: 700; color: var(--primary-color); font-size: .95rem; }

/* Product detail */
.product-detail { padding: 56px 0; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pd-gallery .pd-main {
    width: 100%; height: 380px; border-radius: 16px; object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 4rem;
}
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pd-thumbs img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.pd-thumbs img:hover, .pd-thumbs img.active { border-color: var(--primary-color); }
.pd-info h1 { font-size: 2.4rem; margin-bottom: 10px; }
.pd-info .pd-tag { font-size: 1.1rem; color: var(--text-light); margin-bottom: 20px; }
.pd-info .pd-price { font-size: 1.1rem; font-weight: 700; color: var(--primary-color); margin-bottom: 22px; }
.pd-checklist { list-style: none; margin: 0 0 24px; padding: 0; }
.pd-checklist li { padding: 7px 0 7px 30px; position: relative; color: var(--text-dark); }
.pd-checklist li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #0F7A43; position: absolute; left: 0; }
.pd-block { margin-top: 40px; }
.pd-block h2 { font-size: 1.6rem; margin-bottom: 14px; }
.pd-video { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 16px; overflow: hidden; margin-top: 16px; }
.pd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pd-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.pd-cols .pd-col { background: var(--bg-light); border-radius: 14px; padding: 24px; }
.pd-cols .pd-col h3 { font-size: 1.15rem; margin-bottom: 12px; }

/* Generic two-column form layout for booking pages */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.info-panel { background: var(--bg-light); border-radius: 16px; padding: 32px; }
.map-embed iframe { width: 100%; height: 320px; border: 0; border-radius: 14px; }
.office-photos { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 20px; }
.office-photos img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; }

/* ============================================================
   Auth + Admin
   ============================================================ */
.auth-wrap {
    min-height: 70vh; display: flex; align-items: center; justify-content: center;
    padding: 50px 20px; background: var(--bg-light);
}
.auth-card {
    background: #fff; width: 100%; max-width: 420px; padding: 40px;
    border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color);
}
.auth-card h2 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-light); margin-bottom: 26px; font-size: .95rem; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; color: var(--text-dark); }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border-color);
    border-radius: 9px; font-family: inherit; font-size: .95rem; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--primary-light);
}
.field textarea { resize: vertical; min-height: 120px; }
.btn-block { width: 100%; justify-content: center; }

/* Admin layout */
.admin-shell { display: flex; min-height: 100vh; background: var(--bg-light); }
.admin-side {
    width: 240px; background: #0B1220; color: #cbd5e1; flex-shrink: 0;
    display: flex; flex-direction: column; padding: 24px 0;
}
.admin-side .brand { padding: 0 24px 24px; font-family: 'Playfair Display', serif; font-size: 1.4rem; color: #fff; font-weight: 700; }
.admin-side a {
    display: flex; align-items: center; gap: 12px; padding: 12px 24px;
    color: #cbd5e1; text-decoration: none; font-size: .95rem; transition: var(--transition);
}
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.07); color: #fff; border-left: 3px solid var(--secondary-color); }
.admin-side a i { width: 18px; text-align: center; }
.admin-side .spacer { flex: 1; }
.admin-main { flex: 1; padding: 32px 40px; min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-topbar h1 { font-size: 1.9rem; margin: 0; }
.admin-user { font-size: .9rem; color: var(--text-light); }

.cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 22px; }
.stat-card .n { font-size: 2.2rem; font-weight: 800; color: var(--primary-color); font-family: 'Playfair Display', serif; }
.stat-card .l { color: var(--text-light); font-size: .9rem; }

.table-wrap { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border-color); font-size: .92rem; }
table.data th { background: var(--bg-light); font-weight: 700; color: var(--text-dark); }
table.data tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .74rem; font-weight: 700; }
.badge-published { background: #E7F7EE; color: #0F7A43; }
.badge-draft { background: #FEF3C7; color: #92600A; }
.badge-admin { background: var(--primary-light); color: var(--primary-dark); }
.badge-author { background: #Eef2ff; color: #4338ca; }
.row-actions a { margin-right: 12px; text-decoration: none; font-weight: 600; font-size: .85rem; }
.row-actions a.danger { color: var(--accent-color); }

.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-danger { background: var(--accent-color); color: #fff; }
.form-card { background: #fff; border: 1px solid var(--border-color); border-radius: 16px; padding: 32px; max-width: 820px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.help { font-size: .8rem; color: var(--text-light); margin-top: 4px; }

/* ---------- Clients section ---------- */
.clients-section { padding: 70px 0; background: var(--bg-light); border-top: 1px solid var(--border-color); }
.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 26px;
    align-items: center;
    margin-top: 14px;
}
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px 18px;
    min-height: 110px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.client-logo:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.client-logo img {
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .75;
    transition: filter .25s ease, opacity .25s ease;
}
.client-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Intro loader ---------- */
body.loading { overflow: hidden; }
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transition: opacity .6s ease, visibility .6s ease;
}
.site-loader.hide { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; color: #fff; padding: 20px; }
.loader-logo {
    height: 88px;
    width: auto;
    background: #fff;
    padding: 14px 20px;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
    animation: loaderPop .8s cubic-bezier(.18,.89,.32,1.28) both;
}
.loader-slogan {
    margin-top: 22px;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: .3px;
    color: rgba(255,255,255,.92);
    max-width: 460px;
    animation: loaderFadeUp .7s ease .35s both;
}
.loader-bar {
    margin: 26px auto 0;
    width: 180px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,.25);
    overflow: hidden;
}
.loader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 4px;
    background: #fff;
    animation: loaderSlide 1.1s ease-in-out infinite;
}
@keyframes loaderPop {
    0% { transform: scale(.6) translateY(10px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes loaderFadeUp {
    0% { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes loaderSlide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}
@media (prefers-reduced-motion: reduce) {
    .loader-logo, .loader-slogan, .loader-bar span { animation: none; }
}

@media (max-width: 900px) {
    .posts-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-grid, .split { grid-template-columns: 1fr; }
    .pd-cols { grid-template-columns: 1fr; }
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .posts-grid, .products-grid { grid-template-columns: 1fr; }
    .office-photos { grid-template-columns: repeat(2,1fr); }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .loader-logo { height: 70px; }
    .form-row { grid-template-columns: 1fr; }
    .admin-side { width: 64px; }
    .admin-side .brand, .admin-side a span { display: none; }
    .admin-main { padding: 20px; }
    .page-hero h1 { font-size: 2.2rem; }
}

/* =====================================================================
   Mobile app experience (phones / small tablets)
   - Hide the top utility bar (phone + social links)
   - Sticky compact header + native-style bottom tab bar
   ===================================================================== */

/* App-style bottom navigation — hidden on desktop, shown on mobile */
.app-tabbar { display: none; }

@media (max-width: 768px) {
    /* Hide the top bar with phone numbers + social icons on mobile */
    .top-bar { display: none !important; }

    /* Compact, app-like sticky header */
    .navbar { padding: 12px 0; }
    .logo img, .logo-img { height: 38px; }

    /* Give the page room for the fixed bottom tab bar (+ iOS safe area) */
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

    /* Native-style bottom tab bar */
    .app-tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        background: var(--bg-white, #fff);
        border-top: 1px solid var(--border-color, #e5e7eb);
        box-shadow: 0 -6px 20px rgba(0, 0, 0, .06);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .app-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 9px 4px;
        font-size: .68rem;
        font-weight: 600;
        line-height: 1;
        color: var(--text-light, #6b7280);
        text-decoration: none;
        min-height: 56px;
        transition: color .2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .app-tab i { font-size: 1.2rem; }
    .app-tab.active { color: var(--primary-color, #0052cc); }
    .app-tab:active { background: var(--bg-light, #f3f4f6); }

    /* Lift the floating WhatsApp button above the tab bar */
    .wa-float {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* App-like full-width primary actions */
    .hero-buttons .btn, .btn-block-mobile { width: 100%; }
}

/* Hide the bottom tab bar when printing */
@media print { .app-tabbar { display: none !important; } }
