/* ============================================================
   TCS Blog Shared Styles
   Teddy's Cleaning Systems — Melbourne
   ============================================================ */

:root {
    --gradient-start: #2b2d42;
    --gradient-end: #4dc4d9;
    --accent-teal: #4dc4d9;
    --accent-orange: #e67e22;
    --accent-orange-dark: #d35400;
    --text-light: #e6e6e6;
    --text-dark: #1a1a2e;
    --text-muted: #555;
    --bg-white: #fff;
    --bg-light: #f4f7fa;
    --header-height: 70px;
    --max-content: 780px;
    --border-radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.8;
    font-size: 16px;
}

/* ── Header ── */
header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-light);
    border-bottom: 2px solid var(--gradient-end);
    padding: 0 20px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-left { display: flex; align-items: center; }
.header-right { display: flex; align-items: center; gap: 12px; }

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}
.logo img { max-height: 46px; margin-right: 10px; }
.logo .logo-text h1 {
    margin: 0;
    font-size: 1.3em;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
}
.logo .logo-text .tagline {
    font-size: 0.55em;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: rgba(0,212,255,0.85);
    letter-spacing: 1.5px;
    text-transform: lowercase;
}

.header-cta {
    background: var(--accent-orange);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85em;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.header-cta:hover {
    background: var(--accent-orange-dark);
    transform: translateY(-2px);
}

/* ── Hamburger ── */
.hamburger {
    display: block;
    width: 30px; height: 24px;
    cursor: pointer;
    background: none; border: none; padding: 0;
    z-index: 1002;
    position: relative;
}
.hamburger span {
    display: block; width: 100%; height: 3px;
    background: white; border-radius: 2px;
    margin: 5px 0;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Nav Drawer ── */
nav#main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; max-width: 300px; height: 100vh;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transition: right 0.35s ease;
    padding-top: var(--header-height);
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    visibility: hidden; opacity: 0;
}
nav#main-nav.active { right: 0; visibility: visible; opacity: 1; }
nav#main-nav ul {
    list-style: none; margin: 0; padding: 20px;
    display: flex; flex-direction: column; gap: 5px;
}
nav#main-nav ul li a {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.08);
    padding: 14px 18px; border-radius: 8px;
    font-weight: 500; font-size: 1em;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}
nav#main-nav ul li a:hover {
    background: rgba(77,196,217,0.3);
    border-color: rgba(77,196,217,0.5);
}
nav#main-nav ul li a i { margin-right: 10px; width: 20px; color: var(--accent-teal); }
.nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}
.nav-overlay.active { display: block; }

/* ── Page Offset ── */
.page-body { padding-top: var(--header-height); }

/* ── Breadcrumb ── */
.breadcrumb {
    background: var(--bg-light);
    padding: 12px 20px;
    font-size: 0.85em;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--accent-teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ── Hero Banner ── */
.blog-hero {
    background: linear-gradient(135deg, var(--gradient-start), #1e3a5f, var(--gradient-end));
    color: white;
    padding: 60px 20px;
    text-align: center;
}
.blog-hero .category-tag {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.blog-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 auto 18px;
    max-width: var(--max-content);
}
.blog-hero .meta {
    color: rgba(255,255,255,0.75);
    font-size: 0.88em;
    display: flex; align-items: center; justify-content: center; gap: 16px;
    flex-wrap: wrap;
}
.blog-hero .meta i { color: var(--accent-teal); }

/* ── Article Body ── */
.article-container {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.article-container h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--gradient-start);
    margin: 2.5rem 0 1rem;
    padding-left: 16px;
    border-left: 4px solid var(--accent-orange);
}

.article-container h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--gradient-start);
    margin: 1.8rem 0 0.8rem;
}

.article-container p { margin: 0 0 1.2rem; color: #333; }

.article-container ul, .article-container ol {
    padding-left: 24px; margin: 0 0 1.4rem;
}
.article-container li { margin-bottom: 0.6rem; color: #333; }

.article-container a { color: var(--accent-teal); font-weight: 500; text-decoration: none; }
.article-container a:hover { text-decoration: underline; }

/* ── Highlight Box ── */
.highlight-box {
    background: linear-gradient(135deg, #f0fafc, #e8f4f8);
    border-left: 5px solid var(--accent-teal);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 22px 24px;
    margin: 2rem 0;
}
.highlight-box.orange {
    background: linear-gradient(135deg, #fff8f0, #fff0e0);
    border-color: var(--accent-orange);
}
.highlight-box p { margin: 0; font-weight: 500; }

/* ── Stat Block ── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}
.stat-card {
    background: linear-gradient(135deg, var(--gradient-start), #1e3a5f);
    color: white;
    padding: 24px 20px;
    border-radius: var(--border-radius);
    text-align: center;
}
.stat-card .stat-num {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-teal);
    display: block;
}
.stat-card .stat-label { font-size: 0.85em; opacity: 0.85; margin-top: 6px; }

/* ── Checklist ── */
.checklist { list-style: none; padding: 0; }
.checklist li {
    padding: 10px 0 10px 36px;
    position: relative;
    border-bottom: 1px solid #eee;
    margin: 0;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-teal);
    position: absolute;
    left: 8px;
    top: 12px;
}

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(135deg, var(--gradient-start), #1e3a5f, var(--gradient-end));
    color: white;
    padding: 56px 24px;
    text-align: center;
    margin: 3rem 0 0;
}
.cta-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 auto 16px;
    max-width: 600px;
    border-left: none; padding-left: 0;
    color: white;
}
.cta-section p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 28px; }
.btn-primary {
    display: inline-block;
    background: var(--accent-orange);
    color: white; font-weight: 700;
    padding: 14px 34px; border-radius: 30px;
    text-decoration: none; font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(230,126,34,0.4);
}
.btn-primary:hover {
    background: var(--accent-orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(230,126,34,0.5);
}
.btn-secondary {
    display: inline-block;
    background: transparent;
    color: white; font-weight: 600;
    padding: 13px 30px; border-radius: 30px;
    text-decoration: none; font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.6);
    margin-left: 14px;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

/* ── Related Posts ── */
.related-section {
    background: var(--bg-light);
    padding: 48px 24px;
}
.related-section h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem; font-weight: 700;
    margin: 0 0 32px;
    color: var(--gradient-start);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.related-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-top: 4px solid var(--accent-teal);
    transition: all 0.3s ease;
    display: block;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.related-card .tag {
    font-size: 0.75em; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--accent-orange);
    margin-bottom: 10px; display: block;
}
.related-card h3 { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 600; margin: 0 0 8px; }
.related-card p { font-size: 0.88em; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ── Footer ── */
.site-footer {
    background: linear-gradient(135deg, var(--gradient-start), #1a1a3d);
    color: white;
    padding: 48px 24px 24px;
    text-align: center;
}
.footer-inner {
    max-width: 900px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: left;
    margin-bottom: 32px;
}
.footer-col h4 {
    font-family: 'Orbitron', monospace;
    font-size: 0.9em; font-weight: 700;
    color: var(--accent-teal);
    letter-spacing: 1px; text-transform: uppercase;
    margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.75);
    text-decoration: none; font-size: 0.9em;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: white; }
.footer-col p { color: rgba(255,255,255,0.7); font-size: 0.9em; margin: 0 0 10px; line-height: 1.6; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 0.82em;
}
.footer-social { margin-top: 12px; }
.footer-social a { color: rgba(255,255,255,0.6); margin: 0 8px; font-size: 1.2em; transition: color 0.2s; }
.footer-social a:hover { color: var(--accent-teal); }

/* ── Blog Index ── */
.blog-index-hero {
    background: linear-gradient(135deg, var(--gradient-start), #1e3a5f, var(--gradient-end));
    color: white; padding: 80px 24px;
    text-align: center;
}
.blog-index-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700; margin: 0 0 16px;
}
.blog-index-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 580px; margin: 0 auto; }

.posts-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.post-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,0.09);
    transition: all 0.3s ease;
    display: flex; flex-direction: column;
    text-decoration: none; color: var(--text-dark);
    border: 1px solid #eee;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,0,0,0.14); }
.post-card-top {
    background: linear-gradient(135deg, var(--gradient-start), #1e3a5f);
    padding: 28px 24px;
    position: relative;
}
.post-card-top .cat {
    font-size: 0.72em; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent-teal);
    display: inline-block; margin-bottom: 10px;
}
.post-card-top h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem; font-weight: 700;
    color: white; margin: 0; line-height: 1.4;
}
.post-card-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-body p { color: var(--text-muted); font-size: 0.9em; line-height: 1.6; flex: 1; margin: 0 0 18px; }
.read-more {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent-orange); font-weight: 700; font-size: 0.88em;
    text-decoration: none; transition: gap 0.2s;
}
.read-more:hover { gap: 10px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .blog-hero { padding: 48px 16px; }
    .article-container { padding: 32px 16px 48px; }
    .cta-section { padding: 40px 16px; }
    .btn-secondary { margin-left: 0; margin-top: 12px; display: block; }
    .related-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .header-cta { display: none; }
    .footer-inner { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; padding: 32px 16px; }
}
