/*
Theme Name: Knotty Crafts
Theme URI: https://knottycrafts.example
Author: Knotty Crafts Co.
Description: Lekki, autorski motyw dla pracowni rękodzielniczej Knotty Crafts Co. — Handmade with love.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: knotty-crafts
Tags: custom-logo, custom-menu, one-column
*/

:root {
  --cream: #fbf3ea;
  --cream-soft: #f7e9dc;
  --cream-deep: #f2e0cf;
  --rose: #d89a98;
  --rose-soft: #eec9c4;
  --rose-dark: #b97c79;
  --brown: #45291f;
  --brown-mid: #6e4d3e;
  --sage: #96a383;
  --sage-dark: #7c8a69;
  --dash: rgba(69, 41, 31, 0.28);
  --shadow: 0 10px 30px rgba(69, 41, 31, 0.08);
  --radius: 24px;
  --font-serif: "Playfair Display", "Georgia", serif;
  --font-script: "Great Vibes", cursive;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown-mid);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--brown);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

a { color: var(--rose-dark); text-decoration-color: var(--rose-soft); }
a:hover { color: var(--brown); }

.container {
  width: min(1080px, 92vw);
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  word-wrap: normal !important;
}

.skip-link:focus {
  position: fixed; top: 8px; left: 8px;
  width: auto; height: auto; clip: auto;
  background: var(--brown); color: var(--cream);
  padding: 0.6em 1em; border-radius: 8px; z-index: 999;
}

/* ---------- Decorative helpers ---------- */

.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--rose-dark);
}

.section-title {
  text-align: center;
  margin-bottom: 0.2em;
}

.section-title .script {
  display: block;
  font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 1.1;
}

.heart-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0.8rem auto 2rem;
  color: var(--rose);
}

.heart-divider::before,
.heart-divider::after {
  content: "";
  width: 90px;
  border-top: 1px solid var(--rose);
}

.heart-divider svg { width: 18px; height: 18px; fill: var(--rose); }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.9em 1.9em;
  border-radius: 999px;
  border: 2px solid var(--brown);
  color: var(--brown);
  background: transparent;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn:hover { background: var(--brown); color: var(--cream); transform: translateY(-1px); }

.btn--rose {
  border-color: var(--rose-dark);
  background: var(--rose-dark);
  color: #fff;
}

.btn--rose:hover { background: var(--brown); border-color: var(--brown); color: var(--cream); }

/* ---------- Header ---------- */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid rgba(69, 41, 31, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.custom-logo-link { display: block; line-height: 0; flex: 0 0 auto; }

img.custom-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
}

.site-brand__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brown);
  line-height: 1.1;
}

.site-brand__tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brown-mid);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--brown);
  border-radius: 10px;
  padding: 0.45em 0.6em;
  cursor: pointer;
  color: var(--brown);
}

.nav-toggle svg { width: 22px; height: 22px; display: block; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  border-bottom-color: var(--rose);
  color: var(--rose-dark);
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid rgba(69, 41, 31, 0.1);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 4vw 1rem;
  }

  .site-nav a { display: block; padding: 0.7em 0; }
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(circle at 12% 18%, rgba(238, 201, 196, 0.35), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(150, 163, 131, 0.22), transparent 30%),
    var(--cream);
}

.hero .script {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  display: block;
  margin-bottom: 0.15em;
}

.hero p {
  max-width: 34em;
  margin: 0 auto 1.8rem;
}

.hero__actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */

.section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.section--alt { background: var(--cream-soft); }

/* USP cards */

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.usp {
  text-align: center;
  background: var(--cream);
  border: 2px dashed var(--dash);
  border-radius: var(--radius);
  padding: 1.8rem 1.3rem;
}

.usp__icon {
  width: 58px; height: 58px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  background: var(--rose-soft);
  border-radius: 50%;
  color: var(--brown);
}

.usp__icon svg { width: 28px; height: 28px; }

.usp h3 {
  font-size: 0.85rem;
  font-family: var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.usp p { font-size: 0.92rem; margin: 0; }

/* ---------- Price list ---------- */

.price-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--cream);
  border: 2px dashed var(--dash);
  border-radius: var(--radius);
  padding: 1.1rem 1.6rem;
}

.price-row__label { flex: 1; }

.price-row__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown);
  display: block;
  line-height: 1.2;
}

.price-row__desc {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-dark);
}

.price-row__heart { color: var(--rose); flex: 0 0 auto; }
.price-row__heart svg { width: 18px; height: 18px; display: block; }

.price-row__value {
  flex: 1;
  text-align: right;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brown);
  white-space: nowrap;
}

.price-note {
  text-align: center;
  margin-top: 2.2rem;
}

.price-note .script { font-size: 1.9rem; line-height: 1.3; }

@media (max-width: 480px) {
  .price-row { padding: 1rem 1.1rem; }
  .price-row__name { font-size: 1.05rem; }
  .price-row__value { font-size: 1.2rem; }
}

/* ---------- Content / pages ---------- */

.page-head {
  text-align: center;
  padding: clamp(2.2rem, 6vw, 3.5rem) 0 0;
}

.entry-content {
  max-width: 760px;
  margin: 0 auto;
}

.entry-content > .wp-block-gallery,
.entry-content > .wp-block-image {
  max-width: none;
}

.wp-block-gallery img,
.wp-block-image img {
  border-radius: var(--radius);
}

.wp-block-quote {
  border-left: 3px solid var(--rose);
  margin-left: 0;
  padding-left: 1.2em;
  font-style: italic;
}

/* Contact cards */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  max-width: 860px;
  margin: 2rem auto 0;
}

.contact-card {
  text-align: center;
  background: var(--cream);
  border: 2px dashed var(--dash);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
}

.contact-card svg { width: 30px; height: 30px; color: var(--rose-dark); margin-bottom: 0.6rem; }

.contact-card h3 {
  font-size: 0.82rem;
  font-family: var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.3em;
}

.contact-card a { font-weight: 700; word-break: break-word; }

/* Contact form (np. Contact Form 7) */

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content textarea {
  width: 100%;
  font: inherit;
  color: var(--brown);
  background: #fff;
  border: 2px dashed var(--dash);
  border-radius: 14px;
  padding: 0.7em 1em;
}

.entry-content input:focus,
.entry-content textarea:focus {
  outline: 2px solid var(--rose);
  border-color: transparent;
}

.entry-content input[type="submit"],
.entry-content button[type="submit"] {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.9em 1.9em;
  border-radius: 999px;
  border: 2px solid var(--rose-dark);
  background: var(--rose-dark);
  color: #fff;
}

.entry-content input[type="submit"]:hover,
.entry-content button[type="submit"]:hover {
  background: var(--brown);
  border-color: var(--brown);
}

/* Blog fallback */

.post-list { display: grid; gap: 1.4rem; max-width: 760px; margin: 0 auto; }

.post-card {
  background: var(--cream);
  border: 2px dashed var(--dash);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.post-card h2 { font-size: 1.4rem; }
.post-card h2 a { color: var(--brown); text-decoration: none; }
.post-card h2 a:hover { color: var(--rose-dark); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(2.5rem, 7vw, 4rem);
  background: var(--cream-soft);
  border-top: 1px solid rgba(69, 41, 31, 0.1);
  text-align: center;
  padding: 2.6rem 0 1.8rem;
}

.site-footer .script {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  display: block;
  margin-bottom: 0.6rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin: 1.2rem 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  font-weight: 700;
  color: var(--brown);
}

.footer-social a:hover { color: var(--rose-dark); }
.footer-social svg { width: 20px; height: 20px; }

.site-footer__copy {
  font-size: 0.82rem;
  color: var(--brown-mid);
  margin-top: 1rem;
}
