/* ServiceLeaf SEO Satellite Sites - Shared Stylesheet */
/* Brand design tokens extracted from serviceleaf.hu */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ========== CSS Custom Properties ========== */
:root {
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --success-500: #10b981;
  --danger-500: #ef4444;

  --shadow-soft: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-card: 0 10px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-nav: 0 1px 3px rgba(0,0,0,.06);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.625;
  color: var(--gray-600);
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--gray-900);
  line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.25rem; }

a { color: var(--brand-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-700); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

::selection { background: var(--brand-100); color: var(--brand-900); }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

/* ========== Layout ========== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

.section { padding: 2rem 0; }
.section-alt { background: var(--gray-50); }
.section-header { text-align: center; max-width: 42rem; margin: 0 auto 1.5rem; }
.section-title { font-size: 1.875rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.125rem; color: var(--gray-500); }

/* ========== Grid ========== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.5rem;
  border-radius: .5rem;
  font-weight: 600;
  font-size: .875rem;
  font-family: var(--font-sans);
  transition: all .2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  line-height: 1.5;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-700);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.btn-secondary {
  background: #fff;
  color: var(--brand-600);
  border: 1px solid var(--brand-200);
}
.btn-secondary:hover {
  border-color: var(--brand-600);
  background: var(--brand-50);
  color: var(--brand-600);
}

.btn-white {
  background: #fff;
  color: var(--brand-600);
  box-shadow: var(--shadow-soft);
}
.btn-white:hover {
  background: var(--gray-50);
  color: var(--brand-600);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: #fff;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: .75rem;
}

/* ========== Card ========== */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: .75rem;
  padding: 2rem;
  transition: all .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
  display: block;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--gray-500); font-size: .9375rem; }
.card a { display: inline-block; margin-top: .75rem; font-weight: 600; font-size: .875rem; }
.card a::after { content: ' \2192'; }

/* ========== Gradient Text ========== */
.gradient-text {
  background: linear-gradient(to right, var(--brand-600), var(--brand-800));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== Badge ========== */
.badge {
  display: inline-block;
  padding: .25rem .75rem;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 9999px;
  border: 1px solid var(--brand-200);
  margin-bottom: 1rem;
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-nav);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  color: var(--gray-900);
  font-size: .9375rem;
}
.logo-link:hover { color: var(--gray-900); }
.logo-link img { height: 2rem; width: auto; }

.nav-desktop { display: none; gap: 2rem; }
.nav-desktop a { color: var(--gray-600); font-size: .875rem; font-weight: 500; }
.nav-desktop a:hover { color: var(--brand-600); }

.header-cta { display: none; }

/* Mobile menu toggle */
.menu-toggle-input { display: none; }
.menu-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  z-index: 51;
}
.menu-toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  transition: all .2s;
}
.menu-toggle-input:checked ~ .menu-toggle-label span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle-input:checked ~ .menu-toggle-label span:nth-child(2) { opacity: 0; }
.menu-toggle-input:checked ~ .menu-toggle-label span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none;
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-card);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: .75rem;
}
.nav-mobile a {
  display: block;
  padding: .5rem 0;
  color: var(--gray-700);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .btn { margin-top: .5rem; width: 100%; text-align: center; }
.menu-toggle-input:checked ~ .nav-mobile { display: flex; }

/* ========== Hero ========== */
.hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, var(--brand-50) 0%, #fff 100%);
}
.hero .container { max-width: 48rem; text-align: center; }
.hero h1 { font-size: 2.25rem; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.125rem; color: var(--gray-500); margin-bottom: 1.5rem; max-width: 36rem; margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 1.5rem; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; font-size: .8125rem; color: var(--gray-500); }
.trust-badges span { display: flex; align-items: center; gap: .25rem; }

/* ========== Metrics Bar ========== */
.metrics-bar {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  padding: 2rem 0;
  color: #fff;
}
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}
.metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}
.metric-label {
  display: block;
  font-size: .875rem;
  opacity: .85;
  margin-top: .25rem;
}

/* ========== CTA Section ========== */
.cta-section {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  padding: 3rem 0;
  color: #fff;
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: .75rem; }
.cta-section p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; font-size: 1.125rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ========== FAQ ========== */
.faq-list { max-width: 48rem; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: .5rem;
  margin-bottom: .75rem;
  overflow: hidden;
  background: #fff;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray-900);
  font-size: .9375rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; color: var(--brand-600); font-weight: 400; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item[open] summary { border-bottom: 1px solid var(--gray-100); }
.faq-answer { padding: 1rem 1.25rem; color: var(--gray-600); font-size: .9375rem; line-height: 1.7; }

/* ========== Comparison Table ========== */
.comparison-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.comparison-table th, .comparison-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.comparison-table thead th { background: var(--gray-50); font-weight: 600; color: var(--gray-900); }
.comparison-table .highlight-col { background: var(--brand-50); font-weight: 600; }
.table-wrapper { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: .75rem; }

/* ========== Article Teaser Cards ========== */
.article-teaser {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: .75rem;
  padding: 1.5rem;
  transition: all .2s;
}
.article-teaser:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.article-teaser h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.article-teaser h3 a { color: var(--gray-900); }
.article-teaser h3 a:hover { color: var(--brand-600); }
.article-teaser p { font-size: .875rem; color: var(--gray-500); margin-bottom: .75rem; }
.article-teaser .read-more { font-size: .8125rem; font-weight: 600; color: var(--brand-600); }
.article-teaser .read-more::after { content: ' \2192'; }

/* ========== Prose (Article Content) ========== */
.prose { max-width: 48rem; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--brand-700); }
.prose strong { color: var(--gray-900); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--brand-600);
  padding: .75rem 1rem;
  margin: 1.5rem 0;
  background: var(--gray-50);
  color: var(--gray-700);
  border-radius: 0 .5rem .5rem 0;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9375rem; }
.prose table th, .prose table td { padding: .5rem .75rem; border: 1px solid var(--gray-200); text-align: left; }
.prose table th { background: var(--gray-50); font-weight: 600; }
.prose img { border-radius: .5rem; margin: 1.5rem 0; }

/* ========== Breadcrumb ========== */
.breadcrumb { font-size: .8125rem; color: var(--gray-400); margin-bottom: 1rem; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--brand-600); }

/* ========== Article Hero ========== */
.article-hero {
  padding: 2rem 0 1.5rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.article-hero .container { max-width: 48rem; }
.article-hero h1 { font-size: 2rem; margin-bottom: .75rem; }
.article-meta { font-size: .8125rem; color: var(--gray-400); display: flex; gap: .75rem; flex-wrap: wrap; }

/* ========== Footer ========== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 3rem 0 1.5rem;
  font-size: .875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p { margin-top: .75rem; line-height: 1.6; }
.footer-brand img { height: 2rem; width: auto; margin-bottom: .5rem; }
.footer-links h4 { color: #fff; font-size: .875rem; margin-bottom: .75rem; font-weight: 600; }
.footer-links ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: var(--gray-400); font-size: .8125rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .8125rem;
  color: var(--gray-500);
}
.footer-bottom a { color: var(--brand-400); }
.footer-bottom a:hover { color: var(--brand-300); }

/* ========== Industry Section ========== */
.industry-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.industry-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: .75rem;
  padding: 1.5rem;
}
.industry-card h3 { margin-bottom: .5rem; }
.industry-card p { font-size: .9375rem; color: var(--gray-500); }

/* ========== Responsive ========== */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 2.25rem; }
  .hero { padding: 4rem 0 3rem; }
  .hero h1 { font-size: 2.75rem; }
  .cta-section { padding: 4rem 0; }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .nav-desktop { display: flex; }
  .header-cta { display: block; }
  .menu-toggle-label { display: none; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
