/* ===== Hire in Estonia — minimalist bento design ===== */
:root {
  --bg: #f6f5f1;
  --card: #ffffff;
  --card-dark: #121412;
  --accent: #0f5c3f;
  --accent-soft: #e6f1eb;
  --text: #121412;
  --muted: #6b6f6b;
  --line: #e6e4de;
  --radius: 22px;
  --radius-sm: 12px;
  --gap: 16px;
  --max: 1180px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ----- Buttons & pills ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0b4a32; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.card-dark .btn-ghost { border-color: rgba(255,255,255,.2); color: #fff; }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: #ecebe6; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,245,241,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); position: relative; flex-shrink: 0; }
.brand-mark::after { content: ''; position: absolute; inset: 7px; border-radius: 3px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 35%, 55% 35%, 55% 100%, 0 100%); }
.brand-tld { color: var(--accent); }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 16px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ----- Hero ----- */
.hero { text-align: center; padding: 88px 0 48px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero h1 { font-size: clamp(40px, 6.5vw, 76px); font-weight: 800; letter-spacing: -0.035em; }
.hero .lead { max-width: 640px; font-size: 18px; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ----- Bento grid & cards ----- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); padding-bottom: 24px; }
.bento-3 { grid-template-columns: repeat(3, 1fr); }
.span-2 { grid-column: span 2; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px; position: relative;
  min-height: 200px;
}
.card h3 { font-size: 22px; font-weight: 700; }
.card p { color: var(--muted); font-size: 15px; }
.card-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }

.card-dark { background: var(--card-dark); color: #fff; border-color: var(--card-dark); }
.card-dark p { color: rgba(255,255,255,.7); }
.card-dark .card-label { color: #8fd3b4; }
.card-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.card-accent p { color: rgba(255,255,255,.8); }
.card-accent .card-label { color: rgba(255,255,255,.7); }

.circle-btn {
  position: absolute; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--text); font-size: 20px;
  transition: transform .15s;
}
.circle-btn:hover { transform: translate(2px, -2px); }

.stat { justify-content: space-between; }
.stat-num { font-size: clamp(44px, 5vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stat-label { font-size: 14px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chips li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }

.card-quote { justify-content: center; background: var(--accent-soft); border-color: var(--accent-soft); }
.card-quote blockquote { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.card-quote blockquote p { font-size: 19px; color: var(--text); font-weight: 500; line-height: 1.4; }
.card-quote footer { font-size: 14px; color: var(--muted); }

.tool-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.tool { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }

/* ----- Sections ----- */
.section { padding: 56px 0; }
.section-narrow { max-width: 820px; }
.section-head { margin-bottom: 28px; display: flex; flex-direction: column; gap: 8px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: 17px; max-width: 600px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; }
.steps .card { min-height: 0; }
.step-num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.steps h3 { font-size: 19px; }

/* Pricing */
.price { gap: 8px; }
.price-num { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; }
.price-sub { font-size: 14px; color: var(--muted); }
.list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 20px; font-size: 15px; }
.list li { padding-left: 22px; position: relative; }
.list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price .btn { margin-top: auto; }
.price-featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { min-height: 0; padding: 0; gap: 0; }
.faq summary { cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 17px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 24px 22px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; padding: 48px; }
.contact h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.contact-text p { font-size: 17px; }
.contact-meta { margin-top: 28px; font-size: 15px; line-height: 1.8; }
.contact-meta a { color: #8fd3b4; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.7); }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: inherit; font-size: 15px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; outline: none;
}
.contact-form select option { color: var(--text); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: #8fd3b4; }
.contact-form textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { flex-direction: row !important; align-items: center; gap: 10px !important; font-size: 14px !important; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.check a { text-decoration: underline; }
.form-note { font-size: 14px; color: #8fd3b4; min-height: 1em; }

/* ----- Footer ----- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-style: normal; line-height: 1.7; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 4px; }
.footer-col a:hover { color: var(--text); }
.footer-address { display: block; }
.footer-address strong { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ----- Cookie banner ----- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100;
  width: min(880px, calc(100% - 32px)); background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.12);
  display: flex; flex-direction: column; gap: 14px;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.cookie-text strong { display: block; margin-bottom: 4px; }
.cookie-text p { color: var(--muted); font-size: 14px; }
.cookie-text a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.cookie-prefs { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.cookie-prefs[hidden] { display: none; }
.cookie-prefs .check { display: flex; }
.cookie-prefs .btn { align-self: flex-start; }

/* ----- Legal pages ----- */
.legal-page { padding: 64px 0 40px; max-width: 780px; }
.legal-page h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.legal-page .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; display: block; }
.legal-page h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; }
.legal-page h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.legal-page p, .legal-page li { color: #3a3d3a; font-size: 16px; margin-bottom: 12px; }
.legal-page ul { list-style: disc; padding-left: 22px; }
.legal-page a { color: var(--accent); text-decoration: underline; }
.legal-page table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0 20px; }
.legal-page th, .legal-page td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-page th { font-weight: 600; background: var(--card); }
.legal-page .card { margin-bottom: 24px; min-height: 0; }
.legal-page .card p { margin: 0; }

/* ----- Responsive ----- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .hero { padding: 56px 0 36px; }
  .bento, .bento-3, .steps { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .card { padding: 22px; min-height: 0; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
  .section { padding: 40px 0; }
}
