/*
Theme Name: Restauracja Tartak
Theme URI: https://restauracjatartak.pl
Author: ABS
Author URI:
Description: Elegancki motyw restauracyjny dla Restauracji Tartak – zielona i złota kolorystyka, nacisk na przyjęcia okolicznościowe.
Version: 1.0.1
Requires at least: 5.8
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tartak
Tags: restaurant, food, elegant, green, gold, events
*/

/* === ZMIENNE KOLORÓW === */
:root {
  --green-darkest: #0f2410;
  --green-dark:    #1a3a1a;
  --green-primary: #2a5c2a;
  --green-medium:  #366b30;
  --green-light:   #4a8a42;
  --green-pale:    #e8f0e8;

  --gold-dark:     #7a5c0e;
  --gold-primary:  #c9a84c;
  --gold-medium:   #d4b55a;
  --gold-light:    #e8d49a;
  --gold-pale:     #faf6ed;

  --white:         #ffffff;
  --off-white:     #f8f5f0;
  --text-dark:     #1a1a1a;
  --text-medium:   #3a3a3a;
  --text-light:    #666666;
  --border-light:  #e0d8cc;

  --font-heading:  'Playfair Display', 'Georgia', serif;
  --font-body:     'Lato', 'Helvetica Neue', Arial, sans-serif;

  --shadow-soft:   0 4px 24px rgba(0,0,0,0.10);
  --shadow-medium: 0 8px 40px rgba(0,0,0,0.18);
  --shadow-strong: 0 16px 60px rgba(0,0,0,0.28);

  --radius:        6px;
  --radius-lg:     12px;
  --transition:    0.3s ease;
}

/* === RESET I BAZA === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-primary);
}

ul, ol {
  list-style: none;
}

/* === TYPOGRAFIA === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--green-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1rem, 2vw, 1.3rem); }

p {
  margin-bottom: 1.1em;
  color: var(--text-medium);
}

p:last-child {
  margin-bottom: 0;
}

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--off-white);
}

.section--dark {
  background: var(--green-dark);
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark p {
  color: var(--white);
}

.section--gold-pale {
  background: var(--gold-pale);
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold-primary);
  margin: 14px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* === PRZYCISKI === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  text-align: center;
}

.btn--primary {
  background: var(--gold-primary);
  color: var(--green-darkest);
  border-color: var(--gold-primary);
}

.btn--primary:hover {
  background: var(--gold-medium);
  border-color: var(--gold-medium);
  color: var(--green-darkest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn--outline {
  background: transparent;
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.btn--outline:hover {
  background: var(--gold-primary);
  color: var(--green-darkest);
  transform: translateY(-2px);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--green-dark);
}

.btn--green {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}

.btn--green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* === OZDOBNIKI ZŁOTE === */
.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold-primary);
  margin: 16px 0;
  border-radius: 2px;
}

.gold-line--center {
  margin: 16px auto;
}

/* === KARTY === */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

.card__body {
  padding: 28px 28px 32px;
}

.card__icon {
  width: 56px;
  height: 56px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

/* === GRID SIATKI === */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* === LISTA Z ZIELONYMI PUNKTAMI === */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  color: var(--text-medium);
  border-bottom: 1px solid var(--border-light);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '✦';
  color: var(--gold-primary);
  font-size: 0.8rem;
  margin-top: 4px;
  flex-shrink: 0;
}

/* === BANNER NAGŁÓWKOWY PODSTRON === */
.page-banner {
  background: var(--green-dark);
  background-image: linear-gradient(135deg, var(--green-darkest) 0%, var(--green-medium) 100%);
  /*
   * Baner zaczyna się od y=0 (za fixed headerem).
   * padding-top = wysokość headera + wewnętrzny odstęp
   * → treść (H1) pojawia się 40px poniżej dolnej krawędzi headera.
   * Zielone tło wypełnia obszar za headerem → zero białej przestrzeni.
   */
  padding: calc(var(--header-height, 102px) + 40px) 0 56px;
  text-align: center;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.page-banner h1 {
  color: var(--white);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.page-banner .gold-line--center {
  position: relative;
  z-index: 1;
}

.page-banner p {
  color: var(--gold-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 14px auto 0;
  position: relative;
  z-index: 1;
}

/* === BREADCRUMBS === */
.breadcrumbs {
  background: var(--green-darkest);
  padding: 10px 0;
  font-size: 0.82rem;
}

.breadcrumbs a,
.breadcrumbs span {
  color: var(--gold-light);
}

.breadcrumbs a:hover {
  color: var(--gold-primary);
}

.breadcrumbs span.sep {
  margin: 0 8px;
  color: var(--gold-dark);
}

/* === INFORMACJA KONTAKTOWA === */
.contact-bar {
  background: var(--green-darkest);
  padding: 10px 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.contact-bar a {
  color: var(--gold-light);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-bar a:hover {
  color: var(--gold-primary);
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; gap: 20px; }
  .btn-group { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .section { padding: 40px 0; }
}
