/*
Theme Name: Wysoka Trawa Gac Final
Theme URI: https://wysoka-trawa.pl/
Author: Causa Finita / Codex
Description: Motyw one-page dla Wysokiej Trawy w Gaci, uzupełniony danymi i zdjęciami z właściwego profilu Facebook.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: wysoka-trawa
*/

:root {
  --green: #203a2b;
  --green-2: #456b43;
  --grass: #83a35f;
  --sun: #d7a54f;
  --clay: #a85f3d;
  --paper: #fffaf0;
  --mist: #f1efe7;
  --ink: #151812;
  --muted: #626a5f;
  --line: rgba(32, 58, 43, 0.16);
  --shadow: 0 18px 50px rgba(21, 24, 18, 0.14);
  --container: min(1160px, calc(100vw - 40px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

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

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--green);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 250, 240, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 28px rgba(21, 24, 18, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--container);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--green);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand span {
  display: block;
  color: var(--muted);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--clay);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--green);
  cursor: pointer;
}

.nav-toggle span:not(.screen-reader-text) {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.main {
  overflow: hidden;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 88px 0;
  scroll-margin-top: 86px;
}

.section-mist {
  background: var(--mist);
}

.section-green {
  color: #fff;
  background: var(--green);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-green .eyebrow {
  color: var(--sun);
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 6.8rem);
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.9rem);
}

h3 {
  font-size: 1.48rem;
}

p {
  margin: 0 0 1em;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.16rem;
}

.section-green .lead {
  color: rgba(255, 255, 255, 0.78);
}

.hero {
  position: relative;
  min-height: 88vh;
  color: #fff;
  background: var(--green);
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 850ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(17, 31, 22, 0.9), rgba(35, 68, 45, 0.72) 44%, rgba(35, 68, 45, 0.28));
}

.hero-slide:nth-child(2)::before {
  background: linear-gradient(115deg, rgba(17, 31, 22, 0.9), rgba(61, 66, 42, 0.68) 46%, rgba(112, 143, 70, 0.28));
}

.hero-slide:nth-child(3)::before {
  background: linear-gradient(115deg, rgba(17, 31, 22, 0.88), rgba(56, 84, 64, 0.72) 48%, rgba(168, 95, 61, 0.3));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  min-height: 88vh;
  margin: 0 auto;
  padding: 132px 0 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-mark {
  margin-bottom: 24px;
  color: var(--sun);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
}

.hero h1 {
  max-width: 840px;
}

.hero-subtitle {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.22rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.button-primary {
  color: var(--ink);
  background: var(--sun);
}

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.button-outline {
  color: var(--green);
  border-color: var(--line);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  width: var(--container);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 4px;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--sun);
}

.hero-arrows {
  display: flex;
  gap: 8px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.16);
  font-size: 1.35rem;
  cursor: pointer;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 52px;
  align-items: center;
}

.visual-panel {
  min-height: 420px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.visual-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

.card-grid,
.news-grid,
.contact-grid {
  display: grid;
  gap: 22px;
  margin-top: 38px;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.contact-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.card,
.news-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 10px 28px rgba(21, 24, 18, 0.08);
}

.card,
.news-card,
.contact-card {
  padding: 26px;
}

.card h3,
.news-card h3 {
  margin-bottom: 12px;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 1.16rem;
  font-weight: 900;
}

.card p,
.news-card p,
.contact-card p {
  color: var(--muted);
}

.gallery-placeholder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 38px;
}

.gallery-tile {
  display: block;
  overflow: hidden;
  min-height: 170px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 26px),
    linear-gradient(145deg, #d0aa55, #83a35f 52%, #31543a);
}

.gallery-tile:nth-child(2n) {
  background:
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 24px),
    linear-gradient(145deg, #f1efe7, #78965a 56%, #203a2b);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  transition: transform 240ms ease;
}

.gallery-tile:hover img,
.gallery-tile:focus img {
  transform: scale(1.04);
}

.news-card time {
  display: block;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 0.86rem;
  font-weight: 900;
}

.empty-news {
  margin-top: 28px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

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

.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:first-child {
  padding-top: 0;
}

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

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-list a,
.contact-list strong {
  color: var(--green);
  font-size: 1.08rem;
  font-weight: 900;
  text-decoration: none;
}

.map-panel {
  min-height: 430px;
  border-radius: 8px;
  background: url("assets/images/fb-02.jpg") center / cover;
  box-shadow: var(--shadow);
}

.footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.7);
  background: #151812;
  font-size: 0.92rem;
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.content-page {
  width: min(820px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 132px 0 80px;
}

.content-page h1 {
  margin-bottom: 20px;
  color: var(--green);
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.post-meta {
  margin-bottom: 22px;
  color: var(--clay);
  font-weight: 900;
}

.entry-content {
  color: var(--muted);
}

@media (max-width: 940px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .split,
  .contact-grid,
  .card-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .gallery-placeholder {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  :root {
    --container: min(100vw - 28px, 1160px);
  }

  body {
    font-size: 16px;
  }

  .section {
    padding: 66px 0;
  }

  .hero,
  .hero-content {
    min-height: 90vh;
  }

  .hero-content {
    padding-top: 112px;
    padding-bottom: 82px;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-arrows {
    display: none;
  }

  .card,
  .news-card,
  .contact-card {
    padding: 22px;
  }

  .footer-inner {
    display: block;
  }
}
