/*
Theme Name: Aktivo Theme
Theme URI: http://localhost
Author: Aktivo
Author URI: http://localhost
Description: Minimalny motyw WordPress dla biura rachunkowego Aktivo
Version: 1.0
Text Domain: aktivo-theme
*/

:root {
  --bg: #f4f8fc;
  --surface: #ffffff;
  --surface-alt: #eef6fb;
  --text: #17324a;
  --muted: #5f7387;
  --primary: #4195bf;
  --primary-dark: #2f7da3;
  --primary-deep: #245f7c;
  --primary-soft: #d9eef8;
  --border: #d7e5ef;
  --shadow: 0 16px 40px rgba(23, 50, 74, 0.08);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f7fbfe 0%, #f1f7fb 100%);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-container {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 248, 252, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215, 229, 239, 0.9);
}

.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 0;
}

.site-brand {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo,
.site-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.main-nav {
  display: flex;
  justify-content: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 0;
  margin: 0;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-page-ancestor > a {
  color: var(--primary);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* GENERAL SECTIONS */

.section {
  padding: 64px 0;
}

.section-header {
  margin-bottom: 26px;
}

.section-header h1,
.section-header h2,
.page-hero h1,
.blog-header h1,
.single-header h1,
.hero h1 {
  margin: 0 0 16px;
  line-height: 1.06;
  letter-spacing: -0.045em;
  color: var(--text);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.section-header h1,
.page-hero h1,
.blog-header h1,
.single-header h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-header p,
.lead,
.page-card p,
.service-card p,
.blog-card p,
.price-card p,
.contact-card p,
.hero-side-box p {
  color: var(--muted);
  margin: 0;
}

.lead {
  font-size: 18px;
  max-width: 60ch;
}

.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 14px;
  font-weight: 700;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* CARDS */

.page-card,
.service-card,
.blog-card,
.price-card,
.contact-card,
.hero-main,
.hero-side-box,
.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-card,
.service-card,
.blog-card,
.price-card,
.contact-card,
.hero-side-box {
  padding: 30px;
}

.page-card h2,
.page-card h3,
.service-card h3,
.blog-card h2,
.blog-card h3,
.price-card h3,
.contact-card h3,
.hero-side-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.03em;
}

/* HERO */

.hero {
  padding: 42px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
}

.hero-main {
  padding: 72px 72px 56px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  background:
    radial-gradient(circle at top right, rgba(65, 149, 191, 0.15), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5fbfe 100%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.hero-side {
  display: grid;
  gap: 20px;
}

.stat-box {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.stat-box strong {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
  color: var(--primary-deep);
}

.stat-box span {
  color: var(--muted);
  font-size: 14px;
}

/* SERVICE / BLOG / LINKS */

.service-link,
.blog-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--primary-dark);
  font-weight: 700;
}

.service-link:hover,
.blog-link:hover {
  color: var(--primary-deep);
}

/* PRICE */

.price {
  margin: 18px 0 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary-deep);
}

.meta,
.post-meta {
  color: var(--muted);
  font-size: 14px;
}

/* PAGES */

.page-hero,
.blog-header,
.single-header {
  padding: 58px 0 24px;
}

.page-content,
.blog-list,
.single-content {
  padding: 16px 0 64px;
}

/* CONTENT */

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.2em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 22px;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.entry-content a {
  color: var(--primary-dark);
  font-weight: 600;
}

.entry-content a:hover {
  color: var(--primary-deep);
}

/* CONTACT */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.contact-list li {
  margin-bottom: 10px;
  color: var(--muted);
}

/* FOOTER */

.site-footer {
  padding: 34px 0 56px;
}

.site-footer-inner {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* WP CONTENT FIXES */

.wp-block-group,
.wp-block-columns,
.wp-block-column {
  margin-bottom: 0;
}

.wp-block-image img {
  border-radius: 18px;
}

.alignwide,
.alignfull {
  max-width: 100%;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .site-header-inner {
    position: static;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-height: auto;
    padding: 14px 0;
  }

  .site-brand {
    position: static;
    transform: none;
  }

  .main-nav ul {
    flex-wrap: wrap;
    gap: 14px 18px;
  }
}

@media (max-width: 760px) {
  .hero-main,
  .page-card,
  .service-card,
  .blog-card,
  .price-card,
  .contact-card {
    padding: 24px;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero-main {
    max-width: 100%;
  }

  .custom-logo,
  .site-logo {
    width: 48px;
    height: 48px;
  }
}