@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@400;500;600&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --primary: #4e604f;
  --primary-light: #677967;
  --on-primary: #ffffff;
  --secondary: #6a5d46;
  --surface: #fdfdfc;
  --surface-dim: #f5f5f2;
  --on-surface: #1a1c1c;
  --on-surface-variant: #434842;
  --outline: #747872;
  --outline-variant: #e0e2df;
  --primary-fixed: #e8ede8;
  --shadow-subtle: 0 4px 20px rgba(0,0,0,0.03);
  --shadow-medium: 0 12px 40px rgba(81,99,82,0.08);
  --radius-lg: 2rem;
  --radius-md: 1rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media(max-width:768px){ .container{ padding: 0 20px; } }

.section { padding: 120px 0; }
@media(max-width:768px){ .section { padding: 80px 0; } }

h1,h2,h3,h4 { font-family: 'Noto Serif', serif; font-weight: 500; line-height: 1.2; }

/* ── NAV ── */
#navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  height: 80px; display: flex; align-items: center;
  background: rgba(253,253,252,0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
#navbar.scrolled { height: 70px; box-shadow: var(--shadow-subtle); border-bottom: 1px solid var(--outline-variant); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { 
  font-family: 'Noto Serif', serif; font-size: 22px; font-weight: 600; color: var(--on-surface); text-decoration: none;
  display: flex; align-items: center; gap: 12px;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
@media(max-width:960px){ .nav-links { display: none; } }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--on-surface-variant); transition: color 0.2s; }
.nav-links a:hover, .nav-active { color: var(--primary) !important; }
.nav-cta { 
  background: var(--primary); color: #fff; padding: 12px 24px; border-radius: 999px; 
  font-size: 14px; font-weight: 600; text-decoration: none; transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover { background: var(--primary-light); transform: translateY(-1px); }

/* ── HERO REDESIGN (CLEAN SPLIT) ── */
#hero {
  min-height: 100vh; background: #fff; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 80px;
}
.hero-grid { 
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; 
  align-items: center; width: 100%; position: relative; z-index: 10;
}
@media(max-width:960px){
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
}

.hero-content { max-width: 580px; }
@media(max-width:960px){ .hero-content { margin: 0 auto; } }

.hero-visual-wrap { 
  position: absolute; top: 0; right: 0; bottom: 0; width: 50%; 
  z-index: 1; pointer-events: none;
}
.hero-visual-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0.4) 40%, transparent 100%);
  z-index: 2;
}
@media(max-width:960px){
  .hero-visual-wrap { width: 100%; opacity: 0.2; }
  .hero-visual-wrap::before { background: linear-gradient(to bottom, #fff 0%, transparent 100%); }
}

.hero-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--outline); margin-bottom: 20px; display: block; }
.hero-title { font-size: clamp(32px, 5.5vw, 56px); margin-bottom: 24px; color: var(--primary); line-height: 1.1; font-weight: 500; }
.hero-subtitle { font-size: 17px; color: var(--on-surface-variant); margin-bottom: 44px; max-width: 520px; font-weight: 400; line-height: 1.7; }
@media(max-width:960px){ .hero-subtitle { margin: 0 auto 44px; } }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
@media(max-width:960px){ 
  .hero-actions { justify-content: center; gap: 12px; } 
  .btn { width: 100%; max-width: 320px; }
}

.btn { 
  padding: 14px 32px; border-radius: 999px; font-size: 14px; font-weight: 700; 
  cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-decoration: none; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(78,96,79,0.2); }
.btn-outline { border-color: var(--outline-variant); color: var(--on-surface); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(78,96,79,0.03); }



/* ── BENTO SERVICES ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 24px;
  margin-top: 64px;
}
@media(max-width:960px){
  .bento-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
}
@media(max-width:640px){
  .bento-grid { grid-template-columns: 1fr; }
}
.bento-card {
  padding: 40px; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; justify-content: flex-start;
  min-height: 280px;
  position: relative; overflow: hidden; transition: transform 0.3s ease;
  border: 1px solid var(--outline-variant);
}
.bento-card:hover { transform: scale(1.02); }
.bento-card h3 { font-size: 24px; margin-bottom: 12px; }
.bento-card p { font-size: 14px; color: var(--on-surface-variant); }
.bento-icon { font-size: 28px; margin-bottom: 24px; display: block; opacity: 0.8; }

.card-large { grid-column: span 2; grid-row: span 1; background: var(--surface-dim); }
.card-tall { grid-column: span 1; grid-row: span 1; background: #f9eadd; }
.card-wide { grid-column: span 2; grid-row: span 1; background: #e8ede8; }
.card-normal { background: #f0f0f0; }

@media(max-width:960px){
  .card-large, .card-tall, .card-wide, .card-normal { grid-column: span 1 !important; }
}

.card-icon-float { position: absolute; bottom: -20px; right: -20px; font-size: 120px; opacity: 0.05; pointer-events: none; }

/* ── QUOTE ── */
.quote-section { text-align: center; max-width: 800px; margin: 0 auto; }
.quote-mark { font-size: 80px; font-family: 'Noto Serif', serif; color: var(--primary); opacity: 0.2; line-height: 0; display: block; margin-bottom: 20px; }
.quote-text { font-size: 32px; font-family: 'Noto Serif', serif; font-style: italic; color: var(--on-surface); margin-bottom: 24px; }
.quote-sub { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--outline); }

/* ── BLOG SECTION ── */
.blog-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; gap: 24px; }
@media(max-width:768px){
  .blog-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}
.blog-header-content h2 { font-size: 40px; margin-bottom: 8px; }
.blog-minimal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media(max-width:960px){ .blog-minimal-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:640px){ .blog-minimal-grid { grid-template-columns: 1fr; } }

.blog-minimal-card { text-decoration: none; color: inherit; display: block; }
.blog-minimal-img { width: 100%; height: 280px; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 24px; }
.blog-minimal-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-minimal-card:hover img { transform: scale(1.05); }
.blog-minimal-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 12px; display: block; }
.blog-minimal-title { font-size: 20px; margin-bottom: 12px; line-height: 1.3; }
.blog-minimal-excerpt { font-size: 14px; color: var(--on-surface-variant); line-height: 1.6; }

/* ── FINAL CTA ── */
.final-cta { 
  background: var(--primary); color: #fff; padding: 100px 40px; border-radius: var(--radius-lg); 
  text-align: center; margin-bottom: 120px;
}
.final-cta h2 { font-size: 48px; margin-bottom: 24px; color: #fff; }
.final-cta p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 40px; }
.btn-white { background: #fff; color: var(--primary); }

/* ── FOOTER ── */
.footer-minimal { padding: 80px 0 40px; background: var(--surface-dim); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 64px; }
@media(max-width:768px){ .footer-top { flex-direction: column; gap: 40px; } }
.footer-brand h3 { font-size: 24px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--on-surface-variant); max-width: 300px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: 13px; color: var(--on-surface-variant); font-weight: 500; }
.footer-bottom { border-top: 1px solid var(--outline-variant); padding-top: 32px; text-align: center; font-size: 12px; color: var(--outline); }

/* ── UTILITIES & ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* MOBILE HAMBURGER (restored from previous) */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; z-index: 1001; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--on-surface); border-radius: 2px; transition: 0.3s; }
@media(max-width:960px){
  .nav-hamburger { display: flex; z-index: 10001; }
  .nav-cta { display: none; } /* Hide CTA in header on mobile */
  .nav-logo { font-size: 18px; position: relative; z-index: 10001; }
  .nav-logo img { height: 26px; }
  
  .nav-links.open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: #ffffff !important;
    padding: 120px 40px !important;
    gap: 24px !important;
    z-index: 10000 !important;
    text-align: center;
    list-style: none;
    margin: 0;
  }
  .nav-links.open a { 
    font-size: 20px !important; 
    color: var(--on-surface) !important; 
    font-weight: 600 !important; 
    display: block;
    padding: 10px;
  }
}

/* Scroll top & Floating WA (optimized) */
#scrollTop { position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--outline-variant); cursor: pointer; opacity: 0; transition: 0.3s; z-index: 999; }
#scrollTop.visible { opacity: 1; }
.floating-wa { 
  position: fixed; bottom: 20px; right: 80px; background: #25D366; color: #fff; 
  padding: 12px 20px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 700; 
  box-shadow: var(--shadow-medium); z-index: 999; display: flex; align-items: center; gap: 8px;
}
@media(max-width:480px){
  .floating-wa { 
    right: 20px; bottom: 80px; width: 56px; height: 56px; padding: 0; 
    justify-content: center; font-size: 24px; border-radius: 50%; 
  }
  .floating-wa span { display: none; } /* Hide text on very small screens */
}

/* ── PAGE HERO ── */
.page-hero { 
  padding: 160px 0 64px; 
  background: var(--surface-dim); 
}
.page-hero-title { font-size: clamp(32px, 5vw, 54px); margin-bottom: 16px; }
.page-hero-sub { font-size: 18px; color: var(--on-surface-variant); max-width: 600px; }
.breadcrumb { font-size: 13px; color: var(--outline); margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { text-decoration: none; color: var(--primary); font-weight: 600; }

/* ── BLOG TOOLS ── */
.blog-search-bar input {
  width: 100%; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--outline-variant); background: #fff;
  font-family: inherit; font-size: 14px; outline: none; transition: 0.2s;
}
.blog-search-bar input:focus { border-color: var(--primary); box-shadow: var(--shadow-subtle); }

.blog-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-filter-btn {
  padding: 8px 20px; border-radius: 999px; border: 1px solid var(--outline-variant);
  background: #fff; color: var(--on-surface-variant); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: 0.2s; font-family: inherit;
}
.cat-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.cat-filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 64px; }
.pag-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--outline-variant);
  background: #fff; color: var(--on-surface-variant); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s;
}
.pag-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pag-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pag-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* blog feed adjustments */
#blog-feed-container { margin-top: 40px; }
/* ── BLOG ARTICLE STYLING ── */
.article-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 80px; align-items: start; margin-top: 40px; }
@media(max-width:960px){ .article-wrap { grid-template-columns: 1fr; gap: 48px; } }

.article-body { font-size: 17px; line-height: 1.8; color: var(--on-surface); }
.article-body p { margin-bottom: 24px; }
.article-body h2, .article-body h3 { margin: 40px 0 20px; font-family: 'Noto Serif', serif; color: var(--primary); }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 32px 0; }
.article-body blockquote { border-left: 4px solid var(--primary); padding-left: 24px; font-style: italic; color: var(--on-surface-variant); margin: 32px 0; }

.article-sidebar { position: sticky; top: 100px; }
@media(max-width:960px){ .article-sidebar { position: static; } }

.sidebar-box { background: var(--surface-dim); padding: 32px; border-radius: var(--radius-lg); margin-bottom: 32px; border: 1px solid var(--outline-variant); }
.sidebar-box-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 20px; }

.newsletter-inline { display: flex; flex-direction: column; gap: 12px; }
.newsletter-inline input { 
  padding: 14px 20px; border-radius: 999px; border: 1px solid var(--outline-variant); 
  font-family: inherit; font-size: 14px; outline: none; background: #fff;
}
.newsletter-inline input:focus { border-color: var(--primary); }

.related-item { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; text-decoration: none; }
.related-thumb { width: 70px; height: 70px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: #fff; border: 1px solid var(--outline-variant); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-thumb-icon { font-size: 24px; display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; }
.related-title { font-size: 14px; font-weight: 600; color: var(--on-surface); line-height: 1.4; text-decoration: none; transition: color 0.2s; }
.related-title:hover { color: var(--primary); }

.author-chip { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.author-chip-avatar { width: 44px; height: 44px; border-radius: 50%; background: #f9eadd; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.author-chip-name { font-size: 15px; font-weight: 700; color: var(--on-surface); }
.author-chip-role { font-size: 11px; color: var(--on-surface-variant); text-transform: uppercase; letter-spacing: 0.05em; }

.article-hero-img { width: 100%; height: auto; max-height: 500px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 48px; }

/* ── BLOG POST CTA ── */
.cta-section { background: var(--primary); color: #fff; padding: 100px 20px; border-radius: var(--radius-lg); text-align: center; margin: 80px 0; }
.cta-title { font-size: 40px; margin-bottom: 20px; color: #fff; }
.cta-subtitle { font-size: 16px; color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 40px; line-height: 1.6; }
.btn-light { background: #fff; color: var(--primary); font-weight: 700; }
.btn-light:hover { background: var(--primary-fixed); transform: translateY(-2px); }
