@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&display=swap');

:root {
  --brand-black: #111111;
  --brand-black-soft: #1a1a1a;
  --brand-gold: #c9a34a;
  --brand-gold-strong: #a57a1f;
  --surface-ivory: #f6f2e9;
  --surface-paper: #fffdf7;
  --text-primary: #1f1a13;
  --text-secondary: #4b3f2a;
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, sans-serif;
}

body {
  line-height: 1.6;
  background-color: var(--surface-ivory);
  color: var(--text-primary);
}

body.content-page {
  background:
    radial-gradient(circle at top left, rgba(201, 163, 74, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(17, 17, 17, 0.1), transparent 26%),
    linear-gradient(180deg, #f6f1e6 0%, #f8f4ea 34%, #f1ece0 100%);
  color: var(--text-primary);
  position: relative;
}

body.content-page::before,
body.content-page::after {
  content: "";
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(18px);
  opacity: 0.5;
}

body.content-page::before {
  top: 110px;
  left: -140px;
  background: rgba(199, 153, 92, 0.18);
}

body.content-page::after {
  right: -120px;
  bottom: 80px;
  background: rgba(38, 101, 145, 0.12);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section h2 {
  text-align: center;
  font-family: 'Merriweather', Georgia, serif;
  letter-spacing: 0.2px;
  margin-bottom: 20px;
}

.page-hero {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 20px 18px;
  text-align: center;
}

.page-hero h1,
.page-hero h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--brand-black);
  line-height: 1.12;
  margin-bottom: 16px;
}

/* Keep top-level page titles centered across templates. */
body.content-page .page-hero h1,
body.content-page .page-hero h2,
body.content-page .content-shell > h1,
body.content-page .policy-content > h1,
body.content-page .article-page > h1,
body.content-page .blog-index-shell > h2 {
  text-align: center;
}

.page-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.08rem;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 17, 17, 0.1);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
  color: var(--brand-gold-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading-link {
  text-align: center;
  margin-top: 14px;
  margin-bottom: 24px;
}

.section-title-button {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  padding: 14px 30px;
}

a {
  text-decoration: none;
}

/* ===== Navbar ===== */
.navbar {
  background-color: var(--brand-black);
  border-bottom: 1px solid rgba(201, 163, 74, 0.44);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(0,0,0,0.24);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.content-page .navbar {
  background: rgba(17, 17, 17, 0.9);
  border-bottom: 1px solid rgba(201, 163, 74, 0.44);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

body.home-page .hero {
  max-width: 1180px;
  margin: 22px auto 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(19, 34, 45, 0.22);
}

body.home-page .hero-box {
  max-width: 760px;
  padding: 34px 30px;
  border-radius: 28px;
  background: rgba(16, 16, 16, 0.48);
  border: 1px solid rgba(201, 163, 74, 0.3);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

body.home-page .section {
  z-index: 1;
}

.home-intro-section {
  padding-top: 28px;
  padding-bottom: 8px;
}

.home-intro-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 38px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.97) 0%, rgba(245, 236, 214, 0.97) 100%);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 22px 60px rgba(28, 44, 58, 0.11);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-intro-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-gold) 0%, var(--brand-black-soft) 100%);
}

.home-intro-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--brand-black);
  margin-bottom: 14px;
}

.home-intro-card p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.04rem;
}

.navbar .logo {
  height: 50px;
}

.navbar .logo {
  cursor: zoom-in;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.navbar nav {
  display: flex;
  gap: 20px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(201, 163, 74, 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-lines span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gold);
}

.nav-links a {
  color: #f3ead4;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar nav a {
  color: #f3ead4;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-gold);
}

.navbar nav a:hover,
.navbar nav a.active {
  color: var(--brand-gold);
}

/* ===== Hero Section ===== */
.hero {
  background:
    linear-gradient(rgba(12, 12, 12, 0.42), rgba(12, 12, 12, 0.38)),
    url('../images/multi-colored-layered-wooden-mandala.jpg') no-repeat center center/cover;
  background-color: #111111;
  padding: 100px 20px 80px;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(17, 17, 17, 0.18);
}

.hero-brand-text {
  display: inline-block;
  margin: 0 auto 14px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(201, 163, 74, 0.42);
  background: rgba(17, 17, 17, 0.34);
  color: #e4c67d;
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.35rem, 3.4vw, 1.95rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.36);
}

.hero-box {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.3s;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: #f1e6cf;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.6s;
}

.hero .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.9s;
}

/* ===== Form Section ===== */
.form-section {
  padding: 50px 20px;
}

body.content-page .section,
body.content-page .form-section {
  position: relative;
  z-index: 1;
}

.content-shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 34px 20px 72px;
}

.article-page {
  max-width: 980px;
}

.form-card {
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

body.content-page .form-card,
body.content-page .policy-content,
body.content-page .card {
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 22px 60px rgba(28, 44, 58, 0.11);
}

body.content-page .form-card,
body.content-page .policy-content {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.96) 0%, rgba(247, 240, 226, 0.96) 100%);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

body.content-page .form-card::before,
body.content-page .policy-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-gold) 0%, var(--brand-black-soft) 100%);
}

.form-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-card .form-group {
  margin-bottom: 20px;
}

.form-card label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-card .required {
  color: #e74c3c;
  margin-left: 4px;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 5px rgba(201, 163, 74, 0.34);
  outline: none;
}

.form-card textarea {
  resize: vertical;
}

.helper-text {
  margin-top: 12px;
  color: #666;
  font-size: 0.9rem;
}

.form-intro {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
  color: var(--text-secondary);
}

.form-intro p {
  margin-bottom: 0;
}

body.content-page .form-section > h2 {
  text-align: center;
  margin-bottom: 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--brand-gold);
  color: var(--brand-black);
}

.btn-primary:hover {
  background-color: var(--brand-gold-strong);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(165, 122, 31, 0.35);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--brand-black);
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid rgba(201, 163, 74, 0.42);
  color: #d8c8a0;
  font-size: 0.95rem;
}

body.content-page .footer {
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(10px);
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #f0e4c2;
}

.footer-links a:hover {
  color: var(--brand-gold);
}

.footer-meta {
  margin-top: 6px;
  color: #bea875;
  font-size: 0.86rem;
}

.footer-social {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(201, 163, 74, 0.14);
  color: #f2e6c4;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: rgba(201, 163, 74, 0.3);
  color: #fff7e2;
  transform: translateY(-1px);
}

.footer-social a::before {
  content: "";
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.24);
  flex: 0 0 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

.footer-social a[href*="facebook"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318354b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 8h3V4h-3c-2.8 0-5 2.2-5 5v3H6v4h3v4h4v-4h3l1-4h-4V9c0-.6.4-1 1-1Z'/%3E%3C/svg%3E");
}

.footer-social a[href*="instagram"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318354b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='%2318354b' stroke='none'/%3E%3C/svg%3E");
}

.footer-social a[href*="pinterest"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318354b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21c.6-2.7 1.2-5.3 1.8-8'/%3E%3Cpath d='M12 3a8 8 0 0 0-3 15'/%3E%3Cpath d='M12 3a8 8 0 0 1 2.3 15.7c-.8.2-1.3-.4-1.1-1.1l1-4.1a3 3 0 1 0-4.1-2.8'/%3E%3C/svg%3E");
}

.footer-social a[href*="tiktok"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318354b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4c1 2 2.6 3.5 5 4v3c-1.8 0-3.4-.5-5-1.5V15a5 5 0 1 1-5-5'/%3E%3C/svg%3E");
}

.footer-social a[href*="twitter"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318354b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 5 14 14'/%3E%3Cpath d='M19 5 5 19'/%3E%3C/svg%3E");
}

.footer-social a[href*="youtube"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318354b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12s0-3-1-4.5c-.5-1-1.5-1.5-2.5-1.7C16.7 5.5 12 5.5 12 5.5s-4.7 0-6.5.3c-1 .2-2 .7-2.5 1.7C2 9 2 12 2 12s0 3 1 4.5c.5 1 1.5 1.5 2.5 1.7 1.8.3 6.5.3 6.5.3s4.7 0 6.5-.3c1-.2 2-.7 2.5-1.7 1-1.5 1-4.5 1-4.5Z'/%3E%3Cpath d='m10 9 5 3-5 3V9Z' fill='%2318354b' stroke='none'/%3E%3C/svg%3E");
}

.policy-content {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

body.content-page .policy-content {
  max-width: 960px;
  padding: 42px 44px;
}

body.content-page .policy-content h1,
body.content-page .article-page > h1,
body.content-page .form-section h2,
body.content-page .blog-index-shell > h2 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--brand-black);
  line-height: 1.14;
}

body.content-page .policy-content h1,
body.content-page .article-page > h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin-bottom: 14px;
  text-align: center;
}

body.content-page .policy-content h2,
body.content-page .policy-content h3 {
  color: #2c2419;
}

body.content-page .policy-content h2 {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  font-size: 1.32rem;
}

body.content-page .policy-content h3 {
  margin-top: 18px;
  font-size: 1.05rem;
}

body.content-page .policy-content p,
body.content-page .policy-content li,
body.content-page .article-page > p {
  color: #4f4330;
  line-height: 1.8;
}

body.content-page .policy-content > p:first-of-type,
body.content-page .article-page > .policy-content > p:first-of-type {
  font-size: 1.08rem;
  color: #3f3424;
}

body.content-page .policy-content ul {
  padding-left: 24px;
}

body.content-page .policy-content li::marker {
  color: var(--brand-gold-strong);
}

body.content-page .policy-content a,
body.content-page .card-content a,
body.content-page .article-page a {
  color: var(--brand-gold-strong);
  font-weight: 600;
}

body.content-page .policy-content a:hover,
body.content-page .card-content a:hover,
body.content-page .article-page a:hover {
  color: #8b6517;
}

body.content-page .card-content a.btn,
body.content-page .card-content a.btn:visited,
body.content-page .article-page a.btn,
body.content-page .article-page a.btn:visited,
body.content-page .policy-content a.btn,
body.content-page .policy-content a.btn:visited,
body.content-page a.btn.btn-primary,
body.content-page a.btn.btn-primary:visited {
  color: #fff;
}

body.content-page .card-content a.btn:hover,
body.content-page .article-page a.btn:hover,
body.content-page .policy-content a.btn:hover,
body.content-page a.btn.btn-primary:hover {
  color: #fff;
}

.article-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 22px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(201, 163, 74, 0.18);
  color: #5e4515;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-cover {
  width: 100%;
  height: auto;
  margin: 0 0 24px;
  border-radius: 24px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  box-shadow: 0 22px 48px rgba(24, 53, 75, 0.14);
}

.policy-content h1,
.policy-content h2,
.policy-content h3 {
  margin-bottom: 12px;
}

.policy-content p,
.policy-content li {
  margin-bottom: 12px;
}

.policy-content ul {
  padding-left: 20px;
}

.capability-page h2 {
  scroll-margin-top: 96px;
}

.capability-table-wrap {
  overflow-x: auto;
  margin: 14px 0 16px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.capability-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.capability-table th,
.capability-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  color: #453a29;
  font-size: 0.95rem;
}

.capability-table thead th {
  background: rgba(201, 163, 74, 0.2);
  color: var(--brand-black);
  font-weight: 700;
}

.capability-inline-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 16px;
  padding-left: 20px;
}

.capability-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(201, 163, 74, 0.12);
  border: 1px solid rgba(17, 17, 17, 0.14);
}

/* ===== Blog & Project Grid ===== */
.blog-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.blog-index-shell {
  max-width: 1200px;
}

body.content-page .blog-index-shell > h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 16px;
  text-align: center;
}

.blog-index-intro {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
  color: var(--text-secondary);
}

.blog-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 38px;
}

.blog-spotlight-copy,
.blog-spotlight-card {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.97) 0%, rgba(247, 239, 223, 0.98) 100%);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 26px;
  box-shadow: 0 22px 60px rgba(28, 44, 58, 0.11);
}

.blog-spotlight-copy {
  padding: 30px;
}

.blog-spotlight-copy h2 {
  text-align: left;
  color: var(--brand-black);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  margin-bottom: 14px;
}

.blog-spotlight-copy p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.blog-spotlight-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  overflow: hidden;
}

.blog-spotlight-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-spotlight-meta {
  padding: 18px 24px 0;
  color: #7f5c1d;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-spotlight-card h3 {
  padding: 10px 24px 24px;
  color: var(--brand-black);
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.26rem;
  line-height: 1.35;
}

.blog-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 18px;
}

.blog-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(24, 53, 75, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #35536b;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.22s ease;
}

.blog-filter::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blog-accent, #35536b);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blog-accent, #35536b) 14%, transparent);
}

.blog-filter[data-topic="all"] {
  --blog-accent: #6e5a2d;
  --blog-accent-strong: #3a2f1a;
}

.blog-filter[data-topic="gifts"] {
  --blog-accent: #c9a34a;
  --blog-accent-strong: #8b6517;
}

.blog-filter[data-topic="craft"] {
  --blog-accent: #b98d3a;
  --blog-accent-strong: #725113;
}

.blog-filter[data-topic="workshop"] {
  --blog-accent: #4f422d;
  --blog-accent-strong: #2a2318;
}

.blog-filter[data-topic="business"] {
  --blog-accent: #9d7c35;
  --blog-accent-strong: #5f4718;
}

.blog-filter:hover,
.blog-filter.active {
  background: linear-gradient(135deg, var(--blog-accent) 0%, var(--blog-accent-strong) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--blog-accent-strong) 28%, transparent);
}

.blog-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 1.8rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(24, 53, 75, 0.08);
  color: currentColor;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.blog-filter.active .blog-filter-count,
.blog-filter:hover .blog-filter-count {
  background: rgba(255, 255, 255, 0.18);
}

.blog-filter-status {
  margin: 0 auto 28px;
  text-align: center;
  color: #526171;
  font-size: 0.98rem;
}

.blog-empty-state {
  margin: -8px auto 10px;
  text-align: center;
  color: #7a5a35;
  font-size: 1rem;
  font-weight: 600;
}

.blog-card-tags,
.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.blog-topic-tag,
.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-topic-gifts,
.project-tag-gifts {
  background: rgba(201, 163, 74, 0.16);
  color: #7a5917;
}

.blog-topic-craft,
.project-tag-signage {
  background: rgba(185, 141, 58, 0.16);
  color: #684814;
}

.blog-topic-workshop,
.project-tag-home {
  background: rgba(79, 66, 45, 0.16);
  color: #2d2417;
}

.blog-topic-business,
.project-tag-decor {
  background: rgba(157, 124, 53, 0.16);
  color: #533f16;
}

.card,
.project-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.24s ease;
}

body.content-page .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 244, 236, 0.98) 100%);
  border-radius: 24px;
  position: relative;
}

body.content-page .project-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 244, 236, 0.98) 100%);
  border-radius: 24px;
  border: 1px solid rgba(24, 53, 75, 0.08);
  box-shadow: 0 22px 60px rgba(28, 44, 58, 0.11);
  position: relative;
  transform-origin: center top;
}

body.content-page .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(183, 133, 76, 0.95), rgba(47, 107, 150, 0.95));
}

body.content-page .project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(183, 133, 76, 0.95), rgba(47, 107, 150, 0.95));
}

/* ===== Hover Effects ===== */
.card:hover,
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* ===== Uniform Project Images ===== */
.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

body.content-page .card img {
  height: 230px;
}

.project-card img {
  width: 100%;
  height: 250px;       /* uniform height */
  object-fit: cover;   /* crop instead of stretch */
  display: block;
  transition: transform 0.3s, filter 0.3s;
}

.project-image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.project-image-pair img {
  border-right: 1px solid rgba(24, 53, 75, 0.08);
}

.project-image-pair img:last-child {
  border-right: 0;
}

.project-card img:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* ===== Card Content ===== */
.card-content,
.project-content {
  padding: 20px;
}

body.content-page .card-content {
  padding: 24px;
}

body.content-page .project-content {
  padding: 24px;
}

.project-gallery-intro {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.project-gallery-intro p {
  color: #526171;
}

.project-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 30px;
}

.project-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(24, 53, 75, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #35536b;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.22s ease;
}

.project-filter::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--filter-accent, #35536b);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--filter-accent, #35536b) 14%, transparent);
}

.project-filter[data-filter="all"] {
  --filter-accent: #6e5a2d;
  --filter-accent-strong: #3a2f1a;
}

.project-filter[data-filter="signage"] {
  --filter-accent: #b98d3a;
  --filter-accent-strong: #725113;
}

.project-filter[data-filter="home"] {
  --filter-accent: #4f422d;
  --filter-accent-strong: #2a2318;
}

.project-filter[data-filter="decor"] {
  --filter-accent: #967536;
  --filter-accent-strong: #5d4616;
}

.project-filter[data-filter="gifts"] {
  --filter-accent: #c9a34a;
  --filter-accent-strong: #8b6517;
}

.project-filter:hover,
.project-filter.active {
  background: linear-gradient(135deg, var(--filter-accent) 0%, var(--filter-accent-strong) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--filter-accent-strong) 28%, transparent);
}

.project-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 1.8rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(24, 53, 75, 0.08);
  color: currentColor;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.project-filter.active .project-filter-count,
.project-filter:hover .project-filter-count {
  background: rgba(255, 255, 255, 0.18);
}

.project-filter-status {
  margin: -8px auto 28px;
  text-align: center;
  color: #526171;
  font-size: 0.98rem;
}

.project-empty-state {
  margin: -8px auto 10px;
  text-align: center;
  color: #7a5a35;
  font-size: 1rem;
  font-weight: 600;
}

.project-card.is-filtering-out {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  pointer-events: none;
}

.project-card.is-filtering-in {
  animation: projectCardIn 0.34s ease both;
}

.project-card[hidden] {
  display: none;
}

.resource-card {
  display: flex;
}

.resource-card .card-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}

.resource-card .card-content p {
  margin-bottom: 0;
}

.resource-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.social-section {
  padding-top: 12px;
}

.social-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 18px;
  margin-top: 26px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.social-grid::-webkit-scrollbar {
  height: 10px;
}

.social-grid::-webkit-scrollbar-thumb {
  background: rgba(24, 53, 75, 0.28);
  border-radius: 999px;
}

.social-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  box-shadow: 0 18px 42px rgba(17, 31, 44, 0.16);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--card-stagger, 0ms);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.social-card.animate-on-scroll {
  transform: translateY(28px) scale(0.985);
}

.social-card.animate-on-scroll.visible {
  transform: translateY(0) scale(1);
}

.social-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto 72%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(2px);
}

.social-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(17, 31, 44, 0.22);
}

.social-platform {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.social-platform::before {
  content: "";
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.16);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  flex: 0 0 38px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.social-facebook .social-platform::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 8h3V4h-3c-2.8 0-5 2.2-5 5v3H6v4h3v4h4v-4h3l1-4h-4V9c0-.6.4-1 1-1Z'/%3E%3C/svg%3E");
}

.social-instagram .social-platform::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='%23ffffff' stroke='none'/%3E%3C/svg%3E");
}

.social-pinterest .social-platform::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21c.6-2.7 1.2-5.3 1.8-8'/%3E%3Cpath d='M12 3a8 8 0 0 0-3 15'/%3E%3Cpath d='M12 3a8 8 0 0 1 2.3 15.7c-.8.2-1.3-.4-1.1-1.1l1-4.1a3 3 0 1 0-4.1-2.8'/%3E%3C/svg%3E");
}

.social-tiktok .social-platform::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4c1 2 2.6 3.5 5 4v3c-1.8 0-3.4-.5-5-1.5V15a5 5 0 1 1-5-5'/%3E%3C/svg%3E");
}

.social-x .social-platform::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 5 14 14'/%3E%3Cpath d='M19 5 5 19'/%3E%3C/svg%3E");
}

.social-youtube .social-platform::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12s0-3-1-4.5c-.5-1-1.5-1.5-2.5-1.7C16.7 5.5 12 5.5 12 5.5s-4.7 0-6.5.3c-1 .2-2 .7-2.5 1.7C2 9 2 12 2 12s0 3 1 4.5c.5 1 1.5 1.5 2.5 1.7 1.8.3 6.5.3 6.5.3s4.7 0 6.5-.3c1-.2 2-.7 2.5-1.7 1-1.5 1-4.5 1-4.5Z'/%3E%3Cpath d='m10 9 5 3-5 3V9Z' fill='%23ffffff' stroke='none'/%3E%3C/svg%3E");
}

.social-handle {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
}

.social-copy {
  margin-top: auto;
  font-size: 0.96rem;
  line-height: 1.55;
  opacity: 0.95;
}

.social-facebook {
  background: linear-gradient(145deg, #1e3c72 0%, #2a5298 100%);
}

.social-instagram {
  background: linear-gradient(145deg, #5b2be0 0%, #c13584 50%, #f77737 100%);
}

.social-pinterest {
  background: linear-gradient(145deg, #a81424 0%, #d93045 100%);
}

.social-tiktok {
  background: linear-gradient(145deg, #111111 0%, #1d1d1d 55%, #00c2b8 100%);
}

.social-x {
  background: linear-gradient(145deg, #101820 0%, #2a3c52 100%);
}

.social-youtube {
  background: linear-gradient(145deg, #991313 0%, #e52d27 100%);
}

.card-content h3,
.project-content h3 {
  font-size: 1.2rem;
  color: var(--brand-gold-strong);
  margin-bottom: 10px;
}

body.content-page .project-content h3 {
  color: var(--brand-black);
}

.card-content p,
.project-content p {
  font-size: 0.95rem;
  color: #4c3f2c;
  line-height: 1.4;
}

body.content-page .project-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-content .date {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #999;
}

body.content-page .card-content span,
body.content-page .card-content .date {
  display: inline-block;
  margin-top: 12px;
  color: #6f5119;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ===== Image Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: min(1100px, 95vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* ===== Corner Badges ===== */
.corner-badges {
  position: fixed;
  bottom: 18px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 8px;
}

.corner-badges-left {
  left: 18px;
}

.corner-badges-right {
  right: 18px;
}

.corner-badge-image,
.veteran-badge {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.corner-badge-image {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: zoom-in;
}

.veteran-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 15, 20, 0.9);
  color: #f7f1d1;
  border: 1px solid rgba(200, 164, 90, 0.45);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes projectCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.15rem; }
}

@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    font-size: 16px;
  }

  .navbar {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .navbar.nav-enhanced .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .navbar.nav-enhanced nav.nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 6px 0 2px;
    border-top: 1px solid rgba(24, 53, 75, 0.12);
  }

  .navbar.nav-enhanced.menu-open nav.nav-links {
    display: flex;
  }

  .navbar nav a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    line-height: 1.35;
  }

  .hero { padding: 80px 20px 60px; }
  .hero h1 { font-size: 2rem; }
  .hero p {
    font-size: 1.06rem;
    line-height: 1.62;
  }
  .form-card { padding: 30px 20px; }
  .project-card img { height: 200px; }
  body.home-page .hero {
    margin: 14px 12px 0;
    border-radius: 26px;
  }

  body.home-page .hero-box {
    padding: 24px 20px;
  }

  .hero-brand-text {
    margin-bottom: 12px;
    padding: 9px 14px;
    font-size: clamp(1.05rem, 5.1vw, 1.35rem);
    letter-spacing: 0.1em;
  }

  .home-intro-card {
    padding: 28px 22px;
  }

  .card-content,
  .project-content {
    padding: 22px;
  }

  .card-content p,
  .project-content p,
  .policy-content p,
  .policy-content li {
    font-size: 1rem;
    line-height: 1.65;
  }

  .btn,
  .btn-primary {
    min-height: 46px;
    padding: 13px 22px;
    font-size: 1rem;
  }

  .page-hero {
    padding: 58px 20px 8px;
  }

  .content-shell {
    padding: 26px 16px 52px;
  }

  body.content-page .policy-content {
    padding: 34px 24px;
  }

  .capability-table {
    min-width: 540px;
  }

  .blog-spotlight {
    grid-template-columns: 1fr;
  }

  .corner-badges {
    bottom: 12px;
  }

  .corner-badges-left {
    left: 12px;
  }

  .corner-badges-right {
    right: 12px;
  }

  .corner-badge-image {
    width: 54px;
    height: 54px;
  }

  .veteran-badge {
    padding: 7px 10px;
    font-size: 0.76rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 12px 14px;
  }

  .hero h1 { font-size: 1.8rem; }
  .hero p {
    font-size: 1.03rem;
    line-height: 1.6;
  }
  .project-card img { height: 150px; }

  body.content-page .card img {
    height: 210px;
  }

  .social-grid {
    grid-auto-columns: minmax(180px, 78vw);
  }

  .blog-spotlight-copy,
  .blog-spotlight-card h3 {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-social a {
    font-size: 0.88rem;
    padding: 8px 12px;
  }
}
