/* ===========================================
   Mercatum.eu — Stylesheet
   Light mode strict — do not switch to dark.
   =========================================== */

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --surface-soft: #F2EFE7;
  --ink: #1A1814;
  --ink-2: #4A4742;
  --ink-3: #8A867E;
  --border: rgba(26, 24, 20, 0.10);
  --border-strong: rgba(26, 24, 20, 0.18);
  --accent: #993C1D;
  --accent-dark: #7A2F18;
  --accent-soft: #F5C4B3;
  --accent-tint: #FAECE7;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: #fff; }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 48px; }
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo-mark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--ink);
}
.logo-tld {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1.2px;
}
.nav-links {
  display: none;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--ink); }
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--accent); }

/* ===== HERO ===== */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding: 120px 0 140px; }
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  position: relative;
  padding-left: 28px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 0.5px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 880px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 580px;
  margin-bottom: 40px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 0.5px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn .arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(2px); }

.hero-mark {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(280px, 36vw, 520px);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
@media (min-width: 768px) { section { padding: 110px 0; } }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 56px;
  max-width: 680px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.section-head p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 540px;
}

/* ===== SERVICES ===== */
.services {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card-service {
  background: var(--surface);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s ease;
}
.card-service:hover { background: var(--bg); }

.card-service .icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  stroke-width: 1.5;
}
.card-service h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
.card-service p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.card-service .num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-3);
  font-variation-settings: "opsz" 9;
  letter-spacing: 0.5px;
}

/* ===== PROCESS ===== */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 960px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.step {
  padding: 28px 0 0;
  border-top: 1px solid var(--ink);
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: block;
  font-variation-settings: "opsz" 9;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.step p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.step .duration {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.5px;
}

/* ===== WHY ===== */
.why {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat {
  background: var(--surface);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-label {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.3px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.stat-value.text {
  font-size: 22px;
  font-variation-settings: "opsz" 40, "SOFT" 30;
}

.why-note {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--accent-tint);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
}
.why-note .icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  stroke-width: 1.5;
}
.why-note p {
  font-size: 14px;
  color: var(--accent-dark);
  line-height: 1.5;
}

/* ===== CTA ===== */
.cta-section {
  background: var(--accent);
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #fff;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.cta-section p {
  font-size: 18px;
  color: var(--accent-soft);
  margin-bottom: 36px;
  line-height: 1.5;
}
.cta-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--accent);
  padding: 16px 28px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.2s ease;
}
.cta-email:hover { transform: translateY(-2px); }

.cta-mark {
  position: absolute;
  right: -100px;
  bottom: -180px;
  font-family: var(--font-display);
  font-size: 480px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  font-variation-settings: "opsz" 144;
}

/* ===== FOOTER ===== */
footer {
  padding: 48px 0;
  border-top: 0.5px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
.footer-left {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
}
.footer-left .footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  font-size: 13px;
  color: var(--ink-2);
}
.footer-nav a:hover { color: var(--accent); }
.footer-nav .footer-section-title {
  display: block;
  width: 100%;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== CONTACT PAGE ===== */
.page-hero {
  padding: 80px 0 40px;
}
@media (min-width: 768px) {
  .page-hero { padding: 100px 0 40px; }
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 700px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.page-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.page-hero .lede {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.55;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 100px;
}
@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--surface);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 0.5px solid var(--border);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border 0.15s ease, background 0.15s ease;
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.form-note {
  font-size: 12px;
  color: var(--ink-3);
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.aside-block .aside-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  display: block;
}
.aside-block .aside-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 6px;
  font-variation-settings: "opsz" 40, "SOFT" 30;
}
.aside-block .aside-value a:hover { color: var(--accent); }
.aside-block .aside-detail {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ===== PRIVACY / LONG-FORM PAGE ===== */
.legal-page {
  padding: 60px 0 100px;
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .legal-page { padding: 80px 0 120px; }
}
.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.legal-page .updated {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 48px;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.legal-page p,
.legal-page li {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 14px;
}
.legal-page ul {
  padding-left: 22px;
  margin-bottom: 14px;
}
.legal-page li { margin-bottom: 8px; }
.legal-page strong { color: var(--ink); font-weight: 500; }
.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-page .lead {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ===== ANIMATIONS ===== */
.reveal { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.25s; }
.reveal-4 { animation-delay: 0.35s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Status message after form submit */
.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-top: 12px;
}
.form-status.success {
  display: block;
  background: var(--accent-tint);
  color: var(--accent-dark);
  border: 0.5px solid var(--accent-soft);
}
