/* ============================================
   SlashSEO Theme — "Solidna" (Solid)
   A clean, warm, professional Polish business theme
   ============================================ */

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

:root {
  --color-bg: #fafaf8;
  --color-surface: #ffffff;
  --color-surface-alt: #f3f1ed;
  --color-border: #e2dfd8;
  --color-text: #2e2c28;
  --color-text-muted: #6b6860;
  --color-text-light: #9a9689;
  --color-accent: #3d6b4f;
  --color-accent-hover: #2f5640;
  --color-accent-light: #e8f0eb;
  --color-hero-bg: #2e2c28;
  --color-hero-text: #fafaf8;
  --color-footer-bg: #35332e;
  --color-footer-text: #d4d0c8;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1140px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--color-accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

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

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 1000;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--color-accent);
}

.site-logo img {
  height: 36px;
  width: auto;
}

/* Desktop nav */
.nav-desktop {
  display: none;
  list-style: none;
  gap: 0.25rem;
}

.nav-desktop a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav-desktop a:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 0;
}

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

.nav-mobile ul {
  list-style: none;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
}

.nav-mobile a:hover {
  background: var(--color-surface-alt);
  color: var(--color-accent);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--color-hero-bg);
  color: var(--color-hero-text);
  padding: 3.5rem 0;
}

.hero-inner {
  max-width: 640px;
}

.hero h1 {
  color: var(--color-hero-text);
  font-size: 1.85rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  color: var(--color-footer-text);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.hero-subtitle p {
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================
   SERVICES
   ============================================ */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--color-surface-alt);
}

.section-title {
  margin-bottom: 0.4rem;
}

.section-lead {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.services-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
}

.service-card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-accent);
  font-size: 1.05rem;
}

.service-card .service-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-card .service-desc p {
  margin-bottom: 0.4rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  gap: 1rem;
  line-height: 1.4;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform var(--transition);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-text-muted);
  border-radius: 1px;
}

.faq-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  transition: transform var(--transition);
}

.faq-item.is-open .faq-icon::after {
  transform: translateX(-50%) scaleY(0);
}

.faq-answer {
  display: none;
  padding-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.faq-answer p {
  margin-bottom: 0.4rem;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ============================================
   LATEST POSTS
   ============================================ */
.posts-grid {
  display: grid;
  gap: 1.5rem;
}

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.post-card:hover {
  box-shadow: var(--shadow-md);
}

.post-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 1.25rem;
}

.post-card-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 0.35rem;
}

.post-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.post-card-body h3 a {
  color: var(--color-text);
}

.post-card-body h3 a:hover {
  color: var(--color-accent);
}

.post-card-excerpt {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.post-card-excerpt p {
  margin-bottom: 0.3rem;
}

/* ============================================
   BLOG INDEX
   ============================================ */
.blog-header {
  padding: 2.5rem 0 1rem;
}

.blog-header h1 {
  font-size: 1.75rem;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 2.5rem 0 1rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: background var(--transition), color var(--transition);
}

.pagination a:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-color: var(--color-accent-light);
}

.pagination a.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.pagination .prev-next {
  font-size: 0.85rem;
  padding: 0 0.9rem;
}

/* ============================================
   POST SINGLE
   ============================================ */
.post-single {
  padding: 2.5rem 0 3.5rem;
}

.post-single-inner {
  max-width: 760px;
  margin: 0 auto;
}

.post-single-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.post-single h1 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.post-single-cover {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-single-cover img {
  width: 100%;
}

.post-single-excerpt {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.post-single-excerpt p {
  margin-bottom: 0.5rem;
}

/* Content (for page + post) */
.content-body {
  font-size: 0.98rem;
  line-height: 1.75;
}

.content-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.content-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.content-body p {
  margin-bottom: 1rem;
}

.content-body ul, .content-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content-body li {
  margin-bottom: 0.3rem;
}

.content-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--color-text-muted);
  font-style: italic;
}

.content-body img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.content-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   PAGE
   ============================================ */
.page-content {
  padding: 2.5rem 0 3.5rem;
}

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

.page-content h1 {
  font-size: 1.85rem;
  margin-bottom: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 3rem 0 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer-nav {
  list-style: none;
}

.footer-nav li + li {
  margin-top: 0.4rem;
}

.footer-nav a {
  color: var(--color-footer-text);
  font-size: 0.88rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-contact a {
  color: var(--color-footer-text);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-contact p + p {
  margin-top: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet: 600px+ */
@media (min-width: 600px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .hero { padding: 4.5rem 0; }
  .hero h1 { font-size: 2.2rem; }

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

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

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

/* Desktop: 900px+ */
@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }

  h1 { font-size: 2.5rem; }

  .hero { padding: 5.5rem 0; }
  .hero h1 { font-size: 2.5rem; }

  .section { padding: 4.5rem 0; }

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

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .post-single h1,
  .page-content h1 {
    font-size: 2.25rem;
  }
}
