/*
 Theme Name: GP Child
 Theme URI: https://example.com
 Description: Child theme for GeneratePress.
 Author: You
 Template: generatepress
 Version: 1.0
*/

/* ---------------------------------------------------
   TYPOGRAPHY — INTER
--------------------------------------------------- */

body {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
    margin: 0 0 .4em 0;
    color: #111;
}

/* Sizes */
h1 { font-size: 32px; line-height: 1.25; text-align: center; }
h2 { font-size: 28px; margin-top: 40px; margin-bottom: 20px; }
h3 { font-size: 24px; font-weight: 600; margin-top: 32px; margin-bottom: 14px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; font-weight: 500; }
h6 { font-size: 16px; font-weight: 500; }

/* Paragraph */
p { 
    margin: 0 0 1.1em 0; 
    font-size: 17px;
    color: #333;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 18px;
}

/* ---------------------------------------------------
   CONTENT WIDTH (CENTERED)
--------------------------------------------------- */

.page .entry-content,
.single .entry-content,
.archive .entry-content,
.archive .page-header {
    max-width: 850px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* ---------------------------------------------------
   NAVIGATION
--------------------------------------------------- */

.main-navigation a {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    font-weight: 500;
    transition: .2s color;
}

.main-navigation a:hover {
    color: #4B63FF;
}

/* Dropdown menu fix */
.main-navigation .sub-menu a {
    font-size: 15px;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Active item highlight */
.main-navigation .current-menu-item > a {
    color: #4B63FF;
    font-weight: 600;
}

/* ---------------------------------------------------
   LINKS
--------------------------------------------------- */
a {
    color: #2244dd;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------
   TOOL GRID (BUTTONS)
--------------------------------------------------- */

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 25px 0 40px;
}

.calc-grid a {
    display: block;
    padding: 15px;
    background: #f8f9ff;
    border: 1px solid #dfe4ff;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #2244dd;
    transition: all 0.2s ease;
}

.calc-grid a:hover {
    background: #2244dd;
    color: #fff;
    transform: translateY(-3px);
}

/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */

.site-footer {
    background: #f5f7fb;
    padding: 50px 0 30px;
    border-top: 1px solid #e6e9f2;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.04);
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h3 {
    font-size: 19px;
    margin-bottom: 15px;
    color: #1f2e78;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.footer-col a {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-size: 15px;
    text-decoration: none;
    transition: 0.25s;
}

.footer-col a:hover {
    color: #3f5efb;
    transform: translateX(2px);
}

/* Hover effect */
.footer-col {
    padding: 5px;
    border-radius: 10px;
    transition: 0.25s;
}
.footer-col:hover {
    background: #eef3ff;
    box-shadow: 0 2px 8px rgba(63,94,251,0.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 35px;
    padding-top: 25px;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #e2e6ef;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}
@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------
   HEADER LOGO
--------------------------------------------------- */

.site-branding img {
    max-height: 48px;
    width: auto;
}

/* ---------------------------------------------------
   FORMS — SAFE MODE (بدون تداخل با ابزارها)
--------------------------------------------------- */

input:not(.tool-input),
select:not(.tool-input),
textarea:not(.tool-textarea),
button:not(.tool-btn) {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
}

/* ---------------------------------------------------
   RESPONSIVE GENERAL
--------------------------------------------------- */

@media (max-width: 768px) {
    body { font-size: 15px; }

    h1 { font-size: 26px; }
    h2 { font-size: 24px; }
    h3 { font-size: 22px; }
    h4 { font-size: 19px; }
    h5 { font-size: 17px; }
}


.seo-breadcrumbs {
    max-width: 1200px;
    margin: 15px auto 5px;
    padding: 0 15px;
    font-size: 14px;
    color: #666;
}

.seo-breadcrumbs a {
    color: #4B63FF;
    text-decoration: none;
}

.seo-breadcrumbs a:hover {
    text-decoration: underline;
}
