/* page.css - Common styles for inner pages */

/* Clear fixed header on all pages */
body { padding-top: 0; }

/* Page Hero - used on all inner pages as the intro section */
.page-hero {
  background-color: var(--color-black);
  padding: calc(var(--hdr-h) + 80px) 5% 80px;
  min-height: 40vh;
  display: flex;
  align-items: center;
}
.page-hero > * { max-width: var(--max-1220); width: 100%; margin: 0 auto; }
.page-hero h1 { color: var(--color-off-white); font-size: clamp(40px, 6vw, 80px); line-height: 1.1; margin-bottom: 1.5rem; }
.page-hero .subtitle,
.page-hero .hero-sub { color: var(--color-grey); font-size: clamp(18px, 2.5vw, 25px); line-height: 1.5; max-width: 700px; }
.page-hero .color-red { color: var(--color-red); }

/* Content sections */
.content-section { padding: 80px 0; }
.content-section.bg-black { background: var(--color-black); }
.content-section.bg-off-white { background: var(--color-off-white); }

/* Inner pages: all .section get horizontal padding + centered content */
.section {
  padding-left: 5%;
  padding-right: 5%;
}
.section > .text-content,
.section > .split-section,
.section > .steps-list,
.section > .contact-grid,
.section > .legal-content,
.section > .proj-grid {
  max-width: var(--max-1220);
  margin-left: auto;
  margin-right: auto;
}

/* Text content */
.text-content { max-width: var(--max-1220); margin-left: auto; margin-right: auto; }
.text-content h2 { margin-bottom: 1.5rem; }
.text-content h3 { margin-bottom: 1rem; margin-top: 2rem; }
.text-content p  { font-size: 20px; line-height: 1.6; margin-bottom: 1.2em; }
.text-content ul, .text-content ol { padding-left: 1.5rem; margin-bottom: 1.5em; }
.text-content li { font-size: 20px; line-height: 1.6; margin-bottom: 0.5em; }
.text-content a  { color: var(--color-red); text-decoration: underline; }
.text-content strong { font-weight: 700; }

/* Feature grid - 2 or 3 columns */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-card {
  padding: 2.5rem 2rem;
  border: 2px solid var(--color-off-white);
  border-radius: var(--border-radius);
}
.feature-card h3 { margin-bottom: 1rem; font-size: 25px; }
.feature-card p  { font-size: 18px; line-height: 1.6; }

/* Two-column text + image layout */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }
.split-section img { width: 100%; border-radius: 12px; }

/* Process/steps */
.steps-list { display: flex; flex-direction: column; gap: 2rem; }
.step-item, .step { display: flex; gap: 2rem; align-items: flex-start; }
.step-number, .step-num { font-size: 50px; font-weight: 700; color: var(--color-red); line-height: 1; min-width: 60px; flex-shrink: 0; }
.step-body h3 { margin-bottom: 0.5rem; }

/* Projekt card grid */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info h2 { margin-bottom: 2rem; }
.contact-info p  { font-size: 20px; line-height: 1.8; }
.contact-info a  { color: var(--color-red); }
.contact-form { background: var(--color-white, #fff); border: 2px solid var(--color-black); border-radius: var(--border-radius); padding: 2.5rem; }
.contact-form h2 { margin-bottom: 2rem; }

/* Legal text */
.legal-content { max-width: 800px; }
.legal-content h1 { margin-bottom: 3rem; }
.legal-content h2 { font-size: 30px; margin: 2.5rem 0 1rem; }
.legal-content h3 { font-size: 22px; margin: 2rem 0 0.75rem; }
.legal-content p, .legal-content li { font-size: 17px; line-height: 1.8; color: #444; }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; margin-bottom: 1em; }
.legal-content a { color: var(--color-red); text-decoration: underline; }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
.team-card { text-align: center; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-bottom: 1rem; }
.team-card h3 { font-size: 20px; margin-bottom: 0.25rem; }
.team-card p { font-size: 16px; color: #666; }

/* Tag / badge */
.badge { display: inline-block; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-red); background: rgba(240,83,62,.1); padding: 3px 12px; border-radius: 100px; }

/* CTA section */
.cta-section { text-align: center; padding: 100px 5%; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p  { font-size: 22px; margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---- Filter bar ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 3rem;
}
.filter-btn {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 15px;
  padding: 7px 18px;
  border: 2px solid var(--color-black);
  border-radius: 100px;
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--color-black);
  color: var(--color-off-white);
}

/* ---- Project card grid ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.project-card {
  border: 2px solid var(--color-black);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-off-white);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
}
.project-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  transform: translateY(-4px);
}
.project-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.project-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.75rem;
}
.project-card__cat {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-red);
  background: rgba(240,83,62,.1);
  padding: 3px 10px;
  border-radius: 100px;
}
.project-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.project-card__desc {
  font-size: 17px;
  line-height: 1.6;
  color: #555;
  flex: 1;
  margin-bottom: 1.25rem;
}
.project-card__link {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.project-card__link::after {
  content: '→';
}

/* Responsive */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid.cols-2 { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 2rem; }
  .split-section.reverse { direction: ltr; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .feature-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .proj-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 36px; }
}
