/*
Theme Name: TAOS Block
Theme URI: https://meblomis.pl
Author: Ireneusz Drózd
Description: Lekki, autorski motyw blokowy przygotowany dla strony Meblomis.
Version: 2.1.1
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: taos-block
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: block-patterns, full-site-editing, custom-colors, custom-logo, editor-style, wide-blocks
*/

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

html {
  scroll-behavior: smooth;
}

body {
  font-kerning: normal;
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

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

a {
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--wp--preset--color--accent);
  outline-offset: 3px;
}

.wp-site-blocks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.site-header {
  border-bottom: 1px solid var(--wp--preset--color--line);
}

.site-header__inner {
  gap: clamp(1rem, 3vw, 2.5rem);
}

.site-header__logo {
  flex: 0 1 260px;
  line-height: 0;
  margin: 0;
}

.site-header__logo img {
  display: block;
  height: auto;
  max-width: 100%;
  width: 260px;
}

.site-header .wp-block-navigation-item__content {
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
}

.site-header .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--accent);
}

.site-header__navigation .wp-block-navigation__container {
  column-gap: clamp(1rem, 2.1vw, 2rem);
}

.site-header__navigation .wp-block-navigation__submenu-container {
  border: 1px solid var(--wp--preset--color--line) !important;
  border-radius: 0.75rem;
  box-shadow: 0 1rem 3rem rgba(20, 29, 25, 0.12);
  min-width: 15rem !important;
  overflow: hidden;
  padding: 0.4rem;
}

.site-header__navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  border-radius: 0.45rem;
  padding: 0.65rem 0.8rem;
}

.site-header__navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: var(--wp--preset--color--canvas);
}

.site-footer {
  border-top: 1px solid var(--wp--preset--color--line);
  margin-top: 0 !important;
}

.site-footer__grid {
  align-items: flex-start !important;
}

.site-footer__logo {
  line-height: 0;
  margin-bottom: 1.25rem;
}

.site-footer__logo img {
  height: auto;
  width: 220px;
}

.site-footer h3 {
  font-size: 1rem;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  margin-top: 0;
}

.site-footer p,
.site-footer__address {
  color: var(--wp--preset--color--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.site-footer__address {
  font-style: normal;
}

.site-footer__address strong {
  color: var(--wp--preset--color--ink);
}

.site-footer__address span {
  font-size: 0.82rem;
}

.site-footer__local {
  font-weight: 650;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li {
  margin-bottom: 0.55rem;
}

.site-footer__links a,
.site-footer__contact a,
.site-footer__map a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__contact a:hover,
.site-footer__map a:hover {
  color: #0758a8;
  text-decoration: underline;
}

.site-footer__contact a {
  font-weight: 650;
}

.site-footer__map a {
  font-weight: 750;
}

.site-footer__bottom {
  border-top: 1px solid var(--wp--preset--color--line);
  margin-top: clamp(2rem, 4vw, 3rem) !important;
  padding-top: 1.25rem;
}

.site-footer__bottom p {
  margin: 0;
}

.taos-card {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(20, 29, 25, 0.06);
}

/* Service pages */
.service-page {
  overflow: clip;
}

.service-hero {
  background: linear-gradient(135deg, #eef6ff 0%, #ffffff 52%, #f5f3ed 100%);
  border-bottom: 1px solid var(--wp--preset--color--line);
}

.service-hero__grid {
  align-items: center;
}

.service-eyebrow {
  color: #0758a8;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.service-hero h1 {
  font-size: clamp(2.25rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-top: 0;
  max-width: none;
}

.service-lead {
  color: var(--wp--preset--color--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  max-width: 60ch;
}

.service-hero__image img,
.service-feature-image img {
  border-radius: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 1.5rem 4rem rgba(19, 49, 81, 0.16);
  display: block;
  width: 100%;
}

.service-video {
  margin: 0;
}

.service-video video {
  aspect-ratio: 16 / 9;
  background: #101820;
  border-radius: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 1.5rem 4rem rgba(19, 49, 81, 0.16);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.service-video figcaption {
  color: var(--wp--preset--color--muted);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  text-align: center;
}

.service-trust-list {
  color: var(--wp--preset--color--ink);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 650;
  gap: 0.55rem 1.25rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.service-trust-list li::before {
  color: #0874d1;
  content: "✓";
  font-weight: 800;
  margin-right: 0.45rem;
}

.service-section {
  padding-bottom: clamp(3.5rem, 7vw, 7rem);
  padding-top: clamp(3.5rem, 7vw, 7rem);
}

.service-section--tint {
  background: var(--wp--preset--color--canvas);
}

.service-section h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-top: 0;
}

.service-card-grid {
  align-items: stretch;
}

.service-card {
  background: var(--wp--preset--color--paper);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 1rem;
  height: 100%;
  padding: clamp(1.35rem, 2.5vw, 2rem);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  margin-top: 0;
}

.service-card p:last-child {
  margin-bottom: 0;
}

.service-benefits {
  list-style: none;
  padding-left: 0;
}

.service-benefits li {
  border-bottom: 1px solid var(--wp--preset--color--line);
  padding: 0.85rem 0 0.85rem 2rem;
  position: relative;
}

.service-benefits li::before {
  color: #0874d1;
  content: "✓";
  font-weight: 800;
  left: 0;
  position: absolute;
}

.service-process {
  counter-reset: service-step;
}

.service-step {
  counter-increment: service-step;
  padding-left: 4rem;
  position: relative;
}

.service-step::before {
  align-items: center;
  background: #0868ce;
  border-radius: 999px;
  color: #fff;
  content: counter(service-step);
  display: flex;
  font-size: 1rem;
  font-weight: 750;
  height: 2.75rem;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  width: 2.75rem;
}

.service-step h3 {
  font-weight: 750;
  letter-spacing: -0.015em;
}

.service-cta {
  background: linear-gradient(135deg, #0758a8, #086fd7);
  border-radius: clamp(1rem, 2vw, 1.5rem);
  color: #fff;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.service-cta h2,
.service-cta p {
  color: inherit;
}

.service-cta .wp-block-button__link {
  background: #fff;
  color: #0758a8;
}

.service-faq details {
  border-bottom: 1px solid var(--wp--preset--color--line);
  padding: 1.15rem 0;
}

.service-faq summary {
  cursor: pointer;
  font-weight: 700;
  padding-right: 2rem;
}

.service-faq details p {
  color: var(--wp--preset--color--muted);
  margin-bottom: 0;
}

/* Contact page */
.contact-page {
  overflow: clip;
}

.contact-hero {
  background: linear-gradient(135deg, #eef6ff 0%, #fff 58%, #f5f3ed 100%);
  border-bottom: 1px solid var(--wp--preset--color--line);
}

.contact-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  margin-top: 0;
}

.contact-grid {
  align-items: stretch;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 1.25rem;
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.contact-card--primary {
  background: linear-gradient(145deg, #0758a8, #0875de);
  border: 0;
  color: #fff;
}

.contact-card--primary h2,
.contact-card--primary p,
.contact-card--primary a {
  color: inherit;
}

.contact-card h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin-top: 0;
}

.contact-link {
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 0;
}

.contact-link:last-child {
  border-bottom: 0;
}

.contact-link small {
  opacity: 0.78;
}

.contact-link a {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 750;
  text-decoration-thickness: 1px;
}

.contact-details {
  margin: 0;
}

.contact-details div {
  border-bottom: 1px solid var(--wp--preset--color--line);
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 0;
}

.contact-details div:last-child {
  border-bottom: 0;
}

.contact-details dt {
  color: var(--wp--preset--color--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-details dd {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0;
}

.contact-map {
  background: var(--wp--preset--color--canvas);
  border-radius: 1.25rem;
  min-height: 480px;
  overflow: hidden;
}

.contact-map iframe {
  border: 0;
  display: block;
  height: 100%;
  min-height: 480px;
  width: 100%;
}

.contact-note {
  color: var(--wp--preset--color--muted);
  font-size: 0.9rem;
}

/* About page */
.about-page {
  overflow: clip;
}

.about-hero {
  background: linear-gradient(135deg, #eef6ff 0%, #fff 55%, #f4f1e9 100%);
  border-bottom: 1px solid var(--wp--preset--color--line);
}

.about-hero h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-top: 0;
  max-width: 15ch;
}

.about-lead {
  color: var(--wp--preset--color--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  max-width: 58ch;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.about-fact {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--wp--preset--color--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(7.5rem, auto) 1fr;
  padding: clamp(1rem, 2.5vw, 1.6rem);
}

.about-fact:last-child {
  border-bottom: 0;
}

.about-fact strong {
  color: #0758a8;
  display: block;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.about-fact span {
  color: var(--wp--preset--color--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.about-photo-placeholder {
  align-items: center;
  background: linear-gradient(145deg, #e9f3ff, #d8e9f9);
  border: 1px dashed #7ea7ce;
  border-radius: 1.25rem;
  color: #164f83;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(320px, 42vw, 520px);
  padding: 2rem;
  text-align: center;
}

.about-photo-placeholder::before {
  border: 2px solid currentColor;
  border-radius: 0.7rem;
  content: "";
  height: 3rem;
  margin-bottom: 1.2rem;
  opacity: 0.55;
  width: 4rem;
}

.about-photo-placeholder strong {
  font-size: 1.15rem;
}

.about-photo-placeholder span {
  font-size: 0.9rem;
  margin-top: 0.35rem;
  opacity: 0.75;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  aspect-ratio: 4 / 3;
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 4rem rgba(19, 49, 81, 0.16);
  display: block;
  object-fit: cover;
  width: 100%;
}

.about-photo figcaption {
  color: var(--wp--preset--color--muted);
  font-size: 0.85rem;
  margin-top: 0.7rem;
  text-align: left;
}

.about-card,
.about-review {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 1rem;
  height: 100%;
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
}

.about-card h3 {
  font-size: 1.18rem;
  margin-top: 0;
}

.about-card p,
.about-review p {
  color: var(--wp--preset--color--muted);
  line-height: 1.7;
}

.about-review {
  background: #fff;
  box-shadow: 0 1rem 3rem rgba(20, 29, 25, 0.06);
  margin: 0;
}

.about-review p:first-child {
  color: #0758a8;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 0.7rem;
}

.about-review cite {
  font-style: normal;
  font-weight: 750;
}

.about-machine-links a {
  font-weight: 700;
  text-decoration: none;
}

.about-cta {
  background: #123b64;
  border-radius: 1.25rem;
  color: #fff;
}

/* Production page */
.production-page {
  overflow: clip;
}

.production-gallery img,
.production-image img {
  border-radius: 1.15rem;
  box-shadow: 0 1.25rem 3.5rem rgba(19, 49, 81, 0.14);
  display: block;
  object-fit: cover;
  width: 100%;
}

.production-image img {
  aspect-ratio: 4 / 3;
}

.production-gallery img {
  aspect-ratio: 4 / 3;
}

.production-gallery figcaption,
.production-image figcaption {
  color: var(--wp--preset--color--muted);
  font-size: 0.84rem;
  text-align: left;
}

.production-placeholder {
  align-items: center;
  background: linear-gradient(145deg, #e9f3ff, #d8e9f9);
  border: 1px dashed #7ea7ce;
  border-radius: 1.15rem;
  color: #164f83;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 390px;
  padding: 2rem;
  text-align: center;
}

.production-placeholder::before {
  border: 2px solid currentColor;
  border-radius: 0.7rem;
  content: "";
  height: 3rem;
  margin-bottom: 1rem;
  opacity: 0.55;
  width: 4rem;
}

.production-placeholder strong {
  font-size: 1.08rem;
}

.production-placeholder span {
  font-size: 0.86rem;
  margin-top: 0.35rem;
  opacity: 0.78;
}

.production-process {
  counter-reset: production-step;
}

.production-process .about-card {
  counter-increment: production-step;
  position: relative;
}

.production-process .about-card::before {
  color: #0758a8;
  content: "0" counter(production-step);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

/* Sales page */
.sales-page {
  overflow: clip;
}

.sales-placeholder {
  min-height: 260px;
}

.sales-placeholder--hero {
  min-height: clamp(340px, 35vw, 470px);
}

.sales-image {
  margin: 0;
  overflow: hidden;
}

.sales-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sales-image--hero {
  border-radius: 1.25rem;
  height: clamp(340px, 35vw, 470px);
}

.sales-image--card {
  height: 260px;
}

.sales-product-card {
  height: 100%;
}

.sales-product-card .sales-placeholder {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.sales-product-card .sales-image {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.sales-product-card__body {
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
}

.sales-product-card__body h3 {
  margin-top: 0;
}

.sales-audience {
  background: #123b64;
  border-radius: 1.25rem;
  color: #fff;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.sales-audience h2,
.sales-audience p {
  color: inherit;
}

/* Homepage */
.home-page {
  overflow: clip;
}

.home-hero {
  background: linear-gradient(135deg, #eaf4ff 0%, #fff 56%, #f5f3ed 100%);
  border-bottom: 1px solid var(--wp--preset--color--line);
}

.home-hero h1 {
  font-size: clamp(2.45rem, 4.7vw, 4.25rem);
  font-weight: 820;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-top: 0;
  max-width: 14ch;
}

.home-hero__image {
  margin: 0;
  position: relative;
}

.home-hero__image img {
  aspect-ratio: 4 / 3;
  border-radius: 1.5rem;
  box-shadow: 0 2rem 5rem rgba(19, 49, 81, 0.2);
  display: block;
  object-fit: cover;
  width: 100%;
}

.home-proof {
  background: #123b64;
  color: #fff;
}

.home-proof__grid {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.home-proof__item {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.home-proof__item:last-child {
  border-right: 0;
}

.home-proof__item strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.home-proof__item span {
  display: block;
  font-size: 0.88rem;
  margin-top: 0.3rem;
  opacity: 0.78;
}

.home-path-card {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 1.15rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-path-card:hover {
  box-shadow: 0 1.5rem 4rem rgba(19, 49, 81, 0.11);
  transform: translateY(-4px);
}

.home-path-card__number {
  color: #0874d1;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.home-path-card h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  margin-bottom: 0;
}

.home-path-card p {
  color: var(--wp--preset--color--muted);
}

.home-path-card p:last-child {
  margin-top: auto;
}

.home-path-card a {
  font-weight: 750;
  text-decoration: none;
}

.home-realization img,
.home-service-image img,
.home-about-image img {
  display: block;
  object-fit: cover;
  width: 100%;
}

.home-realization img {
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
}

.home-realization h3 {
  font-size: 1.12rem;
  margin-top: 1rem;
}

.home-service-card {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 1rem;
  height: 100%;
  overflow: hidden;
}

.home-service-image {
  margin: 0;
}

.home-service-image img {
  aspect-ratio: 16 / 10;
}

.home-service-card__body {
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
}

.home-service-card__body h3 {
  margin-top: 0;
}

.home-service-card__body a {
  font-weight: 750;
  text-decoration: none;
}

.home-about-image {
  margin: 0;
}

.home-about-image img {
  aspect-ratio: 4 / 3;
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 4rem rgba(19, 49, 81, 0.14);
}

.home-review {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 1rem;
  height: 100%;
  margin: 0;
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
}

.home-review::before {
  color: #0874d1;
  content: "„";
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 0.8;
}

.home-review p {
  color: var(--wp--preset--color--muted);
}

.home-review cite {
  font-style: normal;
  font-weight: 750;
}

.home-final-cta {
  background: linear-gradient(135deg, #0758a8, #0874d1);
  border-radius: 1.4rem;
  color: #fff;
}

.home-final-cta h2,
.home-final-cta p {
  color: inherit;
}

@media (max-width: 900px) {
  .home-proof__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-proof__item:nth-child(2) {
    border-right: 0;
  }

  .home-proof__item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-bottom: 0.75rem !important;
    padding-top: 0.75rem !important;
  }

  .site-header__inner {
    gap: 0.75rem;
  }

  .site-header__logo,
  .site-header__logo img {
    width: clamp(170px, 55vw, 220px);
  }

  .service-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .service-trust-list {
    display: grid;
  }

  .service-step {
    padding-left: 3.5rem;
  }

  .contact-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .contact-map,
  .contact-map iframe {
    min-height: 360px;
  }

  .about-hero h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .about-photo-placeholder {
    min-height: 280px;
  }

  .home-hero h1 {
    font-size: clamp(2.15rem, 10.5vw, 3rem);
  }

  .home-proof__grid {
    grid-template-columns: 1fr;
  }

  .home-proof__item,
  .home-proof__item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 0;
  }

  .home-proof__item:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
