/*
Theme Name: BYBOA Pilot
Theme URI: https://www.brickyardplantation.org/
Author: BYBOA
Description: Minimal block theme for the BYBOA WordPress pilot.
Version: 0.1.0
Requires at least: 6.0
*/

:root {
  --byboa-ink: #13233c;
  --byboa-navy: #1d2b49;
  --byboa-navy-deep: #121d33;
  --byboa-cream: #f4efe7;
  --byboa-sand: #d9c3a2;
  --byboa-gold: #b98b47;
  --byboa-line: rgba(255, 255, 255, 0.16);
  --byboa-shell: 1180px;
}

.byboa-masthead-shell {
  padding: 18px 20px 14px;
  background:
    radial-gradient(circle at top left, rgba(217, 195, 162, 0.28), transparent 32%),
    linear-gradient(135deg, var(--byboa-navy-deep), var(--byboa-navy));
  width: 100%;
}

.byboa-masthead {
  max-width: var(--byboa-shell);
  margin: 0 auto;
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 18px 22px 14px;
  background: transparent;
  box-shadow: none;
}

.byboa-masthead__top {
  align-items: center;
  gap: 18px;
}

.byboa-brand {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  text-decoration: none;
  color: inherit;
  flex: 1 1 620px;
  min-width: 0;
}

.byboa-brand__logo {
  width: 234px;
  max-width: 100%;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.byboa-brand__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.byboa-brand__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.byboa-brand__name {
  font-size: clamp(1.15rem, 1.5vw, 1.75rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--byboa-cream);
}

.byboa-brand__sub {
  max-width: 32rem;
  font-size: 0.88rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

.byboa-masthead__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex: 0 1 320px;
}

.byboa-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.byboa-chip--accent {
  border-color: transparent;
  background: var(--byboa-gold);
  color: var(--byboa-navy-deep);
  font-weight: 700;
}

.byboa-chip:hover,
.byboa-chip:focus-visible,
.byboa-button:hover,
.byboa-button:focus-visible,
.byboa-nav a:hover,
.byboa-nav a:focus-visible {
  transform: translateY(-1px);
}

.byboa-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.byboa-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.byboa-nav a:hover,
.byboa-chip:hover {
  background: rgba(255, 255, 255, 0.12);
}

.byboa-frontpage {
  background:
    linear-gradient(180deg, #f7f2e9 0, #f4efe6 190px, #ffffff 191px);
}

.byboa-hero {
  padding: 18px 20px 34px;
}

.byboa-hero__inner {
  max-width: var(--byboa-shell);
  margin: 0 auto;
  padding: 36px 40px;
  border-radius: 22px;
  color: var(--byboa-ink);
  border: 1px solid rgba(11, 47, 43, 0.08);
  background:
    radial-gradient(circle at top right, rgba(43, 122, 120, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 46px rgba(19, 35, 60, 0.08);
}

.byboa-hero__eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--byboa-gold);
  font-size: 0.82rem;
  font-weight: 700;
}

.byboa-hero__title {
  margin: 0;
  max-width: 18ch;
  color: var(--byboa-ink);
  font-size: clamp(2rem, 4.1vw, 3.3rem);
  line-height: 1.02;
}

.byboa-hero__text {
  margin: 18px 0 0;
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(19, 35, 60, 0.9);
}

.byboa-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.byboa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.byboa-button--solid {
  color: var(--byboa-navy-deep);
  background: var(--byboa-sand);
}

.byboa-button--ghost {
  color: var(--byboa-navy);
  border: 1px solid rgba(19, 35, 60, 0.18);
  background: rgba(19, 35, 60, 0.03);
}

.wp-block-post-content a {
  color: var(--byboa-navy);
  text-decoration-color: rgba(29, 43, 73, 0.28);
}

.wp-block-post-content a:hover,
.wp-block-post-content a:focus-visible {
  color: var(--byboa-ink);
  text-decoration-color: rgba(19, 35, 60, 0.5);
}

.wp-block-post-content .wp-block-button__link,
.wp-block-post-content .wp-block-button__link.has-contrast-background-color {
  background: var(--byboa-navy) !important;
  color: #fff !important;
  border-radius: 14px;
  box-shadow: none;
}

.wp-block-post-content .wp-block-button__link:hover,
.wp-block-post-content .wp-block-button__link:focus-visible {
  background: var(--byboa-ink) !important;
}

@media (max-width: 900px) {
  .byboa-masthead {
    padding: 18px 18px 16px;
  }

  .byboa-masthead__top {
    flex-wrap: wrap !important;
    align-items: flex-start;
  }

  .byboa-brand {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .byboa-brand__logo {
    width: 160px;
  }

  .byboa-masthead__actions {
    justify-content: flex-start;
    flex-basis: 100%;
  }

  .byboa-hero__inner {
    padding: 28px 24px;
  }

  .byboa-hero__title {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .byboa-brand {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .byboa-brand__logo {
    width: 128px;
  }

  .byboa-masthead__actions {
    justify-content: flex-start;
  }

  .byboa-nav {
    gap: 8px;
  }

  .byboa-nav a,
  .byboa-chip,
  .byboa-button {
    width: 100%;
    justify-content: center;
  }

  .byboa-hero {
    padding-left: 14px;
    padding-right: 14px;
  }
}
