/*
Theme Name: Kadionne Boreland Paralegal Services
Theme URI: https://www.kbparalegal.ca/
Author: Boost Local Business
Author URI: https://www.boostlocalbusiness.ca/
Description: Theme Designed for Kadionne Boreland Paralegal Services.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kadionne-boreland
*/

[x-cloak] {
  display: none !important;
}

.kb-site-body {
  background: #fbfaf8;
  color: #2c2520;
}

.admin-bar .sticky.top-0 {
  top: 32px;
}

.kb-content > * + * {
  margin-top: 1.5rem;
}

.kb-content a {
  color: #a8907a;
  text-decoration: underline;
}

.kb-form-message {
  border: 1px solid #a8907a;
}

.kb-form-message--error {
  border-color: #b42318;
}

@media screen and (max-width: 782px) {
  .admin-bar .sticky.top-0 {
    top: 46px;
  }
}

/* ========================================
   CF7 Premium Loading Button
======================================== */

.wpcf7 .wpcf7-submit{
    position: relative;
}

.wpcf7 .wpcf7-spinner{

    position: absolute;

    width:18px;
    height:18px;

    top:50%;
    right:18px;

    margin:0;

    transform:translateY(-50%);

    background:none;

    opacity:0;

    visibility:hidden;

    pointer-events:none;
}

/* White spinner */

.wpcf7 .wpcf7-spinner::before{

    content:"";

    display:block;

    width:18px;
    height:18px;

    border:2px solid rgba(255,255,255,.35);
    border-top-color:#fff;
    border-radius:50%;

    animation:kd-spinner .7s linear infinite;

}

/* Show spinner */

.wpcf7 form.submitting .wpcf7-spinner{

    opacity:1;
    visibility:visible;

}

/* Disable button */

.wpcf7 form.submitting .wpcf7-submit{

    opacity:.9;
    cursor:wait;

}

@keyframes kd-spinner{

    to{
        transform:rotate(360deg);
    }

}


/* ==========================================================
   Contact Form 7 - Premium Global Validation Styling
   ========================================================== */

/* Validation summary */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {

    display: flex;
    align-items: center;
    gap: 12px;

    margin: 0 0 28px !important;
    padding: 16px 20px !important;

    background: #FFF8E8;
    border: 1px solid #F4C542;
    border-left: 5px solid #E7A400;

    color: #5E4700;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;

    border-radius: 8px;

    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}

/* Success */
.wpcf7 form.sent .wpcf7-response-output {

    background: #ECFDF3;
    border: 1px solid #86EFAC;
    border-left: 5px solid #22C55E;

    color: #166534;

    border-radius: 8px;
    padding: 16px 20px !important;
}

/* Spam */
.wpcf7 form.spam .wpcf7-response-output {

    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-left: 5px solid #DC2626;

    color: #991B1B;

    border-radius: 8px;
}

/* Validation message under field */

.wpcf7-not-valid-tip {

    display: flex;
    align-items: center;

    margin-top: 8px;

    font-size: 13px;
    font-weight: 500;

    color: #C2410C;

    line-height: 1.4;
}

/* Add icon */

.wpcf7-not-valid-tip::before{

    content:"⚠";

    margin-right:8px;

    font-size:14px;

    color:#E67E22;

}

/* Invalid field */

.wpcf7-not-valid{

    border-color:#E67E22 !important;

    background:#FFFDF9 !important;

    box-shadow:0 0 0 4px rgba(230,126,34,.08);

}

/* Better focus */

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus{

    outline:none;

    border-color:#A8907A;

    box-shadow:0 0 0 4px rgba(168,144,122,.15);

}



/* Disable submit while sending */

.wpcf7 form.submitting .wpcf7-submit{

    opacity:.75;

    cursor:wait;

    pointer-events:none;

}


/* =========================================================
   CONTACT FORM 7 — KDC01
   Kadionne Boreland Consultation Form
   ========================================================= */

.KDC01 {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: #2C2520;
  font-family: inherit;
  box-sizing: border-box;
}

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

/* ---------------------------------------------------------
   Remove Contact Form 7 / WordPress automatic spacing
   --------------------------------------------------------- */

.KDC01 p {
  margin: 0 !important;
  padding: 0 !important;
}

.KDC01 br {
  display: none;
}

.KDC01 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ---------------------------------------------------------
   Form title
   --------------------------------------------------------- */

.KDC01 h2 {
  margin: 0 0 28px;
  color: #2C2520;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ---------------------------------------------------------
   Form layout
   --------------------------------------------------------- */

.KDC01-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.KDC01-field {
  width: 100%;
  margin: 0 0 20px;
}

/* ---------------------------------------------------------
   Labels
   --------------------------------------------------------- */

.KDC01 label {
  display: block;
  margin: 0 0 5px !important;
  padding: 0;
  color: #2C2520;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------------------------------------------------------
   Inputs, select and textarea
   --------------------------------------------------------- */

.KDC01 input[type="text"],
.KDC01 input[type="email"],
.KDC01 input[type="tel"],
.KDC01 input[type="url"],
.KDC01 input[type="number"],
.KDC01 select,
.KDC01 textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #D9CEC0;
  border-radius: 12px;
  outline: none;
  background-color: #FFFFFF;
  color: #2C2520;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

/* Restore select arrow */

.KDC01 select {
  padding-right: 46px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #2C2520 50%),
    linear-gradient(135deg, #2C2520 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 50%,
    calc(100% - 15px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Placeholder styling */

.KDC01 input::placeholder,
.KDC01 textarea::placeholder {
  color: #9CA3AF;
  opacity: 1;
}

/* Hover state */

.KDC01 input[type="text"]:hover,
.KDC01 input[type="email"]:hover,
.KDC01 input[type="tel"]:hover,
.KDC01 input[type="url"]:hover,
.KDC01 input[type="number"]:hover,
.KDC01 select:hover,
.KDC01 textarea:hover {
  border-color: #B49A84;
}

/* Focus state */

.KDC01 input[type="text"]:focus,
.KDC01 input[type="email"]:focus,
.KDC01 input[type="tel"]:focus,
.KDC01 input[type="url"]:focus,
.KDC01 input[type="number"]:focus,
.KDC01 select:focus,
.KDC01 textarea:focus {
  border-color: #A8907A;
  box-shadow: 0 0 0 3px rgba(168, 144, 122, 0.14);
}

/* Textarea */

.KDC01 textarea {
  min-height: 210px;
  resize: vertical;
}

/* ---------------------------------------------------------
   Turnstile
   --------------------------------------------------------- */

.KDC01 .cf-turnstile,
.KDC01 .wpcf7-turnstile {
  margin: 0 0 20px;
}

/* ---------------------------------------------------------
   Submit button
   --------------------------------------------------------- */

.KDC01-submit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.KDC01-submit input.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 250px;
  min-height: 54px;
  margin: 0;
  padding: 16px 30px;
  border: 1px solid #2C2520;
  border-radius: 12px;
  background-color: #2C2520;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.KDC01-submit input.wpcf7-submit:hover {
  border-color: #3A322D;
  background-color: #3A322D;
  box-shadow: 0 8px 22px rgba(44, 37, 32, 0.16);
  transform: translateY(-1px);
}

.KDC01-submit input.wpcf7-submit:focus-visible {
  outline: 3px solid rgba(168, 144, 122, 0.35);
  outline-offset: 3px;
}

.KDC01-submit input.wpcf7-submit:active {
  transform: translateY(0);
}

.KDC01-submit input.wpcf7-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

/* ---------------------------------------------------------
   Loading spinner
   --------------------------------------------------------- */

.KDC01 .wpcf7-spinner {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid rgba(44, 37, 32, 0.2);
  border-top-color: #2C2520;
  border-radius: 50%;
  background: transparent;
  opacity: 1;
  animation: KDC01-spin 0.75s linear infinite;
}

.KDC01 .wpcf7-spinner::before {
  display: none;
}

@keyframes KDC01-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------
   Validation messages
   --------------------------------------------------------- */

.KDC01 .wpcf7-not-valid {
  border-color: #B42318 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}

.KDC01 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #B42318;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------------------------------------------------------
   Form response message
   --------------------------------------------------------- */

.KDC01 .wpcf7-response-output {
  margin: 0 0 22px !important;
  padding: 13px 16px !important;
  border: 1px solid #D9CEC0 !important;
  border-radius: 10px;
  background-color: #FBFAF8;
  color: #2C2520;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.KDC01 form.sent .wpcf7-response-output {
  border-color: #8FB9A8 !important;
  background-color: #F1F8F5;
  color: #245542;
}

.KDC01 form.invalid .wpcf7-response-output,
.KDC01 form.failed .wpcf7-response-output,
.KDC01 form.unaccepted .wpcf7-response-output {
  border-color: #D9A3A0 !important;
  background-color: #FFF5F4;
  color: #8A1C16;
}

/* ---------------------------------------------------------
   Autofill
   --------------------------------------------------------- */

.KDC01 input:-webkit-autofill,
.KDC01 input:-webkit-autofill:hover,
.KDC01 input:-webkit-autofill:focus {
  -webkit-text-fill-color: #2C2520;
  -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* ---------------------------------------------------------
   Tablet and mobile
   --------------------------------------------------------- */

@media (max-width: 767px) {
  .KDC01 h2 {
    margin-bottom: 24px;
    font-size: 28px;
  }

  .KDC01-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .KDC01-field {
    margin-bottom: 17px;
  }

  .KDC01 label {
    margin-bottom: 5px !important;
    font-size: 14px;
  }

  .KDC01 input[type="text"],
  .KDC01 input[type="email"],
  .KDC01 input[type="tel"],
  .KDC01 input[type="url"],
  .KDC01 input[type="number"],
  .KDC01 select,
  .KDC01 textarea {
    padding: 13px 15px;
    font-size: 16px;
  }

  .KDC01 textarea {
    min-height: 175px;
  }

  .KDC01-submit {
    display: block;
  }

  .KDC01-submit input.wpcf7-submit {
    width: 100%;
    min-width: 0;
  }

  .KDC01 .wpcf7-spinner {
    display: block;
    margin: 12px auto 0;
  }
}

/* ---------------------------------------------------------
   Reduced-motion accessibility
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .KDC01 input,
  .KDC01 select,
  .KDC01 textarea,
  .KDC01-submit input.wpcf7-submit {
    transition: none;
  }

  .KDC01 .wpcf7-spinner {
    animation-duration: 1.5s;
  }
}

/* =========================================================
   KDC02 — Contact Form 7
   Form fields only — no outer background, card, title or padding
   ========================================================= */

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

.KDC02 {
  width: 100%;
  color: #2c2520;
}

/* Remove unwanted CF7 paragraph spacing */
.KDC02 p {
  margin: 0;
}

.KDC02 br {
  display: none;
}

/* Two-column rows */
.KDC02-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

/* Individual fields */
.KDC02-field {
  width: 100%;
  min-width: 0;
  margin-bottom: 24px;
}

/* The grid already supplies the row spacing */
.KDC02-grid .KDC02-field {
  margin-bottom: 0;
}

/* Labels */
.KDC02-field label {
  display: block;
  margin: 0 0 8px;
  color: #2c2520;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* CF7 wrapper */
.KDC02 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Text fields */
.KDC02 input[type="text"],
.KDC02 input[type="email"],
.KDC02 input[type="tel"],
.KDC02 select,
.KDC02 textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  background-color: #ffffff;
  border: 1px solid #eaddcf;
  border-radius: 2px;
  outline: none;
  box-shadow: none;
  color: #2c2520;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

/* Match the original py-3 input height */
.KDC02 input[type="text"],
.KDC02 input[type="email"],
.KDC02 input[type="tel"],
.KDC02 select {
  min-height: 50px;
}

/* Placeholder */
.KDC02 input::placeholder,
.KDC02 textarea::placeholder {
  color: #9b9692;
  opacity: 1;
}

/* Select arrow */
.KDC02 select {
  padding-right: 44px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #2c2520 50%),
    linear-gradient(135deg, #2c2520 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* Message field */
.KDC02 textarea {
  min-height: 152px;
  resize: vertical;
}

/* Tailwind-style focus:ring-1 */
.KDC02 input[type="text"]:focus,
.KDC02 input[type="email"]:focus,
.KDC02 input[type="tel"]:focus,
.KDC02 select:focus,
.KDC02 textarea:focus {
  border-color: #a8907a;
  box-shadow: 0 0 0 1px #a8907a;
}

/* Turnstile */
.KDC02-turnstile {
  width: 100%;
  margin: 0 0 24px;
}

.KDC02-turnstile .cf-turnstile,
.KDC02-turnstile iframe {
  max-width: 100%;
}

/* Submit wrapper */
.KDC02-submit {
  position: relative;
  width: 100%;
}

.KDC02-submit p {
  margin: 0;
}

/* Submit button */
.KDC02 .KDC02-button,
.KDC02 input[type="submit"] {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 16px 24px;
  background-color: #a8907a;
  border: 1px solid #a8907a;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(44, 37, 32, 0.12);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.KDC02 .KDC02-button:hover,
.KDC02 input[type="submit"]:hover {
  background-color: #8c735d;
  border-color: #8c735d;
}

.KDC02 .KDC02-button:focus-visible,
.KDC02 input[type="submit"]:focus-visible {
  outline: 2px solid #2c2520;
  outline-offset: 3px;
}

.KDC02 input[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* =========================================================
   Validation
   ========================================================= */

.KDC02 .wpcf7-not-valid {
  border-color: #b5473c !important;
  box-shadow: 0 0 0 1px rgba(181, 71, 60, 0.12) !important;
}

.KDC02 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #a43d34;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* Response shown at the top */
.KDC02 .wpcf7-response-output {
  margin: 0 0 24px !important;
  padding: 12px 16px !important;
  background: #ffffff;
  border: 1px solid #eaddcf !important;
  border-left: 3px solid #a8907a !important;
  border-radius: 2px;
  color: #2c2520;
  font-size: 13px;
  line-height: 1.5;
}

.KDC02 form.sent .wpcf7-response-output {
  background: #f4f8f2;
  border-color: #b9c9b0 !important;
  border-left-color: #708b63 !important;
  color: #40543a;
}

.KDC02 form.invalid .wpcf7-response-output,
.KDC02 form.unaccepted .wpcf7-response-output {
  background: #fff7f5;
  border-color: #e2b8b2 !important;
  border-left-color: #b5473c !important;
  color: #7e302a;
}

/* =========================================================
   Loading spinner inside button
   ========================================================= */

.KDC02-submit .wpcf7-spinner {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 18px;
  height: 18px;
  margin: 0;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(-50%);
}

.KDC02-submit .wpcf7-spinner::before {
  display: none;
}

.KDC02 form.submitting .KDC02-submit .wpcf7-spinner {
  opacity: 1;
  animation: KDC02-spin 0.7s linear infinite;
}

@keyframes KDC02-spin {
  from {
    transform: translateY(-50%) rotate(0deg);
  }

  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 639px) {
  .KDC02-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .KDC02-field {
    margin-bottom: 20px;
  }

  .KDC02-grid .KDC02-field {
    margin-bottom: 0;
  }

  .KDC02 input[type="text"],
  .KDC02 input[type="email"],
  .KDC02 input[type="tel"],
  .KDC02 select,
  .KDC02 textarea {
    font-size: 16px;
  }

  .KDC02 .KDC02-button,
  .KDC02 input[type="submit"] {
    min-height: 56px;
    padding-right: 48px;
    padding-left: 48px;
    font-size: 13px;
  }

  .KDC02-submit .wpcf7-spinner {
    right: 15px;
  }
}


/* =========================================================
   KB Paralegal — 404 Page
   Template classes: kb404-*
========================================================= */

.kb404,
.kb404 * {
	box-sizing: border-box;
}

.kb404 {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 80px);
	overflow: hidden;
	padding: 64px 24px;
	background: #fbfaf8;
	color: #2c2520;
	font-family: "Plus Jakarta Sans", Arial, sans-serif;
	isolation: isolate;
}

.kb404-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

.kb404-circle {
	position: absolute;
	border-radius: 999px;
	filter: blur(90px);
	transform: translateZ(0);
}

.kb404-circle-1 {
	top: -190px;
	left: -150px;
	width: 550px;
	height: 550px;
	background: rgba(168, 144, 122, 0.12);
}

.kb404-circle-2 {
	right: -130px;
	bottom: -150px;
	width: 500px;
	height: 500px;
	background: rgba(168, 144, 122, 0.07);
}

.kb404-pattern {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(
		rgba(168, 144, 122, 0.85) 1px,
		transparent 1px
	);
	background-size: 32px 32px;
	opacity: 0.04;
}

.kb404-container {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}

.kb404-card {
	width: 100%;
	padding: 60px;
	border: 1px solid #e6d8ca;
	border-radius: 32px;
	background: rgba(255, 255, 255, 0.86);
	box-shadow: 0 35px 80px rgba(44, 37, 32, 0.1);
	text-align: center;
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

.kb404-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px 22px;
	border: 1px solid #d8c8b7;
	border-radius: 999px;
	background: #faf7f2;
	color: #a8907a;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	line-height: 1.2;
	text-transform: uppercase;
}

.kb404-badge span {
	display: block;
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #a8907a;
	box-shadow: 0 0 0 4px rgba(168, 144, 122, 0.12);
}

.kb404-number {
	margin-top: 26px;
	color: #2c2520;
	font-size: clamp(4.75rem, 11vw, 8rem);
	font-weight: 800;
	letter-spacing: -0.06em;
	line-height: 0.95;
}

.kb404-line {
	width: 96px;
	height: 1px;
	margin: 18px auto 0;
	background: linear-gradient(
		90deg,
		transparent 0%,
		#a8907a 50%,
		transparent 100%
	);
}

.kb404 h1 {
	max-width: 720px;
	margin: 36px auto 0;
	color: #2c2520;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.kb404-description {
	max-width: 640px;
	margin: 24px auto 0;
	color: #5c5043;
	font-size: 1.1rem;
	line-height: 1.8;
}

.kb404-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 44px;
}

.kb404-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 220px;
	min-height: 56px;
	padding: 15px 32px;
	border: 1px solid transparent;
	border-radius: 14px;
	font-family: "Plus Jakarta Sans", Arial, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		background-color 0.25s ease,
		border-color 0.25s ease,
		color 0.25s ease;
}

.kb404-btn-primary {
	background: #2c2520;
	color: #ffffff;
	box-shadow: 0 12px 24px rgba(44, 37, 32, 0.14);
}

.kb404-btn-primary:hover {
	background: #171310;
	color: #ffffff;
	transform: translateY(-3px);
	box-shadow: 0 18px 34px rgba(44, 37, 32, 0.22);
}

.kb404-btn-secondary {
	border-color: #a8907a;
	background: #ffffff;
	color: #2c2520;
}

.kb404-btn-secondary:hover {
	border-color: #927961;
	background: #faf7f2;
	color: #2c2520;
	transform: translateY(-3px);
	box-shadow: 0 16px 30px rgba(44, 37, 32, 0.1);
}

.kb404-btn:focus-visible {
	outline: 3px solid rgba(168, 144, 122, 0.45);
	outline-offset: 4px;
}

.kb404-divider {
	width: 100%;
	height: 1px;
	margin: 52px 0;
	background: linear-gradient(
		90deg,
		transparent 0%,
		#d8c8b7 50%,
		transparent 100%
	);
}

.kb404-features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.kb404-feature {
	position: relative;
	padding: 0 18px;
}

.kb404-feature + .kb404-feature::before {
	content: "";
	position: absolute;
	top: 5px;
	bottom: 5px;
	left: 0;
	width: 1px;
	background: linear-gradient(
		180deg,
		transparent,
		#e6d8ca,
		transparent
	);
}

.kb404-feature h2 {
	margin: 0;
	color: #a8907a;
	font-family: "Plus Jakarta Sans", Arial, sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
}

.kb404-feature p {
	margin: 10px 0 0;
	color: #5c5043;
	font-size: 0.98rem;
	line-height: 1.65;
}

/* Tablet */
@media (max-width: 768px) {
	.kb404 {
		min-height: calc(100vh - 72px);
		padding: 48px 20px;
	}

	.kb404-card {
		padding: 44px 32px;
		border-radius: 26px;
	}

	.kb404 h1 {
		margin-top: 30px;
	}

	.kb404-description {
		font-size: 1.03rem;
	}

	.kb404-divider {
		margin: 44px 0;
	}

	.kb404-features {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.kb404-feature {
		padding: 0;
	}

	.kb404-feature + .kb404-feature::before {
		top: -14px;
		right: 25%;
		bottom: auto;
		left: 25%;
		width: auto;
		height: 1px;
		background: linear-gradient(
			90deg,
			transparent,
			#e6d8ca,
			transparent
		);
	}
}

/* Mobile */
@media (max-width: 480px) {
	.kb404 {
		padding: 32px 16px;
	}

	.kb404-card {
		padding: 34px 22px;
		border-radius: 22px;
		box-shadow: 0 24px 55px rgba(44, 37, 32, 0.09);
	}

	.kb404-badge {
		padding: 9px 16px;
		font-size: 0.65rem;
		letter-spacing: 0.18em;
	}

	.kb404-number {
		margin-top: 22px;
	}

	.kb404 h1 {
		margin-top: 26px;
		font-size: clamp(1.8rem, 9vw, 2.2rem);
	}

	.kb404-description {
		margin-top: 18px;
		font-size: 0.98rem;
		line-height: 1.7;
	}

	.kb404-buttons {
		flex-direction: column;
		margin-top: 34px;
	}

	.kb404-btn {
		width: 100%;
		min-width: 0;
	}

	.kb404-divider {
		margin: 38px 0;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.kb404-btn {
		transition: none;
	}

	.kb404-btn:hover {
		transform: none;
	}
}

/* Backdrop-filter fallback */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.kb404-card {
		background: rgba(255, 255, 255, 0.97);
	}
}

