/*
Theme Name: Hello Child
Template: hello-elementor
Version: 1.2
Description: Professional Editorial Theme for DataQuince inspired by TDS.
*/

/* 1. GLOBAL RESETS & FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 2. LAYOUT CONTAINERS */
.dq-site-content, .dq-container, .dq-home {
    max-width: 1100px; /* Slightly tighter for a premium feel */
    margin: 0 auto;
    padding: 40px 20px;
}

.dq-article-container {
    max-width: 720px; /* Optimized reading width (TDS style) */
    margin: 0 auto;
    padding: 60px 20px;
}

/* 3. HEADER (EDITORIAL STYLE) */
.dq-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95); /* Slight transparency */
    z-index: 999;
    border-bottom: 1px solid #f2f2f2;
    backdrop-filter: blur(8px);
}

.dq-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dq-logo a {
    font-size: 22px;
    font-weight: 800;
    color: #000000;
    text-decoration: none;
    letter-spacing: -0.8px;
}

/* Desktop Nav */
.dq-menu {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.dq-menu a {
    color: #757575;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.dq-menu a:hover {
    color: #1a1a1a;
}

.dq-search input[type="search"] {
    padding: 8px 12px;
    border-radius: 20px; /* Modern pill shape */
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #1a1a1a;
    width: 200px;
    font-size: 13px;
    outline: none;
    transition: border 0.2s;
}

.dq-search input[type="search"]:focus {
    border-color: #1a8917; /* TDS Green accent */
}

/* 4. GRID & CARDS (MINIMALIST) */
.dq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; /* More breathing room */
}

.dq-card {
    background: transparent;
    padding: 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 25px;
    transition: opacity 0.2s;
}

.dq-card:hover {
    opacity: 0.8;
}

.dq-card h3 {
    font-size: 1.4rem;
    margin: 15px 0 10px;
    font-weight: 700;
    line-height: 1.3;
}

/* 5. ARTICLE TYPOGRAPHY (THE AUTHORITY LOOK) */
.dq-article-title { 
    font-family: 'Inter', sans-serif;
    font-size: 2.8rem; 
    line-height: 1.1; 
    color: #1a1a1a; 
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 30px;
}

.dq-article-content { 
    font-family: 'Lora', serif; /* Authority serif font */
    font-size: 1.25rem; 
    line-height: 1.65; 
    color: #292929;
}

.dq-article-content p {
    margin-bottom: 1.8em;
}

.dq-article-content pre { 
    background: #f8fafc; 
    color: #334155; 
    padding: 24px; 
    border-radius: 4px; 
    border: 1px solid #e2e8f0;
    overflow-x: auto; 
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
}

/* 6. MOBILE RESPONSIVENESS */

.dq-menu-toggle {
    display: none; 
    background: none; 
    border: none; 
    color: #1a1a1a; 
    font-size: 24px; 
    cursor: pointer;
}

@media (max-width: 768px) {
    .dq-menu-toggle { display: block; }

    .dq-nav {
        position: absolute;
        top: 64px; left: 0; width: 100%;
        background: #ffffff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        border-bottom: 1px solid #f2f2f2;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }

    .dq-nav.open { max-height: 500px; }

    .dq-menu { flex-direction: column; gap: 0; padding: 10px 0; }
    .dq-menu a { padding: 18px 20px; border-bottom: 1px solid #f9fafb; width: 100%; color: #1a1a1a; }

    .dq-search { display: none; }
    
    .dq-article-title { font-size: 2rem; }
    .dq-article-content { font-size: 1.15rem; }
}


/* 7. FOOTER STYLES */
.dq-footer {
    background: #f9fafb; /* Very light grey background */
    border-top: 1px solid #f2f2f2;
    padding: 60px 0 30px;
    margin-top: 80px;
    color: #4b5563;
}

.dq-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.dq-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
}

.dq-footer-brand {
    max-width: 400px;
}

.dq-footer-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.dq-footer-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.dq-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.dq-footer-menu a {
    text-decoration: none;
    color: #6b7280;
    font-size: 14px;
    transition: color 0.2s;
}

.dq-footer-menu a:hover {
    color: #1a1a1a;
}

.dq-footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.dq-copyright {
    font-size: 13px;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .dq-footer-top {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}


/* LOGO & BRANDING */
.dq-logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #1a1a1a;
}

/* HEADER ACTIONS */
.dq-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dq-btn-outline {
    font-size: 14px;
    color: #1a8917; /* TDS Green */
    border: 1px solid #1a8917;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.dq-btn-outline:hover {
    background: #1a8917;
    color: #fff;
}

/* HAMBURGER ICON (The 3 bars) */
.dq-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.dq-bar {
    width: 22px;
    height: 2px;
    background-color: #1a1a1a;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .dq-menu-toggle { display: flex; }
    .dq-header-actions .dq-btn-outline { display: none; } /* Hide button on mobile to save space */
}