/*
Theme Name: Astra GAZSERWIS
Theme URI: https://gazserwis.co
Description: Child theme Astra dla GAZSERWIS.CO – branding (czerwony #c1272d / granat #1a3a5c), local-business HVAC layout, optymalizacja konwersji.
Author: GAZSERWIS.CO
Version: 1.0.0
Template: astra
Text Domain: astra-gazserwis
*/

/* === Brand colors === */
:root {
  --gz-red: #c1272d;
  --gz-red-dark: #a01f24;
  --gz-navy: #1a3a5c;
  --gz-navy-dark: #0f2640;
  --gz-grey: #f7f7f9;
  --gz-text: #2c3e50;
}

/* === Typography (consistency with mu-plugin) === */
body, .ast-container, p, li, td, th {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--gz-text);
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--gz-navy);
  font-weight: 700;
  line-height: 1.25;
}

/* === Header === */
.site-header {
  border-bottom: 3px solid var(--gz-red);
}
.site-logo-img img,
.custom-logo,
.site-branding img,
.custom-logo-link img,
.ast-site-identity .custom-logo-link img,
.ast-header-break-point .site-logo-img .custom-mobile-logo-link img,
.ast-header-break-point .site-branding img,
.ast-header-break-point .custom-logo-link img {
  max-height: 80px !important;
  max-width: 80px !important;
  width: 80px !important;
  height: auto !important;
  object-fit: contain !important;
}
/* Tagline pod tytułem — chowamy, sam tytuł zostaje */
.ast-site-title-wrap .site-description,
.site-branding .site-description,
.ast-site-identity .site-description { display:none !important; }
.site-title a, .ast-site-title-wrap .site-title a { white-space: nowrap !important; }
.ast-site-title-wrap, .site-branding {
  align-items: center;
}
@media (max-width: 768px) {
  .site-logo-img img,
  .custom-logo,
  .site-branding img,
  .custom-logo-link img,
  .ast-header-break-point .site-logo-img .custom-mobile-logo-link img,
  .ast-header-break-point .site-branding img,
  .ast-header-break-point .custom-logo-link img {
    max-height: 60px !important;
    max-width: 60px !important;
    width: 60px !important;
  }
}
/* Hide Astra footer credit "Powered by Astra WordPress Theme" */
.ast-small-footer, .ast-footer-copyright a[href*="wpastra"],
.ast-footer-copyright a[href*="astra"], .footer-sml-layout-1 .ast-footer-copyright {
  /* keep copyright text but kill astra link */
}
.ast-footer-copyright a[href*="wpastra.com"],
.ast-footer-copyright a[href*="astra"]:not([href*="gazserwis"]) {
  display: none !important;
}
.ast-small-footer-section a[rel="nofollow"][href*="wpastra"],
.ast-small-footer-section a[rel="nofollow"][href*="astra"] { display:none !important; }
.main-header-menu .menu-link {
  color: var(--gz-navy) !important;
  font-weight: 600;
}
.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link {
  color: var(--gz-red) !important;
}

/* === Buttons === */
.wp-block-button__link,
.ast-button,
button.button,
input[type="submit"],
.ast-custom-button {
  background: var(--gz-red) !important;
  border-color: var(--gz-red) !important;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 700;
  padding: 12px 24px;
  text-transform: none;
  transition: .2s;
}
.wp-block-button__link:hover,
.ast-button:hover,
button.button:hover,
input[type="submit"]:hover {
  background: var(--gz-red-dark) !important;
  border-color: var(--gz-red-dark) !important;
  transform: translateY(-1px);
}

/* === Links === */
.entry-content a {
  color: var(--gz-red);
  text-decoration: underline;
}
.entry-content a:hover {
  color: var(--gz-navy);
}

/* === Footer === */
.site-footer {
  background: var(--gz-navy-dark) !important;
  color: #cbd5e1 !important;
}
.site-footer a,
.site-footer .menu a {
  color: #cbd5e1 !important;
}
.site-footer a:hover {
  color: #fff !important;
}

/* === Hide Astra entry-title on front page (we have hero H1) === */
.home .entry-title,
.home .ast-page-header-section,
body.home .ast-archive-description {
  display: none !important;
}

/* === Page hero (Astra page header area) === */
.ast-page-header-section {
  background: linear-gradient(135deg, var(--gz-navy) 0%, var(--gz-navy-dark) 100%);
  color: #fff;
  padding: 32px 0;
}
.ast-page-header-section .entry-title {
  color: #fff !important;
}

/* === Cennik tables === */
.entry-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
}
.entry-content table th {
  background: var(--gz-navy);
  color: #fff;
  text-align: left;
  padding: 12px;
}
.entry-content table td {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
}
.entry-content table tr:nth-child(even) td {
  background: var(--gz-grey);
}

/* === FAQ-friendly headings === */
.entry-content h3 {
  color: var(--gz-navy);
  margin-top: 28px;
  font-size: 20px;
}

/* === Mobile === */
@media (max-width: 768px) {
  body { font-size: 15px; }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
}
