/* =========================
   BRAND TOKENS
   ========================= */
:root{
  --brown:#A05222;          /* brand brown */
  --beige:#F8F4F1;          /* page background */
  --dark-brown:#411E06;     /* headings / accents */
  --btn-green:#3F7652;      /* primary call-to-action */
  --ink:#1b1b1b;            /* body text */
  --muted:#555;             /* meta text */
  --radius:16px;
  --maxw:1100px;
}

/* =========================
   BASE / RESET
   ========================= */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html { scroll-behavior: smooth; }
body{
  background:var(--beige);
  color:var(--ink);
  font: 16px/1.7 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
img{max-width:100%;height:auto;display:block}

/* =========================
   HEADER
   ========================= */
header.top-bar{
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.08);
  padding:12px 16px;
  position:relative;
}
.top-bar .logo-img{width:150px}
.header-right{position:absolute;top:12px;right:16px}
/* =========================================
   UNIFY HERO BUTTON STYLES
   ========================================= */
.hero-cta .btn-primary,
.hero-cta .btn-secondary {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  font-weight: 600;  /* consistent weight */
  letter-spacing: 0.02em;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  text-transform: none;
  display: inline-block;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Keep color differences only */
.hero-cta .btn-primary {
  background: var(--btn-green);
  color: #fff;
  border: 2px solid var(--btn-green);
}
.hero-cta .btn-primary:hover {
  background: #2e5d40;
  border-color: #2e5d40;
}

.hero-cta .btn-secondary {
  background: var(--brown);
  color: #fff;
  border: 2px solid var(--brown);
}
.hero-cta .btn-secondary:hover {
  background: var(--dark-brown);
  border-color: var(--dark-brown);
}

/* (Optional) tighten button height consistency */
.hero-cta .btn-primary,
.hero-cta .btn-secondary { line-height: 1; }

.btn-primary {
  display:inline-block;
  font-family:"Cinzel", serif;
  padding:.6rem 1rem;
  background:var(--btn-green);
  color:#fff;
  text-decoration:none;
  border-radius:10px;
}

.hero-cta {
  font-family: "Cinzel", "serif";
}

/* Keep hero links from turning default blue underlines */
.hero a { text-decoration: none; }

/* =========================
   HEADER BUTTONS (TOP RIGHT)
   ========================= */
.header-right a {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

/* Green primary button */
.header-right .cta-btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  margin-right: 0.5rem;
  border-radius: 10px;

  background: var(--btn-green);
  color: #fff;
  border: 2px solid var(--btn-green);

  transition: all 0.2s ease;
}

.header-right .cta-btn:hover {
  background: #2e5d40;
  border-color: #2e5d40;
}

/* Outline "Home" button */
.header-right .btn-nav {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 10px;

  border: 2px solid var(--dark-brown);
  color: var(--dark-brown);
  background: #fff;

  transition: all 0.2s ease;
}

.header-right .btn-nav:hover {
  background: var(--dark-brown);
  color: #fff;
}

/* =========================
   SECTION SPACING
   ========================= */
#hero, #about, #services, #insights, #cta{
  padding: 2.5rem 1rem;
}

/* =========================
   HERO (texture + overlay)
   ========================= */
#hero{
  position:relative;
  background:url("../images/texture1.jpg") center/cover no-repeat;
  color:#fff;
  isolation:isolate;             /* ensures overlay layers correctly */
}
#hero::before{
  content:"";
  position:absolute; inset:0;
  /* a subtle cinematic gradient that boosts text contrast */
  background:linear-gradient(
    rgba(0,0,0,.58) 0%,
    rgba(0,0,0,.42) 45%,
    rgba(0,0,0,.28) 100%
  );
  z-index:0;
}
.hero-content{position:relative;z-index:1;max-width:var(--maxw);margin:0 auto;text-align:center}
.site-title{
  font-family:"Cinzel", serif;
  font-size:clamp(2.6rem, 6vw, 4.8rem);
  font-weight:800;
  letter-spacing:.04em;
  line-height:1.2;
  margin:0 0 1rem;
  color:#fffdf9;
  text-shadow:0 4px 16px rgba(0,0,0,.65);
}
.tagline,.hero-subtext,.hero-cred{
  color:#fefefe;
  -webkit-text-stroke:.35px rgba(0,0,0,.55);
  text-shadow:0 2px 6px rgba(0,0,0,.75);
  margin:.25rem 0;
}
.tagline{font-weight:700}
.hero-cred{font-size:.95rem}


/* Blog Title Bar */
.blog-hero {
  background: #411E06;
  color: #F8F4F1;
  padding: 3.5rem 1.25rem;
}
.blog-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.blog-hero h1 {
  font-size: 2.2rem;
  margin: 0 0 .25rem;
}
.blog-hero p { opacity: .9; }

/* Filter Pills */
.blog-filters {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 0 1.25rem 1rem;
  display: flex; gap: .5rem; flex-wrap: wrap;
  border-bottom: 1px solid rgba(65,30,6,.15);
}
.pill {
  appearance: none; border: 1px solid rgba(65,30,6,.25);
  background: #F8F4F1; color: #411E06;
  padding: .4rem .8rem; border-radius: 999px; cursor: pointer;
  font: inherit;
}
.pill:hover { border-color: #A05222; }
.pill.is-active { background: #A05222; color: #F8F4F1; border-color: #A05222; }

/* Grid */
.blog-grid {
  max-width: 1100px;
  margin: 1.25rem auto 2rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* Cards */
.card {
  background: #fff;
  border: 1px solid rgba(65,30,6,.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
  display: flex; flex-direction: column;
}
.card-media { display: block; aspect-ratio: 16/9; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-body { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
.card-meta { font-size: .92rem; color: #5a4b3f; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.badge {
  background: rgba(160,82,34,.12);
  color: #A05222;
  border: 1px solid rgba(160,82,34,.25);
  padding: .15rem .5rem; border-radius: 999px; font-size: .8rem;
}
.badge-green { background: rgba(63,118,82,.12); color: #3F7652; border-color: rgba(63,118,82,.25); }
.badge-brown { background: rgba(160,82,34,.12); color: #A05222; border-color: rgba(160,82,34,.25); }

.card-title { font-size: 1.15rem; margin: .2rem 0; line-height: 1.3; }
.card-title a { color: #411E06; text-decoration: none; }
.card-title a:hover { color: #A05222; }

.card-excerpt {
  color: #333; line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.card-link {
  margin-top: .35rem;
  text-decoration: none; font-weight: 600; color: #3F7652;
}
.card-link:hover { text-decoration: underline; }

/* Pagination */
.pagination {
  max-width: 1100px; margin: 1rem auto 3rem; padding: 0 1.25rem;
  display: flex; gap: .5rem; justify-content: center; align-items: center;
}
.page {
  color: #411E06; text-decoration: none; padding: .5rem .8rem; border-radius: 8px;
  border: 1px solid rgba(65,30,6,.2); background: #fff;
}
.page:hover { border-color: #A05222; }
.page.is-active { background: #A05222; color: #F8F4F1; border-color: #A05222; }
.page[aria-disabled="true"] { opacity: .4; pointer-events: none; }