@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

:root {
  --bg: #0b0b0f;
  --bg-soft: #131318;
  --surface: #161620;
  --surface-hover: #1c1c28;
  --surface-strong: #1e1e2a;
  --text: #f5f5f5;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --muted: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #e8572a;
  --accent-hover: #f06a40;
  --accent-soft: rgba(232, 87, 42, 0.15);
  --accent-glow: rgba(232, 87, 42, 0.25);
  --success: #34d399;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.3);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #c44520);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.brand-mark-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.lang-button {
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.lang-button.is-active {
  background: var(--accent);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

/* ── Buttons ── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 30px var(--accent-glow);
}

.button-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.button-secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

/* ── Hero ── */

.hero,
.page-hero {
  padding: 100px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.hero-grid,
.page-grid,
.contact-layout,
.grid {
  display: grid;
  gap: 26px;
}

.hero-grid-home {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  justify-items: center;
}

.page-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: stretch;
}

/* ── Hero copy ── */

.hero-copy,
.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  border: none;
  background: transparent;
  padding: 0;
  max-width: 820px;
}

.hero-copy::after {
  display: none;
}

.hero-copy-home {
  padding: 0;
}

.hero-panel {
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  text-align: left;
  max-width: 820px;
  width: 100%;
}

.hero-panel h2,
.hero-panel p,
.hero-panel li,
.hero-panel .panel-label,
.hero-panel strong {
  color: inherit;
}

.hero-panel p,
.hero-panel li {
  color: var(--text-secondary);
}

/* ── Eyebrow ── */

.eyebrow,
.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.82rem;
  margin-bottom: 24px;
}

.hero .eyebrow::before {
  content: "\26A1";
  font-size: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero-panel .panel-label {
  color: var(--muted);
}

/* ── Typography ── */

.hero-copy h1,
.page-hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-copy h1 span,
h1 .accent-text {
  color: var(--accent);
}

.hero-copy p,
.page-hero p,
.section-copy,
.service-card p,
.target-card p,
.project-card p,
.difference-card p,
.process-card p,
.contact-card p,
.info-card p,
.legal-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.hero-lead {
  max-width: 38rem;
  font-size: 1.12rem;
  margin: 0 auto;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  justify-content: center;
}

.hero-proofline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  justify-content: center;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Lists ── */

.hero-points,
.service-points,
.contact-list,
.mini-list,
.project-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.1rem;
}

.hero-points li,
.service-points li,
.contact-list li,
.mini-list li,
.project-points li {
  margin: 0;
  color: var(--text-secondary);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-stat {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.mini-stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.15rem;
  color: var(--accent);
}

/* ── Sections ── */

.section {
  padding: 48px 0;
}

.section-contrast {
  padding: 56px 0;
  background: var(--bg-soft);
}

.section-process {
  padding-top: 28px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.section-copy {
  max-width: 34rem;
}

/* ── Cards (shared) ── */

.service-card,
.target-card,
.project-card,
.difference-card,
.process-card,
.contact-card,
.info-card,
.legal-card,
.contact-band,
.quick-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  transition: border-color 0.3s, background 0.3s;
}

.service-card:hover,
.target-card:hover,
.difference-card:hover,
.process-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.contact-card,
.info-card,
.legal-card,
.service-card,
.project-card,
.difference-card,
.process-card,
.target-card,
.quick-card {
  padding: 34px;
}

/* ── Target grid ── */

.target-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.target-card h3,
.project-card h3,
.difference-card h3,
.process-card h3,
.service-card h2,
.service-card h3,
.info-card h2,
.info-card h3,
.contact-card h2,
.legal-card h3 {
  margin: 0 0 12px;
  font-size: 1.34rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* ── Projects ── */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border-color: var(--line-strong);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.project-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.project-stage {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

.project-summary {
  margin-bottom: 14px !important;
}

/* ── Services ── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #f59e0b);
}

.service-index,
.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.service-card .service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  opacity: 0.85;
}

.service-card-detailed {
  min-height: 100%;
}

.service-card-detailed p {
  margin-bottom: 16px;
}

/* ── Difference / Process ── */

.difference-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ── Contact band ── */

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  background: linear-gradient(135deg, var(--surface-strong), rgba(232, 87, 42, 0.08));
  border: 1px solid var(--line-strong);
}

.contact-band h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 3vw, 3.05rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.contact-band-actions {
  display: grid;
  justify-items: start;
  gap: 14px;
  min-width: 250px;
}

.response-time {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

/* ── Grid utilities ── */

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ── Contact page ── */

.contact-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 14px 15px;
  color: var(--text);
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-field select {
  appearance: none;
}

.contact-meta {
  display: grid;
  gap: 10px;
}

.contact-meta a {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--accent);
}

.form-status {
  margin: 4px 0 0;
  min-height: 24px;
  font-size: 0.95rem;
  font-weight: 700;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: #ef4444;
}

/* ── Legal ── */

.legal-card + .legal-card {
  margin-top: 18px;
}

/* ── Footer ── */

.site-footer {
  margin-top: 48px;
  padding: 48px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr;
  gap: 24px;
}

.site-footer h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--text);
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--muted);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── i18n ── */

[data-lang-content][hidden],
.lang-copy[hidden] {
  display: none !important;
}

/* ── Particle dots (decorative) ── */

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ── Chat Widget ── */

.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 100; }

.chat-fab {
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
  display: grid; place-items: center; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 12px 32px var(--accent-glow); }

.chat-panel {
  display: none; flex-direction: column;
  position: absolute; bottom: 68px; right: 0;
  width: 370px; max-height: 520px;
  border-radius: var(--radius-xl); background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4); overflow: hidden;
}
.chat-panel.is-open { display: flex; }

.chat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.chat-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 0.75rem;
}
.chat-header strong { display: block; font-size: 0.92rem; color: var(--text); }
.chat-header span { font-size: 0.75rem; color: var(--muted); }
.chat-close {
  margin-left: auto; background: none; border: none;
  font-size: 1.5rem; color: var(--muted); cursor: pointer; padding: 4px;
}

.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 280px; max-height: 360px;
}

.chat-msg p {
  margin: 0; padding: 10px 14px; border-radius: 16px;
  font-size: 0.88rem; line-height: 1.5; max-width: 85%;
}
.chat-msg-bot p { background: var(--surface); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg-user p {
  background: var(--accent); color: #fff;
  border-bottom-right-radius: 4px; margin-left: auto;
}
.chat-msg-typing p { background: var(--surface); color: var(--muted); font-style: italic; }

.chat-input {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 1px solid var(--line); background: var(--bg);
}
.chat-input input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; font-size: 0.88rem;
  background: var(--surface); color: var(--text);
}
.chat-input input:focus { outline: none; border-color: var(--accent); }
.chat-input input::placeholder { color: var(--muted); }
.chat-input button {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}

@media (max-width: 480px) {
  .chat-panel { width: calc(100vw - 32px); right: -8px; bottom: 64px; max-height: 70vh; }
}

/* ── Responsive ── */

@media (max-width: 1100px) {
  .target-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid,
  .difference-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(20, 20, 20, 0.98);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a.is-active::after {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .header-actions {
    order: 3;
  }

  .hero-grid-home,
  .page-grid,
  .contact-layout,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.3rem);
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .contact-band {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .services-grid,
  .difference-grid,
  .process-grid,
  .projects-grid,
  .target-grid,
  .contact-form-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .hero,
  .page-hero {
    padding-top: 72px;
  }

  .contact-card,
  .info-card,
  .legal-card,
  .service-card,
  .project-card,
  .difference-card,
  .process-card,
  .target-card,
  .contact-band {
    padding: 24px;
  }

  .brand-tagline {
    display: none;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}
