/* =============================================================
   layout.css — Container, Grid, Sections, Hero, Responsive
   Feel Your Talents by Justyna Nowacka
   ============================================================= */

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font-family: inherit; }

/* ── CONTAINER ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container-narrow {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── SECTION HELPERS ─────────────────────────────────────── */
.section-padding { padding-block: 5.5rem; }
.section-padding-sm { padding-block: 3.5rem; }

.bg-soft  { background: var(--color-bg-soft); }
.bg-dark  { background: var(--color-text); color: #fff; }
.bg-accent-light { background: var(--color-accent-light); }

.text-center { text-align: center; }
.text-center .section-lead { margin-inline: auto; }

/* ── SITE LAYOUT ─────────────────────────────────────────── */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-content { flex: 1 0 auto; }
.site-footer  { flex-shrink: 0; }

/* ── HERO (homepage) ─────────────────────────────────────── */
.hero { padding-block: 0; }
.hero .container,
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  min-height: 92vh;
  padding-block: 5rem;
}

/* ── TWO-COLUMN SPLIT LAYOUTS ────────────────────────────── */
.approach-inner,
.about-teaser-inner,
.contact-inner,
.dla-kogo-inner,
.oferta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.bio-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

/* portrait image columns */
.bio-image-col,
.approach-image-col,
.about-teaser-image,
.contact-photo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.bio-image-col img,
.approach-image-col img,
.about-teaser-image img,
.contact-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  border-radius: var(--radius-md);
  display: block;
}
.bio-image-col.blob img,
.approach-image-col.blob img,
.about-teaser-image.blob img,
.contact-photo.blob img {
  border-radius: 0;
}

/* text columns */
.bio-text-col,
.approach-text-col,
.about-teaser-text,
.contact-form-col,
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bio-quote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Talent chips row */
.talent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── PRODUCTS SECTION ────────────────────────────────────── */
.products-intro {
  max-width: 620px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.products-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.products-note a { color: var(--color-accent); }

/* ── ABOUT TEASER (home) ─────────────────────────────────── */

.about-teaser-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-teaser-content .btn {
  margin-top: 0.5rem;
  align-self: center;
}

.about-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* ── FINAL CTA (home) ────────────────────────────────────── */
.final-cta {
  padding-block: 5rem;
  background: var(--color-accent-light);
  color: var(--color-text);
}
.final-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 1rem;
}
.final-cta-lead {
  font-size: 1.0625rem;
  opacity: 0.85;
  max-width: 500px;
  margin-inline: auto;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.final-cta .btn-ghost {
  color: var(--color-text);
  border-color: var(--color-text);
}
.final-cta .btn-ghost:hover,
.final-cta .btn-ghost:focus-visible {
  background: var(--color-text);
  color: #fff;
}

/* ── CONTACT LAYOUT ──────────────────────────────────────── */
.contact-response-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ── DLA KOGO (for whom) ─────────────────────────────────── */


/* ── APPROACH SECTION ────────────────────────────────────── */
.talents-intro {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.talents-intro h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.talents-intro-list {
  list-style: none;
  padding: 0;
}
.talents-intro-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.talents-intro-list li::before {
  content: '→';
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ── GALLUP TRUST (home) ─────────────────────────────────── */
.gallup-trust-inner { gap: 3rem; flex-wrap: wrap; }
.gallup-cert-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.gallup-cert-badge img {
  max-width: 220px;
  height: auto;
  object-fit: contain;
}
.gallup-cert-text { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.5; }
.gallup-cert-text strong { color: var(--color-text); }

/* ── ENTRY CONTENT (blog post body) ──────────────────────── */
.entry-content {
  max-width: 720px;
  margin: 0 auto;
}
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
}
.entry-content h2 { font-size: clamp(1.375rem, 2.5vw, 1.875rem); }
.entry-content h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
.entry-content p  { margin-bottom: 1.5rem; color: var(--color-text-muted); line-height: 1.8; }
.entry-content a  {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content a:hover { text-decoration: none; }
.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}
.entry-content li { margin-bottom: 0.5rem; line-height: 1.75; }
.entry-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--color-accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-text);
}
.entry-content figure {
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.entry-content figure img { width: 100%; height: auto; }
.entry-content figcaption {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 0.75rem;
}

/* Post header */
.post-header {
  background: var(--color-bg-soft);
  padding: 4.5rem 0 3rem;
  text-align: center;
}
.post-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.15;
  max-width: 760px;
  margin: 1rem auto 0;
}
.post-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.post-meta-sep { color: var(--color-border); }
.post-category-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}
.post-category-link:hover { text-decoration: underline; }
.post-feat-img {
  margin: 3rem auto 0;
  max-width: var(--container-max);
  padding-inline: var(--container-pad);
}
.post-feat-img img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.post-body-wrap {
  padding: 4rem 0;
}

/* ── WOOCOMMERCE LAYOUT ──────────────────────────────────── */
.woo-archive-header { text-align: center; margin-bottom: 3rem; }
.woo-archive-header p { color: var(--color-text-muted); max-width: 560px; margin: 0 auto; }
.woo-section { padding-block: 5rem; }
.woo-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  overflow: auto;
}
.woo-product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}
.woo-product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.woo-product-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.woo-product-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.woo-product-price {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-accent);
}
.woo-product-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}
.woo-product-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Single product */
.woo-product-single { padding-block: 5rem; }
.woo-product-single-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.woo-product-image-col img {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.woo-product-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}
.woo-product-info-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
}
.woo-product-meta { font-size: 0.9rem; color: var(--color-text-muted); }
.woo-what-you-get {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}
.woo-what-you-get h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-text);
}

/* ── ═══════════════════════════════════════════════════════ */
/* RESPONSIVE BREAKPOINTS                                     */
/* ════════════════════════════════════════════════════════ */

/* ── 1280px — wide desktop ───────────────────────────────── */
@media (max-width: 1280px) {
  :root { --container-pad: clamp(1.5rem, 4vw, 3rem); }
  .talents-grid { grid-template-columns: repeat(3, 1fr); }
  .process-steps { gap: 1.5rem; }
  .gallup-trust-stats { grid-template-columns: 1fr; }
}

/* ── 1024px — laptop / tablet landscape ─────────────────── */
@media (max-width: 1024px) {
  .section-padding { padding-block: 4rem; }

  .bio-inner,
  .approach-inner,
  .about-teaser-inner,
  .dla-kogo-inner,
  .oferta-inner { gap: 2.5rem; }

  .oferta-image { order: -1; max-height: 350px; }

  .products-grid { gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
  .products-grid--full { grid-template-columns: repeat(2, 1fr); }
  .blog-grid     { grid-template-columns: repeat(2, 1fr); }
  .talents-grid  { grid-template-columns: repeat(3, 1fr); }

  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }

  .gallup-trust-inner  { flex-direction: column; align-items: flex-start; }
  .gallup-trust-stats  { grid-template-columns: repeat(3, 1fr); width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }

  .woo-product-single-inner { grid-template-columns: 1fr; }
  .woo-product-info-col { position: static; }
  .woo-products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 768px — tablet portrait ─────────────────────────────── */
@media (max-width: 768px) {
  :root { --container-pad: 1.25rem; }

  /* navigation */
  .nav-desktop { display: none; }
  .nav-cta     { display: none; }
  .nav-toggle  { display: flex !important; }

  .mobile-nav-inner {
    position: fixed;
    z-index: var(--z-header);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-y: auto;
    padding: 4rem 2rem 2rem;
  }

  /* hero */
  .hero .container,
  .hero-inner {
    grid-template-columns: 1fr !important;
    min-height: auto;
    padding-block: 4rem;
    gap: 2.5rem;
  }
  .hero-headline { font-size: clamp(1.875rem, 6vw, 2.75rem); }
  .hero-image-wrap { order: -1; max-width: 400px; margin-inline: auto; }

  /* two-col → one-col */
  .bio-inner,
  .approach-inner,
  .about-teaser-inner,
  .contact-inner,
  .dla-kogo-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  .oferta-inner { grid-template-columns: 1fr !important; }
  .contact-inner { direction: initial; }

  /* hide oferta image on mobile — adds no value at narrow widths */
  .oferta-image { display: none; }

  /* reorder: image after text on mobile for most layouts */
  .bio-image-col    { order: -1; }
  .approach-image-col { order: -1; }
  .about-teaser-image { order: -1; max-height: 400px; }
  .dla-kogo-image   { order: -1; max-height: 400px; }
  .oferta-image     { order: -1; max-height: 400px; }

  /* grids */
  .products-grid,
  .products-grid--full { grid-template-columns: 1fr !important; max-width: 480px; margin-inline: auto; }
  .blog-grid       { grid-template-columns: 1fr !important; }
  .talents-grid    { grid-template-columns: repeat(2, 1fr) !important; }
  .dla-kogo-grid   { grid-template-columns: 1fr !important; }
  .woo-products-grid { grid-template-columns: 1fr !important; max-width: 480px; margin-inline: auto; }
  .testimonials-grid { grid-template-columns: 1fr !important; max-width: 480px; margin-inline: auto; }

  /* process */
  .process-steps { grid-template-columns: 1fr !important; gap: 1rem; }

  /* gallup stats */
  .gallup-trust-stats { grid-template-columns: repeat(3, 1fr) !important; }

  /* footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 2rem; }

  /* post nav */
  .post-navigation { grid-template-columns: 1fr !important; }

  /* form */
  .form-row { grid-template-columns: 1fr !important; }
}

/* ── 480px — large phone ─────────────────────────────────── */
@media (max-width: 480px) {
  .section-padding  { padding-block: 3rem; }
  .hero .container  { padding-block: 3rem; }
  .hero-actions     { flex-direction: column; align-items: center; }
  .cta-actions      { flex-direction: column; align-items: center; }
  .bio-actions      { justify-content: center; }
  .btn-lg           { width: 100%; justify-content: center; }

  .talents-grid       { grid-template-columns: 1fr !important; }
  .gallup-trust-stats { grid-template-columns: 1fr !important; }

  .testimonial-card      { padding: 1.75rem 1.25rem; }
  .testimonial-quote-mark { font-size: 2.75rem; }

  .page-hero { padding: 3.5rem 0 2.5rem; }

  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-bottom-links { flex-wrap: wrap; gap: 1rem; }

  .post-cta { padding: 2rem 1.5rem; }
  .error-actions { flex-direction: column; align-items: center; }
}

/* ── 375px — small phone ─────────────────────────────────── */
@media (max-width: 375px) {
  :root { --container-pad: 1rem; }
  .hero-title { font-size: 1.75rem; }
}

/* ── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── PRINT ───────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .mobile-nav { display: none !important; }
  .hero-overlay { display: none; }
  body { color: #000; background: #fff; }
  a::after { content: " (" attr(href) ")"; }
}
