/* re:fine — werefine.hu */
:root {
  --background: #0E0F12;
  --surface: #17191E;
  --text: #F9F9F9;
  --accent: #F36C27;
  --border: #2A2D34;
  --text-secondary: #B4B7BC;
  --text-muted: #7B7E85;
  --accent-hover: #FF7C39;
  --accent-dark: #D85C20;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.colon { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 15, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

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

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

.site-nav > a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav > a:hover { color: var(--text); }
.site-nav > a.active { color: var(--text); }
.site-nav > a.btn,
.site-nav > a.btn:hover { color: #0E0F12; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------- Buttons, links ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #0E0F12;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-hover); color: #0E0F12; transform: translateY(-1px); }
.btn:active { background: var(--accent-dark); transform: none; }

.btn-small { padding: 8px 18px; font-size: 0.9rem; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }

.arrow-link { font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -300px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(243, 108, 39, 0.13) 0%, transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; }

.display {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  font-weight: 800;
  max-width: 20ch;
}

.hero-sub {
  padding: 80px 0 60px;
}

.page-hero { padding: 90px 0 40px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; max-width: 24ch; }

.kicker {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.lead {
  color: var(--text-secondary);
  font-size: 1.18rem;
  max-width: 62ch;
  margin-bottom: 2em;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ---------- Rotator band ---------- */
.rotator-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 34px 0;
}

.rotator {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rot-word {
  color: var(--accent);
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.rot-word.out { opacity: 0; transform: translateY(8px); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 48px 0; }

.section-intro {
  color: var(--text-secondary);
  max-width: 68ch;
  font-size: 1.06rem;
}
.section-intro strong { color: var(--text); }

/* ---------- Cards, grids ---------- */
.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card p { color: var(--text-secondary); margin: 0; }
.card p:not(:last-child) { margin-bottom: 0.8em; }

a.card { display: block; color: inherit; }
a.card:hover { border-color: var(--accent); transform: translateY(-3px); }
a.card .arrow-link { color: var(--accent); display: inline-block; margin-top: 14px; }

.symptom { display: flex; gap: 14px; align-items: flex-start; }
.symptom .mark {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.pillar-label {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.bridge {
  margin-top: 44px;
  font-size: 1.12rem;
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  max-width: 60ch;
}

/* ---------- Trust bar ---------- */
.trust-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}
.trust-items {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item { flex: 1; min-width: 220px; }
.trust-item .num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.trust-item .label { color: var(--text-secondary); font-size: 0.98rem; }

/* ---------- Steps / phases ---------- */
.steps { margin-top: 40px; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
}
.step .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}
.step p { color: var(--text-secondary); margin: 0; }

.phase {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 34px;
  margin-top: 26px;
}
.phase h3 { font-size: 1.4rem; }
.phase .duration { color: var(--text-muted); font-weight: 500; font-size: 1rem; }
.phase .promise { font-weight: 600; font-size: 1.05rem; }
.phase ul { color: var(--text-secondary); padding-left: 22px; margin: 0 0 1em; }
.phase ul li { margin-bottom: 6px; }
.phase .deliverable {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 18px;
  color: var(--text-secondary);
  margin-bottom: 0;
}
.phase .deliverable strong { color: var(--accent); }

/* ---------- Service blocks ---------- */
.service {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.service:last-of-type { border-bottom: 1px solid var(--border); }
.service h3 { font-size: 1.35rem; }
.service p, .service li { color: var(--text-secondary); }
.service strong { color: var(--text); }
.service ul { padding-left: 22px; margin: 0 0 1em; }
.service ul li { margin-bottom: 6px; }
.service .highlight { color: var(--text); font-weight: 600; }

/* ---------- Decision helper ---------- */
.decision-list { list-style: none; padding: 0; margin: 24px 0 0; }
.decision-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 22px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}
.decision-list li strong { color: var(--accent); white-space: nowrap; }

/* ---------- Principles ---------- */
.principles { margin-top: 40px; display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.principle {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
}
.principle h3 { font-size: 1.08rem; margin-bottom: 6px; }
.principle p { color: var(--text-secondary); margin: 0; }

/* ---------- Case studies ---------- */
.case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  margin-top: 30px;
}
.case h3 { font-size: 1.35rem; margin-bottom: 24px; }
.case-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.case-grid h4 {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.case-grid p { color: var(--text-secondary); margin: 0; }
.case-grid .result p { color: var(--text); font-weight: 500; }

/* ---------- CTA final ---------- */
.cta-final { padding-bottom: 100px; }
.cta-box {
  background: linear-gradient(135deg, var(--surface) 0%, #1d1a17 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  bottom: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(243, 108, 39, 0.16) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box p {
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto 28px;
  font-size: 1.08rem;
}

/* ---------- Forms ---------- */
.contact-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; margin-top: 20px; }

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 7px;
}
.form-field label .req { color: var(--accent); }
.form-field label .hint { color: var(--text-muted); font-weight: 400; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { min-height: 140px; resize: vertical; }

.form-note {
  border: 1px solid var(--accent);
  background: rgba(243, 108, 39, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.form-note.error { border-color: #d85c5c; background: rgba(216, 92, 92, 0.08); }
.form-note p { margin: 0; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alt-contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  height: fit-content;
}
.alt-contact h3 { font-size: 1.1rem; }
.alt-contact p { color: var(--text-secondary); }
.alt-contact .item { margin-bottom: 14px; }
.alt-contact .item .label {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}

/* ---------- Prose (legal pages, rólam) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-secondary); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose ul li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 56px 0 36px;
  margin-top: 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 360px; }
.footer-brand .brand { font-size: 1.3rem; }
.footer-brand .tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 10px;
}
.footer-nav { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-nav .col { display: flex; flex-direction: column; gap: 10px; }
.footer-nav .col span {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.footer-nav a { color: var(--text-secondary); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text-secondary); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    gap: 18px;
  }
  .site-nav.open { display: flex; }

  section { padding: 60px 0; }
  .hero { padding: 70px 0 56px; }
}
