/* ============================================================
   INBOXQUARRY — Global Styles (static HTML build)
   Color Theme: Cream + Forest Green + Amber + Charcoal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --cream:       #FEFCF8;
  --cream-100:   #FFF8EC;
  --cream-200:   #F5EDD8;
  --forest-900:  #0F2D25;
  --forest-800:  #163D2E;
  --forest-700:  #1B4D38;
  --forest-600:  #226043;
  --amber-600:   #C4780A;
  --amber-500:   #E8960E;
  --amber-400:   #F5AE30;
  --amber-100:   #FEF3D7;
  --charcoal:    #1C1C2E;
  --white:       #ffffff;
  --gray-50:     #F9F7F3;
  --gray-100:    #F0EDE5;
  --gray-200:    #E2DDD4;
  --gray-400:    #9E9A8E;
  --gray-600:    #5F6168;
  --gray-800:    #2D2D3A;
  --green-500:   #22c55e;
  --red-400:     #f87171;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  --shadow-sm:   0 1px 3px rgba(15,45,37,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(15,45,37,.12);
  --shadow-lg:   0 12px 48px rgba(15,45,37,.18);

  --transition:  200ms ease;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --navbar-height: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--charcoal); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--forest-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--forest-600); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; color: var(--charcoal); }
ul, ol { list-style: none; }

main { min-height: calc(100vh - var(--navbar-height)); }

/* Layout */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }

.section--dark { background: var(--forest-900); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,.8); }

.section--forest { background: var(--forest-800); color: var(--white); }
.section--forest h1, .section--forest h2, .section--forest h3 { color: var(--white); }
.section--forest p { color: rgba(255,255,255,.75); }

.section--cream { background: var(--cream-100); }
.section--warm  { background: var(--gray-100); }

.section__header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section__header h2 { font-size: 2rem; margin-bottom: .75rem; }
.section__header p { color: var(--gray-600); font-size: 1.05rem; }
.section__header--white h2 { color: var(--white); }
.section__header--white p { color: rgba(255,255,255,.75); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.75rem; border-radius: var(--radius-pill); font-size: .95rem; font-weight: 600; cursor: pointer; transition: background var(--transition), transform var(--transition), box-shadow var(--transition); border: 2px solid transparent; text-decoration: none; line-height: 1; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--amber-500); color: var(--forest-900); border-color: var(--amber-500); }
.btn-primary:hover { background: var(--amber-400); border-color: var(--amber-400); color: var(--forest-900); box-shadow: 0 4px 18px rgba(232,150,14,.35); }

.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-secondary:hover { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); }

.btn-outline { background: transparent; color: var(--forest-700); border-color: var(--forest-700); }
.btn-outline:hover { background: var(--forest-700); color: var(--white); }

.btn-outline-amber { background: transparent; color: var(--amber-600); border-color: var(--amber-500); }
.btn-outline-amber:hover { background: var(--amber-500); color: var(--forest-900); }

.btn-lg { padding: .9rem 2.25rem; font-size: 1.05rem; }

/* Cards */
.card { background: var(--white); border-radius: var(--radius-md); padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: box-shadow var(--transition), transform var(--transition); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 3.5rem 0; } }

/* Badge */
.badge { display: inline-block; padding: .3rem .85rem; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.badge-amber  { background: rgba(232,150,14,.15); color: var(--amber-600); }
.badge-forest { background: rgba(27,77,56,.12);   color: var(--forest-700); }
.badge-white  { background: rgba(255,255,255,.15); color: var(--white); }
.badge-green  { background: rgba(34,197,94,.12);   color: #16a34a; }
.badge-popular { background: var(--amber-500); color: var(--forest-900); padding: .2rem .7rem; font-size: .7rem; }

/* Icon Box */
.icon-box { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--radius-md); background: rgba(27,77,56,.1); color: var(--forest-700); margin-bottom: 1.25rem; flex-shrink: 0; }
.icon-box svg { width: 26px; height: 26px; }
.icon-box--amber { background: rgba(232,150,14,.12); color: var(--amber-600); }
.icon-box--white { background: rgba(255,255,255,.15); color: var(--white); }

/* Page Hero */
.page-hero { background: linear-gradient(135deg, var(--forest-900) 0%, var(--forest-700) 100%); padding: 5.5rem 0 4rem; text-align: center; color: var(--white); }
.page-hero .badge { margin-bottom: 1.25rem; }
.page-hero h1 { font-size: 2.75rem; margin-bottom: 1rem; color: var(--white); }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 580px; margin: 0 auto; }

/* Misc */
hr.divider { border: none; border-top: 1px solid var(--gray-200); margin: 2.5rem 0; }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-amber { color: var(--amber-500); }
.text-forest { color: var(--forest-700); }
.text-muted { color: var(--gray-600); }

:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 2px; border-radius: 4px; }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 99px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar { position: sticky; top: 0; z-index: 1000; background: var(--white); height: var(--navbar-height); border-bottom: 1px solid var(--gray-200); transition: box-shadow 200ms ease; }
.navbar--scrolled { box-shadow: 0 2px 16px rgba(15,45,37,.1); }
.navbar__inner { display: flex; align-items: center; height: 100%; gap: 2rem; }
.navbar__logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex-shrink: 0; }
.navbar__logo-img { height: 34px; width: auto; display: block; }
.navbar__brand { font-size: 1.15rem; font-weight: 800; color: var(--forest-900); letter-spacing: -.02em; }
.navbar__links { display: flex; align-items: center; gap: .25rem; list-style: none; margin-left: auto; }
.navbar__links a { color: var(--gray-600); font-size: .9rem; font-weight: 500; padding: .45rem .85rem; border-radius: var(--radius-sm); transition: color 150ms, background 150ms; text-decoration: none; }
.navbar__links a:hover { color: var(--forest-900); background: var(--gray-100); }
.navbar__links a.active { color: var(--forest-900); font-weight: 600; }
.navbar__cta { margin-left: .5rem; flex-shrink: 0; padding: .55rem 1.25rem; font-size: .875rem; }
.navbar__hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; margin-left: auto; }
.navbar__hamburger span { display: block; width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform 200ms, opacity 200ms; }
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.navbar__mobile { display: none; background: var(--white); border-top: 1px solid var(--gray-200); padding: 1rem 1.5rem 1.5rem; max-height: 0; overflow: hidden; transition: max-height 250ms ease; }
.navbar__mobile.open { max-height: 420px; }
.navbar__mobile ul { display: flex; flex-direction: column; gap: .25rem; list-style: none; }
.navbar__mobile a { display: block; color: var(--gray-600); font-size: 1rem; font-weight: 500; padding: .65rem .75rem; border-radius: var(--radius-sm); text-decoration: none; }
.navbar__mobile a:hover { color: var(--forest-900); background: var(--gray-100); }
.navbar__mobile a.active { color: var(--forest-900); font-weight: 600; }
@media (max-width: 860px) {
  .navbar { height: auto; }
  .navbar__links, .navbar__cta { display: none; }
  .navbar__hamburger { display: flex; }
  .navbar__mobile { display: block; }
  .navbar__inner { height: var(--navbar-height); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--forest-900); color: rgba(255,255,255,.7); padding-top: 4rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand p { font-size: .9rem; line-height: 1.6; margin-top: 1rem; color: rgba(255,255,255,.55); max-width: 260px; }
.footer__logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.footer__logo-img { height: 32px; width: auto; display: block; }
.footer__logo span { font-size: 1.1rem; font-weight: 800; color: var(--white); letter-spacing: -.02em; }
.footer__social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer__social-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); transition: background 200ms, color 200ms; }
.footer__social-link:hover { background: var(--amber-500); color: var(--forest-900); }
.footer__col h4 { color: rgba(255,255,255,.5); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__col ul { display: flex; flex-direction: column; gap: .5rem; list-style: none; }
.footer__col a { color: rgba(255,255,255,.65); font-size: .9rem; transition: color 200ms; text-decoration: none; }
.footer__col a:hover { color: var(--amber-400); }
.footer__bottom { padding: 1.25rem 0; }
.footer__bottom .container { display: flex; align-items: center; justify-content: space-between; }
.footer__bottom p { font-size: .82rem; color: rgba(255,255,255,.35); }
.footer__bottom-links { display: flex; gap: 1.5rem; }
.footer__bottom-links a { font-size: .82rem; color: rgba(255,255,255,.35); transition: color 200ms; text-decoration: none; }
.footer__bottom-links a:hover { color: var(--amber-400); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 500px) { .footer__grid { grid-template-columns: 1fr; } .footer__bottom .container { flex-direction: column; gap: .5rem; text-align: center; } }

/* ============================================================
   BLOG CARDS (home blog section + related articles)
   ============================================================ */
.blog-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; }
.blog-card:hover { color: inherit; }
.blog-card__img { height: 190px; background-size: cover; background-position: center; background-color: var(--gray-100); }
.blog-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.blog-card__body .badge { align-self: flex-start; }
.blog-card__body h3 { font-size: 1.15rem; line-height: 1.35; color: var(--charcoal); }
.blog-card__body p { color: var(--gray-600); font-size: .92rem; flex: 1; margin: 0; }
.blog-card__meta { color: var(--gray-400); font-size: .8rem; font-weight: 500; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-hero { background: linear-gradient(135deg, var(--forest-900) 0%, var(--forest-700) 100%); padding: 4rem 0 3rem; color: var(--white); }
.article-hero__inner { max-width: 760px; }
.article-hero__back { display: inline-block; color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 1.5rem; text-decoration: none; }
.article-hero__back:hover { color: var(--amber-400); }
.article-hero h1 { color: var(--white); font-size: 2.4rem; margin: 1rem 0; line-height: 1.2; }
.article-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; color: rgba(255,255,255,.8); font-size: .92rem; }
.article-hero__meta .dot { color: rgba(255,255,255,.4); }
.article__media { max-width: 820px; margin: -2rem auto 0; padding: 0 1.5rem; }
.article__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 8; object-fit: cover; }
.article__body { max-width: 720px; margin: 3rem auto; padding: 0 1.5rem; font-size: 1.08rem; color: var(--gray-800); }
.article__body h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.article__body h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.article__body p { margin-bottom: 1.25rem; line-height: 1.75; }
.article__body ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.article__body li { line-height: 1.6; }
.article__body blockquote { border-left: 4px solid var(--amber-500); background: var(--cream-100); padding: 1.25rem 1.5rem; margin: 2rem 0; border-radius: var(--radius-sm); font-size: 1.15rem; font-style: italic; color: var(--forest-800); }
.article__body a { color: var(--forest-700); text-decoration: underline; }

@media (max-width: 600px) { .article-hero h1 { font-size: 1.8rem; } .article__body { font-size: 1rem; } }
