/*
Theme Name: BNGC Blog
Theme URI: https://thebngc.com/blog
Author: BN Group Corp.
Author URI: https://thebngc.com
Description: A light, responsive WordPress blog theme designed to match the BNGC landing pages with Lexend typography, green gradients, soft glass surfaces, and BNGC branding.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bngc-blog
Tags: blog, custom-logo, custom-menu, featured-images, responsive-layout, light
*/

:root {
  --bngc-primary-50: #f1f7ea;
  --bngc-primary-100: #dfeece;
  --bngc-primary-300: #9cc971;
  --bngc-primary-500: #4d8a24;
  --bngc-primary-600: #2f6b03;
  --bngc-primary-700: #275a03;
  --bngc-primary-900: #163302;
  --bngc-secondary-50: #f6f6f5;
  --bngc-secondary-100: #e8e7e5;
  --bngc-secondary-300: #b0ada6;
  --bngc-secondary-500: #6b675f;
  --bngc-secondary-700: #403d38;
  --bngc-secondary-800: #32312d;
  --bngc-secondary-900: #232220;
  --bngc-white: #ffffff;
  --bngc-shadow: 0 8px 32px -8px rgba(47, 107, 3, 0.18);
  --bngc-shadow-lg: 0 24px 64px -12px rgba(47, 107, 3, 0.22);
  --bngc-radius: 24px;
  --bngc-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bngc-white);
  color: var(--bngc-secondary-800);
  font-family: "Lexend", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--bngc-primary-600); }

.bngc-container { width: min(100% - 32px, 1180px); margin-inline: auto; }
.bngc-skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 999;
  background: var(--bngc-primary-600);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
}
.bngc-skip-link:focus { left: 12px; }

.bngc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px -18px rgba(35, 34, 32, 0.2);
}
.bngc-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.bngc-logo img { width: 150px; height: auto; }
.bngc-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.bngc-menu a { color: var(--bngc-secondary-700); font-size: 14px; font-weight: 500; }
.bngc-menu a:hover { color: var(--bngc-primary-600); }
.bngc-menu-toggle { display: none; border: 0; background: var(--bngc-primary-50); color: var(--bngc-secondary-800); border-radius: 999px; padding: 10px 14px; font: inherit; }

.bngc-button,
.wp-block-button__link,
.comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--bngc-primary-600), var(--bngc-primary-500));
  color: white;
  font-weight: 700;
  padding: 12px 20px;
  box-shadow: var(--bngc-shadow);
  cursor: pointer;
}
.bngc-button:hover,
.wp-block-button__link:hover,
.comment-form .submit:hover { color: white; transform: translateY(-1px); }

.bngc-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: grid;
  align-items: center;
  background: var(--bngc-secondary-900);
  color: white;
}
.bngc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 34, 32, 0.82), rgba(35, 34, 32, 0.88)), var(--bngc-hero-image, url("assets/images/reception-area.webp")) center/cover;
}
.bngc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 55% at 50% 0%, rgba(47, 107, 3, 0.33), transparent 72%);
}
.bngc-hero-inner { position: relative; z-index: 1; padding: 96px 0 76px; text-align: center; }
.bngc-eyebrow { color: var(--bngc-primary-300); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.bngc-hero h1 { margin: 18px auto 0; max-width: 850px; font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.04; letter-spacing: 0; }
.bngc-hero p { margin: 22px auto 0; max-width: 680px; color: rgba(255, 255, 255, 0.76); font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.75; }
.bngc-gradient-text {
  background: linear-gradient(100deg, var(--bngc-primary-300), #ffffff 46%, var(--bngc-primary-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bngc-main { padding: 72px 0; }
.bngc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.bngc-post-list { display: grid; gap: 28px; }
.bngc-card {
  overflow: hidden;
  border: 1px solid rgba(232, 231, 229, 0.9);
  border-radius: var(--bngc-radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--bngc-shadow);
  transition: transform 0.45s var(--bngc-ease), box-shadow 0.45s var(--bngc-ease);
}
.bngc-card:hover { transform: translateY(-5px); box-shadow: var(--bngc-shadow-lg); }
.bngc-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bngc-primary-50); }
.bngc-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--bngc-ease); }
.bngc-card:hover .bngc-card-media img { transform: scale(1.05); }
.bngc-card-body { padding: clamp(22px, 4vw, 34px); }
.bngc-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 12px; color: var(--bngc-secondary-500); font-size: 13px; }
.bngc-card h2,
.bngc-entry-title { margin: 0; color: var(--bngc-secondary-900); font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.18; }
.bngc-excerpt, .bngc-entry-content { color: var(--bngc-secondary-600); line-height: 1.8; }
.bngc-excerpt { margin: 16px 0 0; }
.bngc-read-more { display: inline-flex; margin-top: 20px; color: var(--bngc-primary-700); font-weight: 700; }

.bngc-entry { max-width: 840px; margin-inline: auto; }
.bngc-entry-header { text-align: center; margin-bottom: 34px; }
.bngc-featured { overflow: hidden; margin: 28px 0; border-radius: var(--bngc-radius); box-shadow: var(--bngc-shadow-lg); }
.bngc-entry-content :where(p, ul, ol, blockquote) { font-size: 1rem; }
.bngc-entry-content a { color: var(--bngc-primary-700); font-weight: 600; }
.bngc-entry-content blockquote { margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--bngc-primary-600); background: var(--bngc-primary-50); border-radius: 0 18px 18px 0; }

.bngc-sidebar { display: grid; gap: 22px; }
.bngc-widget {
  border: 1px solid var(--bngc-secondary-100);
  border-radius: 20px;
  background: var(--bngc-secondary-50);
  padding: 24px;
}
.bngc-widget h2,
.bngc-widget .wp-block-heading { margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--bngc-primary-700); }
.bngc-widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.search-form { display: flex; gap: 8px; }
.search-field, input[type="text"], input[type="email"], textarea {
  width: 100%;
  border: 1px solid var(--bngc-secondary-100);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--bngc-secondary-800);
  background: white;
}
.search-submit { border: 0; border-radius: 14px; background: var(--bngc-primary-600); color: white; padding: 0 14px; font-weight: 700; }

.bngc-pagination { margin-top: 36px; display: flex; justify-content: center; gap: 10px; }
.bngc-pagination .page-numbers { padding: 9px 13px; border-radius: 999px; background: var(--bngc-secondary-50); color: var(--bngc-secondary-700); }
.bngc-pagination .current { background: var(--bngc-primary-600); color: white; }

.bngc-footer { background: var(--bngc-secondary-900); color: white; padding: 56px 0 24px; }
.bngc-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.bngc-footer img { width: 160px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.bngc-footer p, .bngc-footer a { color: rgba(255, 255, 255, 0.72); font-size: 14px; line-height: 1.75; }
.bngc-footer h2 { margin: 0 0 14px; color: var(--bngc-primary-300); font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; }
.bngc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bngc-footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; color: rgba(255,255,255,0.5); font-size: 13px; }

.alignwide { max-width: 1080px; margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .bngc-menu-toggle { display: inline-flex; }
  .bngc-menu { position: absolute; left: 16px; right: 16px; top: 78px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid rgba(255,255,255,0.7); border-radius: 22px; background: rgba(255,255,255,0.95); box-shadow: var(--bngc-shadow-lg); }
  .bngc-menu.is-open { display: flex; }
  .bngc-menu a { display: block; padding: 13px 14px; border-radius: 14px; font-size: 16px; }
  .bngc-menu a:hover { background: var(--bngc-primary-50); }
  .bngc-grid { grid-template-columns: 1fr; }
  .bngc-sidebar { order: 2; }
  .bngc-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .bngc-container { width: min(100% - 24px, 1180px); }
  .bngc-logo img { width: 128px; }
  .bngc-hero-inner { padding: 74px 0 58px; }
  .bngc-main { padding: 48px 0; }
  .bngc-card-body { padding: 22px; }
  .search-form { flex-direction: column; }
  .search-submit { min-height: 44px; }
}