/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0F1923;
  --bg-card:   #162130;
  --bg-light:  #1C2A3A;
  --steel:     #8FAFC0;
  --steel-dim: #5E7E95;
  --gold:      #C9A96E;
  --gold-dark: #A8823F;
  --white:     #F0F4F7;
  --muted:     #7A90A0;
  --border:    rgba(143,175,192,0.15);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius: 8px;
  --radius-lg: 14px;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,25,35,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}

.logo-svg {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(201,169,110,0.15));
  transition: filter 0.2s;
}

.logo:hover .logo-svg {
  filter: drop-shadow(0 0 10px rgba(201,169,110,0.3));
}

.logo em {
  font-style: normal;
  color: var(--steel);
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--white); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--bg) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--gold-dark) !important; color: var(--white) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,169,110,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.standards-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.standards-bar .sep {
  color: var(--steel-dim);
  font-weight: 400;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin-bottom: 24px;
}

.accent-word {
  color: var(--steel);
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}

.btn-primary:hover { background: var(--gold-dark); }

.btn-ghost {
  background: transparent;
  color: var(--steel);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--steel); color: var(--white); }

.btn-full { width: 100%; justify-content: center; }

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-dark {
  background: var(--bg-light);
}

.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  line-height: 1.15;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--steel-dim);
  transform: translateY(-2px);
}

.service-icon {
  color: var(--steel);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--white);
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: 13px;
  color: var(--steel);
  padding-left: 18px;
  position: relative;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--steel-dim);
}

/* ===== PROCESS ===== */
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 14px;
}

.step h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}

.step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.step-arrow {
  color: var(--steel-dim);
  font-size: 24px;
  margin-top: 40px;
  align-self: flex-start;
  flex-shrink: 0;
}

/* ===== WHY GRID ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(201,169,110,0.12);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-top: 2px;
}

.why-item h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.why-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.section-contact {
  background: var(--bg-light);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: flex-start;
}

.contact-info h2 { margin-bottom: 16px; }

.contact-info > p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-dim);
}

.contact-detail a,
.contact-detail span {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.8;
}

.contact-detail a:hover { color: var(--gold); }

/* ===== FORM ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--steel);
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  resize: vertical;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--steel);
}

.form-success {
  background: rgba(100, 200, 120, 0.1);
  border: 1px solid rgba(100, 200, 120, 0.3);
  color: #7edb8e;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 8px;
}

.form-error {
  background: rgba(220, 80, 80, 0.1);
  border: 1px solid rgba(220, 80, 80, 0.3);
  color: #f08080;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 8px;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ===== STANDARDS BUTTONS ===== */
.std-btn {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  line-height: 1;
}

.std-btn:hover {
  border-color: rgba(201,169,110,0.4);
  background: rgba(201,169,110,0.08);
}

/* ===== MODAL ===== */
.std-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,12,20,0.85);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.std-modal-overlay.active {
  display: flex;
}

.std-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}

.std-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.std-modal-close:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

.std-modal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.std-modal-code {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--steel-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.std-modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.std-modal-intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.std-modal-section {
  margin-bottom: 20px;
}

.std-modal-section h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--steel);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.std-modal-section p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.std-modal-cta {
  display: inline-flex;
  margin-top: 12px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-open .main-nav { display: flex; }

  .menu-toggle { display: flex; }

  .hero { padding: 56px 0 72px; }

  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }

  .form-row { grid-template-columns: 1fr; }

  .process-steps { flex-direction: column; }

  .step-arrow { display: none; }

  .services-grid { grid-template-columns: 1fr; }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
}

.lang-btn img {
  border-radius: 2px;
  display: block;
}

.lang-btn:hover {
  border-color: var(--steel-dim);
  color: var(--white);
}

.lang-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,110,0.08);
}

@media (max-width: 768px) {
  .lang-switch { order: -1; }
}

/* ===== FOOTER LEGAL ===== */
.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--gold); }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 90px;
  left: 24px;
  right: 24px;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 900;
  transition: opacity 0.3s, transform 0.3s;
}

.cookie-banner.hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.cookie-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.cookie-text a {
  color: var(--steel);
  text-decoration: underline;
}

.cookie-actions { flex-shrink: 0; }

.cookie-btn {
  padding: 8px 18px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.cookie-accept {
  background: var(--gold);
  color: var(--bg);
}

.cookie-accept:hover { background: var(--gold-dark); }

@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; bottom: 100px; left: 12px; right: 12px; }
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  transition: background 0.2s, transform 0.15s;
  position: relative;
}

.chat-toggle:hover { background: var(--gold-dark); transform: scale(1.05); }

.chat-icon-close { display: none; }
.chat-toggle.open .chat-icon-open { display: none; }
.chat-toggle.open .chat-icon-close { display: block; }

.chat-panel {
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 500px;
  max-height: calc(100vh - 120px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.2s, transform 0.2s;
}

.chat-panel.open {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chat-header {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chat-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201,169,110,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-header-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
}

.chat-header-sub {
  font-size: 12px;
  color: var(--muted);
}

.chat-header-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.chat-header-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.chat-msg-bot {
  background: var(--bg-light);
  color: var(--white);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg-user {
  background: var(--gold);
  color: var(--bg);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 0 18px 10px;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--steel-dim);
  animation: chatTypingBounce 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.chat-input-row input {
  flex: 1;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 16px;
  outline: none;
}

.chat-input-row input::placeholder { color: var(--muted); }
.chat-input-row input:focus { border-color: var(--steel); }

.chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.chat-send:hover { background: var(--gold-dark); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
