/* Knightworks Design. Colours, fonts and spacing taken from the GoDaddy theme the site was built on. */
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/lato-300.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/lato-400.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/lato-400i.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/lato-700.woff2) format('woff2'); }
@font-face { font-family: 'Cabin'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/cabin.woff2) format('woff2'); }

/* Pages fade into each other instead of flashing (Chrome, Edge, Safari 18.2+). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
/* The header pieces keep their identity across pages, so the logo glides between its home and inner-page sizes. */
.logo img { view-transition-name: site-logo; }
.promo { view-transition-name: promo; }
.nav { view-transition-name: site-nav; }
::view-transition-group(site-logo) { animation-duration: .5s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
::view-transition-old(site-logo), ::view-transition-new(site-logo) { height: 100%; width: auto; }
:root {
  --bg: rgb(22, 22, 22);
  --bg-deep: #000;
  --red: rgb(255, 3, 7);
  --red-dark: rgb(237, 2, 6);
  --yellow: #ffd000;
  --text: rgb(164, 164, 164);
  --text-light: rgb(226, 226, 226);
  --white: rgb(247, 247, 247);
  --rule: rgb(71, 71, 71);
  --light-bg: #fff;
  --light-text: rgb(94, 94, 94);
  --heading: 'Cabin', Arial, sans-serif;
  --body: 'Lato', Arial, sans-serif;
  --container: 100vw;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text-light); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
.center { text-align: center; }

.container { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 1024px) { :root { --container: 936px; } }
@media (min-width: 1280px) { :root { --container: 1112px; } }
@media (min-width: 1536px) { :root { --container: 1232px; } body { font-size: 18px; } }
.container--narrow { max-width: calc(726px + var(--gutter) * 2); }
.section { padding: 56px 0; }

/* ---------- buttons, headings ---------- */
.btn {
  display: inline-block; background: var(--red); color: #fff; border: 0; border-radius: 0; cursor: pointer;
  font: 700 14px/1.2 var(--body); letter-spacing: 1px; text-transform: uppercase;
  padding: 16px 32px; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--red-dark); text-decoration: none; }
.btn--small { padding: 10px 18px; font-size: 12px; }
.btn--ghost { background: transparent; color: var(--light-text); }
.btn--ghost:hover { background: transparent; color: var(--red); }
.text-link { color: var(--red); font-size: 15px; }

.section-heading {
  font: 700 28px/1.25 var(--heading); color: var(--red); text-transform: uppercase; letter-spacing: 1px;
  text-align: center; margin: 0;
}
.section-heading--plain { font-family: var(--body); font-weight: 400; text-transform: none; letter-spacing: 0; }
.section-heading--left { text-align: left; }
.heading-rule { width: 50px; border: 0; border-top: 1px solid var(--rule); margin: 24px auto 40px; }
.heading-rule--left { margin-left: 0; }
.on-red { color: #fff; }
.on-red + .heading-rule { border-color: rgba(255, 255, 255, .7); }
.on-light + .heading-rule, .contact .heading-rule { border-color: rgb(226, 226, 226); }
@media (min-width: 768px) { .section-heading { font-size: 30px; } }
@media (min-width: 1280px) { .section-heading { font-size: 32px; } }
@media (min-width: 1536px) { .section-heading { font-size: 36px; } }
.section-heading--big { font-size: 32px; }
@media (min-width: 768px) { .section-heading--big { font-size: 38px; } }
@media (min-width: 1280px) { .section-heading--big { font-size: 44px; } }
@media (min-width: 1536px) { .section-heading--big { font-size: 48px; } }

/* ---------- promo bar + header ---------- */
.promo { background: var(--red); text-align: center; padding: 6px 16px; }
.promo a { color: #fff; font-size: 20px; line-height: 1.4; }
@media (min-width: 768px) { .promo a { font-size: 21px; } }

.site-header { background: var(--bg); position: relative; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; padding: 24px 48px; gap: 24px; }
.logo img { width: 300px; height: auto; }
.nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.nav a, .drawer a { color: var(--white); font: 400 14px/1 var(--body); letter-spacing: 1.5px; text-transform: uppercase; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a[aria-current="page"] { font-weight: 700; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; }

.site-header--home { background: var(--bg-deep); border-bottom: 1px solid rgb(48, 48, 48); }
.site-header--home .nav-bar { position: absolute; inset: 0 0 auto 0; z-index: 2; align-items: flex-start; padding-top: 24px; background: linear-gradient(rgba(22, 22, 22, .75), rgba(22, 22, 22, .75)) top / 100% 76px no-repeat; }
.site-header--home .logo img { width: 345px; }
.site-header--home .nav { padding-top: 6px; }
.hero img { width: 100%; }

.drawer { position: fixed; inset: 0; background: rgba(22, 22, 22, .98); z-index: 50; padding: 72px 32px; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li { border-bottom: 1px solid rgb(48, 48, 48); }
.drawer a { display: block; padding: 18px 0; font-size: 16px; }
.drawer-close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: var(--white); font-size: 40px; line-height: 1; cursor: pointer; }

@media (max-width: 1023px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav-bar { padding: 16px; }
  .logo img { width: 220px; }
  .site-header--home .nav-bar { padding: 12px 16px; background-size: 100% 56px; }
  .site-header--home .logo img { width: 230px; }
}

/* ---------- alternating image + text blocks ---------- */
.blocks .container { display: flex; flex-direction: column; gap: 32px; }
.block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.block--flip .block-media-wrap { order: 2; }
.block-media img { width: 100%; object-fit: cover; }
.block-text { text-align: center; padding: 0 8px; }
.block-heading { font: 700 32px/1.25 var(--heading); color: var(--yellow); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 24px; }
.block-body { line-height: 1.5; margin-bottom: 24px; }
.block-body p { margin: 0 0 1em; }
.block-body ul, .block-body ol { display: inline-block; text-align: left; margin: 0 0 1em; padding-left: 1.25em; }
@media (min-width: 768px) { .block-heading { font-size: 38px; } }
@media (min-width: 1280px) { .block-heading { font-size: 44px; } }
@media (min-width: 1536px) { .block-heading { font-size: 48px; } }
@media (max-width: 767px) {
  .block { grid-template-columns: 1fr; gap: 24px; }
  .block--flip .block-media-wrap { order: 0; }
}

/* ---------- galleries + lightbox ---------- */
.gallery { columns: 3; column-gap: 8px; }
.g-item { break-inside: avoid; margin: 0 0 8px; }
.g-item img { width: 100%; height: auto; }
/* site.js lays galleries out row by row into columns, as GoDaddy did; CSS columns are the no-script fallback. */
.gallery.is-laid { columns: auto; display: flex; gap: 8px; align-items: flex-start; }
.g-col { flex: 1; min-width: 0; }
.gallery--single { columns: 1; max-width: 726px; margin: 0 auto; }
@media (max-width: 767px) { .gallery { columns: 2; } }
@media (max-width: 479px) { .gallery { columns: 1; } }

.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .92); z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 56px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox figcaption { color: var(--text-light); margin-top: 16px; text-align: center; min-height: 1.5em; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; padding: 8px 14px; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---------- banners ---------- */
.banner { position: relative; overflow: hidden; min-height: 216px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.banner-bg { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, var(--overlay, .7)), rgba(0, 0, 0, var(--overlay, .7))), var(--bg) var(--pos, center) / cover no-repeat; }
.banner--grey .banner-bg { background: var(--bg) var(--pos, center) / cover no-repeat; filter: grayscale(1) brightness(calc(1 - var(--overlay, .7))); }
.banner--plain { background: rgb(74, 74, 74); }
.banner--plain .banner-bg { display: none; }
.banner-inner { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; text-align: center; }
.banner-heading { font: 400 32px/1.25 var(--body); color: #fff; margin: 0; }
@media (min-width: 1024px) { .banner-heading { font-size: 34px; } }

/* ---------- FAQ ---------- */
.faq-intro { text-align: center; color: var(--text-light); font-size: 18px; margin: -8px 0 40px; }
.faq-item { border-bottom: 1px solid rgb(48, 48, 48); }
.faq-item summary { list-style: none; cursor: pointer; color: var(--white); font: 400 22px/1.4 var(--body); padding: 22px 32px 22px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; position: absolute; right: 4px; top: 50%; border: 6px solid transparent; border-top-color: var(--red); transform: translateY(-25%); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-75%) rotate(180deg); }
.faq-a { padding: 0 0 24px; }

/* ---------- about ---------- */
.about { background: var(--red); color: #fff; }
.about strong { color: #fff; }
.about-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 48px; align-items: start; }
.about-sub { font: 400 32px/1.25 var(--body); margin: 0 0 32px; }
.about-text p { line-height: 1.6; margin-bottom: 1.5em; }
.about-media img { border: 12px solid #000; width: 100%; }
@media (max-width: 767px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- home: red band, contact, partners, follow, blog ---------- */
.red-band { background: var(--red); color: #fff; text-align: center; padding: 72px 0; font-size: 18px; line-height: 1.5; }
.contact { display: grid; grid-template-columns: 1fr 1fr; background: var(--light-bg); color: var(--light-text); }
.contact-text { padding: 64px 48px 64px max(var(--gutter), calc((100vw - var(--container)) / 2 - 32px)); }
.contact-text p { line-height: 1.6; max-width: 450px; }
.contact-sub { font: 400 32px/1.25 var(--body); color: var(--red); margin: 32px 0 20px; }
.contact strong { color: inherit; }
.hours summary { cursor: pointer; list-style: none; margin-bottom: 16px; }
.hours summary::-webkit-details-marker { display: none; }
.hours-today { color: var(--red); margin-left: 4px; }
.hours-today::after { content: ''; display: inline-block; margin-left: 10px; border: 5px solid transparent; border-top-color: var(--red); vertical-align: -2px; }
.hours table { border-collapse: collapse; margin: 0 0 16px; }
.hours th, .hours td { text-align: left; padding: 2px 16px 2px 0; font-weight: 400; }
.hours tr.is-today { color: var(--red); font-weight: 700; }
.contact-form[hidden] { display: none; }
.contact-form { display: grid; gap: 14px; max-width: 450px; margin-top: 16px; }
.contact-form label { display: grid; gap: 4px; font-size: 14px; }
.contact-form input, .contact-form textarea { font: inherit; border: 1px solid rgb(226, 226, 226); padding: 12px; border-radius: 0; color: #1b1b1b; }
.form-actions { display: flex; gap: 8px; align-items: center; }
.form-status { font-size: 14px; }
.contact-map { position: relative; min-height: 420px; }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 767px) {
  .contact { grid-template-columns: 1fr; }
  .contact-text { padding: 48px var(--gutter); }
}

.logos { background: var(--light-bg); }
.logos .section-heading { margin-bottom: 40px; }
.logos-row { display: flex; justify-content: center; }
.logos--grid { background: rgb(246, 246, 246); }
.logos-heading { font: 400 32px/1.25 var(--body); color: var(--red); text-align: center; margin: 0 0 32px; }
.logos--grid .logos-row { flex-wrap: wrap; gap: 24px 56px; }
.logos--grid .logos-row img { height: 96px; width: auto; }

.follow { background: var(--light-bg); text-align: center; }
.social { display: flex; justify-content: center; gap: 56px; }
.social a { display: inline-flex; color: #fff; }
.social svg { width: 24px; height: 24px; }
.social--large svg { width: 40px; height: 40px; }
.social--large .s-fb { color: #1877f2; }
.social--large .s-ig { color: #e1306c; }
.social--large .s-x { color: #1b1b1b; }
.social--small { gap: 16px; }
.instagram { text-align: center; }

.blog { background: var(--bg-deep); padding-top: 56px; }
.blog-heading { font: 700 44px/1.25 var(--heading); color: #fff; text-align: center; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 48px; }
.blog-band { position: relative; padding: 16px 0 56px; background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), var(--bg) center / cover no-repeat; }
.blog-band::before { content: ''; position: absolute; inset: 0; backdrop-filter: grayscale(1); pointer-events: none; }
.blog-tabs { position: relative; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.blog-tabs button { background: none; border: 0; color: #fff; font: 400 16px var(--body); cursor: pointer; padding: 4px 0; }
.blog-tabs .is-active { font-weight: 700; }
.blog-carousel { position: relative; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 40px; }
.blog-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.blog-track::-webkit-scrollbar { display: none; }
.post-card { flex: 0 0 calc((100% - 72px) / 4); scroll-snap-align: start; background: #fff; text-align: center; }
.post-card[hidden] { display: none; }
.post-card a { display: flex; flex-direction: column; height: 100%; color: #1b1b1b; text-decoration: none; }
.post-card img { width: 100%; aspect-ratio: 1.75; object-fit: cover; }
.post-card-body { padding: 24px 16px; display: flex; flex-direction: column; flex: 1; gap: 12px; }
.post-card time { font-size: 14px; color: var(--light-text); }
.post-card h3 { font: 400 22px/1.15 var(--body); margin: 0; flex: 1; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; padding: 8px; }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }
@media (max-width: 1023px) { .post-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 599px) { .post-card { flex-basis: 85%; } .blog-heading { font-size: 32px; } }

/* ---------- blog post ---------- */
.post-section { background: var(--light-bg); color: var(--light-text); }
.post-grid { display: grid; grid-template-columns: 1fr 300px; gap: 56px; }
.post .back { display: inline-block; margin-bottom: 24px; font-size: 14px; }
.post-title { font: 400 32px/1.25 var(--body); color: var(--red); margin: 0 0 8px; }
.post-meta { font-size: 14px; margin-bottom: 32px; }
.post-meta span { margin: 0 8px; }
.post-body { line-height: 1.7; }
.post-body strong { color: #1b1b1b; }
.post-body img { margin: 0 0 24px; }
.post-body figure { margin: 0; }
.post-body h1, .post-body h2, .post-body h3, .post-body h4 { color: #1b1b1b; font-family: var(--body); line-height: 1.3; }
.share { margin-top: 32px; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.share svg { width: 22px; height: 22px; }
.share .s-fb { color: #1877f2; }
.share .s-x { color: #1b1b1b; }
.post-aside h2 { font: 400 20px var(--body); color: #1b1b1b; margin: 0 0 24px; }
.recent { display: flex; gap: 16px; margin-bottom: 24px; color: #1b1b1b; text-decoration: none; }
.recent img { width: 96px; height: 72px; object-fit: cover; flex: none; }
.recent strong { display: block; font-weight: 400; color: #1b1b1b; margin-bottom: 6px; }
.recent time { font-size: 13px; color: var(--light-text); }
@media (max-width: 899px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); padding: 64px var(--gutter) 56px; }
.footer-top { max-width: var(--container); margin: 0 auto 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.copyright { font-size: 14px; margin: 0; }
.footer-nav ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--container); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
.footer-nav a { color: var(--white); font: 400 14px var(--body); letter-spacing: 1.5px; text-transform: uppercase; }
@media (max-width: 767px) { .footer-top { grid-template-columns: 1fr; text-align: center; } }

/* ---------- entrance animations ----------
   html.js-anim is set by an inline script in <head> before the first paint, so these elements start hidden
   and are never drawn visible first. site.js adds .is-in as each scrolls into view. */
html { background: var(--bg); }
.js-anim main :is(.section-heading, .block, .g-item, .faq-item, .banner-inner, .about-grid, .logos-row, .contact-text, .post, .post-card, .red-band p) {
  opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--delay, 0s);
}
.js-anim main .is-in { opacity: 1 !important; transform: none !important; }
/* Multi-column galleries stay invisible until site.js has placed them in GoDaddy's row order. */
.js-anim .gallery:not(.gallery--single):not([data-cols]) { visibility: hidden; }
.hero img { animation: fade-in .8s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero img { animation: none; }
  @view-transition { navigation: none; }
}
