/* =========================================
   Louis Berry, CPA, LLC — Blog stylesheet
   ========================================= */

:root {
  --ink:        #0f1612;
  --paper:      #f6f2ea;
  --paper-2:    #ece4d4;
  --forest:     #0a3d3a;
  --forest-2:   #144b48;
  --gold:       #b8862a;
  --gold-soft:  #d4af37;
  --rule:       #d8cfbb;
  --muted:      #5b6660;
  --serif:      "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans:       "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --maxw:       1180px;
  --readw:      720px;
  --ease:       cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--forest); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--forest);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.eyebrow {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: inline-block;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.container-read {
  max-width: var(--readw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.rule-center {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
}

/* ==========  NAV  ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.01em;
}
.brand span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  font-size: .92rem;
  color: var(--ink);
  font-weight: 500;
}
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--forest);
  color: var(--paper) !important;
  padding: 10px 20px;
  border-radius: 2px;
  font-size: .85rem !important;
  letter-spacing: .04em;
}
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }
@media (max-width: 820px) {
  .nav-links li:not(:last-child):not(:nth-last-child(2)) { display: none; }
}

/* ==========  BLOG HUB HERO  ========== */
.blog-hero {
  padding: clamp(60px, 10vw, 110px) 0 clamp(40px, 6vw, 60px);
  text-align: center;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(184,134,42,0.08), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(10,61,58,0.08), transparent 50%),
    var(--paper);
}
.blog-hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.blog-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 40em;
  margin: 1.4rem auto 0;
  line-height: 1.7;
}

/* ==========  INDUSTRY GRID (hub)  ========== */
.industries-section {
  padding: clamp(50px, 8vw, 90px) 0;
}
.industries-section .section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto clamp(40px, 6vw, 60px);
}
.industries-section .section-head h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  margin-bottom: 0;
}
.industries-section .section-head p {
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.7;
}

.ind-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 1024px) {
  .ind-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ind-cards { grid-template-columns: 1fr; }
}
.ind-card {
  background: #fcfaf4;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: background .25s var(--ease), transform .25s var(--ease);
  position: relative;
}
.ind-card:hover {
  background: var(--paper);
}
.ind-card-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: var(--gold);
  flex-shrink: 0;
}
.ind-card h3 {
  font-size: 1.35rem;
  margin-bottom: .5em;
  color: var(--forest);
  line-height: 1.25;
}
.ind-card p {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.6;
  margin: 0 0 1.2em;
  flex-grow: 1;
}
.ind-card a.cat-link {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.ind-card a.cat-link::after {
  content: "→";
  transition: transform .2s var(--ease);
}
.ind-card a.cat-link:hover { color: var(--gold); }
.ind-card a.cat-link:hover::after { transform: translateX(4px); }

/* ==========  LATEST POSTS LIST  ========== */
.posts-section {
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 10vw, 120px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.posts-section .section-head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 60px);
}
.posts-section .section-head h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  margin-bottom: 0;
}
.posts-section .section-head p {
  color: var(--muted);
  margin-top: 1rem;
}

.post-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.post-card:first-of-type { border-top: 1px solid var(--rule); }
@media (max-width: 720px) {
  .post-card { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
}
.post-date {
  font-size: .82rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  padding-top: 6px;
}
.post-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 600;
  margin: 0 0 .5em;
  line-height: 1.25;
}
.post-card h3 a { color: var(--forest); }
.post-card h3 a:hover { color: var(--gold); }
.post-excerpt {
  color: var(--ink);
  line-height: 1.7;
  margin: 0 0 1em;
  font-size: 1rem;
}
.post-meta {
  font-size: .82rem;
  color: var(--muted);
  margin: 0 0 0.8em;
  letter-spacing: .02em;
}
.post-meta .tag {
  color: var(--gold);
  font-weight: 500;
}
.read-more {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.read-more::after {
  content: "→";
  transition: transform .2s var(--ease);
}
.read-more:hover { color: var(--gold); }
.read-more:hover::after { transform: translateX(4px); }

/* ==========  CTA BLOCK  ========== */
.cta-block {
  background: var(--forest);
  color: var(--paper);
  padding: clamp(50px, 7vw, 80px) 0;
  text-align: center;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}
.cta-block h2 {
  color: var(--paper);
  margin-bottom: .8em;
}
.cta-block p {
  color: rgba(246,242,234,0.85);
  max-width: 38em;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: 2px;
  border: 1px solid var(--gold-soft);
  background: var(--gold-soft);
  color: var(--ink);
  transition: all .25s var(--ease);
  font-family: var(--sans);
  cursor: pointer;
}
.btn:hover {
  background: var(--paper);
  color: var(--forest);
  border-color: var(--paper);
}

/* ==========  CATEGORY PAGE HEADER  ========== */
.cat-header {
  padding: clamp(50px, 8vw, 100px) 0 clamp(30px, 5vw, 50px);
  text-align: center;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(184,134,42,0.08), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(10,61,58,0.08), transparent 50%),
    var(--paper);
}
.cat-header .crumbs {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.cat-header .crumbs a { color: var(--gold); font-weight: 500; }
.cat-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--forest);
  max-width: 18em;
  margin: 0 auto;
}
.cat-header h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.cat-header p {
  max-width: 38em;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ==========  ARTICLE / POST  ========== */
.post-header {
  padding: clamp(50px, 8vw, 90px) 0 clamp(30px, 5vw, 50px);
  text-align: center;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(184,134,42,0.08), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(10,61,58,0.08), transparent 50%),
    var(--paper);
}
.post-header .crumbs {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.post-header .crumbs a { color: var(--gold); font-weight: 500; }
.post-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.18;
  color: var(--forest);
  max-width: 20em;
  margin: 0 auto;
}
.post-header h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.post-header .byline {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.6rem;
}
.post-header .byline span { color: var(--gold); }

.article {
  padding: clamp(20px, 4vw, 40px) 0 clamp(60px, 10vw, 100px);
}
.article p {
  font-size: 1.1rem;
  line-height: 1.78;
  margin: 0 0 1.4em;
  color: var(--ink);
}
.article > .container-read > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.6em;
  font-weight: 500;
  float: left;
  line-height: .9;
  margin: 0.05em 0.12em 0 0;
  color: var(--forest);
}
.article strong {
  color: var(--forest);
  font-weight: 600;
}
.article blockquote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  line-height: 1.35;
  font-style: italic;
  color: var(--forest);
  margin: 2.4em 0;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--gold);
}
.article h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  color: var(--forest);
  margin: 2.4em 0 .6em;
  font-weight: 600;
}

/* ==========  AUTHOR CARD  ========== */
.author-card {
  margin-top: clamp(40px, 6vw, 70px);
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--rule);
  background: #fcfaf4;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 600px) {
  .author-card { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .author-card .author-photo { margin: 0 auto; }
}
.author-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 8px 16px -10px rgba(10,61,58,0.3);
  position: relative;
}
.author-photo::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.4;
  pointer-events: none;
}
.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.author-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--forest);
  margin: 0 0 .15em;
  line-height: 1.2;
}
.author-tag {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1em;
  font-weight: 500;
}
.author-card .bio-text {
  font-size: .98rem;
  line-height: 1.7;
  margin: 0 0 1.2em;
  color: var(--ink);
  font-family: var(--sans);
}
.author-card .btn-dark {
  display: inline-block;
  padding: 11px 22px;
  background: var(--forest);
  color: var(--paper);
  border-radius: 2px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all .25s var(--ease);
  font-family: var(--sans);
}
.author-card .btn-dark:hover {
  background: var(--gold);
  color: var(--ink);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 500;
}
.back-link::before {
  content: "←";
  transition: transform .2s var(--ease);
}
.back-link:hover::before { transform: translateX(-4px); }

/* ==========  FOOTER  ========== */
footer {
  background: var(--ink);
  color: rgba(246,242,234,0.7);
  padding: 60px 0 30px;
  font-size: .9rem;
}
.foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246,242,234,0.12);
}
@media (max-width: 720px) { .foot-top { grid-template-columns: 1fr; } }
.foot-brand {
  font-family: var(--serif);
  color: var(--gold-soft);
  font-size: 1.6rem;
  margin-bottom: .6em;
}
.foot-tagline {
  color: rgba(246,242,234,0.6);
  max-width: 32em;
  line-height: 1.65;
}
footer h4 {
  color: var(--gold-soft);
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.2em;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { padding: 6px 0; }
footer ul a { color: rgba(246,242,234,0.7); font-size: .92rem; }
footer ul a:hover { color: var(--gold-soft); }
.foot-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .82rem;
  color: rgba(246,242,234,0.5);
}
