/*
Theme Name: gobyukey
Theme URI: https://example.com/
Author: friedrice
Description: Lightweight, responsive WordPress theme with editable brand colours and an HTML-first Theme Builder for multiple conditional headers and footers. Built for clean typography, fast loading and Elementor compatibility.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 6.8
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: editable-brand-theme
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, one-column, two-columns, full-width-template
*/

:root {
  --ebt-primary: #1f6fb2;
  --ebt-accent: #19b5c5;
  --ebt-bg: #ffffff;
  --ebt-surface: #f5f7f9;
  --ebt-text: #1f2933;
  --ebt-muted: #5f6b76;
  --ebt-header-bg: #1f6fb2;
  --ebt-header-text: #ffffff;
  --ebt-footer-bg: #18242f;
  --ebt-footer-text: #ffffff;
  --ebt-button-text: #ffffff;
  --ebt-border: #d8dee4;
  --ebt-content-width: 1180px;
  --ebt-radius: 6px;
  --ebt-font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ebt-bg);
  color: var(--ebt-text);
  font-family: var(--ebt-font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--ebt-primary); text-decoration-thickness: .08em; text-underline-offset: .14em; }
a:hover { text-decoration-thickness: .13em; }
button, input, select, textarea { font: inherit; }
button, .button, input[type="submit"], .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .7rem 1.1rem;
  border: 2px solid var(--ebt-primary);
  border-radius: var(--ebt-radius);
  background: var(--ebt-primary);
  color: var(--ebt-button-text);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
button:hover, .button:hover, input[type="submit"]:hover, .wp-element-button:hover { opacity: .92; transform: translateY(-1px); }
:focus-visible { outline: 3px solid var(--ebt-accent); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .55em;
  color: var(--ebt-text);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.7rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 3vw, 2rem); }
p, ul, ol, blockquote { margin-top: 0; margin-bottom: 1.25rem; }

.ebt-container { width: min(calc(100% - 2rem), var(--ebt-content-width)); margin-inline: auto; }
.ebt-narrow { width: min(calc(100% - 2rem), 780px); margin-inline: auto; }
.site-main { min-height: 60vh; }

.site-header {
  position: relative;
  z-index: 50;
  background: var(--ebt-header-bg);
  color: var(--ebt-header-text);
}
.site-header a { color: inherit; }
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-branding { display: flex; align-items: center; min-width: 0; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 48px; width: auto; }
.site-title {
  margin: 0;
  color: var(--ebt-header-text);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.025em;
}
.site-title a { text-decoration: none; }
.site-description { margin: .35rem 0 0; font-size: .9rem; opacity: .86; }

.primary-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.15rem; }
.primary-navigation a { font-weight: 700; text-decoration: none; }
.primary-navigation a:hover { text-decoration: underline; text-underline-offset: .2em; }
.menu-toggle { display: none; }

.ebt-hero {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ebt-primary) 9%, white), var(--ebt-bg));
}
.ebt-hero .eyebrow { margin: 0 0 .7rem; color: var(--ebt-primary); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.ebt-hero p { max-width: 720px; color: var(--ebt-muted); font-size: clamp(1.05rem, 2.4vw, 1.35rem); }
.ebt-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button-secondary { background: transparent; color: var(--ebt-primary); }

.content-area { padding: 3.5rem 0 5rem; }
.entry-card {
  background: var(--ebt-bg);
  border: 1px solid var(--ebt-border);
  border-radius: calc(var(--ebt-radius) + 2px);
  overflow: hidden;
}
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.entry-card__content { padding: 1.35rem; }
.entry-card h2, .entry-card h3 { font-size: 1.4rem; }
.entry-card h2 a, .entry-card h3 a { color: inherit; text-decoration: none; }
.entry-meta { color: var(--ebt-muted); font-size: .88rem; margin-bottom: .85rem; }
.entry-thumbnail img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.entry-header { padding: 3.5rem 0 1.5rem; }
.entry-content { padding-bottom: 4rem; }
.entry-content > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--ebt-content-width); }
.entry-content > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content img { border-radius: var(--ebt-radius); }

.wp-block-quote, blockquote { border-left: 5px solid var(--ebt-primary); margin-left: 0; padding: .3rem 0 .3rem 1.2rem; color: var(--ebt-muted); }
.wp-block-table table, table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--ebt-border); padding: .75rem; text-align: left; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="number"], textarea, select {
  width: 100%;
  border: 2px solid var(--ebt-border);
  border-radius: var(--ebt-radius);
  background: #fff;
  color: var(--ebt-text);
  padding: .7rem .8rem;
}

.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 2rem; }
.page-numbers { padding: .45rem .7rem; border: 1px solid var(--ebt-border); border-radius: var(--ebt-radius); text-decoration: none; }
.page-numbers.current { background: var(--ebt-primary); color: #fff; border-color: var(--ebt-primary); }

.site-footer { margin-top: auto; background: var(--ebt-footer-bg); color: var(--ebt-footer-text); }
.site-footer a { color: inherit; }
.footer-html-content { padding: 2.5rem 0 2rem; }
.footer-html-content > :last-child { margin-bottom: 0; }
.site-footer #footer-menu { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; }
.site-footer #footer-menu a { font-weight: 700; text-decoration: none; }
.site-footer #footer-menu a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-widgets { padding: 3rem 0 2rem; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; }
.site-info { padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; opacity: .9; }
.widget-title { color: var(--ebt-footer-text); font-size: 1.05rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin: .4rem 0; }

.error-404 { padding: 6rem 0; text-align: center; }
.error-404 .error-code { font-size: clamp(4rem, 15vw, 10rem); line-height: .8; font-weight: 700; color: var(--ebt-primary); letter-spacing: -.06em; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; background: #fff; color: #000; padding: .8rem; margin: .5rem; z-index: 999999; }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .menu-toggle { display: inline-flex; min-height: 42px; padding: .5rem .75rem; border-color: currentColor; background: transparent; color: var(--ebt-header-text); }
  .primary-navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ebt-header-bg); border-top: 1px solid rgba(255,255,255,.18); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: block; padding: .75rem 1rem 1rem; }
  .primary-navigation li { margin: .15rem 0; }
  .primary-navigation a { display: block; padding: .7rem 0; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .ebt-container, .ebt-narrow { width: min(calc(100% - 1.25rem), var(--ebt-content-width)); }
  .header-inner { min-height: 68px; }
  .site-title { font-size: 1.3rem; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; }
  .ebt-actions { flex-direction: column; align-items: stretch; }
  .ebt-actions .button { width: 100%; }
}



/* UK Translation Online typography consistency */
body, button, input, select, textarea {
  font-family: var(--ebt-font, Arial, "Helvetica Neue", Helvetica, sans-serif);
}



/* Footer-linked pages brand pass */
body.page-id-309,
body.page-id-460,
body.page-id-298,
body.page-id-302,
body.page-id-5781,
body.page-id-5889,
body.page-id-157,
body.page-id-17396 {
  overflow-x: hidden;
}

body.page-id-309 .elementor-button,
body.page-id-460 .elementor-button,
body.page-id-298 .elementor-button,
body.page-id-302 .elementor-button,
body.page-id-5781 .elementor-button {
  background: #1f6fb2 !important;
  border-color: #1f6fb2 !important;
  color: #fff !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

body.page-id-309 .elementor-button:hover,
body.page-id-309 .elementor-button:focus-visible,
body.page-id-460 .elementor-button:hover,
body.page-id-460 .elementor-button:focus-visible,
body.page-id-298 .elementor-button:hover,
body.page-id-298 .elementor-button:focus-visible,
body.page-id-302 .elementor-button:hover,
body.page-id-302 .elementor-button:focus-visible,
body.page-id-5781 .elementor-button:hover,
body.page-id-5781 .elementor-button:focus-visible {
  background: #17578c !important;
  border-color: #17578c !important;
  color: #fff !important;
}

body.page-id-309 a:not(.elementor-button),
body.page-id-460 a:not(.elementor-button),
body.page-id-298 a:not(.elementor-button),
body.page-id-302 a:not(.elementor-button),
body.page-id-5781 a:not(.elementor-button),
body.page-id-17396 a {
  text-underline-offset: 3px;
}

/* Privacy policy: editorial treatment matching the new site palette */
body.page-id-17396 .entry-header {
  padding: clamp(52px, 7vw, 84px) 0 24px;
  background: #f5f7f9;
  border-bottom: 1px solid #d8dee4;
}

body.page-id-17396 .entry-header .entry-title {
  width: min(calc(100% - 40px), 900px);
  margin: 0 auto;
  color: #18242f;
  font-size: clamp(2.35rem, 5vw, 4.15rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

body.page-id-17396 .entry-content {
  width: min(calc(100% - 40px), 900px);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 72px) 0 clamp(64px, 8vw, 96px);
  color: #1f2933;
}

body.page-id-17396 .entry-content > * {
  max-width: none;
}

body.page-id-17396 .entry-content h2 {
  margin-top: 42px;
  margin-bottom: 14px;
  color: #18242f;
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  line-height: 1.18;
}

body.page-id-17396 .entry-content p,
body.page-id-17396 .entry-content li {
  color: #374151;
  line-height: 1.75;
}

body.page-id-17396 .entry-content a {
  color: #1f6fb2;
  font-weight: 700;
}

body.page-id-17396 .entry-content ul {
  padding-left: 1.25rem;
}

@media (max-width: 620px) {
  body.page-id-17396 .entry-header .entry-title,
  body.page-id-17396 .entry-content {
    width: calc(100% - 24px);
  }
}



/* Single post featured image sizing */
.single-post .entry-content > .alignwide:first-child {
  width: min(calc(100% - 40px), 760px);
  max-width: 760px;
  margin: 0 auto clamp(30px, 4vw, 44px);
}

.single-post .entry-content > .alignwide:first-child img {
  display: block;
  width: 100%;
  max-width: 760px;
  max-height: 460px;
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

@media (max-width: 620px) {
  .single-post .entry-content > .alignwide:first-child {
    width: calc(100% - 24px);
    margin-bottom: 28px;
  }

  .single-post .entry-content > .alignwide:first-child img {
    max-height: 320px;
  }
}



/* Single post previous/next navigation */
.single-post .post-navigation {
  width: min(calc(100% - 40px), 860px);
  margin: clamp(44px, 6vw, 70px) auto 0;
  padding-top: 28px;
  border-top: 1px solid #d8dee4;
}

.single-post .post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.single-post .post-navigation .nav-previous,
.single-post .post-navigation .nav-next {
  min-width: 0;
}

.single-post .post-navigation .nav-previous a,
.single-post .post-navigation .nav-next a {
  display: flex;
  min-height: 126px;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid #d8dee4;
  border-radius: 10px;
  background: #fff;
  color: #18242f;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(24,36,47,.06);
  transition:
    border-color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.single-post .post-navigation .nav-previous a:hover,
.single-post .post-navigation .nav-next a:hover,
.single-post .post-navigation .nav-previous a:focus-visible,
.single-post .post-navigation .nav-next a:focus-visible {
  border-color: #1f6fb2;
  background: #f5f7f9;
  box-shadow: 0 12px 30px rgba(24,36,47,.10);
  transform: translateY(-2px);
}

.single-post .post-navigation .nav-next a {
  text-align: right;
  align-items: flex-end;
}

.single-post .post-nav-label {
  color: #1f6fb2;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.single-post .post-nav-title {
  display: block;
  max-width: 100%;
  color: #18242f;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 750;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .single-post .post-navigation {
    width: calc(100% - 24px);
    margin-top: 38px;
    padding-top: 22px;
  }

  .single-post .post-navigation .nav-links {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .single-post .post-navigation .nav-previous a,
  .single-post .post-navigation .nav-next a {
    min-height: 104px;
    padding: 18px;
  }

  .single-post .post-navigation .nav-next a {
    text-align: left;
    align-items: flex-start;
  }
}
