/* deskbed.co.uk tribute site - one stylesheet. Values measured from the previous site (brief 261025-01). */

/* Red Hat Display (SIL Open Font License 1.1), variable weight, self-hosted */
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/assets/fonts/red-hat-display-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/assets/fonts/red-hat-display-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Red Hat Display"; font-style: italic; font-weight: 300 900; font-display: swap; src: url(/assets/fonts/red-hat-display-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Red Hat Display"; font-style: italic; font-weight: 300 900; font-display: swap; src: url(/assets/fonts/red-hat-display-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --primary: #00C0F3;
  --secondary: #214BA7;
  --button: #30C0F1;
  --text: #2D3041;
  --title: #000F2B;
  --dark: #383838;
  --white: #FFFFFF;
  --box: 1156px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Red Hat Display", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: "Red Hat Display", sans-serif; }
p { margin: 0 0 1.6em; }
.box { width: 100%; max-width: var(--box); margin: 0 auto; }

.skip-link { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 10px; top: 10px; width: auto; height: auto; padding: 10px 16px; background: var(--white); color: var(--text); z-index: 100000; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 99; background: var(--dark); padding: 0 40px; }
.hdr-row { display: flex; gap: 20px; padding: 20px; }
.hdr-logo { flex: 0 0 calc((100% - 79px) / 3); min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hdr-logo a { display: block; width: 100%; line-height: 0; }
.hdr-logo img { width: 50%; }
.hdr-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; align-items: center; }
.nav-main ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.nav-main li { display: flex; position: relative; }
.nav-main a {
  position: relative; z-index: 1; display: flex; align-items: center;
  padding: 10px 20px; color: var(--white);
  font-size: 1.08rem; font-weight: 600; line-height: 20px; text-transform: uppercase;
  transition: .4s;
}
.nav-main a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--primary); border-radius: 5px; opacity: 0; transition: .3s;
}
.nav-main a:hover::before, .nav-main a:focus-visible::before, .nav-main a.is-active::before { opacity: 1; }
.nav-mobile { display: none; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; min-height: 700px; padding: 10px; }
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center center; opacity: 0; animation: hero-kb 14s linear infinite; }
.hero-slide.s1 { background-image: url(/assets/img/db068.jpg); animation-delay: -.5s; }
.hero-slide.s2 { background-image: url(/assets/img/db079.jpg); animation-delay: 6.5s; }
@keyframes hero-kb {
  0% { opacity: 0; transform: scale(1); }
  3.571% { opacity: 1; }
  53.571% { opacity: 1; transform: scale(1.1125); }
  57.143% { opacity: 0; transform: scale(1.1125); }
  100% { opacity: 0; transform: scale(1.1125); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
  .hero-slide.s1 { opacity: 1; }
}
.hero-inner { position: relative; padding-top: 200px; }
.hero-title { font-size: 60px; font-weight: 800; line-height: 78px; color: var(--white); text-transform: lowercase; }
.hero-title-2 { margin-top: -16px; }
.hero-sub { margin: 20px 0 20px; font-size: 1.125rem; font-weight: 400; line-height: 1.2; color: var(--white); text-transform: lowercase; }

/* ---------- Home feature rows ---------- */
.feature { padding: 10px; margin: 0 0 40px; }
.feature.first { margin-top: 60px; }
.feature .box { display: flex; flex-direction: row; }
.feature .media { flex: 0 0 50%; }
.feature .media img { width: 100%; border-radius: 12px; }
.feature .copy { flex: 0 0 50%; display: flex; flex-direction: column; justify-content: center; padding-left: 4%; }
.feature.text-first .box { justify-content: flex-end; }
.feature.text-first .copy { padding-left: 0; padding-right: 4%; }
.copy p:last-child { margin-bottom: 1.6em; }

/* ---------- Inner-page banner ---------- */
.banner {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 350px; padding: 100px 10px;
  background: url(/assets/img/BannerBG.png) center center / cover no-repeat;
}
.banner::before { content: ""; position: absolute; inset: 0; background: #000; opacity: .3; }
.banner .box { position: relative; }
.banner h1 { font-size: 1.75rem; font-weight: 400; line-height: 1.3; color: var(--white); text-align: center; text-transform: lowercase; }
.banner.strong h1 { font-size: 36px; font-weight: 700; line-height: 40px; }

/* ---------- Specifications rows ---------- */
.spec { padding: 10px; margin: 60px 0 40px; }
.spec .box { display: flex; flex-direction: row; }
.spec .media { flex: 0 0 50%; }
.spec .media img { width: 100%; border-radius: 12px; }
.spec .copy { flex: 0 0 50%; display: flex; flex-direction: column; justify-content: center; padding-left: 4%; }
.spec.image-right .box { flex-direction: row-reverse; }

/* ---------- Gallery ---------- */
.gallery-sec { padding: 50px 10px; }
.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: var(--box); margin: 0 auto; }
.g-item { position: relative; display: block; width: 228px; height: 228px; border: 4px solid #fff; background: #fff; box-shadow: 0 0 0 1px #ddd; overflow: hidden; }
.g-item img { display: block; width: 220px; height: 220px; }
.g-item::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: rgba(0, 0, 0, .5) url(/assets/img/zoom.svg) center center / 32px 32px no-repeat;
}
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }

/* lightbox (assets/js/gallery.js) */
.lb { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .85); touch-action: pan-y; }
.lb.open { display: flex; }
.lb figure { margin: 0; max-width: calc(100vw - 120px); max-height: calc(100vh - 100px); }
.lb img { display: block; max-width: calc(100vw - 120px); max-height: calc(100vh - 100px); width: auto; height: auto; border: 4px solid #fff; background: #fff; }
.lb button { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 5px; background: rgba(0, 0, 0, .4); color: #fff; cursor: pointer; }
.lb button:hover, .lb button:focus-visible { background: var(--primary); }
.lb button svg { width: 24px; height: 24px; fill: currentColor; }
.lb .lb-close { top: 12px; right: 12px; }
.lb .lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.lb .lb-next { right: 12px; top: 50%; margin-top: -24px; }
.lb .lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; font-weight: 500; }
body.lb-lock { overflow: hidden; }

/* ---------- FAQs ---------- */
.faq-sec { padding: 50px 10px; }
.faq { max-width: var(--box); margin: 0 auto; }
.faq details + details { margin-top: 15px; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 20px; background: var(--secondary); border: 1px solid var(--secondary);
  color: var(--white); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
/* 261025-04 D2: white title and icon on blue in every state (contrast 8:1); darker blue on hover/focus */
.faq summary .q { color: var(--white); font-size: 16px; line-height: 24px; }
.faq summary:hover, .faq summary:focus-visible { background: #1A3C86; border-color: #1A3C86; }
.faq summary:focus-visible { outline: 3px solid var(--title); outline-offset: 2px; }
.faq summary svg { display: block; width: 16px; height: 16px; flex: 0 0 16px; fill: currentColor; }
.faq summary .i-open { display: none; }
.faq details[open] summary .i-open { display: block; }
.faq details[open] summary .i-closed { display: none; }
.faq .a { border: 1px solid var(--secondary); padding: 0 20px 20px; }

/* ---------- Contact ---------- */
.contact-sec { background: var(--dark); padding: 50px 0; overflow: hidden; }
.contact-sec .box { display: flex; flex-direction: column; }
.contact-sec h2 { margin-bottom: 20px; font-size: 32px; font-weight: 600; line-height: 1.3; color: var(--white); text-transform: lowercase; }
.cform .fields { display: flex; flex-wrap: wrap; margin: 0 -7.5px -25px; }
.cform .fg { flex: 0 0 50%; max-width: 50%; padding: 0 7.5px; margin-bottom: 25px; }
.cform .fg.full { flex-basis: 100%; max-width: 100%; }
.cform .fg.btn { flex-basis: 40%; max-width: 40%; display: flex; align-items: flex-end; }
.cform input, .cform textarea {
  display: block; width: 100%; min-height: 47px; margin: 0; padding: 6px 16px;
  border: 0; border-bottom: 2px solid rgba(255, 255, 255, .45); border-radius: 0;
  background: rgba(162, 162, 162, .18); color: rgba(255, 255, 255, .98);
  font: 600 16px/1.4 "Red Hat Display", sans-serif; outline: 0;
}
.cform { margin-top: 30px; }
.cform textarea { resize: both; }
.cform ::placeholder { color: inherit; font-family: inherit; opacity: .6; }
.cform button {
  min-width: 191px; min-height: 47px; padding: 15px 30px; border: 0; border-radius: 5px;
  background: var(--primary); color: var(--white); cursor: pointer;
  font: 500 .75rem/1 "Red Hat Display", sans-serif; letter-spacing: 2px; text-transform: uppercase; transition: .3s;
}
/* 261025-04 D4: readable hover/focus (white on the site's dark blue) */
.cform button:hover, .cform button:focus-visible { background: var(--secondary); color: var(--white); }
.cform button:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.cform .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0 0 25px; padding: 0 7.5px; flex: 0 0 100%; }
.form-msg.ok { color: #5cb85c; }
.form-msg.err { color: #d9534f; }

/* ---------- Privacy / plain text ---------- */
.text-sec { padding: 10px; margin: 50px 0; }
.text-sec .box { display: flow-root; margin-bottom: 10px; }
.text-sec p { font-size: 16px; font-weight: 500; line-height: 1.5rem; }
/* Privacy Policy (261025-04 Part B) */
.policy h2 { margin: 1.4em 0 .6em; font-size: 28px; font-weight: 700; line-height: 1.3; color: var(--title); }
.policy ul { margin: 0 0 1.6em; padding-left: 1.4em; }
.policy li { margin-bottom: .5em; font-size: 16px; font-weight: 500; line-height: 1.5rem; }
.policy a { color: var(--secondary); text-decoration: underline; }
.policy .table-wrap { overflow-x: auto; margin: 0 0 1.6em; }
.policy table { width: 100%; border-collapse: collapse; font-size: 15px; font-weight: 500; line-height: 1.4; }
.policy th, .policy td { padding: 10px 12px; border: 1px solid #c9d3e3; text-align: left; vertical-align: top; }
.policy th { background: #F3F9FB; color: var(--title); font-weight: 700; }
.policy code { font-family: Consolas, Menlo, monospace; font-size: 14px; }

/* ---------- Cookie consent banner (261025-04 Part C) ---------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px;
  padding: 16px 20px; background: var(--dark); color: var(--white); box-shadow: 0 -2px 12px rgba(0, 0, 0, .25);
  font-size: 15px; font-weight: 500; line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; max-width: 760px; }
.consent a { color: var(--white); text-decoration: underline; }
.consent a:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.consent-btns { display: flex; gap: 12px; }
.consent button {
  min-width: 128px; min-height: 44px; padding: 12px 24px; border: 2px solid var(--secondary); border-radius: 5px;
  background: var(--secondary); color: var(--white); cursor: pointer;
  font: 600 14px/1 "Red Hat Display", sans-serif; letter-spacing: 1px; text-transform: uppercase;
}
.consent button:hover { background: #1A3C86; border-color: #1A3C86; }
.consent button:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }

/* ---------- 404 / 410 ---------- */
.err-sec { padding: 50px 10px; }
.err-sec a { color: var(--secondary); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--white); }
.ft-divider { padding: 10px; }
.ft-divider span { display: block; margin: 15px 0; border-top: 1px solid var(--white); }
.ft-bottom { display: flex; justify-content: space-between; padding: 10px; }
.ft-col { flex: 0 0 20%; display: flex; flex-direction: column; justify-content: center; padding: 10px; }
.ft-col.left { align-items: flex-start; }
.ft-list { display: flex; flex-wrap: wrap; margin: 0 -8px; padding: 0; list-style: none; font-weight: 400; }
.ft-col.right .ft-list { justify-content: flex-end; }
.ft-list li { position: relative; display: flex; align-items: center; margin: 0 8px; }
.ft-list li + li::before { content: ""; position: absolute; top: 0; bottom: 0; left: -9px; border-left: 2px solid #ddd; }
.ft-list a:hover { color: var(--white); }

/* ---------- Tablet (Elementor <= 1024px) ---------- */
@media (max-width: 1024px) {
  .site-header { padding: 0 20px; }
  .hdr-row { padding: 15px; }
  .hdr-logo { flex: 0 0 50%; }
  .hdr-logo img { width: 90%; }
  .nav-main { display: none; }
  .nav-mobile { display: block; }
  .feature .box, .spec .box { flex-wrap: wrap; }
  .feature .media, .feature .copy, .spec .media, .spec .copy { flex-basis: 100%; }
  .feature.text-first .box { flex-direction: column-reverse; }
  .spec.image-right .box { flex-direction: column; }
  .banner { min-height: 250px; padding: 70px 10px; }
}

/* mobile menu (details/summary, works without JS) */
.nav-mobile summary {
  display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; padding: 9px;
  background: var(--primary); color: var(--white); border-radius: 3px; cursor: pointer; list-style: none;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary:hover { background: var(--white); color: var(--primary); }
.nav-mobile summary svg { width: 36px; height: 36px; fill: currentColor; }
.nav-mobile .i-close { display: none; }
.nav-mobile[open] .i-close { display: block; }
.nav-mobile[open] .i-open { display: none; }
.nav-mobile nav { position: absolute; left: 0; right: 0; top: 101px; z-index: 9997; background: var(--primary); border-radius: 0 0 10px 10px; }
.nav-mobile ul { margin: 0; padding: 0; list-style: none; }
.nav-mobile li:not(:last-child) { border-bottom: 1px solid var(--white); }
.nav-mobile a { display: flex; justify-content: center; align-items: center; padding: 10px 0; color: var(--white); font-size: 14.04px; line-height: 20px; text-transform: uppercase; }
.nav-mobile li:last-child a { border-radius: 0 0 10px 10px; }

/* ---------- Astra root font size <= 921px ---------- */
@media (max-width: 921px) {
  html { font-size: 91.2%; }
}

/* ---------- Mobile (Elementor <= 767px) ---------- */
@media (max-width: 767px) {
  .site-header { padding: 0 10px; }
  .hdr-row { padding: 10px; }
  .hdr-logo { flex: 0 0 80%; }
  .hdr-logo img { width: 90%; }
  .hdr-nav { flex: 0 0 12%; justify-content: flex-start; }
  .hero-title { font-size: 28px; line-height: 32px; }
  .hero-title-2 { margin-top: 0; }                      /* D1: no overlap at 390 and below */
  .hero-sub { margin-top: 20px; }
  .feature.first { margin-top: 50px; margin-bottom: 0; }
  .feature.text-first, .feature.last { margin-bottom: 20px; }
  .feature .copy, .feature.text-first .copy { margin-top: 5%; padding: 2% 0 0; }
  .spec { margin: 50px 0 0; }
  .spec .copy { margin-top: 5%; padding: 2% 0 0; }
  .banner { padding: 50px 10px; }
  .banner h1, .banner.strong h1 { font-size: 28px; line-height: 32px; }
  .faq summary .q { font-size: 14px; line-height: 1.5rem; }
  .contact-sec .box { padding: 0 10px; }                 /* D5: same 10px side margins as the other pages */
  .contact-sec h2 { font-size: 28px; line-height: 32px; }
  .cform .fg, .cform .fg.btn { flex-basis: 100%; max-width: 100%; }
  .ft-bottom { flex-wrap: wrap; }
  .ft-col { flex-basis: 100%; }
  .pg-specs .spec p { margin-bottom: 1.75em; }
  .policy h2 { font-size: 24px; }
  .consent { justify-content: flex-start; padding: 14px 16px; }
  .consent-btns { width: 100%; }
  .consent button { flex: 1 1 0; min-width: 0; }
  .lb figure, .lb img { max-width: 100vw; }
  .lb .lb-prev, .lb .lb-next { top: auto; bottom: 8px; margin-top: 0; }
}
