/* ============================================
   SlashSEO Theme — "Rzetelna" (Trustworthy)
   Slate-blue editorial theme, split-layout hero,
   horizontal services, two-column FAQ, blog strip.
   ============================================ */

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

:root {
  --c-white: #ffffff;
  --c-bg: #f5f6f8;
  --c-bg-warm: #eef1f5;
  --c-surface: #ffffff;
  --c-border: #dce0e6;
  --c-text: #1e2a3a;
  --c-text-mid: #4a5568;
  --c-text-light: #8694a7;
  --c-primary: #2b5ea7;
  --c-primary-dark: #1e4a86;
  --c-primary-light: #e8eef6;
  --c-hero: #1e2a3a;
  --c-hero-accent: #3b82c4;
  --c-footer: #1a2332;
  --c-footer-mid: #a3b1c6;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w: 1120px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(30,42,58,.07);
  --shadow-lg: 0 8px 24px rgba(30,42,58,.1);
  --ease: .25s ease;
}

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

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

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

a { color: var(--c-primary); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--c-primary-dark); }
a:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; border-radius: 2px; }

h1,h2,h3,h4 { font-family: var(--font); font-weight: 700; line-height: 1.2; color: var(--c-text); }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }

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

/* --- Skip link --- */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--c-primary); color: #fff;
  padding: .5rem 1rem; border-radius: var(--radius);
  z-index: 9999; font-size: .85rem;
}
.skip-link:focus { top: .75rem; color: #fff; }

/* ============================================
   HEADER — transparent-feel top bar
   ============================================ */
.site-header {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; z-index: 200;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.site-logo {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: 1.1rem; color: var(--c-text);
  text-decoration: none; letter-spacing: -.01em;
}
.site-logo:hover { color: var(--c-primary); }
.site-logo img { height: 34px; width: auto; }

/* Desktop nav */
.desktop-nav { display: none; list-style: none; gap: .15rem; }
.desktop-nav a {
  display: block; padding: .45rem .75rem; font-size: .88rem;
  font-weight: 500; color: var(--c-text-mid); border-radius: 6px;
  transition: background var(--ease), color var(--ease);
}
.desktop-nav a:hover { background: var(--c-primary-light); color: var(--c-primary); }

/* Contact pill */
.header-contact {
  display: none; font-size: .82rem; font-weight: 600;
  color: var(--c-primary); background: var(--c-primary-light);
  padding: .4rem .9rem; border-radius: 100px;
}
.header-contact:hover { background: var(--c-primary); color: #fff; }

/* Hamburger */
.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 11px;
  background: none; border: none; cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--c-text); border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none; background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: .5rem 0;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav a {
  display: block; padding: .7rem 1.25rem; font-size: .95rem;
  color: var(--c-text); font-weight: 500;
}
.mobile-nav a:hover { background: var(--c-bg); color: var(--c-primary); }

/* ============================================
   HERO — split layout: text left, accent bar right
   ============================================ */
.hero {
  background: var(--c-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 35%; background: var(--c-hero-accent);
  opacity: .12;
  display: none;
}
.hero-inner {
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 3rem 0;
  position: relative; z-index: 1;
}
.hero-text { max-width: 600px; }
.hero h1 { color: #fff; font-size: 1.8rem; margin-bottom: .75rem; letter-spacing: -.02em; }
.hero-sub {
  color: var(--c-footer-mid); font-size: 1rem;
  line-height: 1.7; margin-bottom: 1.5rem;
}
.hero-sub p { margin-bottom: .4rem; }

.btn {
  display: inline-block; padding: .7rem 1.6rem; font-size: .92rem;
  font-weight: 600; border-radius: 6px; border: none; cursor: pointer;
  transition: background var(--ease), transform var(--ease); text-decoration: none;
}
.btn-accent { background: var(--c-hero-accent); color: #fff; }
.btn-accent:hover { background: #2e70ad; color: #fff; transform: translateY(-1px); }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px; padding: .35rem .9rem;
  font-size: .78rem; color: var(--c-footer-mid);
  margin-bottom: 1rem;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-hero-accent);
}

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section { padding: 3rem 0; }
.section-warm { background: var(--c-bg-warm); }
.section-white { background: var(--c-white); }

.section-header {
  margin-bottom: 2rem;
}
.section-header h2 {
  margin-bottom: .35rem;
}
.section-header p {
  color: var(--c-text-mid); font-size: .92rem; max-width: 540px;
}
.section-label {
  display: inline-block;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--c-primary);
  margin-bottom: .5rem;
}

/* ============================================
   SERVICES — horizontal cards with left accent border
   ============================================ */
.services-list {
  display: grid; gap: 1rem;
}
.service-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  transition: box-shadow var(--ease), transform var(--ease);
}
.service-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-item h3 {
  font-size: 1rem; margin-bottom: .4rem; color: var(--c-text);
}
.service-item .s-desc {
  font-size: .88rem; color: var(--c-text-mid); line-height: 1.6;
}
.service-item .s-desc p { margin-bottom: .3rem; }

/* ============================================
   FAQ — two-column expandable
   ============================================ */
.faq-grid {
  display: grid; gap: .75rem;
}
.faq-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--ease);
}
.faq-card:hover { box-shadow: var(--shadow); }

.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1rem 1.25rem;
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: .9rem; font-weight: 600;
  color: var(--c-text); text-align: left; gap: 1rem; line-height: 1.35;
}
.faq-q:hover { color: var(--c-primary); }
.faq-q:focus-visible { outline: 2px solid var(--c-primary); outline-offset: -2px; }

.faq-chevron {
  flex-shrink: 0; width: 18px; height: 18px;
  position: relative; transition: transform var(--ease);
}
.faq-chevron::before, .faq-chevron::after {
  content: ''; position: absolute; background: var(--c-text-light); border-radius: 1px;
}
.faq-chevron::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.faq-chevron::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); transition: transform var(--ease); }
.faq-card.open .faq-chevron::after { transform: translateX(-50%) scaleY(0); }

.faq-a {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: .87rem; color: var(--c-text-mid); line-height: 1.7;
}
.faq-a p { margin-bottom: .35rem; }
.faq-card.open .faq-a { display: block; }

/* ============================================
   LATEST POSTS — horizontal scrollable strip on mobile, grid on desktop
   ============================================ */
.posts-strip {
  display: grid; gap: 1.25rem;
}
.p-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--ease);
}
.p-card:hover { box-shadow: var(--shadow-lg); }
.p-card-img {
  aspect-ratio: 16/9; overflow: hidden;
}
.p-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.p-card:hover .p-card-img img { transform: scale(1.03); }
.p-card-body { padding: 1.15rem 1.25rem 1.25rem; }
.p-card-date {
  font-size: .75rem; color: var(--c-text-light);
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: .3rem;
}
.p-card-body h3 { font-size: 1rem; margin-bottom: .45rem; }
.p-card-body h3 a { color: var(--c-text); }
.p-card-body h3 a:hover { color: var(--c-primary); }
.p-card-excerpt {
  font-size: .85rem; color: var(--c-text-mid); line-height: 1.6;
}
.p-card-excerpt p { margin-bottom: .25rem; }

/* ============================================
   BLOG INDEX
   ============================================ */
.blog-title-bar {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: 2rem 0 1.5rem;
}
.blog-title-bar h1 { font-size: 1.7rem; }

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

/* Pagination */
.pag {
  display: flex; align-items: center; justify-content: center;
  gap: .25rem; padding: 2.5rem 0 1rem; flex-wrap: wrap;
}
.pag a, .pag span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 .55rem;
  font-size: .88rem; font-weight: 500; border-radius: 6px;
  color: var(--c-text-mid); border: 1px solid var(--c-border);
  transition: background var(--ease), color var(--ease);
}
.pag a:hover { background: var(--c-primary-light); color: var(--c-primary); border-color: var(--c-primary-light); }
.pag a.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.pag .pn { font-size: .82rem; padding: 0 .8rem; }

/* ============================================
   POST SINGLE
   ============================================ */
.post-page { padding: 2.5rem 0 4rem; }
.post-page-inner { max-width: 720px; margin: 0 auto; }
.post-page-date {
  font-size: .8rem; color: var(--c-text-light);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem;
}
.post-page h1 { font-size: 1.85rem; margin-bottom: 1rem; }
.post-page-cover {
  margin: 1.25rem 0 1.5rem;
  border-radius: var(--radius-lg); overflow: hidden;
}
.post-page-cover img { width: 100%; }
.post-page-excerpt {
  font-size: 1.02rem; color: var(--c-text-mid);
  line-height: 1.7; margin-bottom: 1.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--c-border);
}
.post-page-excerpt p { margin-bottom: .5rem; }

/* Content body (shared post + page) */
.cbody { font-size: .96rem; line-height: 1.75; }
.cbody h2 { margin-top: 2rem; margin-bottom: .7rem; font-size: 1.35rem; }
.cbody h3 { margin-top: 1.5rem; margin-bottom: .5rem; font-size: 1.1rem; }
.cbody p { margin-bottom: 1rem; }
.cbody ul, .cbody ol { margin-bottom: 1rem; padding-left: 1.4rem; }
.cbody li { margin-bottom: .3rem; }
.cbody blockquote {
  border-left: 3px solid var(--c-primary); padding: .5rem 1.2rem;
  margin: 1.5rem 0; color: var(--c-text-mid); font-style: italic;
}
.cbody img { border-radius: var(--radius); margin: 1.5rem 0; }
.cbody a { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================
   PAGE
   ============================================ */
.generic-page { padding: 2.5rem 0 4rem; }
.generic-page-inner { max-width: 720px; margin: 0 auto; }
.generic-page h1 { font-size: 1.85rem; margin-bottom: 1.5rem; }

/* ============================================
   FOOTER — dark two-row layout
   ============================================ */
.site-footer {
  background: var(--c-footer); color: var(--c-footer-mid);
  padding: 2.5rem 0 0; font-size: .88rem;
}
.footer-top {
  display: grid; gap: 2rem; padding-bottom: 2rem;
}
.ft-brand {
  font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: .4rem;
}
.ft-tagline { color: var(--c-text-light); font-size: .82rem; }

.ft-heading {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--c-text-light); margin-bottom: .65rem; font-weight: 700;
}
.ft-links { list-style: none; }
.ft-links li + li { margin-top: .35rem; }
.ft-links a { color: var(--c-footer-mid); font-size: .85rem; }
.ft-links a:hover { color: #fff; }

.ft-contact a { color: var(--c-footer-mid); }
.ft-contact a:hover { color: #fff; }
.ft-contact p + p { margin-top: .3rem; }

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 600px) {
  h1 { font-size: 2.15rem; }
  .hero-inner { padding: 4rem 0; }
  .hero h1 { font-size: 2.1rem; }

  .services-list { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-strip { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .desktop-nav { display: flex; }
  .header-contact { display: inline-block; }
  .burger { display: none; }
  .mobile-nav { display: none !important; }

  h1 { font-size: 2.5rem; }
  .hero { padding: 0; }
  .hero::after { display: block; }
  .hero-inner { padding: 5rem 0; flex-direction: row; align-items: center; }
  .hero h1 { font-size: 2.4rem; }
  .hero-text { flex: 1; }

  .section { padding: 4.5rem 0; }

  .services-list { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-strip { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
  .post-page h1, .generic-page h1 { font-size: 2.2rem; }
}
