:root {
  --red: #186060;
  --red-dark: #0F4646;
  --cocoa: #132B2A;
  --kraft: #90A878;
  --kraft-soft: #E8EEDC;
  --cream: #F7F7EA;
  --sage: #E1EAD6;
  --evergreen: #4A6638;
  --stone: #ECEDDE;
  --line: #D5DCC6;
  --text: #132B2A;
  --muted: #46595A;
  --white: #FFFFFF;
  --head: "Lilita One", "Arial Rounded MT Bold", sans-serif;
  --body: "Kantumruy Pro", "Segoe UI", Arial, sans-serif;
  --cf-accent: #186060;
  --cf-on: #FFFFFF;
}

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

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

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

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

h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 12px;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header: logo left, one centred word, small CTA right, hairline ---------- */
.site-head {
  position: static;
  background: var(--white);
  border-bottom: 1px solid var(--cocoa);
}

.site-head::before {
  content: "";
  display: block;
  height: 6px;
  background: repeating-linear-gradient(135deg, var(--red) 0 10px, var(--kraft) 10px 20px);
}

.head-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 84px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.2vw, 28px);
}

.head-nav { display: flex; gap: 34px; }
.head-in > a:last-child { justify-self: end; }
@media (max-width: 860px) {
  .head-nav { display: none; }
  .head-in { grid-template-columns: 1fr auto; }
}

.logo { justify-self: start; display: inline-block; }

.logo img {
  height: 54px;
  width: auto;
}

.head-nav a {
  color: var(--cocoa);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.head-nav a:hover,
.head-nav a:focus-visible { border-bottom-color: var(--kraft); }

.btn-head {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--cocoa);
  color: var(--white);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
}

.btn-head:hover { background: var(--red); }

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

/* ---------- Page hero ---------- */
.page-hero {
  background: #D2E5E1;
  border-bottom: 1px solid var(--cocoa);
}

.page-hero::after { content: none; }

.page-hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 56px;
}

.crumb {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.crumb a {
  color: var(--muted);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--cocoa);
  max-width: 760px;
}

.page-hero p.sub {
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
}

.updated {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Body layout ---------- */
.page-body {
  padding: 56px 0 80px;
}

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.layout-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 14px;
}

.toc h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.toc ol {
  margin: 0;
  padding: 0 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  display: grid;
  gap: 8px;
}

.toc a {
  color: var(--cocoa);
  text-decoration: none;
}

.toc a:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 40px;
  padding-top: 8px;
  scroll-margin-top: 20px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: #24403E;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.callout {
  margin: 28px 0;
  padding: 20px 22px;
  background: var(--sage);
  border-left: 6px solid var(--evergreen);
  border-radius: 12px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.card {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.card h3 {
  font-size: 1.15rem;
  color: var(--red-dark);
  margin-bottom: 6px;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

.mail-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 8px 0 0;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.mail-box a {
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---------- Footer ---------- */
.site-foot {
  background: var(--white);
  padding: 0;
  border-top: 1px solid var(--cocoa);
}

.foot-in {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 32px;
  align-items: center;
  padding: 36px clamp(16px, 2.2vw, 28px) 32px;
}

.foot-in .logo img { height: 40px; }

.foot-copy { text-align: right; }

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 22px;
}

.foot-nav a {
  color: var(--cocoa);
  font-weight: 500;
}

.foot-note,
.foot-copy {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}


/* ---------- Contact form ---------- */
.cform {
  padding: 0;
  margin: clamp(40px, 6vw, 72px) 0;
}

.cform-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-top: 4px solid var(--cf-accent);
  border-radius: 18px;
  background: color-mix(in srgb, currentColor 4%, transparent);
}

.cform-inner h2 {
  margin: 0 0 8px;
}

.cform-intro {
  margin: 0 0 24px;
  opacity: 0.85;
}

.cform-form {
  display: grid;
  gap: 18px;
}

.cform-row {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cform-row label {
  font-weight: 600;
  font-size: 0.95rem;
}

.cform input[type="text"],
.cform input[type="email"],
.cform select,
.cform textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: inherit;
  background: color-mix(in srgb, currentColor 6%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 10px;
}

.cform textarea {
  resize: vertical;
  min-height: 150px;
}

.cform option {
  color: #111111;
  background: #FFFFFF;
}

.cform input:focus,
.cform select:focus,
.cform textarea:focus,
.cform-btn:focus-visible {
  outline: 3px solid var(--cf-accent);
  outline-offset: 2px;
}

.cform-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.cform-consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--cf-accent);
}

.cform-consent a {
  color: inherit;
  text-decoration: underline;
}

.cform-btn {
  justify-self: start;
  min-height: 50px;
  padding: 0 28px;
  font: inherit;
  font-weight: 700;
  color: var(--cf-on);
  background: var(--cf-accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.cform-btn:hover {
  filter: brightness(1.08);
}

.cform-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cform-status {
  display: none;
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
}

.cform-status:target {
  display: block;
}

.cform-ok {
  background: color-mix(in srgb, var(--cf-accent) 18%, transparent);
  border: 1px solid var(--cf-accent);
}

.cform-err {
  background: color-mix(in srgb, #C0392B 14%, transparent);
  border: 1px solid #C0392B;
}

@media (min-width: 720px) {
  .cform-form {
    grid-template-columns: 1fr 1fr;
  }

  .cform-wide,
  .cform-btn {
    grid-column: 1 / -1;
  }
}

.cform {
  color: var(--text);
}

.cform-inner {
  background: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .toc {
    position: static;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .page-hero .wrap {
    padding-top: 44px;
    padding-bottom: 40px;
  }
}

.cform {
  padding: 0 24px;
}

@media (max-width: 560px) {
  .cform {
    padding: 0 16px;
  }
}

@media (max-width: 860px) {
  .foot-in { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }
  .foot-copy { text-align: left; }
}

@media (max-width: 520px) {
  .head-in { gap: 10px; min-height: 64px; }
  .logo img { height: 32px; }
  .btn-head { padding: 0 14px; font-size: 0.86rem; }
}
