/* 
 * Jargelo Pest Control Services - Brand Design System and Base Stylesheet
 * Responsive, super lightweight, modern slate-green & gold theme with micro-animations.
 */

:root {
    --primary: #104c38;
    --primary-dark: #0c3e2e;
    --primary-light: #f0fdf4;
    --accent: #d97706;
    --accent-hover: #b45309;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --white: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
    margin-bottom: 0.5em;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media(min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.section-padding {
    padding: 80px 0;
}

@media(max-width: 768px) {
    .section-padding { padding: 50px 0; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--accent);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Header & Navigation */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.top-bar {
    background: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    padding: 6px 0;
    font-weight: 500;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 10px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hamburger Transformations */
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media(max-width: 991px) {
    .hamburger { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        border-bottom: 2px solid var(--primary);
        box-shadow: var(--shadow-lg);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        z-index: 105;
        text-align: center;
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, #e2f5ec 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

@media(min-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr 1fr !important;
    }
    /* Clean sidebar layouts ratio matching */
    .sidebar-layout {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr !important;
        gap: 50px !important;
        align-items: start;
    }
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media(max-width: 768px) {
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 2.2rem; }
}

/* Feature Cards & Service Cards */
.card-service {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-service:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.card-service h3 {
    margin-bottom: 15px;
}

.card-service p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-service .read-more {
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Reviews & Testimonials */
.reviews-section {
    background: var(--bg-light);
}

.review-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 15px;
}

.review-author {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media(min-width: 992px) {
    .contact-grid { grid-template-columns: 1.2fr 0.8fr; }
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16,76,56,0.1);
}

/* Blog layouts */
.blog-card {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.blog-body {
    padding: 25px;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.blog-body h3 {
    margin-bottom: 10px;
}

.blog-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Admin Dashboard CSS Styles */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 30px 20px;
}

.admin-sidebar h2 {
    color: var(--white);
    margin-bottom: 40px;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar ul li {
    margin-bottom: 15px;
}

.admin-sidebar ul li a {
    display: block;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
}

.admin-sidebar ul li a:hover,
.admin-sidebar ul li a.active {
    background: rgba(255,255,255,0.1);
}

.admin-main {
    padding: 40px;
    background: #f3f4f6;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.admin-table th, .admin-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: #f9fafb;
    font-weight: 600;
}

/* Footer Section */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px;
}

footer h3, footer h4 {
    color: var(--white);
}

footer a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
    font-size: 0.85rem;
}

/* Global Mobile Responsiveness Helper Rules */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem !important;
    }
    h2 {
        font-size: 1.8rem !important;
    }
    .hero {
        padding: 60px 0 !important;
        text-align: center;
    }
    .hero .container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    .sidebar-layout {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    footer .container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 30px !important;
    }
    footer h4 {
        border-left: none !important;
        border-bottom: 2px solid var(--accent);
        display: inline-block;
        padding-bottom: 5px;
        padding-left: 0 !important;
    }
    /* Contact grid responsiveness */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}
