/*
Theme Name: Stajnia Jarcewo Theme
Theme URI: https://stajnia.jarcewo.pl
Author: Jakub Klonowski-Rosploch
Author URI: https://qubity.pl
Description: Lekki, szybki i modularny motyw WordPress stworzony dla Stajni Jarcewo. Motyw typu hybrid: klasyczny Classic Theme z komponentami ACF dla sekcji layoutowych oraz Gutenberg (Blocks) do edycji tresci i wpisow blogowych. Zoptymalizowany pod wydajnosc, SEO oraz latwa edycje contentu bez potrzeby ingerencji w kod.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: stajnia-jarcewo
License: Private / Proprietary
Tags: custom-theme, hybrid-theme, acf, gutenberg, blocks, horses, stable, equestrian, riding, minimal, fast, business, component-based
*/

/* --- RESET / BASE --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  margin: auto;
  scroll-behavior: smooth;
}

body {
  background-color: #fff7f5;
  color: var(--text-color);
  font-family: var(--font-body);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

/* === ZMIENNE GLOBALNE === */
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Aboreto";
  src: url("assets/fonts/Aboreto-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Cinzel";
  src: url("assets/fonts/Cinzel-Regular.ttf") format("ttf");
  font-weight: normal;
  font-style: normal;
}

:root {
  --font-header: "Aboreto", sans-serif;
  --font-body: "Montserrat", sans-serif;
}

:root {
  --primary-color: #733449;
  --secondary-color: #e4dad8;
  --text-color: #434343;
  --accent-color: #9d687e;

  /* Domyślne rozmiary fontów dla desktop */
  --fs-h1: 40px;
  --fs-h2: 32px;
  --fs-h3: 24px;
  --fs-p: 20px;
}
h2 {
  font-family: Aboreto;
  font-size: 30px;
}
h3 {
  font-family: Aboreto;
  font-size: 24px;
}
p {
  font-family: Montserrat;
  font-size: 20px;
}
section {
  margin: 50px auto;
}
/* Mobilne */
@media (max-width: 576px) {
  :root {
    --fs-h1: 24px;
    --fs-h2: 20px;
    --fs-h3: 18px;
    --fs-p: 16px;
  }
}

/* Tablet */
@media (max-width: 992px) {
  :root {
    --fs-h1: 32px;
    --fs-h2: 24px;
    --fs-h3: 20px;
    --fs-p: 18px;
  }
}
.wrapper {
  padding: 0 10px;
  max-width: 1600px;
  min-width: 365px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
.btn {
  padding: 15px;
  background-color: var(--primary-color);
  border-radius: 50px;
  border: none;
  font-family: "Montserrat";
  font-size: 12px;
  color: white;
  cursor: pointer; /* Zmienia kursor na wskaźnik */
  transition:
    background-color 0.6s ease,
    transform 0.6s ease; /* Płynna animacja */
}

.btn:hover {
  background-color: var(--accent-color); /* Lekko jaśniejszy odcień */
}

.shd {
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

/* NIEWIDOCZNE ELEMENTY */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== BLOG ===== */

.blog-wrapper {
  width: 100%;
  max-width: 1300px;
  margin: 60px auto;
  padding: 0 20px;
}

.blog_header {
  text-align: center;
  margin-bottom: 50px;
}
.blog-title {
  text-align: center;
  margin-bottom: 20px;
}

/* GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* CARD */
.blog-card {
  max-width: 420px;
  margin: 0 auto;

  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* IMAGE */
.blog-thumb img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* CONTENT */
.blog-content {
  padding: 20px;
}

.blog-card-title {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.blog-card-title a {
  text-decoration: none;
  color: inherit;
}

.blog-meta {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 12px;
}

.blog-excerpt {
  margin: 0;
  line-height: 1.6;
}

/* PAGINATION */
.blog-pagination {
  margin-top: 50px;
  text-align: center;
}

/* BREADCRUMBS BY RANK MATH */
.breadcrumbs {
  margin: 20px 0px;
  font-size: 1rem;
}

@media (max-width: 687px) {
  .wrapper {
    padding: 0;
  }
}
