/*
Theme Name: K-Tec Træpleje
Theme URI: https://k-tec.dk/
Author: Csolutions
Description: Klassisk WordPress theme til K-Tec Træpleje, certificeret arborist i Midt-/Vestjylland.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: ktec
*/

:root {
  --green-900: #153c25;
  --green-800: #1d532b;
  --green-700: #286c3c;
  --green-100: #e9f3ea;
  --brown-800: #5d3a25;
  --brown-200: #dfc8a7;
  --gold-500: #c99634;
  --ink: #17211b;
  --muted: #5d675f;
  --line: #dbe4dc;
  --paper: #fbfcf8;
  --white: #ffffff;
  --shadow: 0 16px 45px rgba(21, 60, 37, .12);
  --radius: 8px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: var(--green-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brown-800);
}

button,
input,
textarea {
  font: inherit;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--white);
  background: var(--green-900);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(251, 252, 248, .96);
  border-bottom: 1px solid rgba(21, 60, 37, .12);
  backdrop-filter: blur(12px);
}

.topbar {
  background: var(--green-900);
  color: rgba(255, 255, 255, .88);
  font-size: .88rem;
}

.topbar__inner,
.header__inner,
.section__inner,
.footer__inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
}

.topbar a {
  color: var(--white);
  text-decoration: none;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 28px));
  gap: 16px;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 158px;
  max-height: 74px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: var(--green-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 4px;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav li {
  position: relative;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 10px;
  color: var(--ink);
  font-size: .96rem;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
  text-decoration: none;
  border-radius: var(--radius);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
  color: var(--green-900);
  background: var(--green-100);
}

.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: block;
  min-width: 230px;
  padding: 8px;
  visibility: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.primary-nav .sub-menu a {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  font-weight: 650;
}

.header-cta {
  flex: 0 0 auto;
}

.button,
.wp-block-button__link,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  color: var(--white);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  background: var(--green-800);
  border: 1px solid var(--green-800);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(29, 83, 43, .18);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent [hidden] {
  display: none !important;
}

.cookie-consent {
  position: fixed;
  z-index: 9999;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px;
  background: rgba(23, 33, 27, .42);
}

.cookie-consent__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 22px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(21, 60, 37, .16);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(9, 24, 15, .24);
}

.cookie-consent__copy {
  min-width: 0;
}

.cookie-consent__eyebrow {
  margin: 0 0 4px;
  color: var(--green-800);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cookie-consent h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
}

.cookie-consent__copy a {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 800;
}

.cookie-consent__options {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.cookie-consent__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cookie-consent__option strong,
.cookie-consent__option small {
  display: block;
}

.cookie-consent__option small {
  color: var(--muted);
  line-height: 1.35;
}

.cookie-consent__option input {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  accent-color: var(--green-800);
}

.cookie-consent__option--locked {
  opacity: .82;
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(148px, 1fr));
  gap: 10px;
  align-self: end;
}

.cookie-consent__button,
.footer-cookie-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 15px;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
  border-radius: var(--radius);
}

.cookie-consent__button--primary,
.cookie-consent__button--secondary {
  color: var(--white);
  background: var(--green-800);
  border: 1px solid var(--green-800);
}

.cookie-consent__button--secondary {
  background: var(--ink);
  border-color: var(--ink);
}

.cookie-consent__button--ghost {
  color: var(--green-900);
  background: var(--white);
  border: 1px solid var(--green-800);
}

.cookie-consent__button:hover,
.footer-cookie-button:hover {
  transform: translateY(-1px);
}

.footer-cookie-button {
  margin-top: 12px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .32);
}

.button:hover,
.wp-block-button__link:hover,
.contact-form button:hover {
  color: var(--white);
  background: var(--brown-800);
  border-color: var(--brown-800);
}

.button--light {
  color: var(--green-900);
  background: var(--white);
  border-color: var(--white);
}

.button--light:hover {
  color: var(--white);
  background: var(--brown-800);
  border-color: var(--brown-800);
}

.button--outline {
  color: var(--green-900);
  background: transparent;
  border-color: rgba(21, 60, 37, .28);
  box-shadow: none;
}

.button--outline:hover {
  color: var(--white);
  background: var(--green-900);
}

.hero .button--outline,
.cta-band .button--outline {
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .58);
  box-shadow: none;
}

.hero .button--outline:hover,
.cta-band .button--outline:hover {
  color: var(--green-900);
  background: var(--white);
  border-color: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(21, 60, 37, .94) 0%, rgba(21, 60, 37, .78) 43%, rgba(21, 60, 37, .34) 68%, rgba(21, 60, 37, .14) 100%),
    url("assets/images/hero-arborist.png") center right / cover;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .62fr);
  gap: 52px;
  align-items: center;
  width: min(var(--content), calc(100% - 40px));
  min-height: clamp(600px, 75vh, 780px);
  padding: 76px 0 68px;
  margin: 0 auto;
}

.hero__content {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--brown-200);
  font-size: .9rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 36px;
  height: 2px;
  content: "";
  background: var(--gold-500);
}

.hero h1,
.page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 5.6rem);
  line-height: .98;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1.08rem, 2.2vw, 1.32rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 46px;
}

.fact {
  min-height: 112px;
  padding: 18px;
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
}

.fact strong {
  display: block;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1.2;
}

.fact span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .78);
  font-size: .92rem;
  line-height: 1.35;
}

.hero__panel {
  align-self: end;
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__panel img {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 18px;
}

.hero__panel h2 {
  margin: 0 0 8px;
  color: var(--green-900);
  font-size: 1.25rem;
}

.hero__panel p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
}

.section {
  padding: 86px 0;
}

.section--white {
  background: var(--white);
}

.section--green {
  color: var(--white);
  background: var(--green-900);
}

.section--green a {
  color: var(--white);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(260px, .5fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-header h2,
.content-area h2 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.section--green .section-header h2 {
  color: var(--white);
}

.section-header p,
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.section--green .section-header p,
.section--green .lead {
  color: rgba(255, 255, 255, .78);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.person-card,
.testimonial,
.info-card,
.content-card {
  min-height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(21, 60, 37, .07);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.service-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--white);
  font-weight: 900;
  place-items: center;
  background: var(--green-800);
  border-radius: var(--radius);
}

.service-card h3,
.person-card h3,
.testimonial h3,
.info-card h3,
.content-card h3 {
  margin: 0 0 10px;
  color: var(--green-900);
  font-size: 1.22rem;
  line-height: 1.2;
}

.service-card p,
.person-card p,
.testimonial p,
.info-card p,
.content-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.service-card a {
  margin-top: auto;
  font-weight: 800;
  text-decoration: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, .65fr);
  gap: 52px;
  align-items: center;
}

.check-list,
.content-area ul {
  padding-left: 0;
  list-style: none;
}

.check-list li,
.content-area ul li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
}

.check-list li::before,
.content-area ul li::before {
  position: absolute;
  top: .2em;
  left: 0;
  width: 18px;
  height: 18px;
  color: var(--white);
  font-size: .78rem;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  content: "✓";
  background: var(--green-800);
  border-radius: 50%;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.person-card {
  overflow: hidden;
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.person-card__body {
  padding: 22px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 10px;
  color: var(--green-900);
  font-size: .88rem;
  font-weight: 800;
  background: var(--green-100);
  border-radius: 999px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: process;
}

.process-step {
  position: relative;
  min-height: 190px;
  padding: 24px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  counter-increment: process;
}

.process-step::before {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  color: var(--green-900);
  font-weight: 900;
  content: counter(process);
  place-items: center;
  background: var(--brown-200);
  border-radius: 50%;
}

.process-step h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 1.13rem;
}

.process-step p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

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

.testimonial {
  padding: 22px;
}

.testimonial blockquote {
  margin: 0;
}

.testimonial p {
  color: var(--ink);
  font-size: 1.02rem;
}

.testimonial cite {
  display: block;
  margin-top: 18px;
  color: var(--green-900);
  font-style: normal;
  font-weight: 900;
}

.ktec-testimonials {
  margin-top: 0;
}

.ktec-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ktec-testimonials--cols-3 .ktec-testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ktec-testimonials .strong-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ktec-testimonials .testimonial {
  padding: 22px;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(21, 60, 37, .07);
}

.ktec-testimonials .testimonial-inner {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.ktec-testimonials .testimonial-content,
.ktec-testimonials .testimonial-content p {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
}

.ktec-testimonials .testimonial-title {
  margin: 0 0 10px;
  color: var(--green-900);
  font-size: 1.13rem;
  line-height: 1.25;
}

.ktec-testimonials .testimonial-client {
  margin-top: 18px;
  color: var(--green-900);
  font-weight: 900;
}

.ktec-testimonials .testimonial-name {
  display: block;
}

.ktec-testimonial blockquote {
  margin: 0;
}

.cta-band {
  padding: 46px;
  color: var(--white);
  background: linear-gradient(100deg, var(--green-900), var(--green-700));
  border-radius: var(--radius);
}

.cta-band h2 {
  max-width: 760px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.cta-band p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .82);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-hero {
  padding: 76px 0 48px;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(21, 60, 37, .94) 0%, rgba(21, 60, 37, .76) 46%, rgba(21, 60, 37, .36) 72%, rgba(21, 60, 37, .18) 100%),
    url("assets/images/hero-page-services.jpg") center right / cover;
}

.page-hero--om-os {
  background-image:
    linear-gradient(100deg, rgba(21, 60, 37, .94) 0%, rgba(21, 60, 37, .76) 46%, rgba(21, 60, 37, .36) 72%, rgba(21, 60, 37, .18) 100%),
    url("assets/images/hero-page-about.jpg");
}

.page-hero--tjenester,
.page-hero--faq {
  background-image:
    linear-gradient(100deg, rgba(21, 60, 37, .94) 0%, rgba(21, 60, 37, .76) 46%, rgba(21, 60, 37, .36) 72%, rgba(21, 60, 37, .18) 100%),
    url("assets/images/hero-page-services.jpg");
}

.page-hero--traefaeldning {
  background-image:
    linear-gradient(100deg, rgba(21, 60, 37, .94) 0%, rgba(21, 60, 37, .76) 46%, rgba(21, 60, 37, .36) 72%, rgba(21, 60, 37, .18) 100%),
    url("assets/images/hero-page-felling.jpg");
}

.page-hero--topkapning {
  background-image:
    linear-gradient(100deg, rgba(21, 60, 37, .94) 0%, rgba(21, 60, 37, .76) 46%, rgba(21, 60, 37, .36) 72%, rgba(21, 60, 37, .18) 100%),
    url("assets/images/hero-arborist.png");
}

.page-hero--beskaering {
  background-image:
    linear-gradient(100deg, rgba(21, 60, 37, .94) 0%, rgba(21, 60, 37, .76) 46%, rgba(21, 60, 37, .36) 72%, rgba(21, 60, 37, .18) 100%),
    url("assets/images/hero-page-pruning.jpg");
}

.page-hero--stubfraesning {
  background-image:
    linear-gradient(100deg, rgba(21, 60, 37, .94) 0%, rgba(21, 60, 37, .76) 46%, rgba(21, 60, 37, .36) 72%, rgba(21, 60, 37, .18) 100%),
    url("assets/images/hero-page-stump.jpg");
}

.page-hero--vurder-hoejden-paa-et-trae {
  background-image:
    linear-gradient(100deg, rgba(21, 60, 37, .94) 0%, rgba(21, 60, 37, .76) 46%, rgba(21, 60, 37, .36) 72%, rgba(21, 60, 37, .18) 100%),
    url("assets/images/hero-page-height.jpg");
}

.page-hero--kontakt,
.page-hero--priser {
  background-image:
    linear-gradient(100deg, rgba(21, 60, 37, .94) 0%, rgba(21, 60, 37, .76) 46%, rgba(21, 60, 37, .36) 72%, rgba(21, 60, 37, .18) 100%),
    url("assets/images/hero-page-contact.jpg");
}

.page-hero--referencer {
  background-image:
    linear-gradient(100deg, rgba(21, 60, 37, .94) 0%, rgba(21, 60, 37, .76) 46%, rgba(21, 60, 37, .36) 72%, rgba(21, 60, 37, .18) 100%),
    url("assets/images/hero-page-references.jpg");
}

.page-hero--lovgivning,
.page-hero--at-vejledning,
.page-hero--certifikater {
  background-image:
    linear-gradient(100deg, rgba(21, 60, 37, .94) 0%, rgba(21, 60, 37, .76) 46%, rgba(21, 60, 37, .36) 72%, rgba(21, 60, 37, .18) 100%),
    url("assets/images/hero-page-safety.jpg");
}

.page-hero__inner {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 1.16rem;
}

.content-area {
  width: min(920px, calc(100% - 40px));
  padding: 66px 0 88px;
  margin: 0 auto;
}

.content-area > *:first-child {
  margin-top: 0;
}

.content-area h2 {
  margin-top: 42px;
  margin-bottom: 14px;
}

.content-area h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--green-900);
  font-size: 1.38rem;
  line-height: 1.18;
}

.content-area p {
  margin: 0 0 18px;
}

.content-area .lead {
  margin-bottom: 28px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.content-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card,
.info-card {
  padding: 22px;
}

.image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.image-pair figure,
.cert-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.image-pair img,
.cert-grid img {
  width: 100%;
}

.image-pair figcaption,
.cert-grid figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: .92rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
  gap: 28px;
  align-items: start;
}

.contact-form {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--green-900);
  font-weight: 850;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd7ce;
  border-radius: var(--radius);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(201, 150, 52, .26);
  border-color: var(--gold-500);
}

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

.form-help {
  margin-top: -8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .92rem;
}

.form-hp {
  display: none;
}

.notice {
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius);
}

.notice--success {
  color: #113d25;
  background: #dff2e4;
  border: 1px solid #abd8b8;
}

.notice--error {
  color: #702313;
  background: #fde6dc;
  border: 1px solid #f2b9a5;
}

.site-footer {
  color: rgba(255, 255, 255, .82);
  background: var(--green-900);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 36px;
  padding: 58px 0;
}

.footer-logo {
  width: 164px;
  padding: 12px;
  margin-bottom: 18px;
  background: var(--white);
  border-radius: var(--radius);
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer p {
  margin: 0 0 10px;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.footer-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-bottom {
  padding: 18px 0;
  color: rgba(255, 255, 255, .68);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

@media (max-width: 1040px) {
  .header-cta {
    display: none;
  }

  .service-grid,
  .process-grid,
  .ktec-testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__inner,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    max-width: 520px;
  }
}

@media (max-width: 860px) {
  .topbar__inner {
    flex-direction: column;
    gap: 2px;
  }

  .header__inner {
    min-height: 76px;
  }

  .brand img {
    width: 142px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: block;
  }

  .primary-nav a {
    width: 100%;
  }

  .primary-nav .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 0 14px;
    visibility: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
  }

  .hero__inner {
    min-height: auto;
    padding: 62px 0;
  }

  .hero__facts,
  .section-header,
  .testimonial-grid,
  .ktec-testimonial-grid,
  .ktec-testimonials .strong-content,
  .footer__inner,
  .cookie-consent__panel {
    grid-template-columns: 1fr;
  }

  .cookie-consent__actions {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 640px) {
  .topbar__inner,
  .header__inner,
  .section__inner,
  .footer__inner,
  .hero__inner,
  .page-hero__inner,
  .content-area {
    width: min(100% - 28px, var(--content));
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.35rem, 14vw, 3.55rem);
  }

  .hero__actions,
  .cta-band__actions {
    flex-direction: column;
  }

  .button,
  .wp-block-button__link,
  .contact-form button {
    width: 100%;
  }

  .service-grid,
  .process-grid,
  .team-grid,
  .content-grid,
  .content-grid--three,
  .image-pair,
  .cert-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 28px;
  }

  .cookie-consent {
    padding: 10px;
  }

  .cookie-consent__panel {
    max-height: calc(100vh - 20px);
    overflow: auto;
    padding: 16px;
  }
}
