/* Methodly Flow site styles.
   Logical properties (inline-start/end) keep one stylesheet working for RTL and LTR. */

:root {
  --ink: #1f1b2e;
  --ink-soft: #4a4560;
  --muted: #77718a;
  --bg: #ffffff;
  --bg-soft: #f7f6fb;
  --line: #e6e3ee;
  --accent: #6c4bd1;
  --accent-dark: #5434b3;
  --accent-soft: #f1edfc;
  --warm: #a58cf0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 27, 46, 0.08);
  --max: 1120px;
  --font: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--accent-dark); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 800; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -48px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand span { white-space: nowrap; }
.brand em { font-style: normal; color: var(--accent); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; inset-inline: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.site-nav ul { list-style: none; margin: 0; padding: 8px 20px 16px; }
.site-nav a {
  display: block; padding: 12px 4px; text-decoration: none; color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--accent-dark); font-weight: 700; }
.site-nav .lang-switch { border: 0; color: var(--muted); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  .site-nav a { border: 0; padding: 8px 12px; border-radius: 8px; }
  .site-nav a:hover { background: var(--bg-soft); }
  .site-nav .lang-switch { margin-inline-start: 8px; border: 1px solid var(--line); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding-block: 56px; }
@media (min-width: 860px) { section { padding-block: 88px; } }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark p { color: #cfc9e0; }
.eyebrow {
  display: inline-block; margin-bottom: 12px; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-dark);
}
.section-dark .eyebrow { color: #c4b5fd; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46em; }
.section-head { margin-bottom: 36px; max-width: 46em; }

/* Hero */
.hero { padding-block: 48px 64px; background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 100%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero p.lead { margin-bottom: 28px; }
@media (min-width: 860px) {
  .hero { padding-block: 88px 104px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
}

/* Flow diagram in hero */
.flow {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; display: grid; gap: 10px;
}
.flow-step {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 10px; background: var(--bg-soft); font-weight: 500;
}
.flow-step b { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.flow-dot {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--ink);
}
.flow-step.decision { background: var(--bg-soft); }
.flow-step.decision .flow-dot { background: var(--warm); transform: rotate(45deg); border-radius: 6px; width: 28px; height: 28px; margin-inline: 3px; }
.flow-step.decision .flow-dot span { transform: rotate(-45deg); }
.flow-step.action { background: var(--accent-soft); }
.flow-step.action .flow-dot { background: var(--accent); }
.flow-arrow { width: 2px; height: 14px; background: var(--line); margin-inline-start: 30px; }

/* Cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card p:last-child { margin-bottom: 0; }
.card .num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; margin-bottom: 14px;
}
.card-icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 14px; }
.tag {
  display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 2px 10px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 10px;
}

/* Ask vs. need comparison */
.reframe { display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.reframe > div { padding: 22px 24px; }
.reframe .ask { background: var(--bg-soft); color: var(--ink-soft); }
.reframe .need { border-top: 1px solid var(--line); }
.reframe .label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; }
.reframe .need .label { color: var(--accent-dark); }
.reframe p { margin: 0; }
.reframe .ask p { font-style: italic; }
@media (min-width: 760px) {
  .reframe { grid-template-columns: 1fr 1.6fr; }
  .reframe .need { border-top: 0; border-inline-start: 1px solid var(--line); }
}

/* Lists */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-inline-start: 28px; margin-bottom: 8px; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.55em;
  width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* Service blocks */
.service { display: grid; gap: 20px; padding-block: 36px; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service .why { background: var(--accent-soft); border-radius: var(--radius); padding: 20px 22px; }
.service .why strong { display: block; margin-bottom: 6px; color: var(--accent-dark); }
@media (min-width: 860px) { .service { grid-template-columns: 1.3fr 1fr; gap: 48px; } }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }
.cta-band .lead { margin-inline: auto; }

/* Contact */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 48px; } }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.form-status { display: none; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 500; }
.form-status.show { display: block; }
.form-status.error { background: #fdecec; color: #a12a2a; }
.form button[disabled] { opacity: 0.7; cursor: wait; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.contact-card { display: flex; gap: 14px; align-items: flex-start; }
.contact-card svg { width: 28px; height: 28px; color: var(--accent); flex: none; margin-top: 2px; }

/* Footer */
.site-footer { background: var(--ink); color: #cfc9e0; padding-block: 36px; font-size: 0.95rem; }
.footer-inner { display: grid; gap: 16px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.wa-float svg { width: 30px; height: 30px; }

:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* Technology points on the dark band */
.section-dark .lead { color: #cfc9e0; }
.tech { border-top: 2px solid var(--accent); padding-top: 18px; }
.tech h3 { color: #fff; }
.tech p { margin: 0; }
.section-dark .grid { row-gap: 36px; }
.proof { margin: 18px 0 0; font-size: 0.95rem; font-weight: 500; color: var(--accent-dark); }
.hero-img { width: 100%; height: auto; border-radius: var(--radius); }

/* Logo */
.brand-logo { height: 40px; width: auto; display: block; }
.footer-logo { height: 36px; width: auto; display: block; margin-bottom: 12px; }

/* Motion: gentle entrance and hover effects. Classes are added by main.js,
   so without JavaScript everything is simply visible. */
.card, .btn, .tech { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.15s, color 0.15s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(84, 52, 179, 0.45); border-color: var(--warm); }
.btn:hover { transform: translateY(-2px); }
.site-header { transition: box-shadow 0.25s ease; }
.site-header.scrolled { box-shadow: 0 6px 20px -14px rgba(31, 27, 46, 0.35); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.25s ease, border-color 0.25s ease; transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Hero image: unveils on load, then floats gently; main.js adds a light scroll parallax via `translate`. */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes unveil { from { opacity: 0; clip-path: inset(12% 12% 12% 12% round 24px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 0); } }
.motion .hero-img { animation: unveil 1.1s cubic-bezier(.2,.7,.2,1) both, float 7s ease-in-out 1.1s infinite; will-change: transform; }

/* Hero headline fills with ink color, in reading direction. */
@keyframes fill-ltr { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes fill-rtl { from { background-position: 0 0; } to { background-position: 100% 0; } }
.motion .hero .hero-grid > div > h1 {
  background: linear-gradient(90deg, var(--ink) 47%, #cdc3ee 53%) 100% 0 / 200% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 0.8s ease 0.1s both, fill-ltr 1.6s cubic-bezier(.4,0,.2,1) 0.35s both;
}
html[dir="rtl"].motion .hero .hero-grid > div > h1 {
  background-image: linear-gradient(270deg, var(--ink) 47%, #cdc3ee 53%); background-position: 0 0;
  animation: rise 0.8s ease 0.1s both, fill-rtl 1.6s cubic-bezier(.4,0,.2,1) 0.35s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.motion .hero-grid > div > * { animation: rise 0.8s ease both; }
.motion .hero-grid > div > :nth-child(2) { animation-delay: 0.1s; }
.motion .hero-grid > div > :nth-child(3) { animation-delay: 0.2s; }
.motion .hero-grid > div > :nth-child(4) { animation-delay: 0.3s; }
.motion .hero-grid > div > :nth-child(5) { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .motion .hero-img, .motion .hero-grid > div > * { animation: none; }
  .motion .hero .hero-grid > div > h1 { background: none; color: inherit; }
  .card:hover, .btn:hover { transform: none; }
}
