/* =========================================================
   Variables
   ========================================================= */
:root {
  --red: #BC0C06;
  --red-dark: #960a05;
  --dark: #1a1a1a;
  --text: #404040;
  --text-light: #606060;
  --gray-bg: #f8f8f8;
  --border: #e0e0e0;
  --white: #ffffff;
  --font-body: 'Lato', system-ui, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --container: 1100px;
  --radius: 3px;
}

/* =========================================================
   Reset & Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--dark);
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

ul { list-style: none; }

/* =========================================================
   Layout
   ========================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--gray { background: var(--gray-bg); }
.section--dark { background: var(--dark); color: var(--white); }

.section__title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 48px;
  text-align: center;
}
.section--dark .section__title { color: var(--white); }

.section__cta { text-align: center; margin-top: 40px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; }

.btn--secondary {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}
.btn--secondary:hover { background: var(--dark); color: var(--white); text-decoration: none; }

.btn--outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn--outline:hover { background: var(--red); color: var(--white); text-decoration: none; }

/* =========================================================
   Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--border);
}

.site-header > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 0;
}

.nav__logo {
  display: block;
  text-decoration: none;
  margin-bottom: 12px;
}
.nav__logo-img {
  height: 90px;
  width: auto;
  display: block;
}

.nav {
  width: 100%;
  position: relative;
}

.nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--border);
  padding: 4px 0;
}

.nav__item { position: relative; }

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav__link:hover, .nav__link--active { color: var(--red); text-decoration: none; }

/* Dropdown */
.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  min-width: 260px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 8px 0;
}
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown { display: block; }

.nav__dropdown-link {
  display: block;
  padding: 9px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav__dropdown-link:hover { color: var(--red); background: var(--gray-bg); text-decoration: none; }

/* Hamburger */
.nav__toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* =========================================================
   Hero (homepage)
   ========================================================= */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('/images/hero.jpg') center/cover no-repeat;
}

.hero__sygnet {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__sygnet img {
  width: 200px;
  opacity: 0.6;
}

/* =========================================================
   Page hero (inner pages)
   ========================================================= */
.page-hero {
  background: var(--white);
  padding: 48px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9a8c75;
}

.page-hero .post-meta {
  font-size: 0.78rem;
  color: #b0a48c;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =========================================================
   Intro section
   ========================================================= */
.intro__inner {
  max-width: 780px;
  font-size: 1.05rem;
}
.intro__inner p { margin-bottom: 16px; }

/* =========================================================
   Services
   ========================================================= */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  text-align: center;
  padding: 32px 24px;
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--text-light);
}

.service-card__icon svg {
  width: 48px;
  height: 48px;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-card__link {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
}
.service-card__link:hover { color: var(--red); text-decoration: none; }

/* =========================================================
   Quotes
   ========================================================= */
.quotes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.quote {
  border-left: 3px solid var(--red);
  padding: 8px 0 8px 24px;
}

.quote p {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 12px;
}

.quote cite {
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =========================================================
   About teaser
   ========================================================= */
.about-teaser__inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
  max-width: 900px;
}
.about-teaser__photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.about-teaser__text h2 { margin-bottom: 16px; }
.about-teaser__text p { margin-bottom: 24px; color: var(--text-light); }

@media (max-width: 720px) {
  .about-teaser__inner {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .about-teaser__photo img { height: 280px; }
}

/* =========================================================
   Blog list
   ========================================================= */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.blog-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 48px;
  max-width: 780px;
}

.blog-card__date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 10px;
}

.blog-card__title { font-size: 1.4rem; margin-bottom: 14px; }
.blog-card__title a { color: var(--dark); }
.blog-card__title a:hover { color: var(--red); text-decoration: none; }
.blog-card__img-wrap { display: block; margin-bottom: 24px; }
.blog-card__img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); }
.blog-card__summary { color: var(--text-light); margin-bottom: 24px; line-height: 1.7; }

/* =========================================================
   Posts grid (homepage)
   ========================================================= */
.posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.post-card {
  border-top: 3px solid var(--red);
  padding-top: 20px;
}

.post-card__date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 8px;
}

.post-card__title { font-size: 1.1rem; margin-bottom: 10px; }
.post-card__title a { color: var(--dark); }
.post-card__title a:hover { color: var(--red); text-decoration: none; }
.post-card__summary { font-size: 0.93rem; color: var(--text-light); margin-bottom: 14px; }
.post-card__link { font-size: 0.85rem; font-weight: 700; color: var(--red); }

/* =========================================================
   Contact strip
   ========================================================= */
.contact-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
}

.contact-strip__inner h2 { color: var(--white); margin-bottom: 4px; }
.contact-strip__inner p { color: #aaa; }

.contact-strip__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-strip__link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.contact-strip__link:hover { color: var(--red); text-decoration: none; }

/* =========================================================
   Page content (inner pages)
   ========================================================= */
.page-content {
  max-width: 780px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.page-content h2 { margin: 40px 0 16px; font-size: 1.5rem; }
.page-content h3 { margin: 28px 0 12px; font-size: 1.2rem; }
.page-content p { margin-bottom: 18px; }
.page-content ul, .page-content ol { margin: 0 0 18px 24px; list-style: disc; }
.page-content li { margin-bottom: 6px; }
.page-content blockquote {
  border-left: 3px solid var(--red);
  padding: 8px 0 8px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-light);
}

/* =========================================================
   Post content
   ========================================================= */
.post-content {
  max-width: 780px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.post-content h2 { margin: 40px 0 16px; }
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol { margin: 0 0 18px 24px; list-style: disc; }
.post-content li { margin-bottom: 6px; }
.post-content__hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 40px; }
.post-content__back { margin-top: 48px; }

/* =========================================================
   FAQ shortcode
   ========================================================= */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}

.faq-item__q {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.faq-item__a {
  color: var(--text-light);
  font-size: 0.97rem;
}
.faq-item__a p { margin-bottom: 12px; }
.faq-item__a p:last-child { margin-bottom: 0; }

/* =========================================================
   O mnie page
   ========================================================= */
.omnie-intro {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.omnie-intro__photo img {
  width: 200px;
  height: auto;
  display: block;
}

.omnie-intro__name {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.omnie-certyfikat {
  margin: 32px 0;
}

.omnie-certyfikat img {
  max-width: 600px;
  width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .omnie-intro {
    grid-template-columns: 1fr;
  }
  .omnie-intro__photo img {
    width: 160px;
  }
}

/* =========================================================
   Map
   ========================================================= */
.map-wrap {
  margin-top: 32px;
}
.map-wrap iframe {
  display: block;
  width: 100%;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #111;
  color: #aaa;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  padding: 60px 24px;
}

.footer__col h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__col p, .footer__col li { font-size: 0.9rem; margin-bottom: 6px; }
.footer__col a { color: #aaa; transition: color 0.2s; }
.footer__col a:hover { color: var(--white); text-decoration: none; }

.footer__social { display: flex; flex-direction: column; gap: 8px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  font-size: 0.82rem;
  color: #666;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .site-header > .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
  }
  .nav__logo { margin-bottom: 0; }
  .nav { display: flex; align-items: center; justify-content: flex-end; width: auto; position: static; }
  .nav__toggle { display: flex; position: static; transform: none; }

  .nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 24px 20px;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    gap: 0;
    z-index: 200;
  }

  .nav__list.is-open { display: flex; }

  .nav__link { width: 100%; padding: 10px 4px; }

  .nav__dropdown {
    position: static;
    transform: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    background: transparent;
    min-width: auto;
  }
  .nav__item--dropdown:hover .nav__dropdown,
  .nav__item--dropdown:focus-within .nav__dropdown { display: none; }
  .nav__item--dropdown.is-open .nav__dropdown { display: block; }

  .contact-strip__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .hero { min-height: 70vh; }
  .hero__title { font-size: 1.8rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Tables
   ========================================================= */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 1.5rem 0;
}

thead tr {
  background: var(--dark);
  color: var(--white);
}

thead th {
  padding: 14px 24px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
}

tbody tr {
  border-bottom: 1px solid var(--border);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: var(--gray-bg);
}

tbody td {
  padding: 14px 24px;
  color: var(--text);
}
