/*
Theme Name: KIS Safety
Theme URI: https://kissafety.co.uk/
Author: KIS Safety
Description: A straightforward, accessible WordPress theme for KIS Safety.
Version: 1.0.1
Text Domain: kis-safety
*/

:root {
  --kis-blue: #08a8e4;
  --kis-blue-dark: #007ba9;
  --ink: #18232b;
  --slate: #52616a;
  --line: #dbe5e9;
  --wash: #f3f8fa;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 16px 40px rgba(24, 35, 43, .09);
  --container: 1180px;
  --space: clamp(3.5rem, 5.5vw, 6.25rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.6; }
body.menu-open { overflow: hidden; }
a { color: var(--kis-blue-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--kis-blue); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
h1, h2, h3 { margin: 0 0 .9rem; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.8rem, 5.4vw, 5.45rem); max-width: 15ch; }
h2 { font-size: clamp(2.15rem, 3.5vw, 3.55rem); max-width: 17ch; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.2rem; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .65rem 1rem; background: var(--ink); color: #fff; }
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 3rem), var(--container)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-weight: 800; line-height: 1; }
.brand img { width: 46px; height: 38px; object-fit: contain; }
.brand-text { display: grid; gap: .16rem; }
.brand strong { font-size: 1.15rem; letter-spacing: -.03em; }
.brand small { font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: var(--slate); }
.menu-toggle { display: none; padding: .55rem .7rem; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 6px; font-weight: 700; }
.primary-menu, .footer-menu { display: flex; align-items: center; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.primary-menu a { color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 700; }
.primary-menu a:hover, .primary-menu .current-menu-item a { color: var(--kis-blue-dark); }
.header-cta { padding: .68rem 1rem; border: 1px solid var(--kis-blue); background: var(--kis-blue); color: #fff !important; border-radius: 5px; }
.header-cta:hover { background: var(--kis-blue-dark); color: #fff !important; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .72rem 1.1rem; border: 1px solid var(--kis-blue); border-radius: 5px; background: var(--kis-blue); color: #fff; font-weight: 800; line-height: 1.2; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.button:hover { transform: translateY(-2px); color: #fff; background: var(--kis-blue-dark); }
.button--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.button--outline:hover { background: var(--ink); color: #fff; }
.button--light { background: #fff; color: var(--ink); border-color: #fff; }
.button--light:hover { background: #eaf8fd; color: var(--ink); }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .8rem; color: var(--kis-blue-dark); font-size: .77rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow:before { width: 2rem; height: 2px; content: ''; background: currentColor; }
.hero { overflow: hidden; padding: clamp(3.75rem, 6.5vw, 6.5rem) 0 clamp(3.75rem, 5.5vw, 5.75rem); background: linear-gradient(105deg, #f6fbfd 0%, #fff 68%); }
.hero-grid { display: grid; align-items: center; grid-template-columns: minmax(0, 1.14fr) minmax(330px, .76fr); gap: clamp(2.5rem, 5.5vw, 5.75rem); }
.hero-copy { min-width: 0; padding: .25rem 0; }
.hero-copy > p { max-width: 48ch; margin-bottom: 0; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--slate); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.7rem; }
.hero-mark { position: relative; isolation: isolate; justify-self: end; width: min(100%, 425px); min-height: 0; aspect-ratio: 1.14 / 1; border-radius: 50% 50% 12px 50%; background: var(--kis-blue); box-shadow: inset 0 -38px 0 rgba(0, 0, 0, .04); }
.hero-mark:before, .hero-mark:after { position: absolute; content: ''; background: #fff; transform: rotate(-37deg); border-radius: 100%; }
.hero-mark:before { top: 11%; left: 9%; width: 68%; height: 18%; }
.hero-mark:after { top: 41%; right: -13%; width: 80%; height: 15%; }
.hero-mark span { position: absolute; right: 1.65rem; bottom: 1.65rem; max-width: 12ch; color: #fff; font-size: 1.02rem; font-weight: 800; line-height: 1.15; }
.trust-bar { border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.trust-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.trust-item { border-left: 2px solid var(--kis-blue); padding-left: 1rem; }
.trust-item strong, .trust-item span { display: block; }
.trust-item strong { font-size: 1.05rem; }
.trust-item span { color: var(--slate); font-size: .92rem; }
.section { padding: var(--space) 0; }
.section--wash { background: var(--wash); }
.section--dark { background: var(--ink); color: #fff; }
.section--blue { background: var(--kis-blue); color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.lead { color: var(--slate); font-size: 1.15rem; }
.section--dark .lead, .section--blue .lead { color: inherit; opacity: .88; }
.approach-list { display: grid; gap: 1rem; counter-reset: steps; margin: 0; padding: 0; list-style: none; }
.approach-list li { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.25); font-size: clamp(1.25rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -.025em; }
.approach-list li:before { content: counter(steps, decimal-leading-zero); counter-increment: steps; color: #fff; font-size: .75rem; letter-spacing: .08em; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.15rem; }
.section-heading p { max-width: 46ch; margin-bottom: 0; color: var(--slate); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 0 rgba(24,35,43,.02); }
.card:hover { border-color: var(--kis-blue); box-shadow: var(--shadow); }
.card p { color: var(--slate); }
.card a:last-child { margin-top: auto; font-weight: 800; }
.card--feature { background: var(--ink); color: #fff; border: 0; }
.card--feature p { color: rgba(255,255,255,.8); }
.card--feature a { color: #fff; }
.support-panel { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4rem); background: var(--ink); color: #fff; border-radius: var(--radius); }
.support-panel:after { position: absolute; right: -9rem; bottom: -12rem; width: 30rem; height: 30rem; border: 2.8rem solid var(--kis-blue); border-radius: 50%; content: ''; opacity: .8; }
.support-panel > * { position: relative; z-index: 1; }
.support-panel p { max-width: 58ch; color: rgba(255,255,255,.83); font-size: 1.1rem; }
.training { position: relative; overflow: hidden; }
.training-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.training-copy { position: sticky; top: 7rem; }
.course-list { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.25); }
.course-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; }
.course-row:hover { color: #fff; opacity: .8; }
.course-row strong { display: block; font-size: 1.25rem; }
.course-row span { opacity: .73; font-size: .92rem; }
.course-row b { font-size: .9rem; white-space: nowrap; }
.sectors { display: flex; flex-wrap: wrap; gap: .7rem; }
.training-categories { margin-bottom: 2rem; }
.sector { padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-weight: 700; }
.sectors a.sector { color: var(--ink); text-decoration: none; }
.sectors a.sector:hover { border-color: var(--kis-blue); color: var(--kis-blue-dark); }
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.reason { padding: 1.4rem 1.5rem 1.4rem 0; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 1.12rem; }
.story { border-left: 5px solid var(--kis-blue); padding: 1.25rem 0 1.25rem 1.5rem; font-size: 1.12rem; }
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.insight { padding-top: 1.2rem; border-top: 3px solid var(--kis-blue); }
.insight .meta { color: var(--slate); font-size: .85rem; }
.cta-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.cta-panel h2 { max-width: 15ch; }
.page-hero { padding: clamp(3.5rem, 7vw, 7rem) 0; background: var(--wash); }
.page-hero p { max-width: 55ch; color: var(--slate); font-size: 1.15rem; }
.page-featured-image { margin-top: clamp(1.5rem, 4vw, 3rem); }
.page-featured-image img { width: min(100%, 760px); max-height: 32rem; border-radius: var(--radius); object-fit: cover; }
.entry { width: min(100%, 760px); }
.entry > * + * { margin-top: 1.2rem; }
.entry h2 { margin-top: 2.4rem; font-size: 2rem; }
.entry ul { padding-left: 1.2rem; }
.content-page > .container > * { max-width: 760px; }
.content-page > .container > .alignwide { max-width: var(--container); }
.content-page .wp-block-group.has-background { padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius); }
.content-page h2 { margin-top: 2.65rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.content-page h3 { margin-top: 1.7rem; }
.content-page .wp-block-columns { gap: 1.2rem; }
.content-page .wp-block-column { min-width: 0; }
.content-page .content-card { height: 100%; padding: 1.45rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.content-page .wp-block-group.has-soft-background-color .content-card { border-color: transparent; }
.content-page .wp-block-buttons { margin-top: 1.5rem; }
.content-page .wp-block-button__link { min-height: 48px; padding: .72rem 1.1rem; border-radius: 5px; font-weight: 800; line-height: 1.2; }
.course-archive { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.training-suites { margin-top: var(--space); }
.course-card { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.course-card .course-meta { margin-bottom: .75rem; color: var(--slate); font-size: .87rem; }
.course-card .course-price { margin-top: auto; padding-top: 1rem; font-weight: 800; }
.course-card a { font-weight: 800; }
.course-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0; }
.course-detail { padding: 1rem; background: var(--wash); }
.course-detail strong, .course-detail span { display: block; }
.course-detail strong { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.course-detail span { font-weight: 800; }
.notice { padding: 1rem 1.2rem; background: #fff6db; border-left: 4px solid #d69d00; color: #5a4300; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: grid; gap: .35rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: .9rem; font-weight: 800; }
.form-field input, .form-field textarea { width: 100%; padding: .75rem; border: 1px solid #aebdc3; border-radius: 4px; background: #fff; color: var(--ink); }
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 5rem; }
.contact-card { padding: 1.5rem; background: var(--wash); border-radius: var(--radius); }
.site-footer { padding: 4rem 0 1.5rem; background: #10191f; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 3rem; padding-bottom: 3rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #b3c1c7; }
.site-footer p, .site-footer a { color: #c7d4d9; }
.footer-menu { display: grid; gap: .4rem; align-items: initial; }
.footer-menu a { text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); color: #9baeb5; font-size: .85rem; }
.footer-bottom a { color: #9baeb5; }
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .site-navigation { position: absolute; top: 76px; right: 0; left: 0; display: none; padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid var(--line); background: #fff; }
  .site-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-menu a { display: block; padding: .75rem 0; }
  .primary-menu .header-cta { margin-top: .5rem; padding-left: 1rem; text-align: center; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero-copy { padding: 0; }
  .hero-mark { justify-self: start; width: min(100%, 440px); margin-top: 0; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .training-grid, .contact-layout { grid-template-columns: 1fr; }
  .hero { padding-top: clamp(3.4rem, 8vw, 5rem); }
  .training-copy { position: static; }
  .cards, .insights, .course-archive { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 580px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 2rem), var(--container)); }
  .header-inner { min-height: 70px; }
  .site-navigation { top: 70px; }
  .brand img { width: 43px; height: 35px; }
  .brand small { font-size: .59rem; }
  .hero { padding: 3.1rem 0 3.5rem; }
  .hero-copy > p { max-width: 36ch; }
  .actions { align-items: stretch; flex-direction: column; margin-top: 1.45rem; }
  .actions .button { width: 100%; }
  .hero-mark { width: min(100%, 330px); margin-top: .5rem; }
  .hero-mark span { right: 1.3rem; bottom: 1.3rem; font-size: .95rem; }
  .trust-items, .cards, .insights, .course-archive, .course-details, .footer-grid { grid-template-columns: 1fr; }
  .section-heading, .cta-panel { align-items: start; flex-direction: column; display: flex; }
  .reasons { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *:before, *:after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

.course-card { overflow: hidden; }
.course-card__image { display: block; width: calc(100% + 3rem); height: 11rem; margin: -1.5rem -1.5rem 1.25rem; object-fit: cover; }


.support-panel .button--outline { border-color: #fff; background: transparent; color: #fff; }
.support-panel .button--outline:hover { background: #fff; color: var(--ink); }
.support-panel .button--outline:focus-visible { outline-color: #fff; outline-offset: 4px; box-shadow: 0 0 0 2px var(--ink); }

/* Homepage-only compact training preview. */
.training .course-row { grid-template-columns: 2.2rem minmax(0, 1fr); gap: .7rem; transition: background-color .18s ease, color .18s ease; }
.training .course-row__number { color: var(--aqua); font-size: .78rem; letter-spacing: .08em; padding-top: .2rem; }
.training .course-row__content { display: block; min-width: 0; opacity: 1 !important; font-size: 1rem !important; }
.training .course-row__title { display: block; font-size: 1.08rem !important; line-height: 1.35; }
.training .course-row__credibility { display: block; margin-top: .35rem; color: rgba(255,255,255,.74); font-size: .86rem !important; font-weight: 600; line-height: 1.45; }
.training .course-row:hover, .training .course-row:focus-visible { background: rgba(255,255,255,.09); color: #fff; opacity: 1; outline: none; }
.training .course-row:focus-visible { box-shadow: 0 0 0 3px var(--aqua); }
@media (max-width: 640px) { .training .course-row { grid-template-columns: 2.2rem minmax(0, 1fr); gap: .7rem; padding: 1rem 0; } }