/*
Theme Name: Bug Thumpers SEO
Theme URI: https://bugthumpers.com
Author: Bug Thumpers Team
Description: Lightning-fast, modern, SEO-optimized theme.
Version: 1.0.5
Text Domain: bugthumpers-seo
*/

:root {
    --primary-color: #d63200; 
    --primary-hover: #b02900;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-body: #f7fafc;
    --bg-surface: #ffffff;
    --border-color: #e2e8f0;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-body);
    margin: 0; padding: 0; line-height: 1.6; font-size: 16px;
}

a { color: var(--primary-color); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4, h5, h6 { color: var(--text-dark); line-height: 1.2; margin-top: 0; font-weight: 700; }

/* --- Header & Navigation --- */
.site-header { background: var(--bg-surface); border-bottom: 1px solid var(--border-color); box-shadow: 0 1px 3px rgba(0,0,0,0.05); padding: 15px 0; text-align: center; }
.site-title { font-size: 2rem; margin-bottom: 5px; }
.site-description { color: var(--text-light); font-size: 0.95rem; margin: 0; }

/* Logo Auto-Scaling */
.site-header a[rel="home"] img {
    max-width: 100%;
    height: auto;
    max-height: 110px; 
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Centered Navigation Menu */
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.main-navigation li { position: relative; } /* Required for dropdown positioning */
.main-navigation a { display: block; color: var(--text-dark); font-weight: 600; padding: 10px 16px; border-radius: 6px; }
.main-navigation a:hover { background-color: var(--primary-color); color: #ffffff; }

/* Dropdown Sub-Menu Styles */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-surface);
    min-width: 250px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 999;
    flex-direction: column;
    gap: 0;
}
.main-navigation li:hover > ul { display: flex; }
.main-navigation ul ul li { width: 100%; }
.main-navigation ul ul a { padding: 12px 20px; font-size: 0.95rem; font-weight: 500; border-radius: 0; text-align: left; }
.main-navigation ul ul a:hover { background: #f8fbfa; color: var(--primary-color); }

/* --- Buttons --- */
.btn { display: inline-block; padding: 12px 24px; font-weight: bold; border-radius: 6px; text-align: center; transition: all 0.2s; }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-2px); }
.btn-secondary { background: #edf2f7; color: var(--text-dark); border: 1px solid #cbd5e0; }
.btn-secondary:hover { background: #e2e8f0; color: var(--text-dark); transform: translateY(-2px); }
.btn-large { font-size: 1.1rem; padding: 16px 32px; }

/* --- Homepage Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(26, 32, 44, 0.9), rgba(26, 32, 44, 0.9)), var(--bt-hero-bg) center/cover;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    margin-top: -40px; 
}
.hero-title { color: #fff; font-size: 3rem; margin-bottom: 20px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.25rem; max-width: 700px; margin: 0 auto 30px auto; color: #e2e8f0; }
.hero-actions { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* --- Homepage Services Grid --- */
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading h2 { font-size: 2.25rem; margin-bottom: 10px; }
.section-heading p { color: var(--text-light); font-size: 1.1rem; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--bg-surface); padding: 40px 30px; border-radius: 8px; border: 1px solid var(--border-color); text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.2s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); border-color: var(--primary-color); }
.service-icon { font-size: 3rem; margin-bottom: 20px; }

/* --- Footer --- */
.site-footer { background-color: #1a202c; color: #cbd5e0; padding: 40px 20px; margin-top: 60px; border-top: 4px solid var(--primary-color); }
.social-navigation ul { list-style: none; padding: 0; display: flex; justify-content: center; gap: 20px; }
.social-navigation a { color: #a0aec0; font-weight: 600; }
.social-navigation a:hover { color: var(--primary-color); }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .site-header a[rel="home"] img { max-height: 80px; }
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
    
    .main-navigation ul { flex-direction: column; gap: 0; align-items: center; width: 100%; }
    .main-navigation li { width: 100%; }
    .main-navigation a { border-radius: 0; border-bottom: 1px solid var(--border-color); width: 100%; text-align: center; }
    
    /* Mobile Dropdown Overrides */
    .main-navigation ul ul { position: static; transform: none; box-shadow: none; border: none; border-bottom: 1px solid var(--border-color); width: 100%; padding: 0; background: #f8fbfa; }
    .main-navigation ul ul a { text-align: center; color: var(--primary-color); border-bottom: 1px solid #e2e8f0; }
}