/* Kibo Professional Services */
:root {
  --ink: #10211b;
  --paper: #f8f7f2;
  --gold: #b9944d;
  --gold-2: #dcc58f;
  --green: #1d6047;
  --green-2: #0f4533;
  --mist: #e9efe9;
  --line: rgba(16, 33, 27, 0.13);
  --danger: #a3261d;
  --danger-bg: #fcf1ef;
  --success-bg: #edf6f0;
  --shadow: 0 24px 60px rgba(16, 33, 27, 0.1);
  --header-h: 84px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: #fff;
  padding: 0.7rem 1rem;
  z-index: 999;
}
.skip-link:focus {
  left: 10px;
}
.container {
  width: min(calc(100% - 36px), var(--max));
  margin: auto;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(248, 247, 242, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}
.brand-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.brand-text {
  line-height: 1.04;
}
.brand-text strong {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  letter-spacing: 0.01em;
}
.brand-text span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: #5a6962;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}
.site-nav > a,
.nav-parent,
.submenu-toggle {
  border: 0;
  background: none;
  color: var(--ink);
  padding: 13px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}
.site-nav > a:hover,
.site-nav > a:focus-visible,
.nav-parent:hover,
.nav-parent:focus-visible,
.submenu-toggle:hover,
.submenu-toggle:focus-visible {
  background: var(--mist);
  outline: none;
}
.nav-drop {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-parent {
  padding-right: 6px;
}
.submenu-toggle {
  padding-left: 6px;
}
.submenu-toggle::after {
  content: '⌄';
  font-size: 13px;
}
.site-nav .cta {
  background: var(--green);
  color: #fff;
  padding: 12px 18px;
}
.site-nav .cta:hover,
.site-nav .cta:focus-visible {
  background: var(--green-2);
}
.dropdown {
  position: absolute;
  left: 50%;
  transform: translateX(-45%);
  top: calc(100% + 12px);
  width: min(760px, 84vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  opacity: 0;
  visibility: hidden;
  translate: 0 -8px;
  transition: 0.18s ease;
}
/* Invisible bridge so the menu stays open while the pointer crosses the gap. */
.dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.nav-drop:hover .dropdown,
.nav-drop:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}
.dropdown a {
  padding: 13px 14px;
  border-radius: 12px;
}
.dropdown a:hover,
.dropdown a:focus-visible {
  background: #f2f5f0;
  outline: none;
}
.dropdown strong {
  display: block;
  font-size: 14px;
}
.dropdown span {
  display: block;
  color: #6b756f;
  font-size: 12px;
  margin-top: 2px;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Typography & buttons */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.eyebrow.light {
  color: var(--gold-2);
}
h1,
h2,
h3,
h4 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.08;
  margin: 0 0 0.72em;
}
h1 {
  font-size: clamp(44px, 6vw, 74px);
  letter-spacing: -0.045em;
  max-width: 870px;
}
h2 {
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.03em;
}
h3 {
  font-size: 24px;
}
h4 {
  font-size: 19px;
}
.lead {
  font-size: clamp(18px, 2vw, 22px);
  color: #4f625a;
  max-width: 780px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 13px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn.primary {
  background: var(--green);
  color: #fff;
}
.btn.primary:hover {
  background: var(--green-2);
}
.btn.primary:disabled {
  opacity: 0.7;
  cursor: progress;
}
.btn.secondary {
  border-color: var(--line);
  background: #fff;
}
.btn.secondary:hover {
  border-color: rgba(29, 96, 71, 0.35);
}
.btn.light {
  background: #fff;
  color: #154735;
}
.btn.outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn.outline-light:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 78px;
  background:
    radial-gradient(
      circle at 82% 22%,
      rgba(220, 197, 143, 0.29),
      transparent 24%
    ),
    linear-gradient(180deg, #fbfaf6, #f3f5ef);
}
.hero::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: -140px;
  bottom: -260px;
  border-radius: 48% 52% 50% 50%;
  border: 1px solid rgba(29, 96, 71, 0.15);
  box-shadow:
    0 0 0 54px rgba(29, 96, 71, 0.035),
    0 0 0 110px rgba(29, 96, 71, 0.025);
  transform: rotate(-12deg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-card {
  position: relative;
  border-radius: 30px;
  background: linear-gradient(145deg, #123d2f, #0b2d23);
  color: #fff;
  min-height: 390px;
  padding: 38px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-card::before,
.hero-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(220, 197, 143, 0.25);
}
.hero-card::before {
  width: 300px;
  height: 300px;
  top: -170px;
  right: -90px;
}
.hero-card::after {
  width: 240px;
  height: 240px;
  top: -125px;
  right: -35px;
}
.hero-logo {
  position: absolute;
  top: 36px;
  left: 38px;
  width: 190px;
  height: 190px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.16);
}
.hero-card .small {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #cfdad4;
}
.hero-card p {
  margin: 6px 0 0;
  color: #f0f4f1;
  font-size: 19px;
}
.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.tag {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8eee9;
  color: #335449;
  font-weight: 800;
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.trust-item {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  gap: 11px;
  align-items: center;
  font-weight: 700;
}
.trust-item:last-child {
  border-right: 0;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

/* Sections */
.section {
  padding: 88px 0;
}
.section.tight {
  padding: 64px 0;
}
.section.alt {
  background: #fff;
}
.section-head {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 36px;
}
.section-head p {
  margin: 0;
  color: #5c6c65;
  max-width: 700px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 25px;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.service-card:hover,
.service-card:focus-visible,
.service-card:target {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 33, 27, 0.08);
  border-color: rgba(29, 96, 71, 0.28);
  outline: none;
}
.service-card .num {
  font-size: 12px;
  color: #75837c;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.service-card h3 {
  font-size: 23px;
  margin-top: 22px;
}
.service-card p {
  font-size: 14px;
  color: #68766f;
  margin: 0 0 18px;
}
.service-card .arrow {
  margin-top: auto;
  color: var(--green);
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  padding: 28px;
  border-radius: 20px;
  background: #f4f6f1;
  border: 1px solid var(--line);
}
.feature .index {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 20px;
}
.feature p {
  color: #607069;
  margin-bottom: 0;
}

.quick-answer {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 20px;
  padding: 28px 30px;
}
.quick-answer p {
  font-size: 18px;
  color: #4d6259;
  margin-bottom: 0;
}

.quote-panel {
  border-radius: 30px;
  padding: 48px;
  background: linear-gradient(130deg, var(--green-2), #174e3b);
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}
.quote-panel h2 {
  margin: 0;
}
.quote-panel p {
  color: #d9e4df;
}

/* Contact */
.contact {
  background: linear-gradient(180deg, #faf9f5, #eef2ec);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 30px;
  align-items: start;
}
.contact-card,
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
}
.contact-card h3 {
  margin-top: 14px;
}
.contact-card strong {
  display: block;
  margin-bottom: 6px;
}
.contact-card a {
  color: var(--green);
  font-weight: 800;
  font-size: 19px;
}
.contact-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
.contact-card p {
  color: #5a6962;
  margin-bottom: 0;
}
.form-card {
  box-shadow: var(--shadow);
}
.form-card h3 {
  margin-top: 14px;
}

.form-alert {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 15px;
  border: 1px solid;
}
.form-alert:focus {
  outline: none;
}
.form-alert ul {
  margin: 4px 0 0;
  padding-left: 20px;
}
.form-alert a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.form-alert-success {
  background: var(--success-bg);
  border-color: rgba(29, 96, 71, 0.3);
  color: var(--green-2);
}
.form-alert-error {
  background: var(--danger-bg);
  border-color: rgba(163, 38, 29, 0.3);
  color: var(--danger);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-weight: 800;
  font-size: 13px;
}
.field .optional {
  font-weight: 400;
  color: #6b756f;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cfd8d2;
  background: #fff;
  color: var(--ink);
  border-radius: 11px;
  padding: 12px 13px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 96, 71, 0.12);
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  background: var(--danger-bg);
}
.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(163, 38, 29, 0.12);
}
.field-error {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
}
.form-actions {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}
.form-hint {
  margin: 0;
  font-size: 13px;
  color: #67766f;
}

/* Footer */
.footer {
  background: #0c2f24;
  color: #fff;
  padding: 58px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 54px;
}
.footer .brand-text span {
  color: #b9cbc3;
}
.footer h3 {
  font-size: 19px;
  margin-bottom: 15px;
}
.footer p,
.footer a {
  color: #d4dfda;
}
.footer a:hover {
  color: #fff;
}
.footer-links {
  display: grid;
  gap: 8px;
}
.footer-bottom {
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #b9cbc3;
  font-size: 13px;
}

@media (max-width: 1000px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    min-height: 300px;
  }
  .section-head,
  .contact-grid,
  .quote-panel {
    grid-template-columns: 1fr;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 14px 18px 22px;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav > a,
  .nav-parent {
    text-align: left;
    width: 100%;
  }
  .nav-drop {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .menu-toggle {
    display: block;
  }
  .dropdown {
    grid-column: 1 / -1;
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: 0;
    background: #f0f3ee;
    margin-top: 6px;
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    display: none;
  }
  .dropdown::before {
    display: none;
  }
  .nav-drop.open .dropdown {
    display: grid;
  }
}

@media (max-width: 700px) {
  :root {
    --header-h: 72px;
  }
  .container {
    width: min(calc(100% - 24px), var(--max));
  }
  .brand {
    min-width: 0;
  }
  .brand-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
  .brand-text strong {
    font-size: 16px;
  }
  .brand-text span {
    font-size: 8px;
  }
  .hero,
  .section {
    padding: 62px 0;
  }
  .hero-grid {
    gap: 34px;
  }
  h1 {
    font-size: 43px;
  }
  .hero-card {
    min-height: 260px;
  }
  .hero-logo {
    top: 22px;
    left: 26px;
    width: 112px;
    height: 112px;
    border-radius: 12px;
  }
  .service-grid,
  .feature-grid,
  .trust-grid,
  .form-grid,
  .dropdown {
    grid-template-columns: 1fr;
  }
  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .trust-item:last-child {
    border-bottom: 0;
  }
  .contact-card,
  .form-card {
    padding: 22px;
  }
  .quote-panel {
    padding: 32px 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

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