/*
Theme Name: gk-meble
Theme URI: https://gk-meble.pl
Author: Łukasz Stokłosa
Description: Uproszczony motyw WordPress dla GK Meble oparty na natywnych blokach Gutenberg.
Version: 1.3.7
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: gk-meble
*/

:root {
  --gk-dark: #1f2937;
  --gk-muted: #6b7280;
  --gk-light: #f8f9fa;
  --gk-accent: #c8a97e;
  --gk-accent-dark: #a98757;
  --gk-border: #e5e7eb;
  --gk-shell: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gk-dark);
  background: #fff;
}

a {
  color: inherit;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
}

.gk-shell {
  width: min(var(--gk-shell), calc(100% - 32px));
  margin: 0 auto;
}

.alignwide,
.alignfull {
  width: 100%;
}

.alignwide {
  max-width: var(--gk-shell);
  margin-right: auto;
  margin-left: auto;
}

.alignfull {
  max-width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 92px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-branding img,
.site-branding .custom-logo {
  height: 80px !important;
  width: auto;
  max-height: none;
}

.gk-menu-panel {
  display: flex;
  align-items: center;
}

.gk-menu-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gk-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gk-menu a {
  text-decoration: none;
  color: var(--gk-dark);
}

.gk-menu a:hover,
.gk-menu a:focus {
  color: var(--gk-accent-dark);
}

.gk-header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.gk-header-phone,
.gk-menu-toggle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gk-header-phone {
  background: var(--gk-accent);
  border: 1px solid var(--gk-accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(200, 169, 126, 0.28);
}

.gk-header-phone:hover,
.gk-header-phone:focus {
  background: var(--gk-accent-dark);
  border-color: var(--gk-accent-dark);
  color: #fff;
}

.gk-menu-toggle {
  display: none;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.gk-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gk-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-menu-open .gk-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .gk-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .gk-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.gk-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 0.95rem;
  padding: 0.95rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.gk-button--primary {
  background: var(--gk-accent);
  border: 1px solid var(--gk-accent);
  color: #fff;
}

.gk-button--primary:hover,
.gk-button--primary:focus {
  background: var(--gk-accent-dark);
  border-color: var(--gk-accent-dark);
  color: #fff;
}

.gk-social-link {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(169, 135, 87, 0.35);
  background: rgba(200, 169, 126, 0.12);
  color: var(--gk-accent-dark);
  text-decoration: none;
}

.gk-social-link:hover,
.gk-social-link:focus {
  background: #000;
  border-color: #000;
  color: #fff;
}

.gk-block-content {
  overflow: hidden;
}

.gk-section {
  padding: 90px 0;
}

.gk-section-cta {
  padding-top: 0;
}

.gk-section-light {
  background: var(--gk-light);
}

.gk-section-head {
  margin-bottom: 3rem;
}

.gk-section-head.is-centered {
  text-align: center;
}

#realizacje .gk-section-head,
#realizacje .gk-section-head .gk-section-title,
#realizacje .gk-section-head p {
  text-align: center;
}

.gk-section .has-small-font-size {
  font-size: 0.95rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.section-title,
.gk-section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 1rem;
}

.gk-muted {
  color: var(--gk-muted);
}

.gk-home-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 720px;
  padding: 140px 0 110px;
  background:
    linear-gradient(rgba(20, 20, 20, 0.55), rgba(20, 20, 20, 0.55)),
    var(--gk-hero-image) center/cover no-repeat;
}

.gk-home-hero__content {
  max-width: 820px;
  margin-right: auto;
  margin-left: 0;
}

.gk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
}

.gk-home-hero .gk-section-title {
  max-width: 980px;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: #fff;
  margin: 1rem 0 1rem;
}

.gk-home-hero .gk-hero-copy,
.gk-home-hero .gk-muted {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.125rem;
}

.gk-home-hero .gk-badge i {
  font-size: 1rem;
}

.gk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.gk-home-hero .gk-hero-actions .wp-block-button:first-child .wp-block-button__link {
  background: var(--gk-accent) !important;
  border: 1px solid var(--gk-accent) !important;
  color: #fff !important;
}

.gk-home-hero .gk-hero-actions .wp-block-button:first-child .wp-block-button__link:hover,
.gk-home-hero .gk-hero-actions .wp-block-button:first-child .wp-block-button__link:focus {
  background: var(--gk-accent-dark) !important;
  border-color: var(--gk-accent-dark) !important;
}

.gk-home-hero .gk-hero-actions .is-style-outline .wp-block-button__link,
.gk-home-hero .gk-hero-actions .wp-block-button:nth-child(2) .wp-block-button__link {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  color: #fff !important;
}

.gk-home-hero .gk-hero-actions .is-style-outline .wp-block-button__link:hover,
.gk-home-hero .gk-hero-actions .is-style-outline .wp-block-button__link:focus,
.gk-home-hero .gk-hero-actions .wp-block-button:nth-child(2) .wp-block-button__link:hover,
.gk-home-hero .gk-hero-actions .wp-block-button:nth-child(2) .wp-block-button__link:focus {
  background: rgba(255, 255, 255, 0.12) !important;
}

.gk-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gk-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1rem;
}

.gk-stat strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.gk-stat span {
  color: rgba(255, 255, 255, 0.86);
}

.gk-about-box {
  background: var(--gk-light);
  border: 1px solid var(--gk-border);
  border-radius: 1.5rem;
  padding: 2rem;
  height: 100%;
}

.gk-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gk-check-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--gk-muted);
}

.gk-check-list i {
  color: #198754;
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.gk-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(200, 169, 126, 0.14);
  color: var(--gk-accent-dark);
  margin-bottom: 1rem;
}

.gk-card,
.gk-gallery-card,
.gk-cta-box {
  height: 100%;
  background: #fff;
  border: 1px solid var(--gk-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.gk-card--center {
  text-align: center;
}

.gk-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.gk-gallery-card {
  overflow: hidden;
  padding: 0;
}

#realizacje .wp-block-columns {
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

#realizacje .wp-block-column {
  min-width: 0;
}

.gk-gallery-card img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
  cursor: zoom-in;
}

.gk-gallery-card .wp-element-caption,
.gk-gallery-card figcaption {
  padding: 1rem 1.25rem;
  color: var(--gk-muted);
}

.gk-cta-box {
  background: linear-gradient(135deg, #222 0%, #3a3a3a 100%);
  color: #fff;
  border-radius: 1.75rem;
  padding: 3rem;
}

.gk-cta-box .gk-section-title {
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin-bottom: 1rem;
}

.gk-cta-box .gk-muted {
  color: rgba(255, 255, 255, 0.82);
}

.gk-cta-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.gk-contact-form-title {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

#kontakt .wpcf7 {
  margin-top: 1.25rem;
}

#kontakt .wpcf7 form {
  display: block;
}

#kontakt .wpcf7 form label {
  display: block;
  margin-bottom: 1rem;
  color: var(--gk-dark);
  font-weight: 600;
}

#kontakt .wpcf7 form p {
  margin: 0 0 1rem;
}

#kontakt .wpcf7 .gk-cf7-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

#kontakt .wpcf7 .gk-cf7-col,
#kontakt .wpcf7 .gk-cf7-col-full {
  min-width: 0;
}

#kontakt .wpcf7 .gk-cf7-col-full {
  grid-column: 1 / -1;
}

#kontakt .wpcf7 input[type="text"],
#kontakt .wpcf7 input[type="email"],
#kontakt .wpcf7 input[type="tel"],
#kontakt .wpcf7 textarea,
#kontakt .wpcf7 .gk-form-control {
  width: 100%;
  margin-top: 0.45rem;
  border: 1px solid var(--gk-border);
  border-radius: 0.95rem;
  padding: 0.95rem 1rem;
  background: #fff;
  color: var(--gk-dark);
  font: inherit;
  box-shadow: none;
}

#kontakt .wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

#kontakt .wpcf7 input[type="text"]:focus,
#kontakt .wpcf7 input[type="email"]:focus,
#kontakt .wpcf7 input[type="tel"]:focus,
#kontakt .wpcf7 textarea:focus,
#kontakt .wpcf7 .gk-form-control:focus {
  outline: none;
  border-color: var(--gk-accent);
  box-shadow: 0 0 0 4px rgba(200, 169, 126, 0.12);
}

#kontakt .wpcf7 .wpcf7-submit,
#kontakt .wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid var(--gk-accent);
  border-radius: 0.95rem;
  padding: 0.95rem 1.5rem;
  background: var(--gk-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#kontakt .wpcf7 .wpcf7-submit:hover,
#kontakt .wpcf7 .wpcf7-submit:focus,
#kontakt .wpcf7 input[type="submit"]:hover,
#kontakt .wpcf7 input[type="submit"]:focus {
  background: var(--gk-accent-dark);
  border-color: var(--gk-accent-dark);
}

.gk-contact-phone-list a {
  display: inline-block;
}

.gk-contact-phone-list a + br + a {
  margin-top: 0.35rem;
}

#kontakt .wpcf7 .wpcf7-spinner {
  margin: 0 0 0 0.75rem;
}

#kontakt .wpcf7 .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  font-size: 0.95rem;
}

#kontakt .wpcf7-not-valid-tip {
  margin-top: 0.45rem;
  font-size: 0.875rem;
}

#kontakt .gk-card a {
  color: inherit;
  text-decoration: none;
}

#kontakt .gk-card a:hover,
#kontakt .gk-card a:focus {
  color: var(--gk-accent-dark);
}

.gk-footer {
  background: #000;
  color: rgba(255, 255, 255, 0.8);
  padding: 28px 0;
}

.gk-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.gk-footer a:hover,
.gk-footer a:focus {
  color: #fff;
}

.gk-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.gk-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.9);
}

.gk-lightbox.is-open {
  display: flex;
}

.gk-lightbox__dialog {
  position: relative;
  width: min(92vw, 1200px);
  max-height: 92vh;
}

.gk-lightbox__image {
  display: block;
  width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.gk-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gk-lightbox__close:hover,
.gk-lightbox__close:focus {
  background: rgba(0, 0, 0, 0.96);
}

.gk-empty-home {
  padding: 96px 0;
}

.gk-empty-home__box {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--gk-border);
  border-radius: 1.5rem;
  padding: 2rem;
  background: var(--gk-light);
}

@media (max-width: 1236px) {
  .alignfull.gk-home-hero,
  .alignfull.gk-section,
  .gk-section,
  .gk-footer {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 991.98px) {
  .gk-header-actions,
  .gk-menu-toggle {
    display: inline-flex;
  }

  .gk-menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 30;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  }

  .site-header.is-menu-open .gk-menu-panel {
    display: block;
  }

  .gk-menu-wrap {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .gk-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .gk-menu li,
  .gk-menu a,
  .gk-menu-wrap .gk-button,
  .gk-menu-wrap .gk-social-link {
    width: 100%;
  }

  .gk-social-link {
    justify-content: center;
  }

  .gk-about-box {
    padding: 1.5rem;
  }

  .gk-cta-box {
    padding: 2rem;
  }

  .gk-cta-action {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .alignfull {
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .gk-shell {
    width: min(var(--gk-shell), calc(100% - 24px));
  }

  .gk-home-hero {
    min-height: 620px;
    padding: 120px 0 80px;
  }

  .gk-home-hero__content,
  .gk-home-hero .gk-hero-copy,
  .gk-home-hero .gk-muted {
    max-width: 100%;
  }

  .gk-section {
    padding: 72px 0;
  }

  .gk-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .gk-stat-grid,
  .wp-block-columns.gk-stat-grid {
    grid-template-columns: 1fr;
  }

  #realizacje .wp-block-columns {
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .gk-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  #kontakt .wpcf7 .gk-cf7-row {
    grid-template-columns: 1fr;
  }

  .gk-lightbox {
    padding: 16px;
  }
}
