/* ============================================
   CR Capital — statikus one-pager
   Monokróm, filmszerű dizájn / Jost betűtípus
   ============================================ */

:root {
  --background: oklch(0.985 0 0);
  --foreground: oklch(0.18 0 0);
  --secondary: oklch(0.94 0 0);
  --muted-foreground: oklch(0.45 0 0);
  --border: oklch(0.88 0 0);
  --ink: oklch(0.14 0 0);
  --paper: oklch(0.96 0 0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Utilities ---------- */

.heading-caps {
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.label-caps {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.rule-line {
  display: block;
  width: 2.5rem;
  height: 1px;
  background-color: currentColor;
}

.muted { color: var(--muted-foreground); }
.dim { opacity: 0.7; }

.icon {
  width: 1.75rem;
  height: 1.75rem;
}
.icon-sm { width: 1.5rem; height: 1.5rem; }
.icon-xs { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav-link:hover { color: var(--foreground); }

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
}

.lang-btn {
  opacity: 0.4;
  transition: opacity 0.2s;
}

.lang-btn:hover { opacity: 1; }
.lang-btn.active { opacity: 1; font-weight: 500; }
.lang-sep { opacity: 0.3; }

/* Mobile hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background-color: var(--foreground);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
}

.hero-img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, color-mix(in srgb, var(--ink) 70%, transparent), color-mix(in srgb, var(--ink) 30%, transparent), transparent);
}

.hero-content-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 36rem;
  color: var(--paper);
}

.hero-content .rule-line { margin-bottom: 2rem; }
.hero-content .hero-subtitle ~ .rule-line { margin-top: 2rem; margin-bottom: 2rem; }

.hero-title {
  font-size: 2.25rem;
  line-height: 1.2;
}

.hero-subtitle {
  margin-top: 1rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

.hero-text {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 28rem;
}

/* ---------- Sections ---------- */

.section {
  padding-block: 5rem;
}

.section-alt {
  background-color: color-mix(in srgb, var(--secondary) 50%, var(--background));
}

.section-title {
  margin-top: 1rem;
  font-size: 1.5rem;
  line-height: 1.8;
}

.section-lead {
  max-width: 28rem;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.8;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.about-text {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted-foreground);
}

#about .rule-line { margin-top: 1.5rem; margin-bottom: 2rem; }

/* ---------- Services ---------- */

#services .rule-spacer {
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  gap: 2.5rem;
}

.service-card {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}

.service-title {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.8;
}

.service-text {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.additional {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.additional-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.additional-title { font-size: 0.875rem; }

.additional-list {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2.5rem;
  row-gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--muted-foreground);
}

.additional-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.additional-list li::before {
  content: "";
  margin-top: 0.55em;
  width: 4px;
  height: 4px;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: color-mix(in srgb, var(--foreground) 40%, transparent);
}

/* ---------- Dark sections (clients, contact) ---------- */

.section-dark {
  position: relative;
  color: var(--paper);
}

.section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-dark-overlay {
  position: absolute;
  inset: 0;
  background-color: color-mix(in srgb, var(--ink) 70%, transparent);
}

.overlay-lighter {
  background-color: color-mix(in srgb, var(--ink) 60%, transparent);
}

.section-dark-content {
  position: relative;
}

.section-dark .rule-line {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Clients */

.clients-list {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2rem;
  row-gap: 1rem;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.025em;
}

.clients-list li {
  opacity: 0.8;
  transition: opacity 0.2s;
}

.clients-list li:hover { opacity: 1; }

/* Contact */

.contact-title { font-size: 1.5rem; }

.contact-row {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info {
  display: grid;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 300;
}

.contact-name { font-size: 0.875rem; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.contact-link:hover { opacity: 1; }

.socials {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.social-link:hover { opacity: 1; }

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--ink);
  color: var(--paper);
}

.footer-inner {
  padding-block: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

.footer-nav a { transition: opacity 0.2s; }
.footer-nav a:hover { opacity: 1; }

.lang-toggle-dark {
  color: var(--paper);
}

.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--paper) 10%, transparent);
  padding-block: 1rem;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* ---------- Mobile nav panel ---------- */

.main-nav.open {
  display: flex;
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
}

/* ---------- Breakpoints ---------- */

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

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
  .main-nav.open {
    position: static;
    flex-direction: row;
    background: none;
    border: none;
    padding: 0;
  }

  .section { padding-block: 7rem; }
  .section-title { font-size: 1.875rem; }
  .contact-title { font-size: 2.25rem; }

  .hero-img { height: 85vh; }
  .hero-title { font-size: 3.75rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-text { font-size: 1rem; }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  .additional-list { grid-template-columns: repeat(4, 1fr); }

  .clients-list { grid-template-columns: repeat(5, 1fr); }

  .contact-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .footer-inner {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}
