:root{
  /* Base colors */
  --bg: #eff1ed;
  --surface: #dbdbdb;
  --card: #dbdbdb;
  --border: #bfbfbf;

  /* Accent */
  --accent: #717744;
  --accent-hover: #BCBD8B;

  /* Text */
  --text: #141414;
  --muted: #6e6e6e;

  /* Effects */
  --shadow: 0 10px 30px rgba(0,0,0,0.10);
  --shadow2: 0 12px 22px rgba(0,0,0,0.08);

  --radius: 14px;
  --radius2: 12px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height:1.6;
}

a{ text-decoration:none; color:inherit; }

.container{
  width:min(1100px,92vw);
  margin:0 auto;
}

/* ================= HEADER ================= */

header{
  background:#dbdbdbee;
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
}

.top-bar{
  display:flex;
  align-items:center;
  gap:32px;
  padding:14px 0;
  flex-wrap:nowrap;
}


.logo{
  width: 220px;
  max-width: 220px;
  height: auto;
  flex-shrink: 0;
  display: block;
  cursor:pointer;
}



.header-right{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
  flex:1;
}


.title strong{
  display:block;
  font-size:38px;
  line-height:1.1;
  letter-spacing:-0.4px;
}

.title span{
  font-size:20px;
  color:var(--muted);
}

.main-nav ul{
  list-style:none;
  display:flex;
  gap:26px;
  margin-top:6px;
}

.main-nav a{
  padding:6px 16px;
  border-radius:999px;
  color:var(--muted);
  border:1px solid transparent;
  font-size:15px;
  white-space:nowrap;
  transition:0.15s;
}

.main-nav a:hover{
  background:var(--card);
  color:var(--text);
}

.main-nav a.active{
  background:var(--accent);
  color:#fff;
}

/* ================= NAV ================= */

.main-nav{
  margin-top:6px;
}

.main-nav ul{
  list-style:none;
  display:flex;
  gap:24px;
  margin-top:6px;
  flex-wrap:nowrap;
}


.main-nav a{
  padding:6px 16px;
  border-radius:999px;
  color:var(--muted);
  border:1px solid transparent;
  font-size:15px;
  white-space:nowrap;
}


.main-nav a:hover{
  background:var(--card);
  color:var(--text);
}

.main-nav a.active{
  background:var(--accent);
  color:#fff;
}


/* ================= HERO ================= */

main{ padding:34px 0 60px; }

.hero{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px;
  box-shadow:var(--shadow);
}

.hero p{ color:var(--muted); }

.hero-actions{
  margin-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.page-hero{
  margin-top: 10px;
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

@media (max-width: 850px){
  .page-hero{ grid-template-columns: 1fr; }
}


/* ================= BUTTONS ================= */

.btn{
  padding:10px 14px;
  border-radius:var(--radius2);
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  font-weight:600;
  transition:0.15s;
}

.btn:hover{
  transform:translateY(-1px);
  background:#dcdcdc;
}

.btn.primary{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}

.btn.primary:hover{
  background:var(--accent-hover);
}

/* ================= GRID + CARDS ================= */

.section-title{ margin:26px 0 14px; }

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow2);
  transition:0.15s;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.card:hover{
  transform:translateY(-3px);
  border-color:#9e9e9e;
}

.card .kicker{
  font-size:0.8rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:#555;
}

.card p{ color:var(--muted); }

.thumb{
  width:100%;
  height:140px;
  border-radius:12px;
  border:1px solid var(--border);
  background:linear-gradient(135deg,#ececec,#fafafa);
}

/* ================= PANELS ================= */

.panel{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
}

/* ================= FOOTER ================= */

footer{
  border-top:1px solid var(--border);
  color:var(--muted);
  padding:18px 0 30px;
  text-align:center;
}

/* ================= RESPONSIVE ================= */

@media(max-width:850px){
  .header-inner{ flex-direction:column; align-items:flex-start; }
}

/* MOBILE HEADER FIX */
@media (max-width: 850px){

  .top-bar{
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 14px 0;
  }

  .logo{
    width: 180px;      /* smaller on mobile */
    height: auto;
  }

  .header-right{
    align-items: center;
    width: 100%;
  }

  .title strong{
    font-size: 30px;   /* scale down headline */
    line-height: 1.15;
  }

  .title span{
    font-size: 15px;
  }

  .main-nav ul{
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;   /* allow buttons to wrap nicely */
    margin-top: 10px;
  }

  .main-nav a{
    padding: 8px 14px; /* finger-friendly */
  }
}
