/*
Theme Name: Astra Child – CNC Experte
Theme URI: https://cncexperte.eu
Description: Astra gyermektéma a cncexperte.eu európai CNC közösségi térképhez (ABARAD design).
Author: cncexperte.eu
Template: astra
Version: 1.0.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: astra-child-cnc
*/

/* ABARAD design – alapok */
:root {
  --brand: #99cc33; --brand-dark: #7aa828; --brand-light: #e8f5d0; --brand-deep: #4d6b14;
  --text: #1a1a1a; --text-muted: #555; --bg: #f7f8f5; --card: #fff; --border: #e0e5d8;
  --radius: 12px; --shadow: 0 2px 12px rgba(0,0,0,.06); --footer: #1f2a1a; --footer-text: #c5d0b8;
  --cnc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html body, body.ast-separate-container, body.ast-plain-container, body .site, body .site-content { background-color: var(--bg); }
body, body button, body input, body select, body textarea, body .ast-button,
body h1, body h2, body h3, body h4, body h5, body h6, body .entry-title, body .site-title {
  font-family: var(--cnc-font);
}
body { color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
body a { color: var(--brand-deep); }
body a:hover, body a:focus { color: var(--brand-dark); }

/* Fejléc: fehér, alsó vonal, ragadós */
body #masthead { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--border); box-shadow: none; }
body.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { body.admin-bar #masthead { top: 0; } }
body #masthead .main-header-bar, body #masthead .ast-primary-header-bar, body #masthead .ast-mobile-header-wrap .ast-primary-header-bar { background: #fff; border-bottom: 0; }
body #masthead .ast-builder-grid-row, body #masthead .site-primary-header-wrap { min-height: 64px; }
body #masthead .site-primary-header-wrap.ast-container { max-width: 1100px; padding-left: 24px; padding-right: 24px; }
body #masthead .site-title { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
body #masthead .site-title a, body #masthead .site-title a:visited { color: var(--text); }
body #masthead .site-title a:hover { color: var(--brand-dark); }
body #masthead .site-description { color: var(--text-muted); font-size: .8rem; }
body #masthead .main-header-menu > .menu-item > .menu-link { color: var(--text-muted); font-size: .9rem; font-weight: 500; padding: 0 12px; }
body #masthead .main-header-menu > .menu-item > .menu-link:hover,
body #masthead .main-header-menu > .menu-item.current-menu-item > .menu-link,
body #masthead .main-header-menu > .menu-item.current_page_item > .menu-link { color: var(--brand-dark); }
body #masthead .main-header-menu > .menu-item.current-menu-item > .menu-link { font-weight: 600; }
body #masthead .menu-toggle, body #masthead .menu-toggle:hover, body #masthead .menu-toggle:focus { background: transparent; color: var(--brand-dark); border-radius: 8px; }
body #masthead .menu-toggle .ast-mobile-svg, body #masthead .menu-toggle svg { fill: var(--brand-dark); }
body #masthead .ast-mobile-header-content, body #masthead .ast-mobile-header-wrap .main-header-bar-navigation { background: #fff; border-top: 1px solid var(--border); }
body #masthead .ast-mobile-header-content .menu-item .menu-link,
body #masthead .ast-mobile-header-wrap .main-header-menu .menu-link { color: var(--text); border-color: var(--border); font-weight: 500; }
body #masthead .ast-mobile-header-content .current-menu-item > .menu-link { color: var(--brand-dark); }
@media (max-width: 700px) {
  body #masthead .site-primary-header-wrap.ast-container, body #masthead .ast-mobile-header-wrap .ast-container { padding-left: 16px; padding-right: 16px; }
  body #masthead .ast-builder-grid-row { min-height: 56px; }
}

/* Lábléc: sötét olajzöld */
body .site-footer, body .site-footer .site-below-footer-wrap, body .site-footer .site-primary-footer-wrap, body .site-footer .site-above-footer-wrap { background: var(--footer); border-top: 0; color: var(--footer-text); }
body .site-footer .site-below-footer-wrap { padding: 22px 0; }
body .site-footer .ast-builder-grid-row-container-inner, body .site-footer .ast-builder-footer-grid-columns { max-width: 1100px; }
body .site-footer, body .site-footer p, body .site-footer .ast-footer-copyright { color: var(--footer-text); font-size: .85rem; }
body .site-footer a, body .site-footer a:visited { color: var(--brand); }
body .site-footer a:hover { color: #b8e05c; }

/* CNC oldalak: a bővítmény adja a tartalmat, az Astra keret ne zavarjon */
.cnc-page .site-content > .ast-container { display: block; max-width: 100%; padding: 0; }
.cnc-page #primary, .cnc-page .entry-header { display: none; }
.cnc-front .site-content > .ast-container { display: block; max-width: 100%; padding: 0; }
.cnc-page .site-content, .cnc-front .site-content { background: var(--bg); }
.cnc-front .cnc-card.entry-content { margin-top: 16px; }
body .site-footer .ast-footer-copyright, body .site-footer .site-footer-section { text-align: center; justify-content: center; }
body .site-footer .site-below-footer-wrap .ast-builder-grid-row { padding-left: 16px; padding-right: 16px; }

/* 1.0.2 – fejléc márkajel: ABARAD logó + ® + kétsoros felirat */
body #masthead .ast-builder-grid-row, body #masthead .site-primary-header-wrap { min-height: 96px; }
body #masthead .site-branding { padding: 6px 0; }
.cnc-brand-wrap { display: flex; align-items: center; }
body #masthead a.cnc-brand, a.cnc-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.cnc-brand-mark { display: flex; align-items: flex-start; flex: 0 0 auto; }
.cnc-brand-logo { display: block; width: 84px !important; height: 84px !important; max-width: none; object-fit: contain; }
.cnc-brand-reg { font-size: 13px; line-height: 1; font-weight: 700; color: #1f2a1a; margin-left: 1px; top: 0; position: relative; vertical-align: super; }
.cnc-brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cnc-brand-name { font-size: 1.55rem; font-weight: 750; line-height: 1.1; letter-spacing: -.01em; color: #1f2a1a; white-space: nowrap; }
.cnc-brand-tag { font-size: .85rem; font-weight: 500; color: #5b6650; line-height: 1.25; }
body #masthead a.cnc-brand:hover .cnc-brand-name { color: var(--brand-deep); }
@media (max-width: 921px) {
  body #masthead .ast-mobile-header-wrap .ast-builder-grid-row { min-height: 72px; }
  .cnc-brand-logo { width: 60px !important; height: 60px !important; }
  body #masthead a.cnc-brand, a.cnc-brand { gap: 8px; }
  .cnc-brand-reg { font-size: 11px; }
  .cnc-brand-name { font-size: 1.2rem; }
  .cnc-brand-tag { font-size: .72rem; }
}
@media (max-width: 360px) {
  .cnc-brand-logo { width: 52px !important; height: 52px !important; }
  .cnc-brand-name { font-size: 1.05rem; }
  .cnc-brand-tag { font-size: .66rem; }
}

/* 1.0.3: jogi linkek a láblécben (a bővítményből; a látogató nyelvén) */
body .site-footer .cnc-legal-nav { display: block; margin-top: 6px; }
body .site-footer .cnc-legal-links a, body .site-footer .cnc-legal-links a:visited { color: var(--footer-text); text-decoration: underline; text-underline-offset: 2px; }
body .site-footer .cnc-legal-links a:hover { color: #b8e05c; }
body .site-footer .cnc-legal-links .cnc-sep { opacity: .6; }
.cnc-legal-links[hidden] { display: none !important; }
.cnc-legal-fallback { background: var(--footer, #1f2a1a); color: var(--footer-text, #c5d0b8); text-align: center; font-size: .85rem; padding: 10px 16px; }
.cnc-legal-fallback a { color: inherit; }
