/* ============================================================
   GardenEngineering — Components (LOCKED v1.1)
   File: /assets/css/components.css
   Purpose:
     - Nav + footer shell (with mobile hamburger)
     - Wrap + section spacing
     - Sponsor block (single canonical system)
     - Gold UX Boxes (Quick Answer / Symptom Nav / Decision Box)
     - Editorial Link System
     - Hub styles
   ============================================================ */


/* -----------------------------
   Base layout helpers
----------------------------- */
.ge-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 16px;
}

.ge-section {
  padding: 0;
}


/* ============================================================
   Navigation (CANONICAL — single system)
   Works with:
     - .ge-nav__links (desktop)
     - .ge-nav__toggle (hamburger)
     - .ge-nav__panel (mobile menu panel)
   ============================================================ */

.ge-nav {
  width: 100%;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.ge-nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ge-nav__brand {
  text-decoration: none;
  color: #111;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* Desktop links */
.ge-nav__links {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.ge-nav__link {
  text-decoration: none;
  color: #111;
  opacity: 0.92;
  padding: 6px 10px;
  border-radius: 10px;
}

.ge-nav__link:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Active state (if you add is-active class) */
.ge-nav__link.is-active {
  font-weight: 700;
  text-decoration: underline;
}

/* Right side actions (TLC link if used) */
.ge-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.ge-nav__tlc {
  text-decoration: none;
  color: #111;
  opacity: 0.9;
  padding: 6px 10px;
  border-radius: 10px;
}

.ge-nav__tlc:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Burger button (hidden by default, enabled via media query) */
.ge-nav__toggle {
  margin-left: auto;
  display: none;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  border-radius: 10px;
  width: 44px;
  height: 40px;
  padding: 0;
  cursor: pointer;
}

.ge-burger {
  display: block;
  width: 18px;
  height: 2px;
  background: #111;
  margin: 0 auto;
  position: relative;
}

.ge-burger::before,
.ge-burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111;
}

.ge-burger::before { top: -6px; }
.ge-burger::after  { top:  6px; }

/* Mobile panel */
.ge-nav__panel {
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.ge-nav__panel-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px 16px;
  display: grid;
  gap: 10px;
}

.ge-nav__panel-link {
  text-decoration: none;
  color: #111;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,0.03);
}

.ge-nav__panel-link:hover {
  background: rgba(0,0,0,0.06);
}

.ge-nav__panel-link--muted {
  opacity: 0.85;
}

.ge-nav__panel-divider {
  height: 1px;
  background: rgba(0,0,0,0.10);
  margin: 6px 0;
}

/* RESPONSIVE BEHAVIOUR (THIS was missing on your live site) */
@media (max-width: 1024px) {
  .ge-nav__links { display: none; }
  .ge-nav__actions { display: none; }
  .ge-nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
}


/* -----------------------------
   Footer (CANONICAL — inline Tier 0)
----------------------------- */
.ge-footer {
  border-top: 1px solid #e8eef6;
  background: #fbfdff;
  margin-top: 48px;
  color: #4a5a70;
  font-size: 14px;
}

/* Support BOTH naming styles */
.ge-footer__inner,
.ge-footer_inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
}

/* One thin row: left + right */
.ge-footer__row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Left side: copyright + nav links */
.ge-footer__left {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.ge-footer__copy {
  white-space: nowrap;
  opacity: 0.85;
}

/* Footer nav links */
.ge-footer__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ge-footer__links a {
  text-decoration: none;
  color: #4a5a70;
  border-bottom: 1px solid transparent;
}

.ge-footer__links a:hover {
  border-bottom-color: rgba(59,130,246,0.45);
}


/* -----------------------------
   Tier 0 Founder Pill (RIGHT SIDE)
----------------------------- */
.ge-footer__tier0 {
  flex-shrink: 0;
}

.ge-tier0 {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;

  padding: 3px 5px;
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 999px;
  background: rgba(59,130,246,0.04);
  white-space: nowrap;

  min-height: 70px;
}

.ge-tier0:hover {
  border-color: rgba(59,130,246,0.32);
  background: rgba(59,130,246,0.06);
}

.ge-tier0__logo {
  display: block;
  object-fit: contain;
  height: 68px;
  width: auto;
  flex-shrink: 0;
}

.ge-tier0__text {
  font-size: 13.5px;
  color: rgba(15,23,42,0.72);
  line-height: 1.25;

  max-width: 329px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ge-tier0__text strong {
  color: rgba(15,23,42,0.92);
}

/* Mobile: allow gentle stacking */
@media (max-width: 720px) {
  .ge-footer__left {
    width: 100%;
    justify-content: space-between;
  }

  .ge-footer__tier0 {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}


/* ============================================================
   Sponsors (CANONICAL v1.0)
   ============================================================ */

.ge-sponsors {
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  margin: 40px 0;
  padding: 28px 0;
  background: #fafafa;
}

.ge-sponsors__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.ge-sponsors__label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 14px;
}

.ge-sponsors__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 720px) {
  .ge-sponsors__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ge-sponsor {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #ededed;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
}

.ge-sponsor:hover {
  border-color: #dcdcdc;
}

.ge-sponsor a {
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.ge-sponsor__logo img {
  width: 86px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.ge-sponsor__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ge-sponsor__name {
  font-weight: 600;
  color: #222;
}

.ge-sponsor__tier {
  font-size: 12px;
  color: #666;
}


/* ============================================================
   Gold UX Boxes (v1.1 LOCK)
   ============================================================ */

:root{
  --ge-box-bg: #fbfbfd;
  --ge-box-border: rgba(15, 23, 42, 0.12);
  --ge-box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --ge-box-radius: 14px;

  --ge-accent: #3b82f6;
  --ge-accent-soft: rgba(59, 130, 246, 0.14);
  --ge-text: #0f172a;
  --ge-muted: rgba(15, 23, 42, 0.68);
}

.ge-answer-box,
.ge-symptom-nav,
.ge-decision-box{
  background: var(--ge-box-bg);
  border: 1px solid var(--ge-box-border);
  border-radius: var(--ge-box-radius);
  box-shadow: var(--ge-box-shadow);
  margin: 18px auto;
}

.ge-answer-box .ge-wrap,
.ge-symptom-nav .ge-wrap,
.ge-decision-box .ge-wrap{
  max-width: 980px;
  padding: 18px 18px;
}

.ge-answer-box h2,
.ge-symptom-nav h2,
.ge-decision-box h2,
.ge-answer-box h3,
.ge-symptom-nav h3,
.ge-decision-box h3{
  margin: 0 0 10px 0;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--ge-text);
}

.ge-answer-box p,
.ge-symptom-nav p,
.ge-decision-box p{
  margin: 8px 0 0 0;
  color: var(--ge-muted);
}

.ge-answer-box ul,
.ge-decision-box ul{
  margin: 10px 0 0 18px;
  padding: 0;
}

.ge-answer-box li,
.ge-decision-box li{
  margin: 6px 0;
  color: var(--ge-text);
}

.ge-answer-box,
.ge-symptom-nav{
  position: relative;
  overflow: hidden;
}

.ge-answer-box::before,
.ge-symptom-nav::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--ge-accent), rgba(59,130,246,0.45));
}

.ge-symptom-nav a{
  display: inline-block;
  text-decoration: none;
  color: var(--ge-text);
  border: 1px solid var(--ge-box-border);
  background: #fff;
  padding: 8px 10px;
  border-radius: 999px;
  margin: 6px 8px 0 0;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.ge-symptom-nav a:hover{
  transform: translateY(-1px);
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 8px 18px rgba(15,23,42,0.08);
  background: rgba(59,130,246,0.06);
}

.ge-symptom-nav a:focus{
  outline: none;
  box-shadow: 0 0 0 4px var(--ge-accent-soft);
  border-color: rgba(59,130,246,0.55);
}

.ge-symptom-nav ul{
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
}

.ge-symptom-nav li{
  display: inline;
}

.ge-decision-box{
  background: linear-gradient(180deg, rgba(59,130,246,0.06), var(--ge-box-bg));
  border-color: rgba(59,130,246,0.22);
}

.ge-decision-box strong{
  color: var(--ge-text);
}

@media (max-width: 640px){
  .ge-answer-box,
  .ge-symptom-nav,
  .ge-decision-box{
    border-radius: 12px;
  }

  .ge-answer-box .ge-wrap,
  .ge-symptom-nav .ge-wrap,
  .ge-decision-box .ge-wrap{
    padding: 16px 14px;
  }

  .ge-symptom-nav a{
    margin-right: 6px;
    padding: 8px 9px;
    font-size: 0.92rem;
  }
}


/* ============================================================
   Editorial Link System (v1.1 LOCK)
   ============================================================ */

a {
  color: var(--ge-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(59,130,246,0.28);
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

a:hover {
  color: #1e40af;
  border-bottom-color: rgba(30,64,175,0.75);
  background-color: rgba(59,130,246,0.08);
}

a:visited {
  color: #6b3fa0;
  border-bottom-color: rgba(107,63,160,0.55);
}

a:visited:hover {
  color: #4c1d95;
  border-bottom-color: rgba(76,29,149,0.75);
  background-color: rgba(107,63,160,0.10);
}

p a,
li a {
  font-weight: 600;
  padding: 0 2px;
  border-radius: 4px;
}

/* Opt-out zones */
.ge-nav a,
.ge-footer a,
.ge-symptom-nav a,
.ge-tier0,
.ge-tier0 *,
.ge-nav__link,
.ge-nav__tlc,
.ge-nav__panel-link {
  color: inherit;
  border-bottom: none;
  background: none;
}

.ge-answer-box a,
.ge-decision-box a {
  border-bottom-color: rgba(59,130,246,0.40);
}


/* ============================================================
   Hub styles (as-is)
   ============================================================ */

.hub-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.hub-header h1 {
  margin-bottom: 0.5rem;
}

.hub-intro {
  font-size: 1.05rem;
  color: #444;
  max-width: 800px;
}

.hub-status {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f6f6f6;
  border-left: 4px solid #6b3fa0;
  font-size: 0.9rem;
}

.hub-preview {
  margin-top: 2.5rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.preview-card {
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  padding: 1rem 1.1rem;
  background: #fff;
  position: relative;
}

.preview-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.preview-card p {
  font-size: 0.9rem;
  color: #555;
}

.coming-soon {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dead-link {
  cursor: default;
  opacity: 0.75;
}

.hub-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eaeaea;
  max-width: 850px;
}

.hub-note p {
  font-size: 0.95rem;
  color: #444;
}
