/*
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%; }
}
