/* =====================================================================
   Secure PHP CMS - Public Site Stylesheet
   Mobile-first, responsive design
   ===================================================================== */

:root {
    --brand-primary: #e4002b;      /* bold red accent, inspired by QSR brand sites */
    --brand-primary-dark: #b5001f;
    --brand-dark: #1a1a1a;
    --brand-light: #f7f7f7;
    --brand-text: #222222;
    --brand-radius: 10px;
    --font-main: 'Poppins', system-ui, -apple-system, sans-serif;
    --header-height: 64px;

    /* Dynamic theme variables (overridden inline by templates/header.php
       from the "settings" table so admins can change colors without code) */
    --header-bg: #ffffff;
    --header-text: var(--brand-dark);
    --footer-bg: var(--brand-dark);
    --footer-text: #eeeeee;
    --body-bg: #ffffff;
    --body-text: var(--brand-text);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--body-text);
    background: var(--body-bg);
    padding-top: var(--header-height);
    overflow-x: hidden;
}

a { text-decoration: none; }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    z-index: 1050;
    display: flex;
    align-items: center;
}
.header-inner { height: var(--header-height); width: 100%; }

.brand { font-weight: 800; font-size: 1.25rem; color: var(--header-text); }
.brand-logo { height: 38px; width: auto; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--brand-primary); color: #fff; font-size: 1rem;
}
.brand-text { color: var(--header-text); }

.main-nav .nav-link-custom {
    color: var(--header-text);
    font-weight: 600;
    font-size: .95rem;
    padding: .5rem .9rem;
    border-radius: 30px;
    transition: all .2s ease;
}
.main-nav .nav-link-custom:hover,
.main-nav .nav-link-custom.active {
    background: var(--brand-primary);
    color: #fff;
}

.btn-brand {
    background: var(--brand-primary);
    border: none;
    color: #fff !important;
    font-weight: 700;
    border-radius: 30px;
    padding: .55rem 1.4rem;
    transition: background .2s ease;
}
.btn-brand:hover { background: var(--brand-primary-dark); color: #fff; }

/* =====================================================================
   Hamburger button
   ===================================================================== */
.hamburger-btn {
    border: none;
    background: transparent;
    width: 42px; height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1200;
}
.hamburger-box { position: relative; width: 24px; height: 18px; display: block; }
.hamburger-line {
    position: absolute; left: 0; width: 100%; height: 2.5px;
    background: var(--header-text); border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.line1 { top: 0; }
.line2 { top: 8px; }
.line3 { top: 16px; }

.hamburger-btn.active .line1 { top: 8px; transform: rotate(45deg); background: #fff; }
.hamburger-btn.active .line2 { opacity: 0; }
.hamburger-btn.active .line3 { top: 8px; transform: rotate(-45deg); background: #fff; }

/* =====================================================================
   Mobile full-screen overlay menu (KFC-style)
   ===================================================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--brand-dark);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.65,0,.35,1);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.mobile-menu-overlay.open { transform: translateX(0); }

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    height: var(--header-height);
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-menu-close {
    background: rgba(255,255,255,.1);
    border: none; color: #fff;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 1.1rem;
}

.mobile-menu-links {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}
.mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.05rem 1.5rem;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: background .2s ease, padding-left .2s ease;
}
.mobile-link i:first-child { margin-right: .75rem; color: var(--brand-primary); width: 22px; text-align: center; }
.mobile-link:hover, .mobile-link:active {
    background: rgba(228,0,43,.15);
    color: #fff;
    padding-left: 1.9rem;
}

.mobile-menu-footer {
    padding: 1.25rem 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
}
.mobile-social a {
    color: #fff;
    font-size: 1.3rem;
    opacity: .85;
}
.mobile-social a:hover { opacity: 1; color: var(--brand-primary); }

body.menu-open { overflow: hidden; }

/* =====================================================================
   Hero / generic sections
   ===================================================================== */
.hero {
    background: linear-gradient(135deg, var(--brand-dark), #333);
    color: #fff;
    padding: 4rem 0 3rem;
}
.hero h1 { font-weight: 800; font-size: clamp(1.8rem, 5vw, 3rem); }
.hero p { color: rgba(255,255,255,.85); }

.section { padding: 3rem 0; }
.section-title {
    font-weight: 800;
    margin-bottom: 1.75rem;
    position: relative;
    padding-bottom: .6rem;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 56px; height: 4px;
    background: var(--brand-primary);
    border-radius: 4px;
}

/* =====================================================================
   Cards - pages / blog / gallery
   ===================================================================== */
.content-card {
    border: none;
    border-radius: var(--brand-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}
.content-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.content-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.content-card .card-body { padding: 1.25rem; }
.content-card .card-title { font-weight: 700; font-size: 1.05rem; }
.content-card .badge-category {
    background: var(--brand-primary);
    color: #fff;
    font-weight: 600;
    font-size: .7rem;
    padding: .3rem .6rem;
    border-radius: 20px;
}
.post-meta { color: #888; font-size: .82rem; }

.article-content img { max-width: 100%; height: auto; border-radius: var(--brand-radius); }
.article-content { line-height: 1.8; font-size: 1.02rem; }

/* =====================================================================
   Gallery grid
   ===================================================================== */
.gallery-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity .2s ease;
}
.gallery-grid img:hover { opacity: .85; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
}
.footer-brand { font-weight: 800; color: var(--footer-text); }
.footer-heading { font-weight: 700; color: var(--footer-text); font-size: .95rem; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: var(--footer-text); opacity: .75; }
.footer-links a:hover { color: var(--brand-primary); opacity: 1; }
.footer-divider { border-color: rgba(128,128,128,.25); }
.footer-social { display: flex; gap: 1rem; margin-top: .75rem; }
.footer-social a { color: var(--footer-text); opacity: .8; font-size: 1.2rem; }
.footer-social a:hover { color: var(--brand-primary); opacity: 1; }

/* =====================================================================
   Pagination
   ===================================================================== */
.pagination .page-link { color: var(--brand-dark); }
.pagination .active .page-link { background: var(--brand-primary); border-color: var(--brand-primary); }

/* =====================================================================
   Responsive tweaks
   ===================================================================== */
@media (max-width: 767.98px) {
    .hero { padding: 2.5rem 0 2rem; text-align: center; }
    .section { padding: 2rem 0; }
}


.home-banner{
    width:100%;
    max-width:1100px;
    height:auto;
    display:block;
    margin:auto;
}





