/*
Theme Name: JurHouse
Theme URI: https://jurhouse.pl
Author: JurHouse
Description: Motyw firmowy JurHouse — glazurnictwo i wykończenia wnętrz. Grafit i złoto jak na wizytówce.
Version: 1.2.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: jurhouse
*/

/* ---------- podstawy ---------- */
html { scroll-behavior: smooth; }
:where(section[id]) { scroll-margin-top: 88px; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }

/* ---------- nagłówek ---------- */
.jh-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--wp--preset--color--line-gold); }
.admin-bar .jh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .jh-header { top: 46px; } }
.jh-header .jh-logo img { width: 210px; display: block; }
.jh-header .wp-block-navigation a { text-decoration: none; }
.jh-header .wp-block-navigation a:hover { color: var(--wp--preset--color--gold); }
.jh-header .jh-phone .wp-block-button__link { padding: .7em 1.2em; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--graphite) !important; color: var(--wp--preset--color--cream) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.25rem; }
@media (max-width: 600px) { .jh-header .jh-logo img { width: 160px; } .jh-header .jh-phone { display: none; } }

/* ---------- sekcje ---------- */
.jh-section { padding-top: var(--wp--preset--spacing--80); padding-bottom: var(--wp--preset--spacing--80); position: relative; }
.jh-dark { background: var(--wp--preset--color--graphite); color: var(--wp--preset--color--cream); }
.jh-deep { background: var(--wp--preset--color--graphite-deep); color: var(--wp--preset--color--cream); }
.jh-light { background: var(--wp--preset--color--cream); color: var(--wp--preset--color--graphite); }
.jh-paper { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--graphite); }
.jh-dark :where(h1,h2,h3,h4), .jh-deep :where(h1,h2,h3,h4) { color: var(--wp--preset--color--cream); }

/* ukośne złote linie z wizytówki */
.jh-lines { background-image: url(assets/img/lines-tl.svg), url(assets/img/lines-br.svg); background-repeat: no-repeat; background-position: left top, right bottom; background-size: 200px 200px, 200px 200px; }
@media (max-width: 782px) { .jh-lines { background-image: url(assets/img/lines-br.svg); background-position: right bottom; background-size: 96px 96px; } }

/* nadtytuł i złota kreska */
.jh-eyebrow { font-size: 13px; letter-spacing: .35em; text-transform: uppercase; font-weight: 500; margin-bottom: .75rem !important; }
.jh-dark .jh-eyebrow, .jh-deep .jh-eyebrow { color: var(--wp--preset--color--gold); }
.jh-light .jh-eyebrow, .jh-paper .jh-eyebrow { color: var(--wp--preset--color--gold-text); }
.jh-rule { display: block; width: 64px; height: 2px; background: var(--wp--preset--color--gold); border: 0; margin: 1.25rem 0 0; }

.jh-muted { color: var(--wp--preset--color--ink-muted); }
.jh-dark .jh-muted, .jh-deep .jh-muted { color: var(--wp--preset--color--on-dark-muted); }

/* ---------- hero ---------- */
.jh-hero { padding-top: clamp(72px, 12vw, 150px); padding-bottom: clamp(72px, 10vw, 130px); }
.jh-hero h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); line-height: 1.08; letter-spacing: .03em; }
.jh-hero .jh-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 640px; margin-left: auto; margin-right: auto; color: var(--wp--preset--color--on-dark-muted); }
.jh-hero .jh-tagline { font-size: clamp(.8rem, 1.6vw, 1rem); letter-spacing: .45em; text-transform: uppercase; color: var(--wp--preset--color--cream); }
.jh-hero .jh-tagline b { color: var(--wp--preset--color--gold); font-weight: 400; }

/* ---------- liczby ---------- */
.jh-stats { gap: 0 !important; }
.jh-stat { text-align: center; padding: 8px 16px; }
.jh-stat + .jh-stat { border-left: 1px solid var(--wp--preset--color--line-gold); }
.jh-stat .jh-num { font-family: var(--wp--preset--font-family--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--wp--preset--color--gold); margin: 0; }
.jh-stat .jh-num-label { margin-top: .5rem; font-size: 1.05rem; color: var(--wp--preset--color--cream); }
.jh-promises { text-align: center; letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; color: var(--wp--preset--color--on-dark-muted); }
.jh-promises b { color: var(--wp--preset--color--gold); font-weight: 400; padding: 0 .6em; }
@media (max-width: 781px) { .jh-stat + .jh-stat { border-left: 0; border-top: 1px solid var(--wp--preset--color--line-gold); padding-top: 24px; } }

/* ---------- karty ---------- */
.jh-card { padding: var(--wp--preset--spacing--50); height: 100%; box-sizing: border-box; }
.jh-light .jh-card, .jh-paper .jh-card { background: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--line-light); }
.jh-paper .jh-card { background: #fff; }
.jh-dark .jh-card, .jh-deep .jh-card { background: var(--wp--preset--color--graphite-soft); border: 1px solid var(--wp--preset--color--line-gold); }
.jh-card h3 { margin-top: .75rem; }
.jh-icon svg { width: 44px; height: 44px; display: block; }
.jh-list { list-style: none; padding-left: 0; }
.jh-list li { position: relative; padding-left: 1.4em; margin: .45em 0; }
.jh-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--gold); }
.jh-columns-stretch > .wp-block-column { display: flex; flex-direction: column; }
.jh-columns-stretch > .wp-block-column > .jh-card { flex: 1; }

/* formaty płytek — rysunek proporcji */
.jh-format { display: flex; align-items: flex-end; height: 86px; margin-bottom: .5rem; }
.jh-format span { display: inline-block; border: 2px solid var(--wp--preset--color--gold); margin-right: 6px; }

/* kroki */
.jh-step-num { font-family: var(--wp--preset--font-family--serif); font-size: 3rem; line-height: 1; color: var(--wp--preset--color--gold); margin: 0; }

/* galeria */
.jh-gallery.wp-block-gallery { gap: 8px !important; }
.jh-gallery.wp-block-gallery img { border-radius: 0; }

/* FAQ */
.jh-faq .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line-light); padding: 1.1rem 0; }
.jh-faq .wp-block-details summary { font-weight: 700; cursor: pointer; font-size: 1.1rem; }
.jh-faq .wp-block-details p { margin-top: .75rem; color: var(--wp--preset--color--ink-muted); }

/* kontakt */
.jh-contact-big { font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: .02em; margin: 0; }
.jh-contact-big a { color: var(--wp--preset--color--cream); text-decoration: none; }
.jh-contact-big a:hover { color: var(--wp--preset--color--gold); }
.jh-contact-line { display: flex; align-items: center; gap: 14px; margin: .6rem 0; font-size: 1.15rem; }
.jh-contact-line svg { width: 26px; height: 26px; flex: none; }
.jh-contact-line a { color: var(--wp--preset--color--cream); text-decoration: none; }
.jh-contact-line a:hover { color: var(--wp--preset--color--gold); }

/* przyciski na jasnym tle */
.jh-light .wp-block-button.is-style-outline > .wp-block-button__link, .jh-paper .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--wp--preset--color--graphite); border-color: var(--wp--preset--color--graphite); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--graphite) !important; border-color: var(--wp--preset--color--gold) !important; }

/* stopka */
.jh-footer a { color: var(--wp--preset--color--cream); text-decoration: none; }
.jh-footer a:hover { color: var(--wp--preset--color--gold); }
.jh-footer .jh-logo img { width: 300px; max-width: 100%; display: block; margin-bottom: 8px; }

/* przycisk „Zadzwoń” na dole ekranu telefonu */
.jh-callbar { display: none; }
@media (max-width: 781px) {
  .jh-callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; }
  .jh-callbar a { flex: 1; text-align: center; padding: 15px 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; text-decoration: none; }
  .jh-callbar .call { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--graphite); }
  .jh-callbar .wa { background: var(--wp--preset--color--graphite-deep); color: var(--wp--preset--color--cream); border-top: 1px solid var(--wp--preset--color--line-gold); }
  body { padding-bottom: 54px; }
}

/* ---------- poprawki układu ---------- */
.wp-site-blocks > * + * { margin-block-start: 0; }
.jh-main > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
hr.wp-block-separator.jh-rule { border: 0 !important; height: 2px; width: 64px; background: var(--wp--preset--color--gold); opacity: 1; margin-top: 1rem; margin-bottom: 1.5rem; }
hr.wp-block-separator.jh-rule-center { margin-left: auto !important; margin-right: auto !important; }
.jh-header-inner { gap: 24px; }
.jh-quote { font-family: var(--wp--preset--font-family--serif); font-size: 1.4rem; line-height: 1.45; }
.jh-contact-lines { display: inline-block; text-align: left; }
.jh-contact-lines-wrap { text-align: center; }
.jh-copy { border-top: 1px solid var(--wp--preset--color--line-gold); padding-top: 20px; margin-top: 40px !important; }
.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
.has-text-align-right { text-align: right; }
@media (max-width: 600px) { .jh-hero .jh-tagline { letter-spacing: .22em; font-size: .78rem; } }

/* galeria: jedno duże zdjęcie + cztery mniejsze */
.jh-gallery.wp-block-gallery.has-nested-images { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 240px; gap: 8px; }
.jh-gallery.wp-block-gallery.has-nested-images figure.wp-block-image { width: auto !important; margin: 0 !important; height: 100%; }
.jh-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:first-child { grid-row: span 2; }
.jh-gallery.wp-block-gallery.has-nested-images figure.wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; }
@media (max-width: 781px) {
  .jh-gallery.wp-block-gallery.has-nested-images { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .jh-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:first-child { grid-column: span 2; grid-row: span 2; }
}
.wp-block-post-content:not(.jh-home-content) h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.wp-block-post-content:not(.jh-home-content) h3 { font-size: 1.1rem; }

/* ---------- v1.1 ---------- */
.jh-narrow { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.jh-hero-trust { margin-top: 28px !important; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--on-dark-muted); }
.jh-hero-trust span { display: inline-block; margin: 4px 12px; }
.jh-hero-trust span::before { content: "✓"; color: var(--wp--preset--color--gold); margin-right: 8px; font-weight: 700; }
.jh-columns-top { align-items: flex-start !important; }
.jh-light .jh-list li strong, .jh-paper .jh-list li strong { color: var(--wp--preset--color--graphite); }
.jh-list li { line-height: 1.55; }
.jh-spacer-40 { height: 8px; }
.jh-card a { color: inherit; text-decoration: underline; text-decoration-color: var(--wp--preset--color--gold); text-underline-offset: 3px; }
.jh-faq a, .jh-muted a { text-decoration-color: var(--wp--preset--color--gold); text-underline-offset: 3px; }

/* realizacje — siatka */
.jh-projects .wp-block-post-template { gap: 24px; }
.jh-projects .wp-block-post-template li { margin: 0; }
.jh-projects .wp-block-post-featured-image { margin: 0; overflow: hidden; background: var(--wp--preset--color--line-light); }
.jh-projects .wp-block-post-featured-image img { transition: transform .4s ease; }
.jh-projects .wp-block-post-featured-image a:hover img { transform: scale(1.04); }
.jh-projects .wp-block-post-title { font-size: 1rem; margin-top: 14px; letter-spacing: .06em; }
.jh-projects .wp-block-post-title a { color: var(--wp--preset--color--graphite); text-decoration: none; }
.jh-projects .wp-block-post-title a:hover { color: var(--wp--preset--color--gold-text); }
.jh-projects .wp-block-query-pagination { margin-top: 40px; }
@media (max-width: 781px) { .jh-projects .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; } .jh-projects .wp-block-post-title { font-size: .85rem; } }

/* pojedyncza realizacja */
.jh-back a { color: var(--wp--preset--color--gold-text); text-decoration: none; font-weight: 600; font-size: .9rem; letter-spacing: .06em; }
.single .wp-block-post-content .wp-block-gallery { gap: 8px; }
.single .wp-block-post-content .wp-block-gallery img { cursor: zoom-in; }
.jh-contact-big { margin-top: 28px !important; margin-bottom: 20px !important; }
hr.wp-block-separator.jh-rule:not(.jh-rule-center) { margin-left: 0 !important; margin-right: auto !important; }

/* ---------- v1.2: strona główna jako zwykła strona ---------- */
.jh-home-content > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.editor-styles-wrapper .jh-section.alignfull { margin-top: 0; margin-bottom: 0; }
