/*
Theme Name: ExpressSite Landing
Theme URI: https://expressite.pl
Author: M&M GROUP Sp. z o.o.
Author URI: https://expressite.pl
Description: Lekki, szybki motyw one-page landing page zoptymalizowany pod konwersję i lead generation. Promuje usługę tworzenia stron internetowych dla firm.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: expressite
Tags: one-page, landing-page, custom-logo, custom-background
*/

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a2332;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #1a2332;
}

h1 { font-size: clamp(1.875rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

/* ===== COLORS ===== */
:root {
  --primary: #1a6fe8;
  --primary-dark: #1558c0;
  --primary-light: #e8f1fd;
  --accent: #2eaa6e;
  --accent-light: #e6f7ee;
  --foreground: #1a2332;
  --muted: #6b7b8f;
  --surface: #f7f9fc;
  --surface-alt: #eef2f7;
  --border: #dfe5ed;
  --destructive: #e53e3e;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.1);
  --radius: 0.75rem;
}

/* ===== LAYOUT ===== */
.section-padding {
  padding: 4rem 1rem;
}

.section-narrow {
  max-width: 64rem;
  margin: 0 auto;
}

.section-wide {
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-padding { padding: 6rem 2rem; }
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-hero {
  background: var(--primary);
  color: var(--white);
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(26,111,232,.3);
}

.btn-hero:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,111,232,.35);
}

.btn-cta {
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

.btn-cta:hover {
  background: #26955f;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-xl {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

.btn-block { width: 100%; }

/* ===== HERO ===== */
.hero {
  padding-top: 6rem;
  background: var(--white);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .hero { padding-top: 7rem; }
}

.hero h1 span { color: var(--primary); }

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 1.5rem 0 2rem;
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: 1.25rem; }
}

/* ===== CHECKLIST ===== */
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--foreground);
}

.check-icon {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 0.8rem;
  height: 0.8rem;
  color: var(--accent);
}

/* ===== VIDEO PLACEHOLDER ===== */
.video-wrapper {
  aspect-ratio: 16/9;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

.play-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.play-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 1.25rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
}

.trust-item .check-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ===== SECTION BACKGROUNDS ===== */
.bg-white { background: var(--white); }
.bg-surface { background: var(--surface); }

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto;
}

/* ===== PROBLEM SECTION ===== */
.problem-list {
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

.problem-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 0;
  font-size: 1.0625rem;
  color: var(--foreground);
}

.x-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--destructive);
}

.problem-conclusion {
  text-align: center;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 36rem;
  margin: 0 auto;
}

.problem-conclusion strong {
  color: var(--foreground);
}

/* ===== SOLUTION / BENEFITS LIST ===== */
.feature-grid {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-sm);
}

.bg-surface .feature-card {
  background: var(--white);
}

.bg-white .feature-card {
  background: var(--surface);
}

/* ===== PROCESS / STEPS ===== */
.steps-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(5, 1fr); }
}

.step {
  text-align: center;
}

.step-number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.step h3 { margin-bottom: 0.25rem; }
.step p { color: var(--muted); font-size: 0.875rem; }

/* ===== PORTFOLIO GRID ===== */
.portfolio-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }

.portfolio-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.portfolio-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.portfolio-thumb {
  aspect-ratio: 16/10;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-info {
  padding: 1.25rem;
}

.portfolio-info h3 { margin-bottom: 0.25rem; }
.portfolio-info p { color: var(--muted); font-size: 0.875rem; }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
  position: relative;
}

.pricing-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pricing-card h3 { margin-bottom: 0.5rem; }

.pricing-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.pricing-features {
  flex: 1;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--foreground);
}

/* ===== PRICE ANCHOR ===== */
.anchor-grid {
  display: grid;
  gap: 2rem;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .anchor-grid { grid-template-columns: 1fr 1fr; }
}

.anchor-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
}

.anchor-card.theirs {
  background: var(--surface);
  opacity: 0.7;
}

.anchor-card.ours {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.anchor-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
}

.anchor-card.theirs .anchor-price {
  color: var(--muted);
  text-decoration: line-through;
}

.anchor-card.ours .anchor-price {
  color: var(--primary);
}

/* ===== BEFORE / AFTER ===== */
.ba-grid {
  display: grid;
  gap: 2rem;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .ba-grid { grid-template-columns: 1fr 1fr; }
}

.ba-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
}

.ba-card.before { border-color: var(--destructive); }
.ba-card.after { border-color: var(--accent); }

.ba-label {
  padding: 0.75rem;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ba-card.before .ba-label { background: #fef2f2; color: var(--destructive); }
.ba-card.after .ba-label { background: var(--accent-light); color: var(--accent); }

.ba-image {
  aspect-ratio: 4/3;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.875rem;
}

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

/* ===== WHY CHEAPER ===== */
.reasons-grid {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
  margin: 0 auto;
}

/* ===== SUPPORT ===== */
.support-items {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
  margin: 0 auto;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: auto 1fr; }
}

.about-photo {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 4px solid var(--primary-light);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-values {
  margin-top: 1rem;
}

.about-values li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0;
  font-weight: 500;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.bg-white .testimonial-card { background: var(--surface); }

.testimonial-text {
  font-style: italic;
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.testimonial-screenshot {
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.testimonial-screenshot img {
  width: 100%;
  height: auto;
}

.testimonial-author h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}

.testimonial-author p {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 42rem;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.2s;
}

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

.faq-question .faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--primary);
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 12rem;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== FORM ===== */
.form-section {
  background: var(--white);
}

.form-wrapper {
  max-width: 32rem;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--foreground);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,111,232,.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 6rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--foreground);
  color: rgba(255,255,255,.6);
  padding: 2.5rem 1rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,.4);
}

}

@media (min-width: 768px) {
  .sticky-cta { display: none; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.font-bold { font-weight: 700; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

/* ===== POLICY PAGES ===== */
.policy-page {
  padding-top: 6rem;
}

.policy-content {
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.8;
}

.policy-content h2 {
  margin: 2rem 0 1rem;
  font-size: 1.375rem;
}

.policy-content h3 {
  margin: 1.5rem 0 0.75rem;
}

.policy-content p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.policy-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.policy-content ul li {
  list-style: disc;
  margin-bottom: 0.375rem;
  color: var(--muted);
}

.policy-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== THANK YOU PAGE ===== */
.thankyou {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.thankyou-content h1 {
  margin-bottom: 1rem;
}

.thankyou-content p {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease forwards;
}

/* ===== SCREEN READER ONLY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ===== ADMIN BAR FIX ===== */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
