/*
Theme Name: Borison Framework
Theme URI: https://borisonfirm.com/
Author: Borison Firm
Description: Custom WordPress framework for the Borison Firm website.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: borison-framework
*/

:root {
  --bf-navy: #0f2742;
  --bf-navy-deep: #081a2c;
  --bf-burgundy: #7b2330;
  --bf-burgundy-dark: #5f1722;
  --bf-ink: #17202a;
  --bf-muted: #5c6773;
  --bf-line: #dce2e8;
  --bf-paper: #ffffff;
  --bf-soft: #f5f7f9;
  --bf-gold: #a88a4a;
  --bf-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bf-ink);
  background: var(--bf-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}
a { color: var(--bf-burgundy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--bf-burgundy-dark); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.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 {
  position: fixed !important; top: 10px; left: 10px; width: auto; height: auto;
  clip: auto; padding: 10px 14px; z-index: 100000; background: #fff; color: #000;
}

.bf-container { width: min(calc(100% - 40px), var(--bf-max)); margin: 0 auto; }
.bf-narrow { width: min(calc(100% - 40px), 820px); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
  border-bottom: 1px solid var(--bf-line);
  box-shadow: 0 2px 12px rgba(15,39,66,.06);
}
.admin-bar .site-header { top: 32px; }
.bf-header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-branding { display: flex; align-items: center; min-width: 220px; }
.custom-logo-link { display: inline-flex; margin-right: 14px; }
.custom-logo { max-height: 54px; width: auto; }
.site-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: .015em;
}
.site-title a { color: var(--bf-navy-deep); text-decoration: none; }
.site-description { margin: 7px 0 0; color: var(--bf-muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

.bf-nav-toggle {
  display: none;
  border: 1px solid var(--bf-line);
  background: #fff;
  color: var(--bf-navy);
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.bf-nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; }
.primary-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 6px; }
.primary-navigation li { position: relative; }
.primary-navigation a {
  display: block;
  padding: 14px 13px;
  color: var(--bf-navy-deep) !important;
  background: transparent !important;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .025em;
}
.primary-navigation a:hover,
.primary-navigation a:focus,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a { color: var(--bf-burgundy) !important; }
.primary-navigation .menu-item-has-children > a::after { content: " ▾"; font-size: .75em; }
.primary-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 240px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--bf-line);
  box-shadow: 0 12px 30px rgba(15,39,66,.12);
}
.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu { display: block; }
.primary-navigation .sub-menu a { padding: 11px 12px; white-space: nowrap; }

.bf-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--bf-navy-deep), var(--bf-navy));
  padding: clamp(78px, 11vw, 145px) 0;
  position: relative;
  overflow: hidden;
}
.bf-hero::after {
  content: "";
  position: absolute;
  right: -8vw; top: -30%;
  width: 44vw; height: 44vw;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.bf-kicker { color: #d9c79c; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; }
.bf-hero h1 {
  max-width: 920px;
  margin: 18px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 500;
}
.bf-hero p { max-width: 760px; color: #e6edf4; font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.bf-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.bf-button {
  display: inline-block;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
}
.bf-button-primary { background: var(--bf-burgundy); color: #fff !important; }
.bf-button-primary:hover { background: var(--bf-burgundy-dark); }
.bf-button-secondary { border-color: rgba(255,255,255,.65); color: #fff !important; }
.bf-button-secondary:hover { background: #fff; color: var(--bf-navy) !important; }

.bf-section { padding: clamp(64px, 8vw, 105px) 0; }
.bf-section-soft { background: var(--bf-soft); }
.bf-section-dark { background: var(--bf-navy-deep); color: #fff; }
.bf-eyebrow { color: var(--bf-burgundy); text-transform: uppercase; letter-spacing: .15em; font-size: .76rem; font-weight: 800; }
.bf-section h2,
.entry-header h1 {
  color: var(--bf-navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
}
.bf-section h2 { margin: 10px 0 18px; font-size: clamp(2rem, 4vw, 3.5rem); }
.bf-lede { max-width: 820px; color: var(--bf-muted); font-size: 1.18rem; }
.bf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 38px; }
.bf-card { background: #fff; border: 1px solid var(--bf-line); padding: 30px; min-height: 100%; }
.bf-card h3 { margin: 0 0 12px; color: var(--bf-navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.bf-card p { color: var(--bf-muted); }
.bf-card a { font-weight: 800; }
.bf-rule { width: 72px; height: 3px; background: var(--bf-burgundy); margin: 20px 0; }

.site-main { min-height: 55vh; }
.entry-header { padding: 72px 0 34px; background: var(--bf-soft); border-bottom: 1px solid var(--bf-line); }
.entry-header h1 { margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); }
.entry-content { padding: 55px 0 90px; }
.entry-content h2, .entry-content h3 { color: var(--bf-navy); font-family: Georgia, "Times New Roman", serif; line-height: 1.2; }
.entry-content blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--bf-burgundy); background: var(--bf-soft); }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--bf-line); padding: 12px; text-align: left; }

.site-footer { background: var(--bf-navy-deep); color: #dce5ee; padding: 58px 0 26px; }
.bf-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2, .site-footer h3 { color: #fff; font-family: Georgia, "Times New Roman", serif; }
.site-footer a { color: #fff; }
.bf-footer-nav ul { list-style: none; margin: 0; padding: 0; }
.bf-footer-nav li { margin: 7px 0; }
.bf-footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; color: #aebccc; }

@media (max-width: 900px) {
  .admin-bar .site-header { top: 46px; }
  .bf-header-inner { min-height: 74px; }
  .bf-nav-toggle { display: block; }
  .primary-navigation {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--bf-line);
    box-shadow: 0 12px 24px rgba(15,39,66,.1);
  }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: block; padding: 10px 20px 18px; }
  .primary-navigation a { padding: 12px 4px; border-bottom: 1px solid #eef1f4; }
  .primary-navigation .sub-menu { display: block; position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 0 16px; }
  .bf-grid { grid-template-columns: 1fr; }
  .bf-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .bf-container, .bf-narrow { width: min(calc(100% - 28px), var(--bf-max)); }
  .site-description { display: none; }
  .site-title { font-size: 1.3rem; }
  .bf-hero { padding: 72px 0 84px; }
}
