/* ══════════════════════════════════════════════
   ostrovsky-web.de — Design System & Styles
   Swiss-Clean v3
   ══════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* Colors */
  --color-bg:         #FAFAF8;
  --color-text:       #2B2B2B;
  --color-text-muted: #6B6B66;
  --color-text-light: #A0A09A;
  --color-accent:     #C4654A;
  --color-accent-hover:#B55A41;
  --color-dark:       #3A3632;
  --color-dark-card:  #2B2B2B;
  --color-border:     #E0E0DE;
  --color-surface:    #F3F3F0;

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-serif:   'Instrument Serif', serif;

  /* Spacing */
  --space-section: 120px;
  --space-group:   64px;
  --space-element: 24px;
  --space-gutter:  80px;

  /* Layout */
  --max-width: 1440px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); }
a { text-decoration: none; color: inherit; cursor: pointer; }

/* ── Hero Block (Nav + Hero combined) ── */
.hero-block {
  position: relative;
  background: var(--color-dark);
  overflow: hidden;
}
.hero-block::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/hero-dark-bg.png') center/cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}
.hero-block::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(58,54,50,0.6) 0%, rgba(58,54,50,0.9) 70%, rgba(58,54,50,1) 100%);
  pointer-events: none;
}

/* ── Nav ── */
.nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--space-gutter); width: 100%; max-width: var(--max-width); margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 700; letter-spacing: -0.02em; color: var(--color-bg);
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 15px; color: rgba(250,250,248,0.7); transition: color 0.2s; }
.nav-links a:hover { color: var(--color-bg); }
.btn-nav {
  display: inline-flex; align-items: center;
  background: rgba(250,250,248,0.12); border: 1px solid rgba(250,250,248,0.2);
  color: var(--color-bg); border-radius: 6px;
  padding: 10px 28px; font-size: 15px; font-family: var(--font-body);
  backdrop-filter: blur(8px); transition: background 0.2s;
}
.btn-nav:hover { background: rgba(250,250,248,0.2); }

/* ── Hero ── */
.hero {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 100px var(--space-gutter) 120px;
  max-width: var(--max-width); margin: 0 auto;
  gap: 48px;
}
.hero-headline { display: flex; flex-direction: column; gap: 0; }
.hero-title {
  font-family: var(--font-display); font-size: 80px;
  font-weight: 700; color: var(--color-bg); letter-spacing: -0.03em; line-height: 84px;
}
.hero-title-accent {
  font-family: var(--font-serif); font-size: 80px;
  font-weight: 400; color: var(--color-accent); letter-spacing: -0.02em;
  line-height: 88px; font-style: italic;
}
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; }
.hero-desc {
  font-size: 17px; color: rgba(250,250,248,0.6); line-height: 28px; max-width: 440px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--color-accent); color: var(--color-bg); border-radius: 6px;
  padding: 18px 40px; font-size: 16px; font-weight: 500;
  transition: background 0.2s; flex-shrink: 0;
}
.btn-primary:hover { background: var(--color-accent-hover); }

/* ── Trust Bar ── */
.trust-bar {
  display: flex; max-width: var(--max-width); margin: 0 auto; width: 100%;
  padding: 44px var(--space-gutter);
  border-bottom: 1px solid var(--color-border);
}
.trust-item { flex: 1; }
.trust-value {
  font-family: var(--font-display); font-size: 32px;
  font-weight: 700; letter-spacing: -0.02em; color: var(--color-text); font-style: italic;
}
.trust-label { font-size: 14px; color: var(--color-text-light); margin-top: 4px; }

/* ── Services ── */
.services {
  display: flex; flex-direction: column; gap: var(--space-group);
  padding: var(--space-section) var(--space-gutter); max-width: var(--max-width); margin: 0 auto;
}
.services-header { display: flex; gap: 120px; align-items: flex-start; }
.services-header-left { width: 320px; flex-shrink: 0; }
.section-label {
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display); font-size: 36px;
  font-weight: 700; letter-spacing: -0.02em; line-height: 44px;
}
.services-header-desc { font-size: 16px; color: var(--color-text-muted); line-height: 28px; flex: 1; padding-top: 36px; }
.service-grid { display: flex; flex-wrap: wrap; gap: var(--space-element); }
.service-card {
  flex: 1 1 calc(33.333% - 16px); min-width: 300px;
  border: 1px solid var(--color-border); border-radius: 8px;
  padding: 36px; display: flex; flex-direction: column; gap: 20px;
  background: transparent; transition: all 0.2s; cursor: pointer;
}
.service-card:hover { background: var(--color-surface); border-color: #D0D0CC; }
.service-card.featured {
  background: var(--color-dark-card); border-color: var(--color-dark-card); color: var(--color-bg);
}
.service-card.featured:hover { background: #363636; }
.service-card-top { display: flex; justify-content: space-between; align-items: center; }
.service-num { font-family: var(--font-body); font-size: 13px; color: var(--color-text-light); }
.service-card.featured .service-num { color: #888; }
.service-card-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.service-card-desc { font-size: 14px; color: var(--color-text-muted); line-height: 22px; }
.service-card.featured .service-card-desc { color: #AAA; }

/* ── Workspace Image Strip ── */
.workspace-strip { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-gutter); }
.workspace-strip img {
  width: 100%; height: 320px; object-fit: cover; border-radius: 12px; display: block;
}

/* ── About ── */
.about {
  display: flex; gap: 0; align-items: stretch;
  padding: var(--space-section) var(--space-gutter); max-width: var(--max-width); margin: 0 auto;
}
.about-left { display: flex; flex-direction: column; gap: var(--space-element); width: 480px; flex-shrink: 0; }
.about-name {
  font-family: var(--font-display); font-size: 36px;
  font-weight: 700; letter-spacing: -0.02em;
}
.about-bio { font-size: 16px; color: var(--color-text-muted); line-height: 26px; }
.about-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--color-accent); font-size: 16px; font-weight: 500; transition: color 0.2s;
}
.about-link:hover { color: var(--color-accent-hover); }
.about-right {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-start;
  padding-top: 40px;
}
.about-skill-row {
  display: flex; align-items: baseline; padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.about-skill-row:first-child { border-top: 1px solid var(--color-border); }
.about-skill-label { font-size: 15px; font-weight: 500; color: var(--color-text); width: 140px; flex-shrink: 0; }
.about-skill-value { font-size: 15px; color: var(--color-text-muted); }

/* ── CTA ── */
.cta { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-gutter); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 16px; padding: 80px;
  background: var(--color-dark-card); position: relative; overflow: hidden;
}
.cta-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.15; pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display); font-size: 40px;
  font-weight: 700; color: var(--color-bg); letter-spacing: -0.02em;
}
.cta-desc { font-size: 16px; color: var(--color-text-light); margin-top: 12px; }
.btn-cta {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--color-accent); color: var(--color-bg); border-radius: 8px;
  padding: 18px 40px; font-size: 16px; font-weight: 500;
  transition: background 0.2s;
}
.btn-cta:hover { background: var(--color-accent-hover); }

/* ── Footer ── */
.footer {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 48px var(--space-gutter); max-width: var(--max-width); margin: 64px auto 0;
  border-top: 1px solid var(--color-border);
}
.footer-brand-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.footer-brand-sub { font-size: 13px; color: var(--color-text-light); margin-top: 4px; }
.footer-columns { display: flex; gap: 80px; }
.footer-col-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-text-light); margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 15px; color: var(--color-text-muted); margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--color-text); }

/* ── Page Header (light, for interior pages) ── */
.page-header {
  padding: 80px var(--space-gutter) 64px;
  max-width: var(--max-width); margin: 0 auto;
}
.page-header h1 {
  font-family: var(--font-display); font-size: 48px;
  font-weight: 700; letter-spacing: -0.02em; line-height: 56px;
  margin-top: 16px;
}
.page-header .page-header-desc {
  font-size: 17px; color: var(--color-text-muted); line-height: 28px;
  max-width: 680px; margin-top: 20px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 14px; color: var(--color-text-light); margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}
.breadcrumb a { color: var(--color-text-light); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--color-text); }
.breadcrumb .breadcrumb-sep { color: var(--color-border); }
.breadcrumb .breadcrumb-current { color: var(--color-text); }

/* ── Content Section ── */
.content-section {
  padding: var(--space-section) var(--space-gutter);
  max-width: var(--max-width); margin: 0 auto;
}
.content-section h2 {
  font-family: var(--font-display); font-size: 28px;
  font-weight: 700; letter-spacing: -0.02em; line-height: 36px;
  margin-bottom: 20px;
}
.content-section h3 {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 600; line-height: 28px; margin-bottom: 12px;
}
.content-section p {
  font-size: 16px; color: var(--color-text-muted); line-height: 28px;
  margin-bottom: 16px;
}

/* ── Detail List (bullet points in service detail) ── */
.detail-list {
  list-style: none; padding: 0; margin: 0 0 24px 0;
}
.detail-list li {
  font-size: 15px; color: var(--color-text-muted); line-height: 26px;
  padding: 4px 0 4px 20px; position: relative;
}
.detail-list li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent);
}

/* ── Service Detail Block (sub-service with border separator) ── */
.service-detail {
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-detail:first-child { padding-top: 0; }
.service-detail:last-child { border-bottom: none; }

/* ── Problem Section (pain points callout) ── */
.problem-section {
  background: var(--color-surface); border-radius: 12px;
  padding: 48px; margin-bottom: 16px;
}
.problem-section h2 { margin-bottom: 16px; }
.problem-section .problem-intro {
  font-size: 16px; color: var(--color-text-muted); line-height: 28px;
  margin-bottom: 24px;
}
.problem-list {
  list-style: none; padding: 0; margin: 0;
}
.problem-list li {
  font-size: 15px; color: var(--color-text-muted); line-height: 26px;
  padding: 8px 0 8px 20px; position: relative;
}
.problem-list li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent);
}
.problem-list li strong { color: var(--color-text); font-weight: 600; }

/* ── Process Steps ── */
.process-steps {
  display: flex; flex-direction: column; gap: 0;
  position: relative; padding-left: 48px;
}
.process-steps::before {
  content: ''; position: absolute; left: 15px; top: 8px;
  bottom: 8px; width: 1px; background: var(--color-border);
}
.process-step {
  position: relative; padding: 20px 0;
}
.process-step-num {
  position: absolute; left: -48px; top: 20px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-bg); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 13px;
  font-weight: 700; color: var(--color-accent); z-index: 1;
}
.process-step-title {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 600; margin-bottom: 8px;
}
.process-step-desc {
  font-size: 15px; color: var(--color-text-muted); line-height: 26px;
}

/* ── Tech Table ── */
.tech-table {
  width: 100%; border-collapse: collapse;
}
.tech-table thead th {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-text-light); text-align: left;
  padding: 12px 0; border-bottom: 2px solid var(--color-border);
}
.tech-table tbody td {
  font-size: 15px; color: var(--color-text-muted); line-height: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--color-border);
}
.tech-table tbody td:first-child {
  font-weight: 600; color: var(--color-text); width: 280px;
}

/* ── FAQ Accordion ── */
.faq { margin: 0; padding: 0; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item summary {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  padding: 24px 40px 24px 0; cursor: pointer; list-style: none;
  position: relative; line-height: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 24px;
  font-family: var(--font-display); font-size: 24px; font-weight: 400;
  color: var(--color-text-light); transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-item .faq-answer {
  font-size: 15px; color: var(--color-text-muted); line-height: 26px;
  padding: 0 40px 24px 0;
}

/* ── Interior Hero (dark, smaller — for overview pages) ── */
.hero-interior {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 80px var(--space-gutter) 80px;
  max-width: var(--max-width); margin: 0 auto;
  gap: 24px;
}
.hero-interior .section-label { color: var(--color-accent); }
.hero-interior h1 {
  font-family: var(--font-display); font-size: 56px;
  font-weight: 700; color: var(--color-bg); letter-spacing: -0.03em;
  line-height: 64px;
}
.hero-interior .hero-interior-desc {
  font-size: 17px; color: rgba(250,250,248,0.6); line-height: 28px;
  max-width: 600px;
}

/* ── Why Section (feature list with bold labels) ── */
.why-section {
  display: flex; gap: 120px; align-items: flex-start;
}
.why-section-left { width: 320px; flex-shrink: 0; }
.why-list {
  flex: 1; list-style: none; padding: 0; margin: 0;
}
.why-list li {
  font-size: 16px; color: var(--color-text-muted); line-height: 28px;
  padding: 16px 0; border-bottom: 1px solid var(--color-border);
}
.why-list li:first-child { border-top: 1px solid var(--color-border); }
.why-list li strong { color: var(--color-text); font-weight: 600; }

/* ══════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════ */

/* ── Mobile Nav ── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative; z-index: 10;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--color-bg); position: absolute; left: 5px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 21px; }
.nav-toggle.active span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 15px; transform: rotate(-45deg); }
.nav-toggle-light span { background: var(--color-text); }
.nav-toggle-light.active span { background: var(--color-bg); }

/* Nav light variant (subpages with light background) */
.nav-light { padding-top: 28px; padding-bottom: 28px; }
.nav-light .nav-logo { color: var(--color-text); }
.nav-light .nav-links a { color: var(--color-text-muted); }
.nav-light .btn-nav { color: var(--color-text); background: rgba(43,43,43,0.08); border-color: var(--color-border); }

/* ── Tablet (max-width: 1024px) ── */
@media (max-width: 1024px) {
  :root {
    --space-gutter: 40px;
    --space-section: 80px;
    --space-group: 48px;
  }

  .hero { padding: 80px var(--space-gutter) 100px; }
  .hero-title, .hero-title-accent { font-size: 64px; line-height: 68px; }

  .services-header { flex-direction: column; gap: 24px; }
  .services-header-left { width: 100%; }
  .services-header-desc { padding-top: 0; }

  .about { flex-direction: column; gap: var(--space-group); }
  .about-left { width: 100%; }
  .about-right { padding-top: 0; }

  .why-section { flex-direction: column; gap: 24px; }
  .why-section-left { width: 100%; }

  .cta-inner { padding: 56px; }
  .cta-title { font-size: 32px; }

  .footer-columns { gap: 40px; }
}

/* ── Mobile landscape (max-width: 768px) ── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; align-items: stretch;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--color-dark); z-index: 5;
    padding: 100px 40px 40px; gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 24px; color: rgba(250,250,248,0.7);
    padding: 16px 0; border-bottom: 1px solid rgba(250,250,248,0.1);
  }
  .nav-links a[style] { color: rgba(250,250,248,0.7) !important; }
  .nav-links .btn-nav,
  .nav-links .btn-nav[style] {
    margin-top: 24px; border: none !important;
    background: var(--color-accent) !important;
    color: var(--color-bg) !important;
    padding: 16px 28px; text-align: center; justify-content: center;
    font-size: 18px;
  }
  .nav { z-index: 10; }

  .hero { padding: 60px var(--space-gutter) 80px; gap: 36px; }
  .hero-title, .hero-title-accent { font-size: 48px; line-height: 52px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 28px; }

  .trust-bar { flex-wrap: wrap; gap: 0; }
  .trust-item { flex: 1 1 50%; padding: 12px 0; }
  .trust-value { font-size: 28px; }

  .service-card { min-width: 100%; }

  .workspace-strip img { height: 220px; }

  .cta-inner { flex-direction: column; gap: 32px; padding: 40px; text-align: center; align-items: center; }

  .footer { flex-direction: column; gap: 40px; }
  .footer-columns { flex-wrap: wrap; gap: 32px; }

  .page-header h1 { font-size: 36px; line-height: 44px; }
  .hero-interior h1 { font-size: 40px; line-height: 48px; }

  .problem-section { padding: 32px; }
  .tech-table tbody td:first-child { width: auto; }
}

/* ── Mobile portrait (max-width: 480px) ── */
@media (max-width: 480px) {
  :root {
    --space-gutter: 20px;
    --space-section: 64px;
    --space-group: 36px;
  }

  .hero-title, .hero-title-accent { font-size: 36px; line-height: 40px; }
  .hero-desc { font-size: 15px; line-height: 24px; }

  .trust-bar { flex-direction: column; }
  .trust-item { flex: 1 1 100%; padding: 10px 0; }

  .section-title { font-size: 28px; line-height: 36px; }
  .about-name { font-size: 28px; }

  .service-card { padding: 28px; }

  .cta-inner { padding: 32px 24px; }
  .cta-title { font-size: 26px; }
  .btn-cta { padding: 16px 32px; font-size: 15px; }

  .workspace-strip img { height: 180px; }

  .page-header h1 { font-size: 30px; line-height: 38px; }
  .hero-interior h1 { font-size: 32px; line-height: 40px; }

  .footer-columns { flex-direction: column; gap: 28px; }

  .about-skill-label { width: 100px; }

  .process-steps { padding-left: 36px; }
  .process-step-num { left: -36px; width: 28px; height: 28px; font-size: 12px; }
}
