/*
Theme Name:   AllCalc Astra Child
Theme URI:    https://allcalculator.biz/
Description:  Child theme of Astra for the AllCalc Calculators plugin: calculator homepage (hero search, groups, popular tools), full-width calculator layout and tidy typography.
Author:       All Calculator
Template:     astra
Version:      1.0.1
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  allcalc-astra-child
*/

/* ---------- Homepage ---------- */
.acx-home { padding: 0 0 48px; }
.acx-hero { background: linear-gradient(180deg, var(--ac-primary-soft, #e6f4f2) 0%, rgba(255,255,255,0) 100%); padding: 64px 20px 40px; text-align: center; }
.acx-hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; }
.acx-hero p { font-size: clamp(16px, 2vw, 19px); color: #4b5563; max-width: 680px; margin: 0 auto 26px; }
.acx-hero .ac-quick { margin-bottom: 14px; }
.acx-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.acx-chips a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #e5e7eb; font-size: 14px; color: #1f2937; text-decoration: none; }
.acx-chips a:hover { border-color: var(--ac-primary, #0f766e); color: var(--ac-primary, #0f766e); }
.acx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.acx-section { margin-top: 44px; }
.acx-section > h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 6px; }
.acx-section > p.acx-sub { color: #6b7280; margin: 0 0 20px; }
.acx-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.acx-trust div { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px; }
.acx-trust b { display: block; font-size: 16px; margin-bottom: 4px; }
.acx-trust span { color: #6b7280; font-size: 14.5px; }
.acx-content { margin-top: 44px; }

/* ---------- Calculator & group pages (Astra) ---------- */
.allcalc-page .entry-header, .allcalc-group-page .entry-header { margin-bottom: 8px; }
.allcalc-page .entry-title, .allcalc-group-page .entry-title { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.01em; }
.allcalc-page .entry-content > h2 { margin-top: 1.6em; }
.allcalc-page .entry-content table:not(.ac-table) { width: 100%; }
.allcalc-page .ast-article-single, .allcalc-group-page .ast-article-single { padding-top: 24px; }

/* Header search (Astra header builder → HTML element → [allcalc_search]) */
.ast-header-html .ac-quick { margin: 0; min-width: 280px; }
.ast-header-html .ac-quick input { padding: 9px 16px 9px 40px !important; font-size: 15px; background-position: 14px center; border-width: 1px; }
@media (max-width: 921px) { .ast-header-html .ac-quick { min-width: 0; } }
