/*
Theme Name:   Astra Child EDAM
Theme URI:    https://edam.pl
Description:  Motyw potomny Astry dla EDAM: kolory, fonty (lokalnie, bez Google), przyciski, nagłówek i stopka w stylu projektu. Wymaga motywu Astra.
Author:       REGUCKA sp. z o.o.
Template:     astra
Version:      1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  astra-child-edam
*/

/* ---------- Fonty (pliki w /fonts, licencja OFL) ---------- */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/archivo-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/archivo-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/archivo-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/archivo-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/archivo-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/archivo-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/public-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/public-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/public-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/public-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/public-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/public-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Zmienne ---------- */
:root {
	--edam-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
	--edam-text: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Typografia ---------- */
body, button, input, select, textarea, .ast-button, .ast-custom-button {
	font-family: var(--edam-text);
}
body { color: #33363A; }
h1, h2, h3, h4, h5, h6,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4,
.site-title, .site-title a,
.elementor-widget-heading .elementor-heading-title {
	font-family: var(--edam-display);
	color: #17191C;
	letter-spacing: -0.01em;
}
.site-title, .site-title a { font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Przyciski w stylu projektu (kanciaste, rdzawe) ---------- */
.ast-button, .ast-custom-button, .button, button[type=submit], input[type=submit],
.wp-block-button__link, .elementor-button,
.ast-header-button-1 .ast-custom-button, .ast-builder-button-wrap .ast-custom-button {
	border-radius: 0 !important;
	font-weight: 600;
}

/* ---------- Nagłówek Astry ---------- */
.ast-above-header-bar, .ast-above-header-bar .ast-builder-grid-row-container-inner, .ast-above-header.ast-above-header-bar {
	background: #17191C;
	color: #E9E9E6;
	font-size: 14px;
}
.ast-above-header-bar a { color: #FFFFFF; }
.ast-above-header { min-height: 40px; }
.ast-primary-header-bar { border-bottom: 1px solid #ECECE9; }
.ast-below-header-bar { background: #FFFFFF; border-bottom: 1px solid #DADBD7; }
.ast-below-header-bar .main-header-menu > .menu-item > .menu-link { font-weight: 600; font-size: 15px; color: #17191C; padding-left: 0; padding-right: 20px; white-space: nowrap; line-height: 50px; }
.ast-below-header-bar .main-header-menu { flex-wrap: wrap; }
.ast-below-header-bar .main-header-menu > .menu-item > .menu-link:hover,
.ast-below-header-bar .main-header-menu > .current-menu-item > .menu-link { color: #B4410F; }
.ast-builder-html-element .edam-search { min-width: 320px; }
@media (min-width: 922px) {
	.ast-primary-header-bar .site-primary-header-wrap > div[class*="section-primary_center"],
	.ast-primary-header-bar .ast-builder-grid-row > .site-header-primary-section-center { flex: 1 1 auto; }
	.site-header-section-center .ast-builder-html-element, .site-header-primary-section-center .ast-builder-html-element { width: 100%; max-width: 640px; }
}
@media (max-width: 921px) {
	.ast-builder-html-element .edam-search { min-width: 0; }
	#ast-mobile-header .ast-below-header-bar .ast-builder-grid-row { grid-template-columns: 1fr; }
	#ast-mobile-header .ast-below-header-bar .site-header-below-section-left,
	#ast-mobile-header .ast-below-header-bar .ast-header-html-1,
	#ast-mobile-header .ast-below-header-bar .ast-builder-html-element,
	#ast-mobile-header .ast-below-header-bar .ast-header-html { width: 100%; flex: 1 1 auto; }
	.site-footer .ast-builder-grid-row-container-inner { padding-left: 20px; padding-right: 20px; }
	.ast-mobile-header-wrap .ast-below-header-bar { padding-top: 8px; padding-bottom: 8px; }
}

/* Pasek górny [edam_topbar] */
.edam-topbar { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: space-between; align-items: center; width: 100%; }
.edam-topbar__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.edam-topbar a { color: #FFFFFF; text-decoration: none; font-weight: 600; }
.edam-topbar a:hover { text-decoration: underline; }
.ast-above-header-bar .ast-builder-html-element, .ast-above-header-bar .site-header-above-section-left { width: 100%; }
@media (max-width: 544px) { .edam-topbar__where { display: none; } }

/* ---------- Stopka ---------- */
.site-footer,
.site-footer .site-primary-footer-wrap[data-section],
.site-footer .site-below-footer-wrap[data-section],
.site-footer .site-above-footer-wrap[data-section] { background-color: #17191C !important; color: #D6D7D3; }
.site-footer .ast-builder-html-element, .site-footer .ast-footer-copyright { color: #D6D7D3; }
.site-footer .footer-widget-area[data-section], .site-footer .ast-builder-html-element, .site-footer .ast-builder-html-element p { text-align: left !important; justify-content: flex-start !important; }
.site-footer .edam-contact { margin-top: 6px; }
.site-footer .ast-builder-html-element p { margin: 0; }
.site-footer .ast-builder-html-element br:first-child { display: none; }
.site-footer .site-primary-footer-wrap { padding-top: 48px; padding-bottom: 32px; }
.site-footer a { color: #FFFFFF; }
.site-footer h2, .site-footer .widget-title, .site-footer .ast-builder-html-element strong { color: #FFFFFF; font-family: var(--edam-display); }
.site-below-footer-wrap { border-top: 1px solid #2C3136; font-size: 13px; color: #9B9E99; }

/* ---------- Elementor: sekcje projektu (klasy nadane w szablonie) ---------- */
.edam-sec-dark { color: #D6D7D3; }
.edam-sec-dark .elementor-heading-title { color: #FFFFFF; }
.edam-eyebrow .elementor-heading-title { font-family: var(--edam-text); text-transform: uppercase; letter-spacing: 0.12em; }
.edam-steps .elementor-widget-heading:first-child .elementor-heading-title { color: #B4410F; }
.edam-step-col > .elementor-widget-wrap { border-top: 3px solid #17191C; padding-top: 14px !important; }
.edam-ph img { background: #2C3136; }

/* Menu mobilne */
.ast-mobile-header-content .menu-link, .ast-mobile-popup-content .menu-link { font-weight: 600; color: #17191C; }
.ast-mobile-header-content .ast-builder-button-wrap, .ast-mobile-popup-content .ast-builder-button-wrap { padding: 12px 20px 16px; }
