/*
Theme Name: JG Tech
Theme URI: https://example.invalid/jg-tech
Author: JG Tech
Description: Lekki motyw blokowy dla firmy elektrycznej JG Tech.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jarek-electric
Tags: block-patterns, full-site-editing, custom-logo, custom-colors, accessibility-ready
*/

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
body.admin-bar .site-header { top: 32px; }
body, p, li, h1, h2, h3, h4, h5, h6 {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  white-space: normal;
}
img { max-width: 100%; height: auto; }
a { text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid #16c5e5;
  outline-offset: 3px;
}

.jg-skip-link:not(:focus) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.jg-skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: .85rem 1.1rem;
  background: #fff;
  color: #07182f;
  border: 3px solid #16c5e5;
  border-radius: 6px;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 10px 30px rgba(7, 24, 47, .08);
}
.site-logo img {
  width: auto !important;
  height: clamp(56px, 5vw, 68px) !important;
  object-fit: contain;
}
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; }
.wp-block-button__link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jg-tech-hero { position: relative; overflow: hidden; isolation: isolate; }
.jg-tech-hero::before,
.jg-tech-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 2px solid rgba(22, 197, 229, .2);
  border-radius: 999px;
}
.jg-tech-hero::before { width: 34rem; height: 34rem; right: -13rem; top: -18rem; }
.jg-tech-hero::after { width: 18rem; height: 18rem; left: 42%; bottom: -12rem; }
.jg-tech-hero h1 { max-width: 15ch; }
.jg-tech-hero-image {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
}
.jg-tech-hero-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.jg-tech-button-primary .wp-block-button__link {
  background: #16c5e5;
  color: #07182f;
  border: 2px solid #16c5e5;
}
.jg-tech-button-primary .wp-block-button__link:hover { background: #7be7f3; border-color: #7be7f3; }
.jg-tech-button-secondary .wp-block-button__link {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.jg-tech-button-secondary .wp-block-button__link:hover { background: #fff; color: #07182f; }

.jg-tech-eyebrow,
.jg-eyebrow {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 800;
}
.jg-tech-services-grid,
.jg-tech-capabilities-grid,
.jg-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 2.5rem;
}
.jg-tech-service-card {
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
  padding: 28px;
  background: #fff;
  border: 1px solid #dfe7ee;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(7, 24, 47, .06);
}
.jg-tech-service-card h3,
.jg-tech-capability-card h3,
.jg-tech-benefit-card h3,
.jg-tech-process-item h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.25;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  white-space: normal;
}
.jg-tech-number,
.jg-tech-process-number {
  width: 48px;
  min-height: 42px;
  display: grid;
  place-items: center;
  margin: 0 0 1rem;
  border-radius: 12px;
  background: #ddf8fc;
  color: #0b2343;
  font-weight: 800;
}
.jg-tech-capability-card {
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid #dfe7ee;
  border-radius: 14px;
}

.jg-tech-measurements { border-block: 1px solid #b7ebf3; }
.jg-tech-measurements-list {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid #b7dfe7;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(7, 24, 47, .08);
}
.jg-tech-measurements-list li { margin-block: .55rem; }

.jg-tech-benefits h2 { max-width: 18ch; }
.jg-tech-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 2.5rem;
}
.jg-tech-benefit-card {
  min-width: 0;
  height: 100%;
  padding: 26px;
  color: #fff;
  background: #12365f;
  border: 1px solid rgba(22, 197, 229, .35);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}
.jg-tech-benefit-card h3 { color: #fff; }
.jg-tech-benefit-card .jg-tech-number { background: #16c5e5; color: #07182f; }

.jg-tech-process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 2.5rem;
}
.jg-tech-process-item {
  min-width: 0;
  padding: 22px;
  background: #f5f7fa;
  border-top: 4px solid #16c5e5;
  border-radius: 0 0 14px 14px;
}
.jg-tech-process-number { color: #0b2343; background: transparent; justify-items: start; font-size: 1.4rem; }

.jg-tech-project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  border: 1px solid #dfe7ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7, 24, 47, .07);
}
.jg-project-image {
  width: 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9eef3;
}
.jg-project-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.jg-tech-project-card__body {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  padding: 26px 26px 28px;
}
.jg-tech-project-card__body :is(h2, h3) {
  margin: 0 0 12px;
  font-size: clamp(1.375rem, 1.55vw, 1.75rem) !important;
  line-height: 1.2;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  white-space: normal;
}
.jg-tech-project-card__body p {
  margin: 0;
  color: #344256;
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  line-height: 1.6;
}

.jg-tech-contact-panel {
  box-sizing: border-box;
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  background: rgba(7, 24, 47, .28);
}
.jg-contact-list { list-style: none; padding-left: 0; }
.jg-contact-list li { margin-block: .65rem; }
.jg-tech-contact a,
.jg-footer a { color: #fff; }
.jg-tech-contact a:hover,
.jg-footer a:hover { color: #7be7f3; }

.jg-tech-site-credit {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 20px;
  color: #d7e1ec;
  background: #041326;
  font-size: .875rem;
  line-height: 1.45;
  text-align: center;
}
.jg-tech-site-credit p { margin: 0; }
.jg-tech-site-credit a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #16c5e5;
  text-decoration-thickness: 1px;
}
.jg-tech-site-credit a:hover {
  color: #7be7f3;
  text-decoration-thickness: 2px;
}
.jg-tech-site-credit a:focus-visible {
  color: #fff;
  outline: 3px solid #16c5e5;
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 1023px) {
  .jg-tech-services-grid,
  .jg-tech-capabilities-grid,
  .jg-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jg-tech-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jg-tech-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header .wp-block-buttons { display: none; }
  .site-logo img { height: 52px !important; }
  .jg-tech-hero-layout { gap: 2rem; }
  .jg-tech-hero h1 { max-width: 18ch; }
  .jg-tech-hero-image { max-height: 520px; aspect-ratio: 4 / 3; }
  .jg-tech-hero-actions,
  .jg-tech-contact-actions { justify-content: flex-start; }
  .jg-tech-process { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .jg-tech-services-grid,
  .jg-tech-capabilities-grid,
  .jg-tech-benefits-grid,
  .jg-project-grid { grid-template-columns: 1fr; }
  .jg-tech-service-card { padding: 28px; }
  .jg-tech-hero-actions .wp-block-button,
  .jg-tech-contact-actions .wp-block-button { width: 100%; }
  .jg-tech-hero-actions .wp-block-button__link,
  .jg-tech-contact-actions .wp-block-button__link { width: 100%; }
  .jg-tech-project-card__body { padding: 20px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
