/*
Theme Name: Bonorum
Description: Bonorum RMP OÜ privaatse prototüübi kujundus.
Version: 1.0.0
Author: Bonorum RMP OÜ
License: GPL-2.0-or-later
Text Domain: bonorum
Requires at least: 6.7
Requires PHP: 7.4
*/

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/font-1.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/font-2.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/font-3.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/font-4.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/font-5.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/font-6.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f8f7f0;
  --ink: #18382d;
  --text: #34483e;
  --muted: #4d6055;
  --green: #244638;
  --line: #d9dfd3;
  --sage: #e9eee2;
  --white: #fffef9;
  --accent: #f1c397;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a65d35; outline-offset: 4px; }
::selection { background: var(--accent); color: var(--ink); }
section[id], #kontakt, #hinnaparing { scroll-margin-top: 24px; }

.shell { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link { position: absolute; inset: 12px auto auto 12px; z-index: 5; transform: translateY(-160%); background: white; padding: 10px; }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 85px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  display: grid;
  grid-auto-flow: column;
  place-content: center;
  align-items: baseline;
  width: 39px;
  height: 40px;
  border-radius: 8px 8px 8px 2px;
  color: var(--white);
  background: var(--ink);
  font: 400 28px/1 var(--serif);
}
.brand-mark span { color: var(--accent); font: 700 13px/1 var(--sans); margin-left: 1px; }
.brand-name { display: grid; gap: 5px; font: 400 29px/.85 var(--serif); letter-spacing: -.022em; }
.brand-name span { font: 700 8px/1 var(--sans); letter-spacing: .21em; }
#navigation { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); font-size: 14px; font-weight: 600; }
#navigation a { text-decoration: none; }
#navigation a:not(.button):hover { text-decoration: underline; text-underline-offset: 5px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--ink);
  color: #fffef8;
  font: 700 14px/1.35 var(--sans);
  text-decoration: none;
  transition: background .18s, border-color .18s;
}
.button:hover { background: #315745; }
.button span, .text-link span, .service-link span[aria-hidden] { font: 400 17px/1 var(--sans); }
.button-small { min-height: 44px; padding: 8px 14px; gap: 12px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: #9aa99c;
  text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: currentColor; }

.hero { display: grid; grid-template-columns: 1.14fr 1fr; align-items: center; gap: clamp(32px, 5vw, 74px); padding-block: 66px 76px; }
.hero-copy { padding-block: 12px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: #3c5a4c;
  font: 700 11px/1.5 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: #a66b45; flex: 0 0 auto; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.042em; }
h1 { font-size: clamp(47px, 6.15vw, 92px); line-height: .99; }
h1 em { font-weight: 400; color: #4c6c50; }
h2 { font-size: clamp(44px, 5.15vw, 70px); line-height: 1.02; }
.hero-intro { max-width: 39ch; color: var(--text); font-size: clamp(16px, 1.45vw, 19px); margin: 24px 0 27px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 23px; }
.hero-visual {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  min-height: 450px;
  aspect-ratio: 1.09;
  border-radius: 14px 14px 14px 3px;
  isolation: isolate;
  background: #426052;
}
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 61%; }
.hero-note {
  position: absolute;
  inset: auto auto 18px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: calc(100% - 36px);
  padding: 11px 16px 11px 11px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 4px 18px #09291f34;
}
.hero-note-mark { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; background: #e7eadc; border-radius: 50%; font-size: 18px; }
.hero-note strong, .hero-note small { display: block; line-height: 1.45; }
.hero-note strong { font-size: 13px; }
.hero-note small { color: var(--muted); font-size: 11px; }

.services { background: var(--sage); border-block: 1px solid var(--line); padding-block: 69px 79px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading > p { color: var(--text); max-width: 31ch; margin: 0 0 4px; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.service-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 22px 19px 19px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: border-color .18s, box-shadow .18s;
}
.service-card:hover { border-color: #a7b5a8; box-shadow: 0 4px 15px #19382d0b; }
.service-card h3 { font: 700 17px/1.3 var(--sans); margin: 16px 0 8px; letter-spacing: -.023em; }
.service-card p { margin: 0 0 16px; color: var(--text); font-size: 14px; }
.service-link { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; margin-top: auto; font-size: 13px; font-weight: 700; text-underline-offset: 4px; text-decoration-color: #9aa99c; }
.service-link:hover { text-decoration-color: currentColor; }
.service-icon { position: relative; display: block; width: 41px; height: 41px; border-radius: 7px; background: #e6edde; }
.service-icon::before, .service-icon::after { position: absolute; content: ""; }
.icon-ledger::before { inset: 10px 11px; border: 1.5px solid; border-radius: 3px; }
.icon-ledger::after { width: 8px; height: 1.5px; top: 16px; left: 16px; background: currentColor; box-shadow: 0 4px currentColor, 0 8px currentColor; }
.icon-pay::before { inset: 12px 9px; border: 1.5px solid; border-radius: 3px; }
.icon-pay::after { top: 15.5px; left: 15.5px; width: 8px; height: 8px; border: 1.5px solid; border-radius: 50%; }
.icon-report::before { inset: 10px 11px 11px; border: solid; border-width: 0 0 1.5px 1.5px; }
.icon-report::after { width: 3px; height: 6px; bottom: 13px; left: 16px; background: currentColor; box-shadow: 5px 0 currentColor, 5px -3px currentColor, 10px 0 currentColor, 10px -6px currentColor; }
.icon-flow::before { inset: 10px 11px; border: dashed 1.5px; border-radius: 50%; }
.icon-flow::after { width: 5px; height: 5px; top: 17px; left: 17px; border: solid; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }

.automation, .process, .faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(37px, 5vw, 72px);
  padding-block: 80px;
}
.automation { align-items: center; border-bottom: 1px solid var(--line); }
.automation h2 { max-width: 14ch; }
.automation > div > p:not(.eyebrow) { max-width: 48ch; margin: 19px 0 23px; color: var(--text); }
.automation-result {
  padding: clamp(23px, 3.3vw, 39px);
  background: var(--sage);
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 3px;
}
.automation-result h3 { font: 400 clamp(29px, 3.1vw, 39px)/1.06 var(--serif); letter-spacing: -.025em; margin: 0 0 16px; }
.automation-result ul { list-style: none; margin: 0; padding: 0; }
.automation-result li { position: relative; padding: 12px 0 12px 24px; border-top: 1px solid #cdd7ca; }
.automation-result li:last-child { padding-bottom: 0; }
.automation-result li::before {
  position: absolute;
  top: 19px;
  left: 2px;
  width: 7px;
  height: 7px;
  border: 1px solid #638168;
  content: "";
  transform: rotate(45deg);
}
.automation-result strong { display: block; font-size: 15px; }
.automation-result p { margin: 3px 0 0; color: var(--text); font-size: 14px; }
.process-intro > p:last-child { margin: 15px 0 0; color: var(--text); max-width: 45ch; }
.profile-role { margin: 12px 0 0; font-weight: 700; line-height: 1.45; }
.process-title { font-size: clamp(33px, 3.3vw, 46px); margin: 27px 0 16px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 15px; border-bottom: 1px solid var(--line); padding: 16px 0; }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li > span { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border-radius: 50%; background: #e5ecde; font-size: 12px; font-weight: 700; }
.steps h3 { font-size: 17px; margin: 0 0 3px; }
.steps p { font-size: 14px; margin: 0; color: var(--text); }

.quote-band { background: var(--ink); color: var(--white); padding-block: 75px; }
.quote-layout { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(35px, 7vw, 110px); align-items: start; }
.quote-intro { padding-top: 10px; }
.quote-intro > p:not(.eyebrow) { max-width: 36ch; color: #e0e9de; margin: 20px 0 0; }
.quote-intro .eyebrow { color: #e0e9de; }
.quote-intro .eyebrow span { background: var(--accent); }
.quote-direct { margin-top: 34px; padding-top: 18px; border-top: 1px solid #658074; }
.quote-direct h3 { margin: 0 0 7px; font-size: 14px; color: #e0e9de; }
.quote-direct a { display: table; min-height: 38px; width: fit-content; padding-block: 6px; color: #fffdf6; font-weight: 600; text-underline-offset: 5px; text-decoration-color: #aab8a8; }
.quote-direct a:hover { text-decoration-color: currentColor; }
.quote-direct a span { margin-left: 4px; color: var(--accent); }
.form-card { color: var(--ink); background: var(--white); border-radius: 12px; padding: clamp(23px, 3.2vw, 39px); }
.form-progress { margin: 0 0 9px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; }
.form-card h3 { margin: 0; font-size: clamp(21px, 2.5vw, 27px); letter-spacing: -.035em; line-height: 1.2; }
.form-help { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 17px; }
.field-wide { grid-column: 1 / -1; }
.fields label { font-size: 13px; font-weight: 700; }
.fields :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 5px;
  padding: 9px 10px;
  border: 1px solid #bac6ba;
  border-radius: 6px;
  background: #fafbf6;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}
.fields :is(input, textarea)::placeholder { color: #647168; opacity: 1; }
.fields textarea { min-height: 78px; resize: vertical; }
.form-primary { background: var(--ink); }
.review-box { padding: 14px; background: #f2f5ee; border: 1px solid var(--line); border-radius: 7px; font-size: 14px; overflow-wrap: anywhere; }
.review-box p { margin: 0 0 5px; }
.review-box strong { display: inline-block; margin-right: 5px; }
.review-box pre { white-space: pre-wrap; font: inherit; margin: 10px 0 0; color: var(--text); }
.review-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.button-outline { background: transparent; color: var(--ink); border-color: #9cac9f; }
.button-outline:hover { background: var(--sage); }
.copy-status { min-height: 1.5em; margin: 8px 0 3px; font-size: 13px; color: var(--muted); }
.edit-button { border: 0; padding: 0; background: transparent; min-height: 40px; cursor: pointer; }

.faq { padding-block: 79px 83px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; list-style: none; min-height: 57px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--sans); color: #466655; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text); margin: 0 0 15px; font-size: 15px; }

.site-footer { border-top: 1px solid var(--line); background: #eff1e8; }
.footer-row { min-height: 105px; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.registry { color: var(--text); font-size: 13px; text-underline-offset: 4px; text-decoration-color: #a6b1a5; }
.menu-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 1px solid #abb9ac;
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.menu-icon { width: 14px; height: 9px; border-top: 1.5px solid; border-bottom: 1.5px solid; }
.menu-toggle[aria-expanded="true"] .menu-icon { border-bottom: 0; height: 2px; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 72px); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { min-height: 390px; }
}

@media (max-width: 780px) {
  .shell { width: calc(100% - 40px); }
  .header-row { min-height: 69px; flex-wrap: wrap; gap: 0; padding-block: 12px; }
  #navigation { width: 100%; flex-wrap: wrap; gap: 10px 20px; padding-block: 9px 0; }
  #navigation a { min-height: 44px; display: inline-flex; align-items: center; }
  .hero { padding-block: 37px 47px; gap: 21px; grid-template-columns: 1fr; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(44px, 10.9vw, 73px); max-width: 13ch; }
  .hero-intro { margin: 18px 0 20px; }
  .hero-visual { min-height: 0; aspect-ratio: 1.38; }
  .services, .automation, .process, .faq { padding-block: 48px; }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading > p { margin: 10px 0 0; }
  .automation, .process, .faq, .quote-layout { grid-template-columns: 1fr; gap: 25px; }
  .process-intro > p:last-child { margin-top: 12px; }
  .process-title { margin-top: 0; }
  .quote-band { padding-block: 39px 47px; }
  .quote-intro { padding-top: 0; }
  .quote-intro > p:not(.eyebrow) { margin-top: 13px; }
  .quote-direct { margin-top: 19px; padding-top: 12px; }
  .faq summary { font-size: 15px; }
  .footer-row { flex-wrap: wrap; justify-content: start; column-gap: 27px; padding-block: 19px; }
}

@media (max-width: 450px) {
  .shell { width: calc(100% - 32px); }
  .eyebrow { margin-bottom: 12px; }
  .service-grid, .fields { grid-template-columns: 1fr; }
  .service-card { padding: 17px 16px 11px; }
  .service-card h3 { margin-top: 11px; }
  .service-card p { margin-bottom: 2px; }
  .fields { gap: 10px; }
  .form-card { padding: 19px 15px; }
  .hero-note { inset: auto auto 10px 10px; padding: 8px 10px 8px 8px; }
  .hero-note-mark { width: 30px; height: 30px; }
}

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

.diagonal-arrow {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  vertical-align: -2px;
}
.diagonal-arrow::before, .diagonal-arrow::after { position: absolute; content: ""; }
.diagonal-arrow::before {
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
}
.diagonal-arrow::after {
  width: 10px;
  height: 1px;
  right: 3px;
  top: 3px;
  background: currentColor;
  transform-origin: right center;
  transform: rotate(-45deg);
}


/* WordPress integration: page content retains the approved layout. */
.bonorum-content > *, .bonorum-content .wp-block-group > *, .bonorum-content .wp-block-details > * { margin-block-start: 0; }
.bonorum-content .wp-block-group { box-sizing: border-box; }
.bonorum-content .wp-block-heading { font-family: inherit; }
.bonorum-content h1.wp-block-heading, .bonorum-content h2.wp-block-heading { font-family: var(--serif); }
.bonorum-content h3.wp-block-heading { font-family: var(--sans); }
.bonorum-content .automation-result h3.wp-block-heading { font-family: var(--serif); }
.bonorum-content p.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #a66b45; flex: 0 0 auto; }
.quote-intro p.eyebrow::before { background: var(--accent); }
body.admin-bar .skip-link { top: 44px; }
.bonorum-content .hero-intro { margin: 24px 0 27px; }
.bonorum-content .profile-role { margin: 12px 0 0; }
.bonorum-content .process-intro > p:last-child { margin: 15px 0 0; }
.bonorum-content .process-title { margin: 27px 0 16px; }
.bonorum-content .quote-intro > p:not(.eyebrow) { margin: 20px 0 0; }
.bonorum-content .wp-block-group.form-card { margin: 0; }
.bonorum-content .service-card h3 { margin: 16px 0 8px; }
.bonorum-content .hero-actions { margin-top: 0; }
.bonorum-content .automation-result h3 { margin: 0 0 16px; }
.fields select { appearance: none; padding-right: 35px; background-image: linear-gradient(45deg,transparent 50%,#466655 50%),linear-gradient(135deg,#466655 50%,transparent 50%); background-position: calc(100% - 17px) 19px,calc(100% - 12px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.eyebrow, .form-progress { font-size: 14px; letter-spacing: .075em; }
.service-card p, .automation-result p, .steps p, .form-help, .fields label { font-size: 16px; }
.service-link, .copy-status, .registry, .hero-note strong, .hero-note small { font-size: 14px; }
@media(max-width:780px) {
 .bonorum-content .hero-intro { margin:18px 0 20px; }
 .bonorum-content .process-intro > p:last-child { margin-top:12px; }
 .bonorum-content .process-title { margin-top:0; }
 .bonorum-content .quote-intro > p:not(.eyebrow) { margin-top:13px; }
}
@media(max-width:450px) {
 .bonorum-content .service-card h3 { margin-top:11px; }
 .hero-note { max-width:calc(100% - 20px); }
}
